Skip to content

Commit 40c56a7

Browse files
committed
Latest libauth, default to BCH 2025 VM
1 parent e2d8875 commit 40c56a7

16 files changed

Lines changed: 82 additions & 78 deletions

libauth

Submodule libauth updated 2546 files

package.json

Lines changed: 1 addition & 1 deletion
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.1",
6+
"@bitauth/libauth": "3.1.0-next.2",
77
"@blueprintjs/core": "^5.8.2",
88
"@blueprintjs/icons": "^5.7.0",
99
"@blueprintjs/select": "^5.0.23",

src/editor/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const ideURI = window.location.origin;
22

33
export const bitauthWalletTemplateSchema =
4-
'https://ide.bitauth.com/authentication-template-v0.schema.json';
4+
'https://libauth.org/schemas/wallet-template-v0.schema.json';
55

66
export const localStorageBackupPrefix = 'BITAUTH_IDE_BACKUP_';
77

src/editor/dialogs/edit-script-dialog/EditScriptDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export const EditScriptDialog = ({
130130
>
131131
<HTMLSelect
132132
id="script-p2sh"
133+
value={scriptLockingType}
133134
options={lockingTypes}
134135
onChange={(e) => {
135136
setScriptLockingType(e.currentTarget.value as LockingType);

src/editor/script-editor/error-assistance.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { abbreviateStackItem } from '../common';
33
import { ScriptEditorFrame } from '../editor-types';
44

55
import {
6-
AuthenticationErrorBch2023Additions,
76
AuthenticationErrorBch2025Additions,
87
AuthenticationErrorBchSpec,
98
AuthenticationErrorBchSpecAdditions,
@@ -14,7 +13,6 @@ import { Popover } from '@blueprintjs/core';
1413

1514
export type PossibleErrors =
1615
| AuthenticationErrorCommon
17-
| AuthenticationErrorBch2023Additions
1816
| AuthenticationErrorBch2025Additions
1917
| AuthenticationErrorBchSpecAdditions;
2018

src/editor/script-editor/wallet-template.schema.json

Lines changed: 60 additions & 48 deletions
Large diffs are not rendered by default.

src/state/defaults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export const defaultState: AppState = {
3939
currentScenarioInternalId: undefined,
4040
lastSelectedScenarioInternalId: undefined,
4141
currentTemplate: defaultTemplate,
42-
currentVmId: 'BCH_2023_05',
42+
currentVmId: 'BCH_2025_05',
4343
evaluationViewerSettings: {
4444
abbreviateLongStackItems: true,
4545
groupStackItemsDeeperThan: 3,
46-
supportBigInt: false,
46+
supportBigInt: true,
4747
vmNumbersDisplayFormat: 'integer',
4848
reverseStack: false,
4949
showAlternateStack: false,

src/templates/2-of-3.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://ide.bitauth.com/authentication-template-v0.schema.json",
2+
"$schema": "https://libauth.org/schemas/wallet-template-v0.schema.json",
33
"name": "2-of-3 Multisig",
44
"entities": {
55
"signer_1": {
@@ -62,6 +62,5 @@
6262
"BCH_2026_05",
6363
"BCH_SPEC",
6464
"BTC_2017_08"
65-
],
66-
"version": 0
65+
]
6766
}

tests/fixtures/empty.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://ide.bitauth.com/authentication-template-v0.schema.json",
2+
"$schema": "https://libauth.org/schemas/wallet-template-v0.schema.json",
33
"description": "An empty wallet template.\n",
44
"name": "empty.json",
55
"entities": {},
@@ -15,6 +15,5 @@
1515
"script": ""
1616
}
1717
},
18-
"supported": ["BCH_2023_05"],
19-
"version": 0
18+
"supported": ["BCH_2023_05", "BCH_2025_05"]
2019
}

tests/fixtures/loops.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://ide.bitauth.com/authentication-template-v0.schema.json",
2+
"$schema": "https://libauth.org/schemas/wallet-template-v0.schema.json",
33
"description": "Render loops and loop controls in the evaluation viewer.\n",
44
"name": "loops.json",
55
"entities": {},
@@ -9,6 +9,5 @@
99
"script": "\n<0> <0>\nOP_BEGIN\n\n <1> OP_IF \n <0> OP_BEGIN OP_1ADD OP_DUP <2> OP_EQUAL OP_UNTIL\n <1> <1> OP_BEGIN \n OP_UNTIL OP_BEGIN\n OP_UNTIL\n OP_ENDIF\n OP_ADD\n OP_SWAP OP_1ADD OP_SWAP\n OP_OVER\n <1> OP_IF \n <0> OP_BEGIN OP_BEGIN\n OP_1ADD\n OP_DUP\n <$(\n <0> OP_BEGIN \n OP_1ADD \n OP_DUP <5>\n OP_EQUAL\n OP_UNTIL\n )>\n OP_EQUAL\n OP_UNTIL <1> OP_UNTIL\n OP_ENDIF\n OP_EQUAL\nOP_UNTIL\nOP_NIP\n"
1010
}
1111
},
12-
"supported": ["BCH_SPEC"],
13-
"version": 0
12+
"supported": ["BCH_SPEC"]
1413
}

0 commit comments

Comments
 (0)