@argonprotocol/mainchain 1.4.11 → 1.4.12-dev.089adb0e

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,
@@ -280,6 +280,38 @@ declare module '@polkadot/api-base/types/submittable' {
280
280
  [Vec<AccountId32>]
281
281
  >;
282
282
  };
283
+ bitcoinFissions: {
284
+ /**
285
+ * Close a Fission without moving Bitcoin and remove its active record.
286
+ **/
287
+ close: AugmentedSubmittable<
288
+ (fissionId: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
289
+ [Compact<u64>]
290
+ >;
291
+ /**
292
+ * Create a Fission from one owner-held Lock and associate it with a Liquid ID.
293
+ **/
294
+ create: AugmentedSubmittable<
295
+ (
296
+ fissionId: Compact<u64> | AnyNumber | Uint8Array,
297
+ liquidId: Compact<u64> | AnyNumber | Uint8Array,
298
+ lockId: Compact<u64> | AnyNumber | Uint8Array,
299
+ satoshis: Compact<u64> | AnyNumber | Uint8Array,
300
+ microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
301
+ ) => SubmittableExtrinsic<ApiType>,
302
+ [Compact<u64>, Compact<u64>, Compact<u64>, Compact<u64>, Compact<u128>]
303
+ >;
304
+ /**
305
+ * Ratchet an active Fission to a replacement target-normalized BTC value.
306
+ **/
307
+ ratchet: AugmentedSubmittable<
308
+ (
309
+ fissionId: Compact<u64> | AnyNumber | Uint8Array,
310
+ microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
311
+ ) => SubmittableExtrinsic<ApiType>,
312
+ [Compact<u64>, Compact<u128>]
313
+ >;
314
+ };
283
315
  bitcoinLocks: {
284
316
  adminModifyMinimumLockedSats: AugmentedSubmittable<
285
317
  (satoshis: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
@@ -307,59 +339,28 @@ declare module '@polkadot/api-base/types/submittable' {
307
339
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef, Bytes]
308
340
  >;
309
341
  /**
310
- * Submitted by a Vault operator to cosign the release of a bitcoin utxo. The Bitcoin owner
311
- * release fee will be burned, and the lock will be allowed to expire 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.
312
345
  *
313
346
  * This is submitted as a no-fee transaction off chain to allow keys to remain in cold
314
347
  * wallets.
315
348
  **/
316
349
  cosignRelease: AugmentedSubmittable<
317
350
  (
318
- utxoId: u64 | AnyNumber | Uint8Array,
319
- signature: Bytes | string | Uint8Array,
320
- ) => SubmittableExtrinsic<ApiType>,
321
- [u64, Bytes]
322
- >;
323
- increaseSecuritization: AugmentedSubmittable<
324
- (
325
- utxoId: u64 | AnyNumber | Uint8Array,
326
- newSatoshis: Compact<u64> | AnyNumber | Uint8Array,
351
+ lockId: u64 | AnyNumber | Uint8Array,
352
+ signatures: Vec<Bytes> | (Bytes | string | Uint8Array)[],
327
353
  ) => SubmittableExtrinsic<ApiType>,
328
- [u64, Compact<u64>]
354
+ [u64, Vec<Bytes>]
329
355
  >;
330
356
  /**
331
- * Initialize a bitcoin lock. This will create a LockedBitcoin for the submitting account
332
- * and log the Bitcoin Script hash to Events.
357
+ * Create a Bitcoin receive address backed by a Lock for the submitting account.
333
358
  *
334
359
  * The pubkey submitted here will be used to create a script pubkey that will be used in a
335
360
  * timelock multisig script to lock the bitcoin.
336
- *
337
- * NOTE: A "lock-er" must send btc to the cosigner UTXO address to "complete" the
338
- * LockedBitcoin and be added to the Bitcoin Mint line.
339
361
  **/
340
- initialize: AugmentedSubmittable<
341
- (
342
- vaultId: u32 | AnyNumber | Uint8Array,
343
- satoshis: Compact<u64> | AnyNumber | Uint8Array,
344
- bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array,
345
- options:
346
- | Option<PalletBitcoinLocksLockOptions>
347
- | null
348
- | Uint8Array
349
- | PalletBitcoinLocksLockOptions
350
- | { V1: any }
351
- | string,
352
- ) => SubmittableExtrinsic<ApiType>,
353
- [
354
- u32,
355
- Compact<u64>,
356
- ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
357
- Option<PalletBitcoinLocksLockOptions>,
358
- ]
359
- >;
360
- initializeFor: AugmentedSubmittable<
362
+ createReceiveAddress: AugmentedSubmittable<
361
363
  (
362
- accountId: AccountId32 | string | Uint8Array,
363
364
  vaultId: u32 | AnyNumber | Uint8Array,
364
365
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
365
366
  bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array,
@@ -368,48 +369,16 @@ declare module '@polkadot/api-base/types/submittable' {
368
369
  | null
369
370
  | Uint8Array
370
371
  | PalletBitcoinLocksLockOptions
371
- | { V1: any }
372
+ | { microgonsAtTargetPerBtc?: any; feeCoupon?: any }
372
373
  | string,
373
- backfillSecuritizationToUnreserve: Compact<u128> | AnyNumber | Uint8Array,
374
374
  ) => SubmittableExtrinsic<ApiType>,
375
375
  [
376
- AccountId32,
377
376
  u32,
378
377
  Compact<u64>,
379
378
  ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
380
379
  Option<PalletBitcoinLocksLockOptions>,
381
- Compact<u128>,
382
380
  ]
383
381
  >;
384
- /**
385
- * Ratcheting allows a user to change the lock price of their bitcoin lock. This is
386
- * functionally the same as releasing and re-initializing, but it allows a user to skip
387
- * sending transactions through bitcoin and any associated fees. It also allows you to stay
388
- * on your original lock expiration without having to pay the full year of fees again.
389
- *
390
- * Ratcheting "down" - when the price of bitcoin is lower than your lock price, you pay the
391
- * full release price and get added back to the mint queue at the current market rate. You
392
- * pocket the difference between the already minted "lock price" and the new market value
393
- * (which you just had burned). Your new lock price is set to the market low, so you can
394
- * take advantage of ratchets "up" in the future.
395
- *
396
- * Ratcheting "up" - when the price of bitcoin is higher than your lock price, you pay a
397
- * prorated fee for the remainder of your existing lock duration. You are added to the mint
398
- * queue for the difference in your new lock price vs the previous lock price.
399
- **/
400
- ratchet: AugmentedSubmittable<
401
- (
402
- utxoId: u64 | AnyNumber | Uint8Array,
403
- options:
404
- | Option<PalletBitcoinLocksLockOptions>
405
- | null
406
- | Uint8Array
407
- | PalletBitcoinLocksLockOptions
408
- | { V1: any }
409
- | string,
410
- ) => SubmittableExtrinsic<ApiType>,
411
- [u64, Option<PalletBitcoinLocksLockOptions>]
412
- >;
413
382
  requestOrphanedUtxoRelease: AugmentedSubmittable<
414
383
  (
415
384
  utxoRef:
@@ -423,61 +392,48 @@ declare module '@polkadot/api-base/types/submittable' {
423
392
  [ArgonPrimitivesBitcoinUtxoRef, Bytes, u64]
424
393
  >;
425
394
  /**
426
- * Submitted by a Bitcoin holder to trigger the release of their Utxo out of the cosign
427
- * script. A transaction spending the UTXO should be pre-created so that the sighash
428
- * can be submitted here. The vault operator will have 10 days to counter-sign the
429
- * 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.
430
399
  *
431
400
  * Owner must submit a script pubkey and also a fee to pay to the bitcoin network.
432
401
  **/
433
402
  requestRelease: AugmentedSubmittable<
434
403
  (
435
- utxoId: u64 | AnyNumber | Uint8Array,
404
+ lockId: u64 | AnyNumber | Uint8Array,
436
405
  toScriptPubkey: Bytes | string | Uint8Array,
406
+ destinationSatoshis: u64 | AnyNumber | Uint8Array,
437
407
  bitcoinNetworkFee: u64 | AnyNumber | Uint8Array,
438
408
  ) => SubmittableExtrinsic<ApiType>,
439
- [u64, Bytes, u64]
409
+ [u64, Bytes, u64, u64]
440
410
  >;
441
- setAsBackfill: AugmentedSubmittable<
442
- (
443
- utxoId: u64 | AnyNumber | Uint8Array,
444
- isBackfill: bool | boolean | Uint8Array,
445
- ) => SubmittableExtrinsic<ApiType>,
446
- [u64, bool]
447
- >;
448
- };
449
- bitcoinUtxos: {
450
411
  /**
451
- * Bind a candidate UTXO ref as the funding UTXO for its lock.
452
- * The locks pallet authorizes the promotion; this pallet binds the ref and begins
453
- * tracking.
412
+ * Replace this Lock's BTC coverage and target value for its remaining term.
454
413
  **/
455
- fundWithUtxoCandidate: AugmentedSubmittable<
414
+ resecuritize: AugmentedSubmittable<
456
415
  (
457
- utxoId: u64 | AnyNumber | Uint8Array,
458
- utxoRef:
459
- | ArgonPrimitivesBitcoinUtxoRef
460
- | { txid?: any; outputIndex?: any }
461
- | string
462
- | Uint8Array,
416
+ lockId: u64 | AnyNumber | Uint8Array,
417
+ satoshis: Compact<u64> | AnyNumber | Uint8Array,
418
+ options:
419
+ | Option<PalletBitcoinLocksLockOptions>
420
+ | null
421
+ | Uint8Array
422
+ | PalletBitcoinLocksLockOptions
423
+ | { microgonsAtTargetPerBtc?: any; feeCoupon?: any }
424
+ | string,
463
425
  ) => SubmittableExtrinsic<ApiType>,
464
- [u64, ArgonPrimitivesBitcoinUtxoRef]
426
+ [u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
465
427
  >;
466
- /**
467
- * Reject a pending candidate UTXO and materialize it as an orphan through the locks
468
- * pallet.
469
- **/
470
- rejectUtxoCandidate: AugmentedSubmittable<
428
+ setFlexible: AugmentedSubmittable<
471
429
  (
472
- utxoId: u64 | AnyNumber | Uint8Array,
473
- utxoRef:
474
- | ArgonPrimitivesBitcoinUtxoRef
475
- | { txid?: any; outputIndex?: any }
476
- | string
477
- | Uint8Array,
430
+ lockId: u64 | AnyNumber | Uint8Array,
431
+ isFlexible: bool | boolean | Uint8Array,
478
432
  ) => SubmittableExtrinsic<ApiType>,
479
- [u64, ArgonPrimitivesBitcoinUtxoRef]
433
+ [u64, bool]
480
434
  >;
435
+ };
436
+ bitcoinUtxos: {
481
437
  /**
482
438
  * Sets the most recent confirmed bitcoin block height (only executable by the Oracle
483
439
  * Operator account)
@@ -508,12 +464,12 @@ declare module '@polkadot/api-base/types/submittable' {
508
464
  sync: AugmentedSubmittable<
509
465
  (
510
466
  utxoSync:
511
- | ArgonPrimitivesInherentsBitcoinUtxoSync
467
+ | ArgonPrimitivesInherentsBitcoinUtxoSyncV2
512
468
  | { spent?: any; funded?: any; syncToBlock?: any }
513
469
  | string
514
470
  | Uint8Array,
515
471
  ) => SubmittableExtrinsic<ApiType>,
516
- [ArgonPrimitivesInherentsBitcoinUtxoSync]
472
+ [ArgonPrimitivesInherentsBitcoinUtxoSyncV2]
517
473
  >;
518
474
  };
519
475
  blockRewards: {
@@ -1219,6 +1175,13 @@ declare module '@polkadot/api-base/types/submittable' {
1219
1175
  ) => SubmittableExtrinsic<ApiType>,
1220
1176
  [PalletOperationalAccountsRegistration]
1221
1177
  >;
1178
+ /**
1179
+ * Update the display name on an operational account profile from any linked account.
1180
+ **/
1181
+ setName: AugmentedSubmittable<
1182
+ (name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
1183
+ [Option<Bytes>]
1184
+ >;
1222
1185
  /**
1223
1186
  * Update certification reward amounts for operational accounts.
1224
1187
  **/
@@ -2065,8 +2028,10 @@ declare module '@polkadot/api-base/types/submittable' {
2065
2028
  | {
2066
2029
  vaultId?: any;
2067
2030
  beneficiary?: any;
2031
+ bonusPercent?: any;
2068
2032
  expiresAtFrame?: any;
2069
- backfillBondsToUnreserve?: any;
2033
+ bondSpaceToUnreserve?: any;
2034
+ nonce?: any;
2070
2035
  signature?: any;
2071
2036
  }
2072
2037
  | string,
@@ -2082,19 +2047,22 @@ declare module '@polkadot/api-base/types/submittable' {
2082
2047
  (bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2083
2048
  [u64]
2084
2049
  >;
2085
- setBackfillBondsReserved: AugmentedSubmittable<
2050
+ setBondLotFlexible: AugmentedSubmittable<
2086
2051
  (
2087
- vaultId: u32 | AnyNumber | Uint8Array,
2088
- backfillBondsReserved: u32 | AnyNumber | Uint8Array,
2052
+ bondLotId: u64 | AnyNumber | Uint8Array,
2053
+ isFlexible: bool | boolean | Uint8Array,
2089
2054
  ) => SubmittableExtrinsic<ApiType>,
2090
- [u32, u32]
2055
+ [u64, bool]
2091
2056
  >;
2092
- setBondLotAsBackfill: AugmentedSubmittable<
2057
+ /**
2058
+ * Reserve vault bond space for future bond purchases.
2059
+ **/
2060
+ setReservedBondSpace: AugmentedSubmittable<
2093
2061
  (
2094
- bondLotId: u64 | AnyNumber | Uint8Array,
2095
- isBackfill: bool | boolean | Uint8Array,
2062
+ vaultId: u32 | AnyNumber | Uint8Array,
2063
+ reservedBondSpace: u32 | AnyNumber | Uint8Array,
2096
2064
  ) => SubmittableExtrinsic<ApiType>,
2097
- [u64, bool]
2065
+ [u32, u32]
2098
2066
  >;
2099
2067
  };
2100
2068
  txPause: {
@@ -2318,7 +2286,6 @@ declare module '@polkadot/api-base/types/submittable' {
2318
2286
  | PalletVaultsVaultConfig
2319
2287
  | {
2320
2288
  terms?: any;
2321
- name?: any;
2322
2289
  delegateAccountId?: any;
2323
2290
  securitization?: any;
2324
2291
  bitcoinXpubkey?: any;
@@ -2356,12 +2323,7 @@ declare module '@polkadot/api-base/types/submittable' {
2356
2323
  vaultId: u32 | AnyNumber | Uint8Array,
2357
2324
  terms:
2358
2325
  | ArgonPrimitivesVaultVaultTerms
2359
- | {
2360
- bitcoinAnnualPercentRate?: any;
2361
- bitcoinBaseFee?: any;
2362
- treasuryProfitSharing?: any;
2363
- treasuryBonusProfitSharing?: any;
2364
- }
2326
+ | { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any; treasuryProfitSharing?: any }
2365
2327
  | string
2366
2328
  | Uint8Array,
2367
2329
  ) => SubmittableExtrinsic<ApiType>,
@@ -2379,13 +2341,6 @@ declare module '@polkadot/api-base/types/submittable' {
2379
2341
  ) => SubmittableExtrinsic<ApiType>,
2380
2342
  [u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
2381
2343
  >;
2382
- setBackfillSecuritizationReserved: AugmentedSubmittable<
2383
- (
2384
- vaultId: u32 | AnyNumber | Uint8Array,
2385
- backfillSecuritizationReserved: u128 | AnyNumber | Uint8Array,
2386
- ) => SubmittableExtrinsic<ApiType>,
2387
- [u32, u128]
2388
- >;
2389
2344
  setCommittedArgonots: AugmentedSubmittable<
2390
2345
  (amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2391
2346
  [Compact<u128>]
@@ -2396,9 +2351,14 @@ declare module '@polkadot/api-base/types/submittable' {
2396
2351
  ) => SubmittableExtrinsic<ApiType>,
2397
2352
  [Option<AccountId32>]
2398
2353
  >;
2399
- setName: AugmentedSubmittable<
2400
- (name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
2401
- [Option<Bytes>]
2354
+ /**
2355
+ * Reserve vault securitization space for future Bitcoin locks.
2356
+ **/
2357
+ setReservedSecuritizationSpace: AugmentedSubmittable<
2358
+ (
2359
+ reservedSecuritizationSpace: u128 | AnyNumber | Uint8Array,
2360
+ ) => SubmittableExtrinsic<ApiType>,
2361
+ [u128]
2402
2362
  >;
2403
2363
  };
2404
2364
  } // AugmentedSubmittables
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  import './augment-api-consts.js';
5
4
  import './augment-api-errors.js';
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  // import type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions