@bitgo/wasm-utxo 4.0.2 → 4.1.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.
Files changed (32) hide show
  1. package/dist/cjs/js/descriptorWallet/Psbt.d.ts +7 -0
  2. package/dist/cjs/js/descriptorWallet/Psbt.js +18 -0
  3. package/dist/cjs/js/fixedScriptWallet/BitGoKeySubtype.d.ts +37 -0
  4. package/dist/cjs/js/fixedScriptWallet/BitGoKeySubtype.js +5 -0
  5. package/dist/cjs/js/fixedScriptWallet/BitGoPsbt.d.ts +13 -0
  6. package/dist/cjs/js/fixedScriptWallet/BitGoPsbt.js +24 -0
  7. package/dist/cjs/js/fixedScriptWallet/index.d.ts +1 -1
  8. package/dist/cjs/js/fixedScriptWallet/index.js +3 -1
  9. package/dist/cjs/js/index.d.ts +5 -0
  10. package/dist/cjs/js/index.js +8 -3
  11. package/dist/cjs/js/psbt.d.ts +7 -0
  12. package/dist/cjs/js/wasm/wasm_utxo.d.ts +51 -0
  13. package/dist/cjs/js/wasm/wasm_utxo.js +340 -10
  14. package/dist/cjs/js/wasm/wasm_utxo_bg.wasm +0 -0
  15. package/dist/cjs/js/wasm/wasm_utxo_bg.wasm.d.ts +156 -141
  16. package/dist/esm/js/descriptorWallet/Psbt.d.ts +7 -0
  17. package/dist/esm/js/descriptorWallet/Psbt.js +18 -0
  18. package/dist/esm/js/fixedScriptWallet/BitGoKeySubtype.d.ts +37 -0
  19. package/dist/esm/js/fixedScriptWallet/BitGoKeySubtype.js +2 -0
  20. package/dist/esm/js/fixedScriptWallet/BitGoPsbt.d.ts +13 -0
  21. package/dist/esm/js/fixedScriptWallet/BitGoPsbt.js +24 -0
  22. package/dist/esm/js/fixedScriptWallet/index.d.ts +1 -1
  23. package/dist/esm/js/fixedScriptWallet/index.js +1 -0
  24. package/dist/esm/js/index.d.ts +5 -0
  25. package/dist/esm/js/index.js +4 -0
  26. package/dist/esm/js/psbt.d.ts +7 -0
  27. package/dist/esm/js/wasm/wasm_utxo.d.ts +51 -0
  28. package/dist/esm/js/wasm/wasm_utxo.js +1 -1
  29. package/dist/esm/js/wasm/wasm_utxo_bg.js +339 -10
  30. package/dist/esm/js/wasm/wasm_utxo_bg.wasm +0 -0
  31. package/dist/esm/js/wasm/wasm_utxo_bg.wasm.d.ts +156 -141
  32. package/package.json +1 -1
@@ -1195,6 +1195,33 @@ class BitGoPsbt {
1195
1195
  const ret = wasm.bitgopsbt_get_global_xpubs(this.__wbg_ptr);
1196
1196
  return takeObject(ret);
1197
1197
  }
1198
+ /**
1199
+ * Get a KV value from a specific PSBT input. Returns `undefined` if not present.
1200
+ * @param {number} index
1201
+ * @param {any} key
1202
+ * @returns {Uint8Array | undefined}
1203
+ */
1204
+ get_input_kv(index, key) {
1205
+ try {
1206
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1207
+ wasm.bitgopsbt_get_input_kv(retptr, this.__wbg_ptr, index, addHeapObject(key));
1208
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1209
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1210
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1211
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1212
+ if (r3) {
1213
+ throw takeObject(r2);
1214
+ }
1215
+ let v1;
1216
+ if (r0 !== 0) {
1217
+ v1 = getArrayU8FromWasm0(r0, r1).slice();
1218
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
1219
+ }
1220
+ return v1;
1221
+ } finally {
1222
+ wasm.__wbindgen_add_to_stack_pointer(16);
1223
+ }
1224
+ }
1198
1225
  /**
1199
1226
  * @returns {any}
1200
1227
  */
@@ -1213,6 +1240,32 @@ class BitGoPsbt {
1213
1240
  wasm.__wbindgen_add_to_stack_pointer(16);
1214
1241
  }
1215
1242
  }
1243
+ /**
1244
+ * Get a KV value from the PSBT global map. Returns `undefined` if not present.
1245
+ * @param {any} key
1246
+ * @returns {Uint8Array | undefined}
1247
+ */
1248
+ get_kv(key) {
1249
+ try {
1250
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1251
+ wasm.bitgopsbt_get_kv(retptr, this.__wbg_ptr, addHeapObject(key));
1252
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1253
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1254
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1255
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1256
+ if (r3) {
1257
+ throw takeObject(r2);
1258
+ }
1259
+ let v1;
1260
+ if (r0 !== 0) {
1261
+ v1 = getArrayU8FromWasm0(r0, r1).slice();
1262
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
1263
+ }
1264
+ return v1;
1265
+ } finally {
1266
+ wasm.__wbindgen_add_to_stack_pointer(16);
1267
+ }
1268
+ }
1216
1269
  /**
1217
1270
  * Get the network type for transaction extraction
1218
1271
  *
@@ -1236,6 +1289,33 @@ class BitGoPsbt {
1236
1289
  wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
1237
1290
  }
1238
1291
  }
1292
+ /**
1293
+ * Get a KV value from a specific PSBT output. Returns `undefined` if not present.
1294
+ * @param {number} index
1295
+ * @param {any} key
1296
+ * @returns {Uint8Array | undefined}
1297
+ */
1298
+ get_output_kv(index, key) {
1299
+ try {
1300
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1301
+ wasm.bitgopsbt_get_output_kv(retptr, this.__wbg_ptr, index, addHeapObject(key));
1302
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1303
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1304
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1305
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1306
+ if (r3) {
1307
+ throw takeObject(r2);
1308
+ }
1309
+ let v1;
1310
+ if (r0 !== 0) {
1311
+ v1 = getArrayU8FromWasm0(r0, r1).slice();
1312
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
1313
+ }
1314
+ return v1;
1315
+ } finally {
1316
+ wasm.__wbindgen_add_to_stack_pointer(16);
1317
+ }
1318
+ }
1239
1319
  /**
1240
1320
  * @returns {any}
1241
1321
  */
@@ -1441,6 +1521,71 @@ class BitGoPsbt {
1441
1521
  wasm.__wbindgen_add_to_stack_pointer(16);
1442
1522
  }
1443
1523
  }
1524
+ /**
1525
+ * Set an arbitrary KV pair on a specific PSBT input.
1526
+ * @param {number} index
1527
+ * @param {any} key
1528
+ * @param {Uint8Array} value
1529
+ */
1530
+ set_input_kv(index, key, value) {
1531
+ try {
1532
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1533
+ const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_export);
1534
+ const len0 = WASM_VECTOR_LEN;
1535
+ wasm.bitgopsbt_set_input_kv(retptr, this.__wbg_ptr, index, addHeapObject(key), ptr0, len0);
1536
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1537
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1538
+ if (r1) {
1539
+ throw takeObject(r0);
1540
+ }
1541
+ } finally {
1542
+ wasm.__wbindgen_add_to_stack_pointer(16);
1543
+ }
1544
+ }
1545
+ /**
1546
+ * Set an arbitrary KV pair on the PSBT global map.
1547
+ * `key` must be `{ type: "unknown", keyType: number, data?: Uint8Array }` or
1548
+ * `{ type: "proprietary", prefix: Uint8Array, subtype: number, key?: Uint8Array }` or
1549
+ * `{ type: "bitgo", subtype: number, key?: Uint8Array }`.
1550
+ * @param {any} key
1551
+ * @param {Uint8Array} value
1552
+ */
1553
+ set_kv(key, value) {
1554
+ try {
1555
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1556
+ const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_export);
1557
+ const len0 = WASM_VECTOR_LEN;
1558
+ wasm.bitgopsbt_set_kv(retptr, this.__wbg_ptr, addHeapObject(key), ptr0, len0);
1559
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1560
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1561
+ if (r1) {
1562
+ throw takeObject(r0);
1563
+ }
1564
+ } finally {
1565
+ wasm.__wbindgen_add_to_stack_pointer(16);
1566
+ }
1567
+ }
1568
+ /**
1569
+ * Set an arbitrary KV pair on a specific PSBT output.
1570
+ * @param {number} index
1571
+ * @param {any} key
1572
+ * @param {Uint8Array} value
1573
+ */
1574
+ set_output_kv(index, key, value) {
1575
+ try {
1576
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1577
+ const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_export);
1578
+ const len0 = WASM_VECTOR_LEN;
1579
+ wasm.bitgopsbt_set_output_kv(retptr, this.__wbg_ptr, index, addHeapObject(key), ptr0, len0);
1580
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1581
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1582
+ if (r1) {
1583
+ throw takeObject(r0);
1584
+ }
1585
+ } finally {
1586
+ wasm.__wbindgen_add_to_stack_pointer(16);
1587
+ }
1588
+ }
1444
1589
  /**
1445
1590
  * Sign all MuSig2 keypath inputs in a single pass with optimized sighash computation.
1446
1591
  *
@@ -2092,6 +2237,15 @@ class FixedScriptWalletNamespace {
2092
2237
  wasm.__wbindgen_add_to_stack_pointer(16);
2093
2238
  }
2094
2239
  }
2240
+ /**
2241
+ * Returns an object mapping BitGo proprietary key subtype names to their `u8` values.
2242
+ * Values are loaded directly from the Rust enum at build time — no duplication in TypeScript.
2243
+ * @returns {any}
2244
+ */
2245
+ static get_bitgo_key_subtypes() {
2246
+ const ret = wasm.fixedscriptwalletnamespace_get_bitgo_key_subtypes();
2247
+ return takeObject(ret);
2248
+ }
2095
2249
  /**
2096
2250
  * @param {WasmRootWalletKeys} keys
2097
2251
  * @param {number} chain
@@ -4050,21 +4204,21 @@ class WasmTransaction {
4050
4204
  * @returns {number}
4051
4205
  */
4052
4206
  input_count() {
4053
- const ret = wasm.wasmtransaction_input_count(this.__wbg_ptr);
4207
+ const ret = wasm.wasmdashtransaction_input_count(this.__wbg_ptr);
4054
4208
  return ret >>> 0;
4055
4209
  }
4056
4210
  /**
4057
4211
  * @returns {number}
4058
4212
  */
4059
4213
  lock_time() {
4060
- const ret = wasm.wasmtransaction_lock_time(this.__wbg_ptr);
4214
+ const ret = wasm.wasmdashtransaction_lock_time(this.__wbg_ptr);
4061
4215
  return ret >>> 0;
4062
4216
  }
4063
4217
  /**
4064
4218
  * @returns {number}
4065
4219
  */
4066
4220
  output_count() {
4067
- const ret = wasm.wasmtransaction_output_count(this.__wbg_ptr);
4221
+ const ret = wasm.wasmdashtransaction_output_count(this.__wbg_ptr);
4068
4222
  return ret >>> 0;
4069
4223
  }
4070
4224
  /**
@@ -4091,13 +4245,50 @@ class WasmTransaction {
4091
4245
  * @returns {number}
4092
4246
  */
4093
4247
  version() {
4094
- const ret = wasm.wasmtransaction_version(this.__wbg_ptr);
4248
+ const ret = wasm.wasmdashtransaction_version(this.__wbg_ptr);
4095
4249
  return ret;
4096
4250
  }
4097
4251
  }
4098
4252
  if (Symbol.dispose) WasmTransaction.prototype[Symbol.dispose] = WasmTransaction.prototype.free;
4099
4253
  exports.WasmTransaction = WasmTransaction;
4100
4254
 
4255
+ /**
4256
+ * Top-level package info namespace
4257
+ */
4258
+ class WasmUtxoNamespace {
4259
+ __destroy_into_raw() {
4260
+ const ptr = this.__wbg_ptr;
4261
+ this.__wbg_ptr = 0;
4262
+ WasmUtxoNamespaceFinalization.unregister(this);
4263
+ return ptr;
4264
+ }
4265
+ free() {
4266
+ const ptr = this.__destroy_into_raw();
4267
+ wasm.__wbg_wasmutxonamespace_free(ptr, 0);
4268
+ }
4269
+ /**
4270
+ * Returns the wasm-utxo build version as `{ version: string, gitHash: string }`.
4271
+ * @returns {any}
4272
+ */
4273
+ static get_wasm_utxo_version() {
4274
+ try {
4275
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4276
+ wasm.wasmutxonamespace_get_wasm_utxo_version(retptr);
4277
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4278
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4279
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
4280
+ if (r2) {
4281
+ throw takeObject(r1);
4282
+ }
4283
+ return takeObject(r0);
4284
+ } finally {
4285
+ wasm.__wbindgen_add_to_stack_pointer(16);
4286
+ }
4287
+ }
4288
+ }
4289
+ if (Symbol.dispose) WasmUtxoNamespace.prototype[Symbol.dispose] = WasmUtxoNamespace.prototype.free;
4290
+ exports.WasmUtxoNamespace = WasmUtxoNamespace;
4291
+
4101
4292
  /**
4102
4293
  * A Zcash transaction with network-specific fields
4103
4294
  *
@@ -4251,21 +4442,21 @@ class WasmZcashTransaction {
4251
4442
  * @returns {number}
4252
4443
  */
4253
4444
  input_count() {
4254
- const ret = wasm.wasmtransaction_input_count(this.__wbg_ptr);
4445
+ const ret = wasm.wasmdashtransaction_input_count(this.__wbg_ptr);
4255
4446
  return ret >>> 0;
4256
4447
  }
4257
4448
  /**
4258
4449
  * @returns {number}
4259
4450
  */
4260
4451
  lock_time() {
4261
- const ret = wasm.wasmtransaction_lock_time(this.__wbg_ptr);
4452
+ const ret = wasm.wasmdashtransaction_lock_time(this.__wbg_ptr);
4262
4453
  return ret >>> 0;
4263
4454
  }
4264
4455
  /**
4265
4456
  * @returns {number}
4266
4457
  */
4267
4458
  output_count() {
4268
- const ret = wasm.wasmtransaction_output_count(this.__wbg_ptr);
4459
+ const ret = wasm.wasmdashtransaction_output_count(this.__wbg_ptr);
4269
4460
  return ret >>> 0;
4270
4461
  }
4271
4462
  /**
@@ -4297,7 +4488,7 @@ class WasmZcashTransaction {
4297
4488
  * @returns {number}
4298
4489
  */
4299
4490
  version() {
4300
- const ret = wasm.wasmtransaction_version(this.__wbg_ptr);
4491
+ const ret = wasm.wasmdashtransaction_version(this.__wbg_ptr);
4301
4492
  return ret;
4302
4493
  }
4303
4494
  }
@@ -4935,6 +5126,32 @@ class WrapPsbt {
4935
5126
  const ret = wasm.wrappsbt_get_global_xpubs(this.__wbg_ptr);
4936
5127
  return takeObject(ret);
4937
5128
  }
5129
+ /**
5130
+ * @param {number} index
5131
+ * @param {any} key
5132
+ * @returns {Uint8Array | undefined}
5133
+ */
5134
+ get_input_kv(index, key) {
5135
+ try {
5136
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5137
+ wasm.wrappsbt_get_input_kv(retptr, this.__wbg_ptr, index, addHeapObject(key));
5138
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5139
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5140
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
5141
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
5142
+ if (r3) {
5143
+ throw takeObject(r2);
5144
+ }
5145
+ let v1;
5146
+ if (r0 !== 0) {
5147
+ v1 = getArrayU8FromWasm0(r0, r1).slice();
5148
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
5149
+ }
5150
+ return v1;
5151
+ } finally {
5152
+ wasm.__wbindgen_add_to_stack_pointer(16);
5153
+ }
5154
+ }
4938
5155
  /**
4939
5156
  * @returns {any}
4940
5157
  */
@@ -4953,6 +5170,57 @@ class WrapPsbt {
4953
5170
  wasm.__wbindgen_add_to_stack_pointer(16);
4954
5171
  }
4955
5172
  }
5173
+ /**
5174
+ * @param {any} key
5175
+ * @returns {Uint8Array | undefined}
5176
+ */
5177
+ get_kv(key) {
5178
+ try {
5179
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5180
+ wasm.wrappsbt_get_kv(retptr, this.__wbg_ptr, addHeapObject(key));
5181
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5182
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5183
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
5184
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
5185
+ if (r3) {
5186
+ throw takeObject(r2);
5187
+ }
5188
+ let v1;
5189
+ if (r0 !== 0) {
5190
+ v1 = getArrayU8FromWasm0(r0, r1).slice();
5191
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
5192
+ }
5193
+ return v1;
5194
+ } finally {
5195
+ wasm.__wbindgen_add_to_stack_pointer(16);
5196
+ }
5197
+ }
5198
+ /**
5199
+ * @param {number} index
5200
+ * @param {any} key
5201
+ * @returns {Uint8Array | undefined}
5202
+ */
5203
+ get_output_kv(index, key) {
5204
+ try {
5205
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5206
+ wasm.wrappsbt_get_output_kv(retptr, this.__wbg_ptr, index, addHeapObject(key));
5207
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5208
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5209
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
5210
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
5211
+ if (r3) {
5212
+ throw takeObject(r2);
5213
+ }
5214
+ let v1;
5215
+ if (r0 !== 0) {
5216
+ v1 = getArrayU8FromWasm0(r0, r1).slice();
5217
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
5218
+ }
5219
+ return v1;
5220
+ } finally {
5221
+ wasm.__wbindgen_add_to_stack_pointer(16);
5222
+ }
5223
+ }
4956
5224
  /**
4957
5225
  * @returns {any}
4958
5226
  */
@@ -5061,7 +5329,7 @@ class WrapPsbt {
5061
5329
  * @returns {number}
5062
5330
  */
5063
5331
  lock_time() {
5064
- const ret = wasm.wrappsbt_lock_time(this.__wbg_ptr);
5332
+ const ret = wasm.wasmdashtransaction_lock_time(this.__wbg_ptr);
5065
5333
  return ret >>> 0;
5066
5334
  }
5067
5335
  /**
@@ -5134,6 +5402,65 @@ class WrapPsbt {
5134
5402
  wasm.__wbindgen_add_to_stack_pointer(16);
5135
5403
  }
5136
5404
  }
5405
+ /**
5406
+ * @param {number} index
5407
+ * @param {any} key
5408
+ * @param {Uint8Array} value
5409
+ */
5410
+ set_input_kv(index, key, value) {
5411
+ try {
5412
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5413
+ const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_export);
5414
+ const len0 = WASM_VECTOR_LEN;
5415
+ wasm.wrappsbt_set_input_kv(retptr, this.__wbg_ptr, index, addHeapObject(key), ptr0, len0);
5416
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5417
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5418
+ if (r1) {
5419
+ throw takeObject(r0);
5420
+ }
5421
+ } finally {
5422
+ wasm.__wbindgen_add_to_stack_pointer(16);
5423
+ }
5424
+ }
5425
+ /**
5426
+ * @param {any} key
5427
+ * @param {Uint8Array} value
5428
+ */
5429
+ set_kv(key, value) {
5430
+ try {
5431
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5432
+ const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_export);
5433
+ const len0 = WASM_VECTOR_LEN;
5434
+ wasm.wrappsbt_set_kv(retptr, this.__wbg_ptr, addHeapObject(key), ptr0, len0);
5435
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5436
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5437
+ if (r1) {
5438
+ throw takeObject(r0);
5439
+ }
5440
+ } finally {
5441
+ wasm.__wbindgen_add_to_stack_pointer(16);
5442
+ }
5443
+ }
5444
+ /**
5445
+ * @param {number} index
5446
+ * @param {any} key
5447
+ * @param {Uint8Array} value
5448
+ */
5449
+ set_output_kv(index, key, value) {
5450
+ try {
5451
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5452
+ const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_export);
5453
+ const len0 = WASM_VECTOR_LEN;
5454
+ wasm.wrappsbt_set_output_kv(retptr, this.__wbg_ptr, index, addHeapObject(key), ptr0, len0);
5455
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5456
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5457
+ if (r1) {
5458
+ throw takeObject(r0);
5459
+ }
5460
+ } finally {
5461
+ wasm.__wbindgen_add_to_stack_pointer(16);
5462
+ }
5463
+ }
5137
5464
  /**
5138
5465
  * Sign all inputs with a WasmBIP32 key
5139
5466
  *
@@ -5352,7 +5679,7 @@ class WrapPsbt {
5352
5679
  * @returns {number}
5353
5680
  */
5354
5681
  version() {
5355
- const ret = wasm.wrappsbt_version(this.__wbg_ptr);
5682
+ const ret = wasm.wasmdashtransaction_version(this.__wbg_ptr);
5356
5683
  return ret;
5357
5684
  }
5358
5685
  }
@@ -5803,6 +6130,9 @@ const WasmRootWalletKeysFinalization = (typeof FinalizationRegistry === 'undefin
5803
6130
  const WasmTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
5804
6131
  ? { register: () => {}, unregister: () => {} }
5805
6132
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmtransaction_free(ptr >>> 0, 1));
6133
+ const WasmUtxoNamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
6134
+ ? { register: () => {}, unregister: () => {} }
6135
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmutxonamespace_free(ptr >>> 0, 1));
5806
6136
  const WasmZcashTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
5807
6137
  ? { register: () => {}, unregister: () => {} }
5808
6138
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmzcashtransaction_free(ptr >>> 0, 1));
Binary file