Skip to content

Commit da5fb61

Browse files
committed
Add P2S and OP_EVAL support
1 parent 40c56a7 commit da5fb61

File tree

7 files changed

+18
-14
lines changed

7 files changed

+18
-14
lines changed

libauth

Submodule libauth updated 96 files

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"private": true,
55
"devDependencies": {
6-
"@bitauth/libauth": "3.1.0-next.2",
6+
"@bitauth/libauth": "3.1.0-next.3",
77
"@blueprintjs/core": "^5.8.2",
88
"@blueprintjs/icons": "^5.7.0",
99
"@blueprintjs/select": "^5.0.23",

src/cash-assembly/editor-tooling.ts

+11-7
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@ export type MonacoMarkerDataRequired = {
2828
const getExecutionSpacers = (
2929
controlStack: IDESupportedProgramState['controlStack'],
3030
) =>
31-
controlStack.map((item) =>
32-
typeof item === 'number'
33-
? EvaluationViewerSpacer.loop
34-
: item
35-
? EvaluationViewerSpacer.executedConditional
36-
: EvaluationViewerSpacer.skippedConditional,
37-
);
31+
controlStack
32+
.map((item) =>
33+
typeof item === 'object'
34+
? undefined
35+
: typeof item === 'number'
36+
? EvaluationViewerSpacer.loop
37+
: item
38+
? EvaluationViewerSpacer.executedConditional
39+
: EvaluationViewerSpacer.skippedConditional,
40+
)
41+
.filter((item) => item !== undefined);
3842

3943
/**
4044
* @param samples a list of samples ordered by their ending position

src/editor/script-editor/ScriptEditor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ export const ScriptEditor = (props: {
824824
className="script-tag locking-type-tag"
825825
title={lockingTypeDescriptions.standard}
826826
>
827-
bare
827+
P2S
828828
</span>
829829
)}
830830
{props.isPushed && scriptType === 'tested' && (

src/header/HeaderBar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const ideModes: IDESupportedModes[] = [
4848
const vms: IDESupportedVirtualMachine[] = [
4949
{ id: 'BCH_2023_05', name: 'BCH 2023 VM', disabled: false },
5050
{ id: 'BCH_2025_05', name: 'BCH 2025 VM', disabled: false },
51-
{ id: 'BCH_2026_05', name: 'BCH 2026 VM', disabled: true },
51+
{ id: 'BCH_2026_05', name: 'BCH 2026 VM', disabled: false },
5252
{ id: 'BCH_SPEC', name: 'BCH SPEC VM', disabled: false },
5353
{ id: 'BTC_2017_08', name: 'BTC 2017 VM', disabled: true },
5454
{ id: 'BSV_2020_02', name: 'BSV 2020 VM', disabled: true },

src/state/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export type LockingType = WalletTemplateScriptLocking['lockingType'];
142142
export const lockingTypes: { label: string; value: LockingType }[] = [
143143
{ label: 'P2SH20', value: 'p2sh20' },
144144
{ label: 'P2SH32', value: 'p2sh32' },
145-
{ label: 'Bare (non-P2SH)', value: 'standard' },
145+
{ label: 'P2S', value: 'standard' },
146146
];
147147

148148
export const lockingTypeDescriptions: {
@@ -153,7 +153,7 @@ export const lockingTypeDescriptions: {
153153
p2sh32:
154154
'This is a P2SH32 script. The P2SH32-wrapping bytecode is automatically included during compilation.',
155155
standard:
156-
'This is a bare (non-P2SH) script: it is compiled directly into the transaction output without P2SH-wrapping bytecode.',
156+
'This is a P2S script: it is compiled directly into the transaction output without P2SH-wrapping bytecode.',
157157
};
158158

159159
export type BaseScriptType =

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -3407,7 +3407,7 @@ __metadata:
34073407
version: 0.0.0-use.local
34083408
resolution: "bitauth-ide@workspace:."
34093409
dependencies:
3410-
"@bitauth/libauth": "npm:3.1.0-next.2"
3410+
"@bitauth/libauth": "npm:3.1.0-next.3"
34113411
"@blueprintjs/core": "npm:^5.8.2"
34123412
"@blueprintjs/icons": "npm:^5.7.0"
34133413
"@blueprintjs/select": "npm:^5.0.23"

0 commit comments

Comments
 (0)