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

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.
@@ -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 type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions
@@ -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
+ utxoId: 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,8 +339,8 @@ 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 the release of a bitcoin UTXO. The Lock's
343
+ * securitization will be scheduled for release without a penalty.
312
344
  *
313
345
  * This is submitted as a no-fee transaction off chain to allow keys to remain in cold
314
346
  * wallets.
@@ -320,24 +352,13 @@ declare module '@polkadot/api-base/types/submittable' {
320
352
  ) => SubmittableExtrinsic<ApiType>,
321
353
  [u64, Bytes]
322
354
  >;
323
- increaseSecuritization: AugmentedSubmittable<
324
- (
325
- utxoId: u64 | AnyNumber | Uint8Array,
326
- newSatoshis: Compact<u64> | AnyNumber | Uint8Array,
327
- ) => SubmittableExtrinsic<ApiType>,
328
- [u64, Compact<u64>]
329
- >;
330
355
  /**
331
- * Initialize a bitcoin lock. This will create a LockedBitcoin for the submitting account
332
- * and log the Bitcoin Script hash to Events.
356
+ * Create a Bitcoin receive address backed by a Lock for the submitting account.
333
357
  *
334
358
  * The pubkey submitted here will be used to create a script pubkey that will be used in a
335
359
  * 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
360
  **/
340
- initialize: AugmentedSubmittable<
361
+ createReceiveAddress: AugmentedSubmittable<
341
362
  (
342
363
  vaultId: u32 | AnyNumber | Uint8Array,
343
364
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
@@ -347,7 +368,7 @@ declare module '@polkadot/api-base/types/submittable' {
347
368
  | null
348
369
  | Uint8Array
349
370
  | PalletBitcoinLocksLockOptions
350
- | { V1: any }
371
+ | { microgonsAtTargetPerBtc?: any; feeCoupon?: any }
351
372
  | string,
352
373
  ) => SubmittableExtrinsic<ApiType>,
353
374
  [
@@ -357,59 +378,6 @@ declare module '@polkadot/api-base/types/submittable' {
357
378
  Option<PalletBitcoinLocksLockOptions>,
358
379
  ]
359
380
  >;
360
- initializeFor: AugmentedSubmittable<
361
- (
362
- accountId: AccountId32 | string | Uint8Array,
363
- vaultId: u32 | AnyNumber | Uint8Array,
364
- satoshis: Compact<u64> | AnyNumber | Uint8Array,
365
- bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array,
366
- options:
367
- | Option<PalletBitcoinLocksLockOptions>
368
- | null
369
- | Uint8Array
370
- | PalletBitcoinLocksLockOptions
371
- | { V1: any }
372
- | string,
373
- backfillSecuritizationToUnreserve: Compact<u128> | AnyNumber | Uint8Array,
374
- ) => SubmittableExtrinsic<ApiType>,
375
- [
376
- AccountId32,
377
- u32,
378
- Compact<u64>,
379
- ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
380
- Option<PalletBitcoinLocksLockOptions>,
381
- Compact<u128>,
382
- ]
383
- >;
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
381
  requestOrphanedUtxoRelease: AugmentedSubmittable<
414
382
  (
415
383
  utxoRef:
@@ -438,46 +406,32 @@ declare module '@polkadot/api-base/types/submittable' {
438
406
  ) => SubmittableExtrinsic<ApiType>,
439
407
  [u64, Bytes, u64]
440
408
  >;
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
409
  /**
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.
410
+ * Replace this Lock's BTC coverage and target value for its remaining term.
454
411
  **/
455
- fundWithUtxoCandidate: AugmentedSubmittable<
412
+ resecuritize: AugmentedSubmittable<
456
413
  (
457
414
  utxoId: u64 | AnyNumber | Uint8Array,
458
- utxoRef:
459
- | ArgonPrimitivesBitcoinUtxoRef
460
- | { txid?: any; outputIndex?: any }
461
- | string
462
- | Uint8Array,
415
+ satoshis: Compact<u64> | AnyNumber | Uint8Array,
416
+ options:
417
+ | Option<PalletBitcoinLocksLockOptions>
418
+ | null
419
+ | Uint8Array
420
+ | PalletBitcoinLocksLockOptions
421
+ | { microgonsAtTargetPerBtc?: any; feeCoupon?: any }
422
+ | string,
463
423
  ) => SubmittableExtrinsic<ApiType>,
464
- [u64, ArgonPrimitivesBitcoinUtxoRef]
424
+ [u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
465
425
  >;
466
- /**
467
- * Reject a pending candidate UTXO and materialize it as an orphan through the locks
468
- * pallet.
469
- **/
470
- rejectUtxoCandidate: AugmentedSubmittable<
426
+ setFlexible: AugmentedSubmittable<
471
427
  (
472
428
  utxoId: u64 | AnyNumber | Uint8Array,
473
- utxoRef:
474
- | ArgonPrimitivesBitcoinUtxoRef
475
- | { txid?: any; outputIndex?: any }
476
- | string
477
- | Uint8Array,
429
+ isFlexible: bool | boolean | Uint8Array,
478
430
  ) => SubmittableExtrinsic<ApiType>,
479
- [u64, ArgonPrimitivesBitcoinUtxoRef]
431
+ [u64, bool]
480
432
  >;
433
+ };
434
+ bitcoinUtxos: {
481
435
  /**
482
436
  * Sets the most recent confirmed bitcoin block height (only executable by the Oracle
483
437
  * Operator account)
@@ -1219,6 +1173,13 @@ declare module '@polkadot/api-base/types/submittable' {
1219
1173
  ) => SubmittableExtrinsic<ApiType>,
1220
1174
  [PalletOperationalAccountsRegistration]
1221
1175
  >;
1176
+ /**
1177
+ * Update the display name on an operational account profile from any linked account.
1178
+ **/
1179
+ setName: AugmentedSubmittable<
1180
+ (name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
1181
+ [Option<Bytes>]
1182
+ >;
1222
1183
  /**
1223
1184
  * Update certification reward amounts for operational accounts.
1224
1185
  **/
@@ -2065,8 +2026,10 @@ declare module '@polkadot/api-base/types/submittable' {
2065
2026
  | {
2066
2027
  vaultId?: any;
2067
2028
  beneficiary?: any;
2029
+ bonusPercent?: any;
2068
2030
  expiresAtFrame?: any;
2069
- backfillBondsToUnreserve?: any;
2031
+ bondSpaceToUnreserve?: any;
2032
+ nonce?: any;
2070
2033
  signature?: any;
2071
2034
  }
2072
2035
  | string,
@@ -2082,19 +2045,22 @@ declare module '@polkadot/api-base/types/submittable' {
2082
2045
  (bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2083
2046
  [u64]
2084
2047
  >;
2085
- setBackfillBondsReserved: AugmentedSubmittable<
2048
+ setBondLotFlexible: AugmentedSubmittable<
2086
2049
  (
2087
- vaultId: u32 | AnyNumber | Uint8Array,
2088
- backfillBondsReserved: u32 | AnyNumber | Uint8Array,
2050
+ bondLotId: u64 | AnyNumber | Uint8Array,
2051
+ isFlexible: bool | boolean | Uint8Array,
2089
2052
  ) => SubmittableExtrinsic<ApiType>,
2090
- [u32, u32]
2053
+ [u64, bool]
2091
2054
  >;
2092
- setBondLotAsBackfill: AugmentedSubmittable<
2055
+ /**
2056
+ * Reserve vault bond space for future bond purchases.
2057
+ **/
2058
+ setReservedBondSpace: AugmentedSubmittable<
2093
2059
  (
2094
- bondLotId: u64 | AnyNumber | Uint8Array,
2095
- isBackfill: bool | boolean | Uint8Array,
2060
+ vaultId: u32 | AnyNumber | Uint8Array,
2061
+ reservedBondSpace: u32 | AnyNumber | Uint8Array,
2096
2062
  ) => SubmittableExtrinsic<ApiType>,
2097
- [u64, bool]
2063
+ [u32, u32]
2098
2064
  >;
2099
2065
  };
2100
2066
  txPause: {
@@ -2318,7 +2284,6 @@ declare module '@polkadot/api-base/types/submittable' {
2318
2284
  | PalletVaultsVaultConfig
2319
2285
  | {
2320
2286
  terms?: any;
2321
- name?: any;
2322
2287
  delegateAccountId?: any;
2323
2288
  securitization?: any;
2324
2289
  bitcoinXpubkey?: any;
@@ -2356,12 +2321,7 @@ declare module '@polkadot/api-base/types/submittable' {
2356
2321
  vaultId: u32 | AnyNumber | Uint8Array,
2357
2322
  terms:
2358
2323
  | ArgonPrimitivesVaultVaultTerms
2359
- | {
2360
- bitcoinAnnualPercentRate?: any;
2361
- bitcoinBaseFee?: any;
2362
- treasuryProfitSharing?: any;
2363
- treasuryBonusProfitSharing?: any;
2364
- }
2324
+ | { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any; treasuryProfitSharing?: any }
2365
2325
  | string
2366
2326
  | Uint8Array,
2367
2327
  ) => SubmittableExtrinsic<ApiType>,
@@ -2379,13 +2339,6 @@ declare module '@polkadot/api-base/types/submittable' {
2379
2339
  ) => SubmittableExtrinsic<ApiType>,
2380
2340
  [u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
2381
2341
  >;
2382
- setBackfillSecuritizationReserved: AugmentedSubmittable<
2383
- (
2384
- vaultId: u32 | AnyNumber | Uint8Array,
2385
- backfillSecuritizationReserved: u128 | AnyNumber | Uint8Array,
2386
- ) => SubmittableExtrinsic<ApiType>,
2387
- [u32, u128]
2388
- >;
2389
2342
  setCommittedArgonots: AugmentedSubmittable<
2390
2343
  (amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2391
2344
  [Compact<u128>]
@@ -2396,9 +2349,14 @@ declare module '@polkadot/api-base/types/submittable' {
2396
2349
  ) => SubmittableExtrinsic<ApiType>,
2397
2350
  [Option<AccountId32>]
2398
2351
  >;
2399
- setName: AugmentedSubmittable<
2400
- (name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
2401
- [Option<Bytes>]
2352
+ /**
2353
+ * Reserve vault securitization space for future Bitcoin locks.
2354
+ **/
2355
+ setReservedSecuritizationSpace: AugmentedSubmittable<
2356
+ (
2357
+ reservedSecuritizationSpace: u128 | AnyNumber | Uint8Array,
2358
+ ) => SubmittableExtrinsic<ApiType>,
2359
+ [u128]
2402
2360
  >;
2403
2361
  };
2404
2362
  } // 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