@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.
- package/browser/index.d.ts +517 -475
- package/browser/index.js +1 -1
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +517 -475
- package/lib/index.d.ts +517 -475
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/src/interfaces/augment-api-consts.ts +6 -2
- package/src/interfaces/augment-api-errors.ts +23 -7
- package/src/interfaces/augment-api-events.ts +62 -53
- package/src/interfaces/augment-api-query.ts +72 -77
- package/src/interfaces/augment-api-tx.ts +19 -17
- package/src/interfaces/lookup.ts +368 -338
- package/src/interfaces/registry.ts +12 -8
- package/src/interfaces/types-lookup.ts +373 -350
|
@@ -38,7 +38,7 @@ import type {
|
|
|
38
38
|
ArgonPrimitivesBitcoinUtxoRef,
|
|
39
39
|
ArgonPrimitivesDomainZoneRecord,
|
|
40
40
|
ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
|
|
41
|
-
|
|
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
|
-
|
|
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
|
|
343
|
-
*
|
|
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
|
-
|
|
351
|
-
|
|
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
|
|
395
|
-
*
|
|
396
|
-
*
|
|
397
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
467
|
+
| ArgonPrimitivesInherentsBitcoinUtxoSyncV2
|
|
466
468
|
| { spent?: any; funded?: any; syncToBlock?: any }
|
|
467
469
|
| string
|
|
468
470
|
| Uint8Array,
|
|
469
471
|
) => SubmittableExtrinsic<ApiType>,
|
|
470
|
-
[
|
|
472
|
+
[ArgonPrimitivesInherentsBitcoinUtxoSyncV2]
|
|
471
473
|
>;
|
|
472
474
|
};
|
|
473
475
|
blockRewards: {
|