@bitgo/wasm-utxo 4.27.0 → 4.29.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 +2 -0
- package/dist/cjs/js/testutils/AcidTest.d.ts +12 -2
- package/dist/cjs/js/testutils/AcidTest.js +28 -7
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm.d.ts +5 -5
- package/dist/esm/js/coinName.d.ts +1 -1
- package/dist/esm/js/coinName.js +2 -0
- package/dist/esm/js/testutils/AcidTest.d.ts +12 -2
- package/dist/esm/js/testutils/AcidTest.js +28 -7
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm.d.ts +5 -5
- package/package.json +3 -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", "pearl", "tpearl"];
|
|
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", "tpearlreg"];
|
|
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
|
@@ -32,6 +32,7 @@ exports.coinNames = [
|
|
|
32
32
|
"tzec",
|
|
33
33
|
"pearl",
|
|
34
34
|
"tpearl",
|
|
35
|
+
"tpearlreg",
|
|
35
36
|
];
|
|
36
37
|
function getMainnet(name) {
|
|
37
38
|
switch (name) {
|
|
@@ -58,6 +59,7 @@ function getMainnet(name) {
|
|
|
58
59
|
case "tzec":
|
|
59
60
|
return "zec";
|
|
60
61
|
case "tpearl":
|
|
62
|
+
case "tpearlreg":
|
|
61
63
|
return "pearl";
|
|
62
64
|
default:
|
|
63
65
|
return name;
|
|
@@ -118,9 +118,19 @@ export declare class AcidTest {
|
|
|
118
118
|
*/
|
|
119
119
|
getReplayProtectionKey(): BIP32;
|
|
120
120
|
/**
|
|
121
|
-
* Create the actual PSBT with all inputs and outputs
|
|
121
|
+
* Create the actual PSBT with all inputs and outputs.
|
|
122
|
+
*
|
|
123
|
+
* @param options.outpoints - Optional real outpoints (txid/vout/prevTx) to replace
|
|
124
|
+
* the synthetic `txid=0…0` placeholders. Used by integrationLocalRpc against a
|
|
125
|
+
* live regtest node; length must match `inputs`.
|
|
122
126
|
*/
|
|
123
|
-
createPsbt(
|
|
127
|
+
createPsbt(options?: {
|
|
128
|
+
outpoints?: Array<{
|
|
129
|
+
txid: string;
|
|
130
|
+
vout: number;
|
|
131
|
+
prevTx?: Uint8Array;
|
|
132
|
+
}>;
|
|
133
|
+
}): BitGoPsbt;
|
|
124
134
|
/**
|
|
125
135
|
* Sign the PSBT according to the sign stage
|
|
126
136
|
*/
|
|
@@ -130,9 +130,13 @@ class AcidTest {
|
|
|
130
130
|
return this.rootWalletKeys.userKey();
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
|
-
* Create the actual PSBT with all inputs and outputs
|
|
133
|
+
* Create the actual PSBT with all inputs and outputs.
|
|
134
|
+
*
|
|
135
|
+
* @param options.outpoints - Optional real outpoints (txid/vout/prevTx) to replace
|
|
136
|
+
* the synthetic `txid=0…0` placeholders. Used by integrationLocalRpc against a
|
|
137
|
+
* live regtest node; length must match `inputs`.
|
|
134
138
|
*/
|
|
135
|
-
createPsbt() {
|
|
139
|
+
createPsbt(options) {
|
|
136
140
|
// Use ZcashBitGoPsbt for Zcash networks
|
|
137
141
|
const isZcash = this.coin === "zec" || this.coin === "tzec";
|
|
138
142
|
const psbt = isZcash
|
|
@@ -157,21 +161,35 @@ class AcidTest {
|
|
|
157
161
|
tx.addOutput(script, value);
|
|
158
162
|
return tx.toBytes();
|
|
159
163
|
};
|
|
160
|
-
|
|
164
|
+
if (options?.outpoints && options.outpoints.length !== this.inputs.length) {
|
|
165
|
+
throw new Error(`outpoints length ${options.outpoints.length} !== inputs length ${this.inputs.length}`);
|
|
166
|
+
}
|
|
167
|
+
// Add inputs with deterministic outpoints (or real outpoints when provided)
|
|
161
168
|
this.inputs.forEach((input, index) => {
|
|
162
169
|
const walletKeys = input.walletKeys ?? this.rootWalletKeys;
|
|
163
|
-
const
|
|
170
|
+
const real = options?.outpoints?.[index];
|
|
171
|
+
const outpoint = {
|
|
172
|
+
txid: real?.txid ?? "0".repeat(64),
|
|
173
|
+
vout: real?.vout ?? index,
|
|
174
|
+
value: input.value,
|
|
175
|
+
};
|
|
164
176
|
// scriptId variant: caller provides explicit chain + index
|
|
165
177
|
if (input.scriptId) {
|
|
166
178
|
const script = (0, index_js_1.outputScript)(walletKeys, input.scriptId.chain, input.scriptId.index, this.coin);
|
|
167
|
-
psbt.addWalletInput({
|
|
179
|
+
psbt.addWalletInput({
|
|
180
|
+
...outpoint,
|
|
181
|
+
prevTx: real?.prevTx ?? buildPrevTx(index, script, input.value),
|
|
182
|
+
}, walletKeys, { scriptId: input.scriptId, signPath: { signer: "user", cosigner: "bitgo" } });
|
|
168
183
|
return;
|
|
169
184
|
}
|
|
170
185
|
const scriptType = input.scriptType ?? "p2sh";
|
|
171
186
|
if (scriptType === "p2shP2pk") {
|
|
172
187
|
const ecpair = ecpair_js_1.ECPair.fromPublicKey(this.getReplayProtectionKey().publicKey);
|
|
173
188
|
const script = (0, index_js_1.p2shP2pkOutputScript)(ecpair.publicKey);
|
|
174
|
-
psbt.addReplayProtectionInput({
|
|
189
|
+
psbt.addReplayProtectionInput({
|
|
190
|
+
...outpoint,
|
|
191
|
+
prevTx: real?.prevTx ?? buildPrevTx(index, script, input.value),
|
|
192
|
+
}, ecpair);
|
|
175
193
|
return;
|
|
176
194
|
}
|
|
177
195
|
const scriptId = {
|
|
@@ -182,7 +200,10 @@ class AcidTest {
|
|
|
182
200
|
? { signer: "user", cosigner: "backup" }
|
|
183
201
|
: { signer: "user", cosigner: "bitgo" };
|
|
184
202
|
const script = (0, index_js_1.outputScript)(walletKeys, scriptId.chain, scriptId.index, this.coin);
|
|
185
|
-
psbt.addWalletInput({
|
|
203
|
+
psbt.addWalletInput({
|
|
204
|
+
...outpoint,
|
|
205
|
+
prevTx: real?.prevTx ?? buildPrevTx(index, script, input.value),
|
|
206
|
+
}, walletKeys, { scriptId, signPath });
|
|
186
207
|
});
|
|
187
208
|
// Add outputs
|
|
188
209
|
this.outputs.forEach((output, index) => {
|
|
Binary file
|
|
@@ -11,6 +11,8 @@ export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
|
|
|
11
11
|
export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
|
|
12
12
|
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
13
13
|
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;
|
|
14
|
+
export const isInspectEnabled: () => number;
|
|
15
|
+
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
14
16
|
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
15
17
|
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
16
18
|
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
@@ -112,6 +114,8 @@ export const wasmtransaction_input_count: (a: number) => number;
|
|
|
112
114
|
export const wasmtransaction_output_count: (a: number) => number;
|
|
113
115
|
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
114
116
|
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
117
|
+
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
118
|
+
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
115
119
|
export const wasmtransaction_lock_time: (a: number) => number;
|
|
116
120
|
export const wasmtransaction_version: (a: number) => number;
|
|
117
121
|
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
@@ -275,11 +279,8 @@ export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) =>
|
|
|
275
279
|
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
276
280
|
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
277
281
|
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
278
|
-
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
279
282
|
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
280
283
|
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
281
|
-
export const isInspectEnabled: () => number;
|
|
282
|
-
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
283
284
|
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
284
285
|
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
285
286
|
export const wasmdimensions_empty: () => number;
|
|
@@ -297,9 +298,8 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
|
|
|
297
298
|
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
298
299
|
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
299
300
|
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
301
|
+
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
300
302
|
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
301
|
-
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
302
|
-
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
303
303
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
304
304
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
305
305
|
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", "pearl", "tpearl"];
|
|
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", "tpearlreg"];
|
|
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
|
@@ -24,6 +24,7 @@ export const coinNames = [
|
|
|
24
24
|
"tzec",
|
|
25
25
|
"pearl",
|
|
26
26
|
"tpearl",
|
|
27
|
+
"tpearlreg",
|
|
27
28
|
];
|
|
28
29
|
export function getMainnet(name) {
|
|
29
30
|
switch (name) {
|
|
@@ -50,6 +51,7 @@ export function getMainnet(name) {
|
|
|
50
51
|
case "tzec":
|
|
51
52
|
return "zec";
|
|
52
53
|
case "tpearl":
|
|
54
|
+
case "tpearlreg":
|
|
53
55
|
return "pearl";
|
|
54
56
|
default:
|
|
55
57
|
return name;
|
|
@@ -118,9 +118,19 @@ export declare class AcidTest {
|
|
|
118
118
|
*/
|
|
119
119
|
getReplayProtectionKey(): BIP32;
|
|
120
120
|
/**
|
|
121
|
-
* Create the actual PSBT with all inputs and outputs
|
|
121
|
+
* Create the actual PSBT with all inputs and outputs.
|
|
122
|
+
*
|
|
123
|
+
* @param options.outpoints - Optional real outpoints (txid/vout/prevTx) to replace
|
|
124
|
+
* the synthetic `txid=0…0` placeholders. Used by integrationLocalRpc against a
|
|
125
|
+
* live regtest node; length must match `inputs`.
|
|
122
126
|
*/
|
|
123
|
-
createPsbt(
|
|
127
|
+
createPsbt(options?: {
|
|
128
|
+
outpoints?: Array<{
|
|
129
|
+
txid: string;
|
|
130
|
+
vout: number;
|
|
131
|
+
prevTx?: Uint8Array;
|
|
132
|
+
}>;
|
|
133
|
+
}): BitGoPsbt;
|
|
124
134
|
/**
|
|
125
135
|
* Sign the PSBT according to the sign stage
|
|
126
136
|
*/
|
|
@@ -127,9 +127,13 @@ export class AcidTest {
|
|
|
127
127
|
return this.rootWalletKeys.userKey();
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
|
-
* Create the actual PSBT with all inputs and outputs
|
|
130
|
+
* Create the actual PSBT with all inputs and outputs.
|
|
131
|
+
*
|
|
132
|
+
* @param options.outpoints - Optional real outpoints (txid/vout/prevTx) to replace
|
|
133
|
+
* the synthetic `txid=0…0` placeholders. Used by integrationLocalRpc against a
|
|
134
|
+
* live regtest node; length must match `inputs`.
|
|
131
135
|
*/
|
|
132
|
-
createPsbt() {
|
|
136
|
+
createPsbt(options) {
|
|
133
137
|
// Use ZcashBitGoPsbt for Zcash networks
|
|
134
138
|
const isZcash = this.coin === "zec" || this.coin === "tzec";
|
|
135
139
|
const psbt = isZcash
|
|
@@ -154,21 +158,35 @@ export class AcidTest {
|
|
|
154
158
|
tx.addOutput(script, value);
|
|
155
159
|
return tx.toBytes();
|
|
156
160
|
};
|
|
157
|
-
|
|
161
|
+
if (options?.outpoints && options.outpoints.length !== this.inputs.length) {
|
|
162
|
+
throw new Error(`outpoints length ${options.outpoints.length} !== inputs length ${this.inputs.length}`);
|
|
163
|
+
}
|
|
164
|
+
// Add inputs with deterministic outpoints (or real outpoints when provided)
|
|
158
165
|
this.inputs.forEach((input, index) => {
|
|
159
166
|
const walletKeys = input.walletKeys ?? this.rootWalletKeys;
|
|
160
|
-
const
|
|
167
|
+
const real = options?.outpoints?.[index];
|
|
168
|
+
const outpoint = {
|
|
169
|
+
txid: real?.txid ?? "0".repeat(64),
|
|
170
|
+
vout: real?.vout ?? index,
|
|
171
|
+
value: input.value,
|
|
172
|
+
};
|
|
161
173
|
// scriptId variant: caller provides explicit chain + index
|
|
162
174
|
if (input.scriptId) {
|
|
163
175
|
const script = outputScript(walletKeys, input.scriptId.chain, input.scriptId.index, this.coin);
|
|
164
|
-
psbt.addWalletInput({
|
|
176
|
+
psbt.addWalletInput({
|
|
177
|
+
...outpoint,
|
|
178
|
+
prevTx: real?.prevTx ?? buildPrevTx(index, script, input.value),
|
|
179
|
+
}, walletKeys, { scriptId: input.scriptId, signPath: { signer: "user", cosigner: "bitgo" } });
|
|
165
180
|
return;
|
|
166
181
|
}
|
|
167
182
|
const scriptType = input.scriptType ?? "p2sh";
|
|
168
183
|
if (scriptType === "p2shP2pk") {
|
|
169
184
|
const ecpair = ECPair.fromPublicKey(this.getReplayProtectionKey().publicKey);
|
|
170
185
|
const script = p2shP2pkOutputScript(ecpair.publicKey);
|
|
171
|
-
psbt.addReplayProtectionInput({
|
|
186
|
+
psbt.addReplayProtectionInput({
|
|
187
|
+
...outpoint,
|
|
188
|
+
prevTx: real?.prevTx ?? buildPrevTx(index, script, input.value),
|
|
189
|
+
}, ecpair);
|
|
172
190
|
return;
|
|
173
191
|
}
|
|
174
192
|
const scriptId = {
|
|
@@ -179,7 +197,10 @@ export class AcidTest {
|
|
|
179
197
|
? { signer: "user", cosigner: "backup" }
|
|
180
198
|
: { signer: "user", cosigner: "bitgo" };
|
|
181
199
|
const script = outputScript(walletKeys, scriptId.chain, scriptId.index, this.coin);
|
|
182
|
-
psbt.addWalletInput({
|
|
200
|
+
psbt.addWalletInput({
|
|
201
|
+
...outpoint,
|
|
202
|
+
prevTx: real?.prevTx ?? buildPrevTx(index, script, input.value),
|
|
203
|
+
}, walletKeys, { scriptId, signPath });
|
|
183
204
|
});
|
|
184
205
|
// Add outputs
|
|
185
206
|
this.outputs.forEach((output, index) => {
|
|
Binary file
|
|
@@ -11,6 +11,8 @@ export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
|
|
|
11
11
|
export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
|
|
12
12
|
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
13
13
|
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;
|
|
14
|
+
export const isInspectEnabled: () => number;
|
|
15
|
+
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
14
16
|
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
15
17
|
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
16
18
|
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
@@ -112,6 +114,8 @@ export const wasmtransaction_input_count: (a: number) => number;
|
|
|
112
114
|
export const wasmtransaction_output_count: (a: number) => number;
|
|
113
115
|
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
114
116
|
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
117
|
+
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
118
|
+
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
115
119
|
export const wasmtransaction_lock_time: (a: number) => number;
|
|
116
120
|
export const wasmtransaction_version: (a: number) => number;
|
|
117
121
|
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
@@ -275,11 +279,8 @@ export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) =>
|
|
|
275
279
|
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
276
280
|
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
277
281
|
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
278
|
-
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
279
282
|
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
280
283
|
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
281
|
-
export const isInspectEnabled: () => number;
|
|
282
|
-
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
283
284
|
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
284
285
|
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
285
286
|
export const wasmdimensions_empty: () => number;
|
|
@@ -297,9 +298,8 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
|
|
|
297
298
|
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
298
299
|
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
299
300
|
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
301
|
+
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
300
302
|
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
301
|
-
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
302
|
-
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
303
303
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
304
304
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
305
305
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo/wasm-utxo",
|
|
3
3
|
"description": "WebAssembly wrapper for rust-bitcoin (beta)",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.29.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -62,6 +62,8 @@
|
|
|
62
62
|
"scripts": {
|
|
63
63
|
"test": "npm run test:mocha && npm run test:wasm-pack && npm run test:imports",
|
|
64
64
|
"test:mocha": "mocha --recursive 'test/**/*.ts'",
|
|
65
|
+
"test:integrationLocalRpc": "mocha --config .mocharc.integrationLocalRpc.json --recursive 'test/integrationLocalRpc/**/*.test.ts'",
|
|
66
|
+
"test:integrationLocalRpc:generate": "tsx --experimental-wasm-modules test/integrationLocalRpc/generate/main.ts",
|
|
65
67
|
"test:benchmark": "mocha test/benchmark/signing.ts --timeout 600000",
|
|
66
68
|
"test:wasm-pack": "npm run test:wasm-pack-node && npm run test:wasm-pack-chrome",
|
|
67
69
|
"test:wasm-pack-node": "./scripts/wasm-pack-test.sh --node",
|