Skip to content

Commit ea2b33d

Browse files
Merge pull request #8281 from BitGo/BTC-2768.bump-wasm-utxo-03-12
feat(abstract-utxo): upgrade @bitgo/wasm-utxo to v2.1.0
2 parents 455106f + 5c18257 commit ea2b33d

9 files changed

Lines changed: 13 additions & 13 deletions

File tree

modules/abstract-utxo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@bitgo/utxo-core": "^1.34.0",
6767
"@bitgo/utxo-lib": "^11.21.0",
6868
"@bitgo/utxo-ord": "^1.27.0",
69-
"@bitgo/wasm-utxo": "^1.42.0",
69+
"@bitgo/wasm-utxo": "^2.1.0",
7070
"@types/lodash": "^4.14.121",
7171
"@types/superagent": "4.1.15",
7272
"bignumber.js": "^9.0.2",

modules/abstract-utxo/src/transaction/fixedScript/explainPsbtWasm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function explainPsbtWasm(
7878
const customChangeAmount = customChangeOutputs.reduce((sum, output) => sum + BigInt(output.amount), BigInt(0));
7979

8080
return {
81-
id: psbt.unsignedTxid(),
81+
id: psbt.unsignedTxId(),
8282
outputAmount: outputAmount.toString(),
8383
changeAmount: changeAmount.toString(),
8484
customChangeAmount: customChangeAmount.toString(),

modules/abstract-utxo/src/transaction/fixedScript/signPsbtWasm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ export async function signPsbtWithMusig2ParticipantWasm(
9595
case 'signerNonce':
9696
assert(wasmSigner);
9797
tx.generateMusig2Nonces(wasmSigner);
98-
PSBT_CACHE_WASM.set(tx.unsignedTxid(), tx);
98+
PSBT_CACHE_WASM.set(tx.unsignedTxId(), tx);
9999
return tx;
100100
case 'cosignerNonce':
101101
assert(params.walletId, 'walletId is required for MuSig2 bitgo nonce');
102102
return await coin.getMusig2Nonces(tx, params.walletId);
103103
case 'signerSignature': {
104-
const txId = tx.unsignedTxid();
104+
const txId = tx.unsignedTxId();
105105
const cachedPsbt = PSBT_CACHE_WASM.get(txId);
106106
assert(
107107
cachedPsbt,

modules/abstract-utxo/test/unit/postProcessPrebuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Post Build Validation', function () {
3131
// Parse result as PSBT
3232
const resultPsbt = BitGoPsbt.fromBytes(Buffer.from(postProcessBuilt.txHex as string, 'hex'), 'tbtc');
3333

34-
resultPsbt.lockTime.should.equal(0);
34+
resultPsbt.lockTime().should.equal(0);
3535

3636
// Check sequences via parseTransactionWithWalletKeys
3737
const parsed = resultPsbt.parseTransactionWithWalletKeys(walletKeys, { replayProtection: { publicKeys: [] } });

modules/utxo-bin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@bitgo/unspents": "^0.51.1",
3232
"@bitgo/utxo-core": "^1.34.0",
3333
"@bitgo/utxo-lib": "^11.21.0",
34-
"@bitgo/wasm-utxo": "^1.42.0",
34+
"@bitgo/wasm-utxo": "^2.1.0",
3535
"@noble/curves": "1.8.1",
3636
"archy": "^1.0.0",
3737
"bech32": "^2.0.0",

modules/utxo-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"@bitgo/secp256k1": "^1.10.0",
8282
"@bitgo/unspents": "^0.51.1",
8383
"@bitgo/utxo-lib": "^11.21.0",
84-
"@bitgo/wasm-utxo": "^1.42.0",
84+
"@bitgo/wasm-utxo": "^2.1.0",
8585
"bip174": "npm:@bitgo-forks/bip174@3.1.0-master.4",
8686
"fast-sha256": "^1.3.0"
8787
},

modules/utxo-ord/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"directory": "modules/utxo-ord"
4646
},
4747
"dependencies": {
48-
"@bitgo/wasm-utxo": "^1.42.0"
48+
"@bitgo/wasm-utxo": "^2.1.0"
4949
},
5050
"devDependencies": {
5151
"@bitgo/utxo-lib": "^11.21.0"

modules/utxo-staking/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@bitgo/babylonlabs-io-btc-staking-ts": "^3.4.1",
6464
"@bitgo/utxo-core": "^1.34.0",
6565
"@bitgo/utxo-lib": "^11.21.0",
66-
"@bitgo/wasm-utxo": "^1.42.0",
66+
"@bitgo/wasm-utxo": "^2.1.0",
6767
"bip174": "npm:@bitgo-forks/bip174@3.1.0-master.4",
6868
"bip322-js": "^2.0.0",
6969
"bitcoinjs-lib": "^6.1.7",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -990,10 +990,10 @@
990990
resolved "https://registry.npmjs.org/@bitgo/wasm-solana/-/wasm-solana-2.6.0.tgz#c8b57ab010f22f1a1c90681cd180814c4ec2867b"
991991
integrity sha512-F9H4pXDMhfsZW5gNEcoaBzVoEMOQRP8wbQKmjsxbm5PXBq+0Aj54rOY3bswdrFZK377/aeB+tLjXu3h9i8gInQ==
992992

993-
"@bitgo/wasm-utxo@^1.42.0":
994-
version "1.42.0"
995-
resolved "https://registry.npmjs.org/@bitgo/wasm-utxo/-/wasm-utxo-1.42.0.tgz#29754e9b947fd9d5c303cb5f5043a031cd04754b"
996-
integrity sha512-VKhlaSVjD7dTjYw5yNbRVTQh84zuyiEcLSldhzbnkrWgZL+3+xYaOAWicVJaE5Bk37AYWRL+7aiwbCtosF7zug==
993+
"@bitgo/wasm-utxo@^2.1.0":
994+
version "2.1.0"
995+
resolved "https://registry.npmjs.org/@bitgo/wasm-utxo/-/wasm-utxo-2.1.0.tgz#a2087b795a3eb7bfca2cc25a88b3491a74d4da06"
996+
integrity sha512-JukZ+g0lH1IzcwAVGp41a4XgWVZvL1hA+ym3KsU7NIqhOG57brc1nSVoqAhIe93gsfWQ7hyz3jsFueBXbwBQmQ==
997997

998998
"@brandonblack/musig@^0.0.1-alpha.0":
999999
version "0.0.1-alpha.1"

0 commit comments

Comments
 (0)