@argonprotocol/mainchain 1.4.12-dev.2afa6e4a → 1.4.12-dev.2bc449e2

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.
@@ -38,7 +38,7 @@ import type {
38
38
  ArgonPrimitivesBitcoinUtxoRef,
39
39
  ArgonPrimitivesDomainZoneRecord,
40
40
  ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
41
- ArgonPrimitivesInherentsBitcoinUtxoSync,
41
+ ArgonPrimitivesInherentsBitcoinUtxoSyncV2,
42
42
  ArgonPrimitivesInherentsBlockSealInherent,
43
43
  ArgonPrimitivesNotaryNotaryMeta,
44
44
  ArgonPrimitivesNotebookSignedNotebookHeader,
@@ -295,7 +295,7 @@ declare module '@polkadot/api-base/types/submittable' {
295
295
  (
296
296
  fissionId: Compact<u64> | AnyNumber | Uint8Array,
297
297
  liquidId: Compact<u64> | AnyNumber | Uint8Array,
298
- utxoId: Compact<u64> | AnyNumber | Uint8Array,
298
+ lockId: Compact<u64> | AnyNumber | Uint8Array,
299
299
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
300
300
  microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
301
301
  ) => SubmittableExtrinsic<ApiType>,
@@ -339,18 +339,19 @@ declare module '@polkadot/api-base/types/submittable' {
339
339
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef, Bytes]
340
340
  >;
341
341
  /**
342
- * Submitted by a Vault operator to cosign the release of a bitcoin UTXO. The Lock's
343
- * securitization will be scheduled for release without a penalty.
342
+ * Submitted by a Vault operator to cosign every input in a Bitcoin Lock release. The
343
+ * signatures must follow ascending `UtxoRef` order: transaction ID, then output index.
344
+ * The Lock remains frozen until the exact cosigned transaction is observed on Bitcoin.
344
345
  *
345
346
  * This is submitted as a no-fee transaction off chain to allow keys to remain in cold
346
347
  * wallets.
347
348
  **/
348
349
  cosignRelease: AugmentedSubmittable<
349
350
  (
350
- utxoId: u64 | AnyNumber | Uint8Array,
351
- signature: Bytes | string | Uint8Array,
351
+ lockId: u64 | AnyNumber | Uint8Array,
352
+ signatures: Vec<Bytes> | (Bytes | string | Uint8Array)[],
352
353
  ) => SubmittableExtrinsic<ApiType>,
353
- [u64, Bytes]
354
+ [u64, Vec<Bytes>]
354
355
  >;
355
356
  /**
356
357
  * Create a Bitcoin receive address backed by a Lock for the submitting account.
@@ -391,27 +392,28 @@ declare module '@polkadot/api-base/types/submittable' {
391
392
  [ArgonPrimitivesBitcoinUtxoRef, Bytes, u64]
392
393
  >;
393
394
  /**
394
- * Submitted by a Bitcoin holder to trigger the release of their Utxo out of the cosign
395
- * script. A transaction spending the UTXO should be pre-created so that the sighash
396
- * can be submitted here. The vault operator will have 10 days to counter-sign the
397
- * transaction. It will be published with the public key as a BitcoinUtxoCosigned Event.
395
+ * Submitted by a Bitcoin holder to spend every current UTXO in a Lock. The exact external
396
+ * amount and network fee determine whether the transaction fully releases the Lock or
397
+ * returns one consolidated change output to the same Lock script. The vault operator has
398
+ * 10 days to publish one signature per frozen input in a BitcoinUtxoCosigned event.
398
399
  *
399
400
  * Owner must submit a script pubkey and also a fee to pay to the bitcoin network.
400
401
  **/
401
402
  requestRelease: AugmentedSubmittable<
402
403
  (
403
- utxoId: u64 | AnyNumber | Uint8Array,
404
+ lockId: u64 | AnyNumber | Uint8Array,
404
405
  toScriptPubkey: Bytes | string | Uint8Array,
406
+ destinationSatoshis: u64 | AnyNumber | Uint8Array,
405
407
  bitcoinNetworkFee: u64 | AnyNumber | Uint8Array,
406
408
  ) => SubmittableExtrinsic<ApiType>,
407
- [u64, Bytes, u64]
409
+ [u64, Bytes, u64, u64]
408
410
  >;
409
411
  /**
410
412
  * Replace this Lock's BTC coverage and target value for its remaining term.
411
413
  **/
412
414
  resecuritize: AugmentedSubmittable<
413
415
  (
414
- utxoId: u64 | AnyNumber | Uint8Array,
416
+ lockId: u64 | AnyNumber | Uint8Array,
415
417
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
416
418
  options:
417
419
  | Option<PalletBitcoinLocksLockOptions>
@@ -425,7 +427,7 @@ declare module '@polkadot/api-base/types/submittable' {
425
427
  >;
426
428
  setFlexible: AugmentedSubmittable<
427
429
  (
428
- utxoId: u64 | AnyNumber | Uint8Array,
430
+ lockId: u64 | AnyNumber | Uint8Array,
429
431
  isFlexible: bool | boolean | Uint8Array,
430
432
  ) => SubmittableExtrinsic<ApiType>,
431
433
  [u64, bool]
@@ -462,12 +464,12 @@ declare module '@polkadot/api-base/types/submittable' {
462
464
  sync: AugmentedSubmittable<
463
465
  (
464
466
  utxoSync:
465
- | ArgonPrimitivesInherentsBitcoinUtxoSync
467
+ | ArgonPrimitivesInherentsBitcoinUtxoSyncV2
466
468
  | { spent?: any; funded?: any; syncToBlock?: any }
467
469
  | string
468
470
  | Uint8Array,
469
471
  ) => SubmittableExtrinsic<ApiType>,
470
- [ArgonPrimitivesInherentsBitcoinUtxoSync]
472
+ [ArgonPrimitivesInherentsBitcoinUtxoSyncV2]
471
473
  >;
472
474
  };
473
475
  blockRewards: {