@bitgo/wasm-utxo 4.22.0 → 4.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/js/coinName.d.ts +1 -1
- package/dist/cjs/js/coinName.js +4 -0
- package/dist/cjs/js/testutils/AcidTest.js +10 -6
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm.d.ts +141 -141
- package/dist/esm/js/coinName.d.ts +1 -1
- package/dist/esm/js/coinName.js +4 -0
- package/dist/esm/js/testutils/AcidTest.js +10 -6
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm.d.ts +141 -141
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const coinNames: readonly ["btc", "tbtc", "tbtc4", "tbtcsig", "tbtcbgsig", "tbtcreg", "bch", "tbch", "bcha", "tbcha", "btg", "tbtg", "bsv", "tbsv", "dash", "tdash", "doge", "tdoge", "ltc", "tltc", "zec", "tzec"];
|
|
1
|
+
export declare const coinNames: readonly ["btc", "tbtc", "tbtc4", "tbtcsig", "tbtcbgsig", "tbtcreg", "bch", "tbch", "bcha", "tbcha", "btg", "tbtg", "bsv", "tbsv", "dash", "tdash", "doge", "tdoge", "ltc", "tltc", "zec", "tzec", "pearl", "tpearl"];
|
|
2
2
|
export type CoinName = (typeof coinNames)[number];
|
|
3
3
|
export declare function getMainnet(name: CoinName): CoinName;
|
|
4
4
|
export declare function isMainnet(name: CoinName): boolean;
|
package/dist/cjs/js/coinName.js
CHANGED
|
@@ -30,6 +30,8 @@ exports.coinNames = [
|
|
|
30
30
|
"tltc",
|
|
31
31
|
"zec",
|
|
32
32
|
"tzec",
|
|
33
|
+
"pearl",
|
|
34
|
+
"tpearl",
|
|
33
35
|
];
|
|
34
36
|
function getMainnet(name) {
|
|
35
37
|
switch (name) {
|
|
@@ -55,6 +57,8 @@ function getMainnet(name) {
|
|
|
55
57
|
return "ltc";
|
|
56
58
|
case "tzec":
|
|
57
59
|
return "zec";
|
|
60
|
+
case "tpearl":
|
|
61
|
+
return "pearl";
|
|
58
62
|
default:
|
|
59
63
|
return name;
|
|
60
64
|
}
|
|
@@ -81,9 +81,9 @@ class AcidTest {
|
|
|
81
81
|
// Filter inputs based on network support
|
|
82
82
|
const inputs = index_js_1.inputScriptTypes
|
|
83
83
|
.filter((scriptType) => {
|
|
84
|
-
// p2shP2pk
|
|
84
|
+
// p2shP2pk requires legacy (P2SH) support
|
|
85
85
|
if (scriptType === "p2shP2pk")
|
|
86
|
-
return
|
|
86
|
+
return (0, index_js_1.supportsScriptType)(coin, "p2sh");
|
|
87
87
|
// Map input script types to output script types for support check
|
|
88
88
|
if (scriptType === "p2trMusig2KeyPath" || scriptType === "p2trMusig2ScriptPath") {
|
|
89
89
|
return (0, index_js_1.supportsScriptType)(coin, "p2trMusig2");
|
|
@@ -103,10 +103,14 @@ class AcidTest {
|
|
|
103
103
|
scriptType,
|
|
104
104
|
value: BigInt(900 + index * 100), // Deterministic amounts
|
|
105
105
|
}));
|
|
106
|
-
// Test other wallet output (with derivation info)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
// Test other wallet output (with derivation info) — only on legacy-supporting networks
|
|
107
|
+
if ((0, index_js_1.supportsScriptType)(coin, "p2sh")) {
|
|
108
|
+
outputs.push({ scriptType: "p2sh", value: BigInt(800), walletKeys: otherWalletKeys });
|
|
109
|
+
}
|
|
110
|
+
// Test non-wallet output (no derivation info) — only on legacy-supporting networks
|
|
111
|
+
if ((0, index_js_1.supportsScriptType)(coin, "p2sh")) {
|
|
112
|
+
outputs.push({ scriptType: "p2sh", value: BigInt(700), walletKeys: null });
|
|
113
|
+
}
|
|
110
114
|
// Test OP_RETURN output
|
|
111
115
|
outputs.push({ opReturn: "setec astronomy", value: BigInt(0) });
|
|
112
116
|
// Get private keys for signing
|
|
Binary file
|
|
@@ -1,147 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
6
|
-
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
7
|
-
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
8
|
-
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
9
|
-
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
10
|
-
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
11
|
-
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
12
|
-
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
13
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
14
|
-
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
15
|
-
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
16
|
-
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
17
|
-
export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
|
|
18
|
-
export const isInspectEnabled: () => number;
|
|
19
|
-
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
20
|
-
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
21
|
-
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
22
|
-
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
23
|
-
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
24
|
-
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
25
|
-
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
26
|
-
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
27
|
-
export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
28
|
-
export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
|
|
29
|
-
export const wasmdashtransaction_input_count: (a: number) => number;
|
|
30
|
-
export const wasmdashtransaction_lock_time: (a: number) => number;
|
|
31
|
-
export const wasmdashtransaction_output_count: (a: number) => number;
|
|
32
|
-
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
33
|
-
export const wasmdashtransaction_version: (a: number) => number;
|
|
34
|
-
export const wasmdimensions_empty: () => number;
|
|
35
|
-
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
36
|
-
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
37
|
-
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
38
|
-
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
39
|
-
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
40
|
-
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
41
|
-
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
42
|
-
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
43
|
-
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
44
|
-
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
45
|
-
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
46
|
-
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
47
|
-
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
48
|
-
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
49
|
-
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
50
|
-
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
51
|
-
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
52
|
-
export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
53
|
-
export const wasmtransaction_create: () => number;
|
|
54
|
-
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
55
|
-
export const wasmtransaction_get_inputs: (a: number, b: number) => void;
|
|
56
|
-
export const wasmtransaction_get_outputs: (a: number, b: number) => void;
|
|
57
|
-
export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
58
|
-
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
59
|
-
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
60
|
-
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
61
|
-
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
62
|
-
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
63
|
-
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
64
|
-
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
65
|
-
export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
66
|
-
export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
|
|
67
|
-
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
68
|
-
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
69
|
-
export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
70
|
-
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
71
|
-
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
72
|
-
export const wrappsbt_clone: (a: number) => number;
|
|
73
|
-
export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
74
|
-
export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
75
|
-
export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
76
|
-
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
77
|
-
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
78
|
-
export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
79
|
-
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
80
|
-
export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
81
|
-
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
82
|
-
export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
83
|
-
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
84
|
-
export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
85
|
-
export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
86
|
-
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
87
|
-
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
88
|
-
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
89
|
-
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
90
|
-
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
91
|
-
export const wrappsbt_input_count: (a: number) => number;
|
|
92
|
-
export const wrappsbt_new: (a: number, b: number) => number;
|
|
93
|
-
export const wrappsbt_output_count: (a: number) => number;
|
|
94
|
-
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
95
|
-
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
96
|
-
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
97
|
-
export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
98
|
-
export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
99
|
-
export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
100
|
-
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
101
|
-
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
102
|
-
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
103
|
-
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
104
|
-
export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
105
|
-
export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
106
|
-
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
107
|
-
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
108
|
-
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
109
|
-
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
110
|
-
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
111
|
-
export const wasmtransaction_input_count: (a: number) => number;
|
|
112
|
-
export const wasmtransaction_output_count: (a: number) => number;
|
|
113
|
-
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
114
|
-
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
115
|
-
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
116
|
-
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
117
|
-
export const wasmtransaction_lock_time: (a: number) => number;
|
|
118
|
-
export const wasmtransaction_version: (a: number) => number;
|
|
119
|
-
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
120
|
-
export const wasmzcashtransaction_version: (a: number) => number;
|
|
121
|
-
export const wrappsbt_lock_time: (a: number) => number;
|
|
122
|
-
export const wrappsbt_version: (a: number) => number;
|
|
123
|
-
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
124
|
-
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
125
|
-
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
126
|
-
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
127
|
-
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
128
|
-
export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
129
|
-
export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
|
|
130
|
-
export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
131
|
-
export const wrapdescriptor_hasWildcard: (a: number) => number;
|
|
132
|
-
export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
|
|
133
|
-
export const wrapdescriptor_node: (a: number, b: number) => void;
|
|
134
|
-
export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
|
|
135
|
-
export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
|
|
136
|
-
export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
137
|
-
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
138
|
-
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
139
|
-
export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
140
|
-
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
141
|
-
export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
142
|
-
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
143
|
-
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
144
|
-
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
145
4
|
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
146
5
|
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
147
6
|
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
@@ -283,6 +142,147 @@ export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
|
283
142
|
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
284
143
|
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
285
144
|
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
145
|
+
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
146
|
+
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
147
|
+
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
148
|
+
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
149
|
+
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
150
|
+
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
151
|
+
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
152
|
+
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
153
|
+
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
154
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
155
|
+
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
156
|
+
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
157
|
+
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
158
|
+
export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
|
|
159
|
+
export const isInspectEnabled: () => number;
|
|
160
|
+
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
161
|
+
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
162
|
+
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
163
|
+
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
164
|
+
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
165
|
+
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
166
|
+
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
167
|
+
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
168
|
+
export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
169
|
+
export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
|
|
170
|
+
export const wasmdashtransaction_input_count: (a: number) => number;
|
|
171
|
+
export const wasmdashtransaction_lock_time: (a: number) => number;
|
|
172
|
+
export const wasmdashtransaction_output_count: (a: number) => number;
|
|
173
|
+
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
174
|
+
export const wasmdashtransaction_version: (a: number) => number;
|
|
175
|
+
export const wasmdimensions_empty: () => number;
|
|
176
|
+
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
177
|
+
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
178
|
+
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
179
|
+
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
180
|
+
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
181
|
+
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
182
|
+
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
183
|
+
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
184
|
+
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
185
|
+
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
186
|
+
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
187
|
+
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
188
|
+
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
189
|
+
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
190
|
+
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
191
|
+
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
192
|
+
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
193
|
+
export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
194
|
+
export const wasmtransaction_create: () => number;
|
|
195
|
+
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
196
|
+
export const wasmtransaction_get_inputs: (a: number, b: number) => void;
|
|
197
|
+
export const wasmtransaction_get_outputs: (a: number, b: number) => void;
|
|
198
|
+
export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
199
|
+
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
200
|
+
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
201
|
+
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
202
|
+
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
203
|
+
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
204
|
+
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
205
|
+
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
206
|
+
export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
207
|
+
export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
|
|
208
|
+
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
209
|
+
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
210
|
+
export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
211
|
+
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
212
|
+
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
213
|
+
export const wrappsbt_clone: (a: number) => number;
|
|
214
|
+
export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
215
|
+
export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
216
|
+
export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
217
|
+
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
218
|
+
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
219
|
+
export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
220
|
+
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
221
|
+
export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
222
|
+
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
223
|
+
export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
224
|
+
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
225
|
+
export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
226
|
+
export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
227
|
+
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
228
|
+
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
229
|
+
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
230
|
+
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
231
|
+
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
232
|
+
export const wrappsbt_input_count: (a: number) => number;
|
|
233
|
+
export const wrappsbt_new: (a: number, b: number) => number;
|
|
234
|
+
export const wrappsbt_output_count: (a: number) => number;
|
|
235
|
+
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
236
|
+
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
237
|
+
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
238
|
+
export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
239
|
+
export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
240
|
+
export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
241
|
+
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
242
|
+
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
243
|
+
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
244
|
+
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
245
|
+
export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
246
|
+
export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
247
|
+
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
248
|
+
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
249
|
+
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
250
|
+
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
251
|
+
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
252
|
+
export const wasmtransaction_input_count: (a: number) => number;
|
|
253
|
+
export const wasmtransaction_output_count: (a: number) => number;
|
|
254
|
+
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
255
|
+
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
256
|
+
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
257
|
+
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
258
|
+
export const wasmtransaction_lock_time: (a: number) => number;
|
|
259
|
+
export const wasmtransaction_version: (a: number) => number;
|
|
260
|
+
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
261
|
+
export const wasmzcashtransaction_version: (a: number) => number;
|
|
262
|
+
export const wrappsbt_lock_time: (a: number) => number;
|
|
263
|
+
export const wrappsbt_version: (a: number) => number;
|
|
264
|
+
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
265
|
+
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
266
|
+
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
267
|
+
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
268
|
+
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
269
|
+
export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
270
|
+
export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
|
|
271
|
+
export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
272
|
+
export const wrapdescriptor_hasWildcard: (a: number) => number;
|
|
273
|
+
export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
|
|
274
|
+
export const wrapdescriptor_node: (a: number, b: number) => void;
|
|
275
|
+
export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
|
|
276
|
+
export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
|
|
277
|
+
export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
278
|
+
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
279
|
+
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
280
|
+
export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
281
|
+
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
282
|
+
export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
283
|
+
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
284
|
+
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
285
|
+
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
286
286
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
287
287
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
288
288
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const coinNames: readonly ["btc", "tbtc", "tbtc4", "tbtcsig", "tbtcbgsig", "tbtcreg", "bch", "tbch", "bcha", "tbcha", "btg", "tbtg", "bsv", "tbsv", "dash", "tdash", "doge", "tdoge", "ltc", "tltc", "zec", "tzec"];
|
|
1
|
+
export declare const coinNames: readonly ["btc", "tbtc", "tbtc4", "tbtcsig", "tbtcbgsig", "tbtcreg", "bch", "tbch", "bcha", "tbcha", "btg", "tbtg", "bsv", "tbsv", "dash", "tdash", "doge", "tdoge", "ltc", "tltc", "zec", "tzec", "pearl", "tpearl"];
|
|
2
2
|
export type CoinName = (typeof coinNames)[number];
|
|
3
3
|
export declare function getMainnet(name: CoinName): CoinName;
|
|
4
4
|
export declare function isMainnet(name: CoinName): boolean;
|
package/dist/esm/js/coinName.js
CHANGED
|
@@ -22,6 +22,8 @@ export const coinNames = [
|
|
|
22
22
|
"tltc",
|
|
23
23
|
"zec",
|
|
24
24
|
"tzec",
|
|
25
|
+
"pearl",
|
|
26
|
+
"tpearl",
|
|
25
27
|
];
|
|
26
28
|
export function getMainnet(name) {
|
|
27
29
|
switch (name) {
|
|
@@ -47,6 +49,8 @@ export function getMainnet(name) {
|
|
|
47
49
|
return "ltc";
|
|
48
50
|
case "tzec":
|
|
49
51
|
return "zec";
|
|
52
|
+
case "tpearl":
|
|
53
|
+
return "pearl";
|
|
50
54
|
default:
|
|
51
55
|
return name;
|
|
52
56
|
}
|
|
@@ -78,9 +78,9 @@ export class AcidTest {
|
|
|
78
78
|
// Filter inputs based on network support
|
|
79
79
|
const inputs = inputScriptTypes
|
|
80
80
|
.filter((scriptType) => {
|
|
81
|
-
// p2shP2pk
|
|
81
|
+
// p2shP2pk requires legacy (P2SH) support
|
|
82
82
|
if (scriptType === "p2shP2pk")
|
|
83
|
-
return
|
|
83
|
+
return supportsScriptType(coin, "p2sh");
|
|
84
84
|
// Map input script types to output script types for support check
|
|
85
85
|
if (scriptType === "p2trMusig2KeyPath" || scriptType === "p2trMusig2ScriptPath") {
|
|
86
86
|
return supportsScriptType(coin, "p2trMusig2");
|
|
@@ -100,10 +100,14 @@ export class AcidTest {
|
|
|
100
100
|
scriptType,
|
|
101
101
|
value: BigInt(900 + index * 100), // Deterministic amounts
|
|
102
102
|
}));
|
|
103
|
-
// Test other wallet output (with derivation info)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
// Test other wallet output (with derivation info) — only on legacy-supporting networks
|
|
104
|
+
if (supportsScriptType(coin, "p2sh")) {
|
|
105
|
+
outputs.push({ scriptType: "p2sh", value: BigInt(800), walletKeys: otherWalletKeys });
|
|
106
|
+
}
|
|
107
|
+
// Test non-wallet output (no derivation info) — only on legacy-supporting networks
|
|
108
|
+
if (supportsScriptType(coin, "p2sh")) {
|
|
109
|
+
outputs.push({ scriptType: "p2sh", value: BigInt(700), walletKeys: null });
|
|
110
|
+
}
|
|
107
111
|
// Test OP_RETURN output
|
|
108
112
|
outputs.push({ opReturn: "setec astronomy", value: BigInt(0) });
|
|
109
113
|
// Get private keys for signing
|
|
Binary file
|
|
@@ -1,147 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
6
|
-
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
7
|
-
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
8
|
-
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
9
|
-
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
10
|
-
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
11
|
-
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
12
|
-
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
13
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
14
|
-
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
15
|
-
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
16
|
-
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
17
|
-
export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
|
|
18
|
-
export const isInspectEnabled: () => number;
|
|
19
|
-
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
20
|
-
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
21
|
-
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
22
|
-
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
23
|
-
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
24
|
-
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
25
|
-
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
26
|
-
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
27
|
-
export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
28
|
-
export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
|
|
29
|
-
export const wasmdashtransaction_input_count: (a: number) => number;
|
|
30
|
-
export const wasmdashtransaction_lock_time: (a: number) => number;
|
|
31
|
-
export const wasmdashtransaction_output_count: (a: number) => number;
|
|
32
|
-
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
33
|
-
export const wasmdashtransaction_version: (a: number) => number;
|
|
34
|
-
export const wasmdimensions_empty: () => number;
|
|
35
|
-
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
36
|
-
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
37
|
-
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
38
|
-
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
39
|
-
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
40
|
-
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
41
|
-
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
42
|
-
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
43
|
-
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
44
|
-
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
45
|
-
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
46
|
-
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
47
|
-
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
48
|
-
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
49
|
-
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
50
|
-
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
51
|
-
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
52
|
-
export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
53
|
-
export const wasmtransaction_create: () => number;
|
|
54
|
-
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
55
|
-
export const wasmtransaction_get_inputs: (a: number, b: number) => void;
|
|
56
|
-
export const wasmtransaction_get_outputs: (a: number, b: number) => void;
|
|
57
|
-
export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
58
|
-
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
59
|
-
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
60
|
-
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
61
|
-
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
62
|
-
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
63
|
-
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
64
|
-
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
65
|
-
export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
66
|
-
export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
|
|
67
|
-
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
68
|
-
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
69
|
-
export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
70
|
-
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
71
|
-
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
72
|
-
export const wrappsbt_clone: (a: number) => number;
|
|
73
|
-
export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
74
|
-
export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
75
|
-
export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
76
|
-
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
77
|
-
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
78
|
-
export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
79
|
-
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
80
|
-
export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
81
|
-
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
82
|
-
export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
83
|
-
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
84
|
-
export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
85
|
-
export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
86
|
-
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
87
|
-
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
88
|
-
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
89
|
-
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
90
|
-
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
91
|
-
export const wrappsbt_input_count: (a: number) => number;
|
|
92
|
-
export const wrappsbt_new: (a: number, b: number) => number;
|
|
93
|
-
export const wrappsbt_output_count: (a: number) => number;
|
|
94
|
-
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
95
|
-
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
96
|
-
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
97
|
-
export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
98
|
-
export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
99
|
-
export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
100
|
-
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
101
|
-
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
102
|
-
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
103
|
-
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
104
|
-
export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
105
|
-
export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
106
|
-
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
107
|
-
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
108
|
-
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
109
|
-
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
110
|
-
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
111
|
-
export const wasmtransaction_input_count: (a: number) => number;
|
|
112
|
-
export const wasmtransaction_output_count: (a: number) => number;
|
|
113
|
-
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
114
|
-
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
115
|
-
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
116
|
-
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
117
|
-
export const wasmtransaction_lock_time: (a: number) => number;
|
|
118
|
-
export const wasmtransaction_version: (a: number) => number;
|
|
119
|
-
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
120
|
-
export const wasmzcashtransaction_version: (a: number) => number;
|
|
121
|
-
export const wrappsbt_lock_time: (a: number) => number;
|
|
122
|
-
export const wrappsbt_version: (a: number) => number;
|
|
123
|
-
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
124
|
-
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
125
|
-
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
126
|
-
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
127
|
-
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
128
|
-
export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
129
|
-
export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
|
|
130
|
-
export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
131
|
-
export const wrapdescriptor_hasWildcard: (a: number) => number;
|
|
132
|
-
export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
|
|
133
|
-
export const wrapdescriptor_node: (a: number, b: number) => void;
|
|
134
|
-
export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
|
|
135
|
-
export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
|
|
136
|
-
export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
137
|
-
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
138
|
-
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
139
|
-
export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
140
|
-
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
141
|
-
export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
142
|
-
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
143
|
-
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
144
|
-
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
145
4
|
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
146
5
|
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
147
6
|
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
@@ -283,6 +142,147 @@ export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
|
283
142
|
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
284
143
|
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
285
144
|
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
145
|
+
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
146
|
+
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
147
|
+
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
148
|
+
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
149
|
+
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
150
|
+
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
151
|
+
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
152
|
+
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
153
|
+
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
154
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
155
|
+
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
156
|
+
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
157
|
+
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
158
|
+
export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
|
|
159
|
+
export const isInspectEnabled: () => number;
|
|
160
|
+
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
161
|
+
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
162
|
+
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
163
|
+
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
164
|
+
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
165
|
+
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
166
|
+
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
167
|
+
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
168
|
+
export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
169
|
+
export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
|
|
170
|
+
export const wasmdashtransaction_input_count: (a: number) => number;
|
|
171
|
+
export const wasmdashtransaction_lock_time: (a: number) => number;
|
|
172
|
+
export const wasmdashtransaction_output_count: (a: number) => number;
|
|
173
|
+
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
174
|
+
export const wasmdashtransaction_version: (a: number) => number;
|
|
175
|
+
export const wasmdimensions_empty: () => number;
|
|
176
|
+
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
177
|
+
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
178
|
+
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
179
|
+
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
180
|
+
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
181
|
+
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
182
|
+
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
183
|
+
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
184
|
+
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
185
|
+
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
186
|
+
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
187
|
+
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
188
|
+
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
189
|
+
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
190
|
+
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
191
|
+
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
192
|
+
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
193
|
+
export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
194
|
+
export const wasmtransaction_create: () => number;
|
|
195
|
+
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
196
|
+
export const wasmtransaction_get_inputs: (a: number, b: number) => void;
|
|
197
|
+
export const wasmtransaction_get_outputs: (a: number, b: number) => void;
|
|
198
|
+
export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
199
|
+
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
200
|
+
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
201
|
+
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
202
|
+
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
203
|
+
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
204
|
+
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
205
|
+
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
206
|
+
export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
207
|
+
export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
|
|
208
|
+
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
209
|
+
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
210
|
+
export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
211
|
+
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
212
|
+
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
213
|
+
export const wrappsbt_clone: (a: number) => number;
|
|
214
|
+
export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
215
|
+
export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
216
|
+
export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
217
|
+
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
218
|
+
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
219
|
+
export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
220
|
+
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
221
|
+
export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
222
|
+
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
223
|
+
export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
224
|
+
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
225
|
+
export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
226
|
+
export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
227
|
+
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
228
|
+
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
229
|
+
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
230
|
+
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
231
|
+
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
232
|
+
export const wrappsbt_input_count: (a: number) => number;
|
|
233
|
+
export const wrappsbt_new: (a: number, b: number) => number;
|
|
234
|
+
export const wrappsbt_output_count: (a: number) => number;
|
|
235
|
+
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
236
|
+
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
237
|
+
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
238
|
+
export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
239
|
+
export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
240
|
+
export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
241
|
+
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
242
|
+
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
243
|
+
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
244
|
+
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
245
|
+
export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
246
|
+
export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
247
|
+
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
248
|
+
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
249
|
+
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
250
|
+
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
251
|
+
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
252
|
+
export const wasmtransaction_input_count: (a: number) => number;
|
|
253
|
+
export const wasmtransaction_output_count: (a: number) => number;
|
|
254
|
+
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
255
|
+
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
256
|
+
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
257
|
+
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
258
|
+
export const wasmtransaction_lock_time: (a: number) => number;
|
|
259
|
+
export const wasmtransaction_version: (a: number) => number;
|
|
260
|
+
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
261
|
+
export const wasmzcashtransaction_version: (a: number) => number;
|
|
262
|
+
export const wrappsbt_lock_time: (a: number) => number;
|
|
263
|
+
export const wrappsbt_version: (a: number) => number;
|
|
264
|
+
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
265
|
+
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
266
|
+
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
267
|
+
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
268
|
+
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
269
|
+
export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
270
|
+
export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
|
|
271
|
+
export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
272
|
+
export const wrapdescriptor_hasWildcard: (a: number) => number;
|
|
273
|
+
export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
|
|
274
|
+
export const wrapdescriptor_node: (a: number, b: number) => void;
|
|
275
|
+
export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
|
|
276
|
+
export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
|
|
277
|
+
export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
278
|
+
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
279
|
+
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
280
|
+
export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
281
|
+
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
282
|
+
export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
283
|
+
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
284
|
+
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
285
|
+
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
286
286
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
287
287
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
288
288
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|