@argonprotocol/mainchain 1.4.11-dev.7b637899 → 1.4.11-dev.825bb01a

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.
@@ -851,7 +851,7 @@ declare module '@polkadot/api-base/types/errors' {
851
851
  **/
852
852
  ExpirationAtBlockOverflow: AugmentedError<ApiType>;
853
853
  /**
854
- * The fee coupon nonce has already been consumed or superseded.
854
+ * The fee coupon nonce is not the next unconsumed nonce.
855
855
  **/
856
856
  FeeCouponAlreadyUsed: AugmentedError<ApiType>;
857
857
  /**
@@ -870,6 +870,14 @@ declare module '@polkadot/api-base/types/errors' {
870
870
  * The fee coupon was issued for a different chain.
871
871
  **/
872
872
  FeeCouponWrongChain: AugmentedError<ApiType>;
873
+ /**
874
+ * The fee coupon was issued for a different number of requested satoshis.
875
+ **/
876
+ FeeCouponWrongSatoshis: AugmentedError<ApiType>;
877
+ /**
878
+ * The fee coupon was issued for a different target price.
879
+ **/
880
+ FeeCouponWrongTargetPrice: AugmentedError<ApiType>;
873
881
  /**
874
882
  * The fee coupon was issued for a different vault.
875
883
  **/
@@ -2024,17 +2032,13 @@ declare module '@polkadot/api-base/types/errors' {
2024
2032
  **/
2025
2033
  BondLotAlreadyReleasing: AugmentedError<ApiType>;
2026
2034
  /**
2027
- * Only an active vault bond owned by its operator can be used as backfill.
2035
+ * Only an active vault bond owned by its operator can be used as flexible.
2028
2036
  **/
2029
- BondLotNotEligibleForBackfill: AugmentedError<ApiType>;
2037
+ BondLotCannotBeFlexible: AugmentedError<ApiType>;
2030
2038
  /**
2031
2039
  * The bond lot could not be found.
2032
2040
  **/
2033
2041
  BondLotNotFound: AugmentedError<ApiType>;
2034
- /**
2035
- * The vault doesn't have enough bitcoin security to support this bond purchase
2036
- **/
2037
- BondPurchaseAboveSecurity: AugmentedError<ApiType>;
2038
2042
  /**
2039
2043
  * The purchase is below the minimum amount.
2040
2044
  **/
@@ -2063,6 +2067,10 @@ declare module '@polkadot/api-base/types/errors' {
2063
2067
  * The bonus approval was signed for a different vault.
2064
2068
  **/
2065
2069
  BonusApprovalWrongVault: AugmentedError<ApiType>;
2070
+ /**
2071
+ * The vault doesn't have enough bitcoin security to support this bond purchase
2072
+ **/
2073
+ InsufficientBondSpace: AugmentedError<ApiType>;
2066
2074
  /**
2067
2075
  * An internal error occurred.
2068
2076
  **/
@@ -2547,15 +2555,6 @@ declare module '@polkadot/api-base/types/events' {
2547
2555
  compensationAmount: u128;
2548
2556
  compensatedAccountId: AccountId32;
2549
2557
  }>;
2550
- BitcoinLockBackfillChanged: AugmentedEvent<ApiType, [
2551
- utxoId: u64,
2552
- vaultId: u32,
2553
- isBackfill: bool
2554
- ], {
2555
- utxoId: u64;
2556
- vaultId: u32;
2557
- isBackfill: bool;
2558
- }>;
2559
2558
  BitcoinLockBurned: AugmentedEvent<ApiType, [
2560
2559
  utxoId: u64,
2561
2560
  vaultId: u32,
@@ -2582,6 +2581,15 @@ declare module '@polkadot/api-base/types/events' {
2582
2581
  accountId: AccountId32;
2583
2582
  securityFee: u128;
2584
2583
  }>;
2584
+ BitcoinLockFlexibleChanged: AugmentedEvent<ApiType, [
2585
+ utxoId: u64,
2586
+ vaultId: u32,
2587
+ isFlexible: bool
2588
+ ], {
2589
+ utxoId: u64;
2590
+ vaultId: u32;
2591
+ isFlexible: bool;
2592
+ }>;
2585
2593
  BitcoinLockRatcheted: AugmentedEvent<ApiType, [
2586
2594
  utxoId: u64,
2587
2595
  vaultId: u32,
@@ -4183,21 +4191,14 @@ declare module '@polkadot/api-base/types/events' {
4183
4191
  }>;
4184
4192
  };
4185
4193
  treasury: {
4186
- BackfillBondsReservedChanged: AugmentedEvent<ApiType, [
4187
- vaultId: u32,
4188
- backfillBondsReserved: u32
4189
- ], {
4190
- vaultId: u32;
4191
- backfillBondsReserved: u32;
4192
- }>;
4193
- BondLotBackfillChanged: AugmentedEvent<ApiType, [
4194
+ BondLotFlexibilityChanged: AugmentedEvent<ApiType, [
4194
4195
  vaultId: u32,
4195
4196
  bondLotId: u64,
4196
- isBackfill: bool
4197
+ isFlexible: bool
4197
4198
  ], {
4198
4199
  vaultId: u32;
4199
4200
  bondLotId: u64;
4200
- isBackfill: bool;
4201
+ isFlexible: bool;
4201
4202
  }>;
4202
4203
  /**
4203
4204
  * A bond purchase entered its active program set.
@@ -4356,6 +4357,13 @@ declare module '@polkadot/api-base/types/events' {
4356
4357
  totalEligibleBonds: u128;
4357
4358
  participatingVaults: u32;
4358
4359
  }>;
4360
+ ReservedBondSpaceChanged: AugmentedEvent<ApiType, [
4361
+ vaultId: u32,
4362
+ reservedBondSpace: u32
4363
+ ], {
4364
+ vaultId: u32;
4365
+ reservedBondSpace: u32;
4366
+ }>;
4359
4367
  };
4360
4368
  txPause: {
4361
4369
  /**
@@ -4429,13 +4437,6 @@ declare module '@polkadot/api-base/types/events' {
4429
4437
  }>;
4430
4438
  };
4431
4439
  vaults: {
4432
- BackfillSecuritizationReservedChanged: AugmentedEvent<ApiType, [
4433
- vaultId: u32,
4434
- backfillSecuritizationReserved: u128
4435
- ], {
4436
- vaultId: u32;
4437
- backfillSecuritizationReserved: u128;
4438
- }>;
4439
4440
  CommittedArgonotsSet: AugmentedEvent<ApiType, [
4440
4441
  vaultId: u32,
4441
4442
  operatorAccountId: AccountId32,
@@ -4501,6 +4502,13 @@ declare module '@polkadot/api-base/types/events' {
4501
4502
  toBeneficiary: u128;
4502
4503
  burned: u128;
4503
4504
  }>;
4505
+ ReservedSecuritizationSpaceChanged: AugmentedEvent<ApiType, [
4506
+ vaultId: u32,
4507
+ reservedSecuritizationSpace: u128
4508
+ ], {
4509
+ vaultId: u32;
4510
+ reservedSecuritizationSpace: u128;
4511
+ }>;
4504
4512
  TreasuryRecordingError: AugmentedEvent<ApiType, [
4505
4513
  vaultId: u32,
4506
4514
  frameId: u64,
@@ -5803,7 +5811,7 @@ declare module '@polkadot/api-base/types/storage' {
5803
5811
  * The active bond state for a vault.
5804
5812
  *
5805
5813
  * The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
5806
- * when amounts tie. Backfill lots remain in `BondLotById` and are represented here by their
5814
+ * when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
5807
5815
  * aggregate.
5808
5816
  **/
5809
5817
  bondLotsByVault: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletTreasuryVaultBondState>, [
@@ -6227,7 +6235,7 @@ declare module '@polkadot/api-base/types/submittable' {
6227
6235
  Bytes,
6228
6236
  u64
6229
6237
  ]>;
6230
- setAsBackfill: AugmentedSubmittable<(utxoId: u64 | AnyNumber | Uint8Array, isBackfill: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6238
+ setFlexible: AugmentedSubmittable<(utxoId: u64 | AnyNumber | Uint8Array, isFlexible: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6231
6239
  u64,
6232
6240
  bool
6233
6241
  ]>;
@@ -6830,7 +6838,7 @@ declare module '@polkadot/api-base/types/submittable' {
6830
6838
  PalletOperationalAccountsRegistration
6831
6839
  ]>;
6832
6840
  /**
6833
- * Update the display name on an operational account profile.
6841
+ * Update the display name on an operational account profile from any linked account.
6834
6842
  **/
6835
6843
  setName: AugmentedSubmittable<(name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>, [
6836
6844
  Option<Bytes>
@@ -7538,7 +7546,7 @@ declare module '@polkadot/api-base/types/submittable' {
7538
7546
  beneficiary?: any;
7539
7547
  bonusPercent?: any;
7540
7548
  expiresAtFrame?: any;
7541
- backfillBondsToUnreserve?: any;
7549
+ bondSpaceToUnreserve?: any;
7542
7550
  nonce?: any;
7543
7551
  signature?: any;
7544
7552
  } | string) => SubmittableExtrinsic<ApiType>, [
@@ -7554,14 +7562,17 @@ declare module '@polkadot/api-base/types/submittable' {
7554
7562
  liquidateBondLot: AugmentedSubmittable<(bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7555
7563
  u64
7556
7564
  ]>;
7557
- setBackfillBondsReserved: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, backfillBondsReserved: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7558
- u32,
7559
- u32
7560
- ]>;
7561
- setBondLotAsBackfill: AugmentedSubmittable<(bondLotId: u64 | AnyNumber | Uint8Array, isBackfill: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7565
+ setBondLotFlexible: AugmentedSubmittable<(bondLotId: u64 | AnyNumber | Uint8Array, isFlexible: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7562
7566
  u64,
7563
7567
  bool
7564
7568
  ]>;
7569
+ /**
7570
+ * Reserve vault bond space for future bond purchases.
7571
+ **/
7572
+ setReservedBondSpace: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, reservedBondSpace: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7573
+ u32,
7574
+ u32
7575
+ ]>;
7565
7576
  };
7566
7577
  txPause: {
7567
7578
  /**
@@ -7790,16 +7801,18 @@ declare module '@polkadot/api-base/types/submittable' {
7790
7801
  u32,
7791
7802
  ArgonPrimitivesBitcoinOpaqueBitcoinXpub
7792
7803
  ]>;
7793
- setBackfillSecuritizationReserved: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, backfillSecuritizationReserved: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7794
- u32,
7795
- u128
7796
- ]>;
7797
7804
  setCommittedArgonots: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7798
7805
  Compact<u128>
7799
7806
  ]>;
7800
7807
  setDelegateAccount: AugmentedSubmittable<(delegateAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [
7801
7808
  Option<AccountId32>
7802
7809
  ]>;
7810
+ /**
7811
+ * Reserve vault securitization space for future Bitcoin locks.
7812
+ **/
7813
+ setReservedSecuritizationSpace: AugmentedSubmittable<(reservedSecuritizationSpace: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7814
+ u128
7815
+ ]>;
7803
7816
  };
7804
7817
  }
7805
7818
  }
@@ -10381,10 +10394,10 @@ declare module '@polkadot/types/lookup' {
10381
10394
  readonly asVaultBitcoinXpubChange: {
10382
10395
  readonly vaultId: u32;
10383
10396
  } & Struct;
10384
- readonly isBackfillSecuritizationReservedChanged: boolean;
10385
- readonly asBackfillSecuritizationReservedChanged: {
10397
+ readonly isReservedSecuritizationSpaceChanged: boolean;
10398
+ readonly asReservedSecuritizationSpaceChanged: {
10386
10399
  readonly vaultId: u32;
10387
- readonly backfillSecuritizationReserved: u128;
10400
+ readonly reservedSecuritizationSpace: u128;
10388
10401
  } & Struct;
10389
10402
  readonly isVaultRevenueUncollected: boolean;
10390
10403
  readonly asVaultRevenueUncollected: {
@@ -10447,7 +10460,7 @@ declare module '@polkadot/types/lookup' {
10447
10460
  readonly operatorAccountId: AccountId32;
10448
10461
  readonly amount: u128;
10449
10462
  } & Struct;
10450
- readonly type: 'VaultCreated' | 'VaultModified' | 'VaultTermsChangeScheduled' | 'VaultTermsChanged' | 'VaultClosed' | 'VaultBitcoinXpubChange' | 'BackfillSecuritizationReservedChanged' | 'VaultRevenueUncollected' | 'VaultCollected' | 'FundsLocked' | 'FundLockCanceled' | 'FundsScheduledForRelease' | 'LostBitcoinCompensated' | 'FundsReleased' | 'FundsReleasedError' | 'TreasuryRecordingError' | 'CommittedArgonotsSet';
10463
+ readonly type: 'VaultCreated' | 'VaultModified' | 'VaultTermsChangeScheduled' | 'VaultTermsChanged' | 'VaultClosed' | 'VaultBitcoinXpubChange' | 'ReservedSecuritizationSpaceChanged' | 'VaultRevenueUncollected' | 'VaultCollected' | 'FundsLocked' | 'FundLockCanceled' | 'FundsScheduledForRelease' | 'LostBitcoinCompensated' | 'FundsReleased' | 'FundsReleasedError' | 'TreasuryRecordingError' | 'CommittedArgonotsSet';
10451
10464
  }
10452
10465
  /** @name PalletBitcoinLocksEvent (57) */
10453
10466
  interface PalletBitcoinLocksEvent extends Enum {
@@ -10547,13 +10560,13 @@ declare module '@polkadot/types/lookup' {
10547
10560
  readonly newSatoshis: u64;
10548
10561
  readonly accountId: AccountId32;
10549
10562
  } & Struct;
10550
- readonly isBitcoinLockBackfillChanged: boolean;
10551
- readonly asBitcoinLockBackfillChanged: {
10563
+ readonly isBitcoinLockFlexibleChanged: boolean;
10564
+ readonly asBitcoinLockFlexibleChanged: {
10552
10565
  readonly utxoId: u64;
10553
10566
  readonly vaultId: u32;
10554
- readonly isBackfill: bool;
10567
+ readonly isFlexible: bool;
10555
10568
  } & Struct;
10556
- readonly type: 'BitcoinLockCreated' | 'BitcoinLockRatcheted' | 'BitcoinLockBurned' | 'BitcoinUtxoCosignRequested' | 'BitcoinUtxoCosigned' | 'BitcoinSpentAfterRelease' | 'BitcoinCosignPastDue' | 'CosignOverdueError' | 'LockExpirationError' | 'OrphanedUtxoReceived' | 'OrphanedUtxoReleaseRequested' | 'OrphanedUtxoCosigned' | 'UtxoFundedFromCandidate' | 'SecuritizationIncreased' | 'BitcoinLockBackfillChanged';
10569
+ readonly type: 'BitcoinLockCreated' | 'BitcoinLockRatcheted' | 'BitcoinLockBurned' | 'BitcoinUtxoCosignRequested' | 'BitcoinUtxoCosigned' | 'BitcoinSpentAfterRelease' | 'BitcoinCosignPastDue' | 'CosignOverdueError' | 'LockExpirationError' | 'OrphanedUtxoReceived' | 'OrphanedUtxoReleaseRequested' | 'OrphanedUtxoCosigned' | 'UtxoFundedFromCandidate' | 'SecuritizationIncreased' | 'BitcoinLockFlexibleChanged';
10557
10570
  }
10558
10571
  /** @name PalletNotariesEvent (60) */
10559
10572
  interface PalletNotariesEvent extends Enum {
@@ -11318,16 +11331,16 @@ declare module '@polkadot/types/lookup' {
11318
11331
  readonly accountId: AccountId32;
11319
11332
  readonly bonds: u32;
11320
11333
  } & Struct;
11321
- readonly isBondLotBackfillChanged: boolean;
11322
- readonly asBondLotBackfillChanged: {
11334
+ readonly isBondLotFlexibilityChanged: boolean;
11335
+ readonly asBondLotFlexibilityChanged: {
11323
11336
  readonly vaultId: u32;
11324
11337
  readonly bondLotId: u64;
11325
- readonly isBackfill: bool;
11338
+ readonly isFlexible: bool;
11326
11339
  } & Struct;
11327
- readonly isBackfillBondsReservedChanged: boolean;
11328
- readonly asBackfillBondsReservedChanged: {
11340
+ readonly isReservedBondSpaceChanged: boolean;
11341
+ readonly asReservedBondSpaceChanged: {
11329
11342
  readonly vaultId: u32;
11330
- readonly backfillBondsReserved: u32;
11343
+ readonly reservedBondSpace: u32;
11331
11344
  } & Struct;
11332
11345
  readonly isEncumberedBondMicrogonsBurned: boolean;
11333
11346
  readonly asEncumberedBondMicrogonsBurned: {
@@ -11335,7 +11348,7 @@ declare module '@polkadot/types/lookup' {
11335
11348
  readonly burnedAmount: u128;
11336
11349
  readonly releasedAmount: u128;
11337
11350
  } & Struct;
11338
- readonly type: 'CouldNotDistributeEarningsToBondLot' | 'CouldNotDistributeEarningsToArgonotBondLot' | 'CouldNotTransferToTreasuryReserves' | 'FrameEarningsDistributed' | 'FrameVaultCapitalLocked' | 'CouldNotReleaseBondLot' | 'BondLotPurchased' | 'BondLotReleaseScheduled' | 'BondLotReleased' | 'BondLotBackfillChanged' | 'BackfillBondsReservedChanged' | 'EncumberedBondMicrogonsBurned';
11351
+ readonly type: 'CouldNotDistributeEarningsToBondLot' | 'CouldNotDistributeEarningsToArgonotBondLot' | 'CouldNotTransferToTreasuryReserves' | 'FrameEarningsDistributed' | 'FrameVaultCapitalLocked' | 'CouldNotReleaseBondLot' | 'BondLotPurchased' | 'BondLotReleaseScheduled' | 'BondLotReleased' | 'BondLotFlexibilityChanged' | 'ReservedBondSpaceChanged' | 'EncumberedBondMicrogonsBurned';
11339
11352
  }
11340
11353
  /** @name PalletTreasuryBondProgramId (120) */
11341
11354
  interface PalletTreasuryBondProgramId extends Enum {
@@ -12089,12 +12102,11 @@ declare module '@polkadot/types/lookup' {
12089
12102
  readonly asSetCommittedArgonots: {
12090
12103
  readonly amount: Compact<u128>;
12091
12104
  } & Struct;
12092
- readonly isSetBackfillSecuritizationReserved: boolean;
12093
- readonly asSetBackfillSecuritizationReserved: {
12094
- readonly vaultId: u32;
12095
- readonly backfillSecuritizationReserved: u128;
12105
+ readonly isSetReservedSecuritizationSpace: boolean;
12106
+ readonly asSetReservedSecuritizationSpace: {
12107
+ readonly reservedSecuritizationSpace: u128;
12096
12108
  } & Struct;
12097
- readonly type: 'Create' | 'ModifyFunding' | 'ModifyTerms' | 'Close' | 'ReplaceBitcoinXpub' | 'Collect' | 'SetDelegateAccount' | 'SetCommittedArgonots' | 'SetBackfillSecuritizationReserved';
12109
+ readonly type: 'Create' | 'ModifyFunding' | 'ModifyTerms' | 'Close' | 'ReplaceBitcoinXpub' | 'Collect' | 'SetDelegateAccount' | 'SetCommittedArgonots' | 'SetReservedSecuritizationSpace';
12098
12110
  }
12099
12111
  /** @name PalletVaultsVaultConfig (209) */
12100
12112
  interface PalletVaultsVaultConfig extends Struct {
@@ -12159,12 +12171,12 @@ declare module '@polkadot/types/lookup' {
12159
12171
  readonly utxoId: u64;
12160
12172
  readonly newSatoshis: Compact<u64>;
12161
12173
  } & Struct;
12162
- readonly isSetAsBackfill: boolean;
12163
- readonly asSetAsBackfill: {
12174
+ readonly isSetFlexible: boolean;
12175
+ readonly asSetFlexible: {
12164
12176
  readonly utxoId: u64;
12165
- readonly isBackfill: bool;
12177
+ readonly isFlexible: bool;
12166
12178
  } & Struct;
12167
- readonly type: 'Initialize' | 'RequestRelease' | 'CosignRelease' | 'Ratchet' | 'AdminModifyMinimumLockedSats' | 'RequestOrphanedUtxoRelease' | 'CosignOrphanedUtxoRelease' | 'IncreaseSecuritization' | 'SetAsBackfill';
12179
+ readonly type: 'Initialize' | 'RequestRelease' | 'CosignRelease' | 'Ratchet' | 'AdminModifyMinimumLockedSats' | 'RequestOrphanedUtxoRelease' | 'CosignOrphanedUtxoRelease' | 'IncreaseSecuritization' | 'SetFlexible';
12168
12180
  }
12169
12181
  /** @name ArgonPrimitivesBitcoinCompressedBitcoinPubkey (217) */
12170
12182
  interface ArgonPrimitivesBitcoinCompressedBitcoinPubkey extends U8aFixed {
@@ -12187,8 +12199,10 @@ declare module '@polkadot/types/lookup' {
12187
12199
  readonly vaultId: Compact<u32>;
12188
12200
  readonly genesisHash: H256;
12189
12201
  readonly beneficiary: AccountId32;
12202
+ readonly requestedSatoshis: Compact<u64>;
12203
+ readonly microgonsAtTargetPerBtc: Option<u128>;
12190
12204
  readonly feeDiscount: Compact<u128>;
12191
- readonly backfillSecuritizationToUnreserve: Compact<u128>;
12205
+ readonly securitizationSpaceToUnreserve: Compact<u128>;
12192
12206
  readonly expiresAtFrame: Compact<u64>;
12193
12207
  readonly nonce: Compact<u64>;
12194
12208
  readonly signature: SpRuntimeMultiSignature;
@@ -12591,17 +12605,17 @@ declare module '@polkadot/types/lookup' {
12591
12605
  readonly asBuyArgonotBonds: {
12592
12606
  readonly bonds: u32;
12593
12607
  } & Struct;
12594
- readonly isSetBondLotAsBackfill: boolean;
12595
- readonly asSetBondLotAsBackfill: {
12608
+ readonly isSetBondLotFlexible: boolean;
12609
+ readonly asSetBondLotFlexible: {
12596
12610
  readonly bondLotId: u64;
12597
- readonly isBackfill: bool;
12611
+ readonly isFlexible: bool;
12598
12612
  } & Struct;
12599
- readonly isSetBackfillBondsReserved: boolean;
12600
- readonly asSetBackfillBondsReserved: {
12613
+ readonly isSetReservedBondSpace: boolean;
12614
+ readonly asSetReservedBondSpace: {
12601
12615
  readonly vaultId: u32;
12602
- readonly backfillBondsReserved: u32;
12616
+ readonly reservedBondSpace: u32;
12603
12617
  } & Struct;
12604
- readonly type: 'BuyBonds' | 'LiquidateBondLot' | 'BuyArgonotBonds' | 'SetBondLotAsBackfill' | 'SetBackfillBondsReserved';
12618
+ readonly type: 'BuyBonds' | 'LiquidateBondLot' | 'BuyArgonotBonds' | 'SetBondLotFlexible' | 'SetReservedBondSpace';
12605
12619
  }
12606
12620
  /** @name ArgonPrimitivesVaultTreasuryBonusApprovalProof (278) */
12607
12621
  interface ArgonPrimitivesVaultTreasuryBonusApprovalProof extends Struct {
@@ -12609,7 +12623,7 @@ declare module '@polkadot/types/lookup' {
12609
12623
  readonly beneficiary: AccountId32;
12610
12624
  readonly bonusPercent: Compact<Permill>;
12611
12625
  readonly expiresAtFrame: Compact<u64>;
12612
- readonly backfillBondsToUnreserve: Compact<u32>;
12626
+ readonly bondSpaceToUnreserve: Compact<u32>;
12613
12627
  readonly nonce: Compact<u64>;
12614
12628
  readonly signature: SpRuntimeMultiSignature;
12615
12629
  }
@@ -13103,12 +13117,12 @@ declare module '@polkadot/types/lookup' {
13103
13117
  readonly securitization: Compact<u128>;
13104
13118
  readonly securitizationTarget: Compact<u128>;
13105
13119
  readonly securitizationLocked: Compact<u128>;
13106
- readonly backfillSecuritizationLocked: Compact<u128>;
13107
- readonly backfillSecuritizationReserved: Compact<u128>;
13120
+ readonly flexibleSecuritizationLocked: Compact<u128>;
13121
+ readonly reservedSecuritizationSpace: Compact<u128>;
13108
13122
  readonly securitizationPendingActivation: Compact<u128>;
13109
13123
  readonly lockedSatoshis: Compact<u64>;
13110
13124
  readonly securitizedSatoshis: Compact<u64>;
13111
- readonly backfillSecuritizedSatoshis: Compact<u64>;
13125
+ readonly flexibleSecuritizedSatoshis: Compact<u64>;
13112
13126
  readonly securitizationReleaseSchedule: BTreeMap<u64, u128>;
13113
13127
  readonly securitizationRatio: Compact<u128>;
13114
13128
  readonly isClosed: bool;
@@ -13212,7 +13226,7 @@ declare module '@polkadot/types/lookup' {
13212
13226
  readonly createdAtHeight: Compact<u64>;
13213
13227
  readonly utxoScriptPubkey: ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey;
13214
13228
  readonly isFunded: bool;
13215
- readonly isBackfill: bool;
13229
+ readonly isFlexible: bool;
13216
13230
  readonly fundHoldExtensions: BTreeMap<u64, u128>;
13217
13231
  readonly createdAtArgonBlock: Compact<u32>;
13218
13232
  }
@@ -13284,7 +13298,9 @@ declare module '@polkadot/types/lookup' {
13284
13298
  readonly isOrphanedUtxoReleaseRequested: boolean;
13285
13299
  readonly isFundingUtxoCannotBeReleased: boolean;
13286
13300
  readonly isMaxOrphanedUtxoReleaseRequestsExceeded: boolean;
13287
- readonly type: 'InsufficientFunds' | 'InsufficientVaultFunds' | 'AccountWouldGoBelowMinimumBalance' | 'VaultClosed' | 'InvalidVaultAmount' | 'RedemptionNotLocked' | 'BitcoinReleaseInitiationDeadlinePassed' | 'BitcoinFeeTooHigh' | 'BitcoinUtxoNotFound' | 'BitcoinUnableToBeDecodedForRelease' | 'BitcoinSignatureUnableToBeDecoded' | 'BitcoinPubkeyUnableToBeDecoded' | 'BitcoinInvalidCosignature' | 'InsufficientSatoshisLocked' | 'NoBitcoinPricesAvailable' | 'InvalidBitcoinScript' | 'NoPermissions' | 'HoldUnexpectedlyModified' | 'UnrecoverableHold' | 'VaultNotFound' | 'GenericVaultError' | 'LockNotFound' | 'NoVaultBitcoinPubkeysAvailable' | 'UnableToGenerateVaultBitcoinPubkey' | 'VaultNotYetActive' | 'ExpirationAtBlockOverflow' | 'NoRatchetingAvailable' | 'LockInProcessOfRelease' | 'LockPendingFunding' | 'OverflowError' | 'IneligibleMicrogonRateRequested' | 'FeeCouponWrongVault' | 'FeeCouponWrongChain' | 'FeeCouponWrongAccount' | 'FeeCouponExpired' | 'InvalidFeeCouponSignature' | 'FeeCouponAlreadyUsed' | 'FeeCouponOnlyForInitialization' | 'OrphanedUtxoFundingConflict' | 'OrphanedUtxoReleaseRequested' | 'FundingUtxoCannotBeReleased' | 'MaxOrphanedUtxoReleaseRequestsExceeded';
13301
+ readonly isFeeCouponWrongSatoshis: boolean;
13302
+ readonly isFeeCouponWrongTargetPrice: boolean;
13303
+ readonly type: 'InsufficientFunds' | 'InsufficientVaultFunds' | 'AccountWouldGoBelowMinimumBalance' | 'VaultClosed' | 'InvalidVaultAmount' | 'RedemptionNotLocked' | 'BitcoinReleaseInitiationDeadlinePassed' | 'BitcoinFeeTooHigh' | 'BitcoinUtxoNotFound' | 'BitcoinUnableToBeDecodedForRelease' | 'BitcoinSignatureUnableToBeDecoded' | 'BitcoinPubkeyUnableToBeDecoded' | 'BitcoinInvalidCosignature' | 'InsufficientSatoshisLocked' | 'NoBitcoinPricesAvailable' | 'InvalidBitcoinScript' | 'NoPermissions' | 'HoldUnexpectedlyModified' | 'UnrecoverableHold' | 'VaultNotFound' | 'GenericVaultError' | 'LockNotFound' | 'NoVaultBitcoinPubkeysAvailable' | 'UnableToGenerateVaultBitcoinPubkey' | 'VaultNotYetActive' | 'ExpirationAtBlockOverflow' | 'NoRatchetingAvailable' | 'LockInProcessOfRelease' | 'LockPendingFunding' | 'OverflowError' | 'IneligibleMicrogonRateRequested' | 'FeeCouponWrongVault' | 'FeeCouponWrongChain' | 'FeeCouponWrongAccount' | 'FeeCouponExpired' | 'InvalidFeeCouponSignature' | 'FeeCouponAlreadyUsed' | 'FeeCouponOnlyForInitialization' | 'OrphanedUtxoFundingConflict' | 'OrphanedUtxoReleaseRequested' | 'FundingUtxoCannotBeReleased' | 'MaxOrphanedUtxoReleaseRequestsExceeded' | 'FeeCouponWrongSatoshis' | 'FeeCouponWrongTargetPrice';
13288
13304
  }
13289
13305
  /** @name ArgonPrimitivesVaultVaultError (437) */
13290
13306
  interface ArgonPrimitivesVaultVaultError extends Enum {
@@ -13598,9 +13614,9 @@ declare module '@polkadot/types/lookup' {
13598
13614
  }
13599
13615
  /** @name PalletTreasuryVaultCapital (528) */
13600
13616
  interface PalletTreasuryVaultCapital extends Struct {
13601
- readonly bondLotAllocations: Vec<PalletTreasuryBondLotAllocation>;
13602
- readonly backfillBondsEligible: Compact<u32>;
13603
- readonly backfillProrata: u128;
13617
+ readonly regularBondAllocations: Vec<PalletTreasuryBondLotAllocation>;
13618
+ readonly flexibleBondsEligible: Compact<u32>;
13619
+ readonly flexibleProrata: u128;
13604
13620
  readonly eligibleBonds: Compact<u32>;
13605
13621
  }
13606
13622
  /** @name PalletTreasuryBondLotAllocation (530) */
@@ -13624,7 +13640,7 @@ declare module '@polkadot/types/lookup' {
13624
13640
  readonly owner: AccountId32;
13625
13641
  readonly program: PalletTreasuryBondProgram;
13626
13642
  readonly bonds: Compact<u32>;
13627
- readonly isBackfill: bool;
13643
+ readonly isFlexible: bool;
13628
13644
  readonly createdFrameId: Compact<u64>;
13629
13645
  readonly participatedFrames: Compact<u32>;
13630
13646
  readonly lastFrameEarningsFrameId: Option<u64>;
@@ -13646,9 +13662,9 @@ declare module '@polkadot/types/lookup' {
13646
13662
  }
13647
13663
  /** @name PalletTreasuryVaultBondState (543) */
13648
13664
  interface PalletTreasuryVaultBondState extends Struct {
13649
- readonly bondLots: Vec<PalletTreasuryBondLotSummary>;
13650
- readonly backfillBonds: Compact<u32>;
13651
- readonly backfillBondsReserved: Compact<u32>;
13665
+ readonly regularBondLots: Vec<PalletTreasuryBondLotSummary>;
13666
+ readonly flexibleBonds: Compact<u32>;
13667
+ readonly reservedBondSpace: Compact<u32>;
13652
13668
  }
13653
13669
  /** @name PalletTreasuryError (545) */
13654
13670
  interface PalletTreasuryError extends Enum {
@@ -13661,7 +13677,7 @@ declare module '@polkadot/types/lookup' {
13661
13677
  readonly isBondLotNotFound: boolean;
13662
13678
  readonly isNotBondLotOwner: boolean;
13663
13679
  readonly isBondLotAlreadyReleasing: boolean;
13664
- readonly isBondPurchaseAboveSecurity: boolean;
13680
+ readonly isInsufficientBondSpace: boolean;
13665
13681
  readonly isActiveBondAmountBelowEncumberedBacking: boolean;
13666
13682
  readonly isBonusApprovalWrongVault: boolean;
13667
13683
  readonly isBonusApprovalWrongAccount: boolean;
@@ -13671,9 +13687,9 @@ declare module '@polkadot/types/lookup' {
13671
13687
  readonly isBonusApprovalExceedsProfitSharing: boolean;
13672
13688
  readonly isArgonotBondPurchaseBelowCutoff: boolean;
13673
13689
  readonly isArgonotBondPurchaseAboveCap: boolean;
13674
- readonly isBondLotNotEligibleForBackfill: boolean;
13690
+ readonly isBondLotCannotBeFlexible: boolean;
13675
13691
  readonly isNoPermissions: boolean;
13676
- readonly type: 'BondPurchaseRejected' | 'VaultNotAcceptingBondPurchases' | 'BondPurchaseBelowMinimum' | 'InternalError' | 'MaxAcceptedBondLotsExceeded' | 'MaxPendingBondReleasesExceeded' | 'BondLotNotFound' | 'NotBondLotOwner' | 'BondLotAlreadyReleasing' | 'BondPurchaseAboveSecurity' | 'ActiveBondAmountBelowEncumberedBacking' | 'BonusApprovalWrongVault' | 'BonusApprovalWrongAccount' | 'BonusApprovalExpired' | 'BonusApprovalAlreadyUsed' | 'InvalidBonusApprovalSignature' | 'BonusApprovalExceedsProfitSharing' | 'ArgonotBondPurchaseBelowCutoff' | 'ArgonotBondPurchaseAboveCap' | 'BondLotNotEligibleForBackfill' | 'NoPermissions';
13692
+ readonly type: 'BondPurchaseRejected' | 'VaultNotAcceptingBondPurchases' | 'BondPurchaseBelowMinimum' | 'InternalError' | 'MaxAcceptedBondLotsExceeded' | 'MaxPendingBondReleasesExceeded' | 'BondLotNotFound' | 'NotBondLotOwner' | 'BondLotAlreadyReleasing' | 'InsufficientBondSpace' | 'ActiveBondAmountBelowEncumberedBacking' | 'BonusApprovalWrongVault' | 'BonusApprovalWrongAccount' | 'BonusApprovalExpired' | 'BonusApprovalAlreadyUsed' | 'InvalidBonusApprovalSignature' | 'BonusApprovalExceedsProfitSharing' | 'ArgonotBondPurchaseBelowCutoff' | 'ArgonotBondPurchaseAboveCap' | 'BondLotCannotBeFlexible' | 'NoPermissions';
13677
13693
  }
13678
13694
  /** @name PalletFeeControlError (546) */
13679
13695
  interface PalletFeeControlError extends Enum {
@@ -14226,6 +14242,16 @@ interface ArgonPrimitivesVaultV144 extends Struct {
14226
14242
  readonly pendingTerms: Option<ITuple<[u64, ArgonPrimitivesVaultVaultTerms]>>;
14227
14243
  readonly openedTick: Compact<u64>;
14228
14244
  }
14245
+ type PreviousArgonPrimitivesVault = Omit<ArgonPrimitivesVault, 'flexibleSecuritizationLocked' | 'reservedSecuritizationSpace' | 'flexibleSecuritizedSatoshis'> & {
14246
+ readonly backfillSecuritizationLocked: ArgonPrimitivesVault['flexibleSecuritizationLocked'];
14247
+ readonly backfillSecuritizationReserved: ArgonPrimitivesVault['reservedSecuritizationSpace'];
14248
+ readonly backfillSecuritizedSatoshis: ArgonPrimitivesVault['flexibleSecuritizedSatoshis'];
14249
+ };
14250
+ type PreviousPalletTreasuryVaultBondState = Omit<PalletTreasuryVaultBondState, 'regularBondLots' | 'flexibleBonds' | 'reservedBondSpace'> & {
14251
+ readonly bondLots: PalletTreasuryVaultBondState['regularBondLots'];
14252
+ readonly backfillBonds: PalletTreasuryVaultBondState['flexibleBonds'];
14253
+ readonly backfillBondsReserved: PalletTreasuryVaultBondState['reservedBondSpace'];
14254
+ };
14229
14255
  declare class Vault {
14230
14256
  tickDuration: number;
14231
14257
  securitization: bigint;
@@ -14246,19 +14272,19 @@ declare class Vault {
14246
14272
  securitizationRatio: number;
14247
14273
  lockedSatoshis: number;
14248
14274
  securitizedSatoshis: number;
14249
- backfillSecuritizationLocked: bigint;
14250
- backfillSecuritizationReserved: bigint;
14251
- backfillSecuritizedSatoshis: number;
14275
+ flexibleSecuritizationLocked: bigint;
14276
+ reservedSecuritizationSpace: bigint;
14277
+ flexibleSecuritizedSatoshis: number;
14252
14278
  name?: string;
14253
14279
  lastNameChangeTick?: number;
14254
14280
  delegateAccountId?: string;
14255
14281
  constructor(id: number, vault: ArgonPrimitivesVault, tickDuration: number);
14256
- load(vault: ArgonPrimitivesVault | ArgonPrimitivesVaultV144): void;
14282
+ load(vault: ArgonPrimitivesVault | PreviousArgonPrimitivesVault | ArgonPrimitivesVaultV144): void;
14257
14283
  availableBitcoinSpace(lockOwner?: string): bigint;
14258
- availableSecuritization(lockOwner?: string): bigint;
14284
+ availableSecuritizationSpace(lockOwner?: string): bigint;
14259
14285
  availableBondSpace(priceIndex: PriceIndex, bondState?: Iterable<{
14260
14286
  activeBonds: number;
14261
- }> | PalletTreasuryVaultBondState, bondFullCapacityPerFrame?: boolean): bigint;
14287
+ }> | PalletTreasuryVaultBondState | PreviousPalletTreasuryVaultBondState, bondFullCapacityPerFrame?: boolean): bigint;
14262
14288
  getRelockCapacity(): bigint;
14263
14289
  securitizationRatioBN(): BigNumber;
14264
14290
  activatedSecuritization(): bigint;
@@ -14318,8 +14344,10 @@ type BitcoinLockFeeCoupon = {
14318
14344
  vaultId: number;
14319
14345
  genesisHash: string;
14320
14346
  beneficiary: string;
14347
+ requestedSatoshis: bigint;
14348
+ microgonsAtTargetPerBtc: bigint | null;
14321
14349
  feeDiscount: bigint;
14322
- backfillSecuritizationToUnreserve: bigint;
14350
+ securitizationSpaceToUnreserve: bigint;
14323
14351
  expiresAtFrame: bigint;
14324
14352
  nonce: bigint;
14325
14353
  signature: AnyJson;
@@ -14347,7 +14375,7 @@ declare class BitcoinLock implements IBitcoinLock {
14347
14375
  openClaimHeight: number;
14348
14376
  createdAtHeight: number;
14349
14377
  isFunded: boolean;
14350
- isBackfill: boolean;
14378
+ isFlexible: boolean;
14351
14379
  createdAtArgonBlock: number;
14352
14380
  fundHoldExtensionsByBitcoinExpirationHeight: Record<number, bigint>;
14353
14381
  couponFeesPaid: bigint;
@@ -14455,7 +14483,7 @@ declare class BitcoinLock implements IBitcoinLock {
14455
14483
  tip?: bigint;
14456
14484
  feeCoupon?: BitcoinLockFeeCoupon;
14457
14485
  initializeForAccountId?: string;
14458
- backfillSecuritizationToUnreserve?: bigint;
14486
+ securitizationSpaceToUnreserve?: bigint;
14459
14487
  }): Promise<{
14460
14488
  tx: SubmittableExtrinsic$1;
14461
14489
  securityFee: bigint;
@@ -14528,7 +14556,7 @@ interface IBitcoinLock {
14528
14556
  openClaimHeight: number;
14529
14557
  createdAtHeight: number;
14530
14558
  isFunded: boolean;
14531
- isBackfill: boolean;
14559
+ isFlexible: boolean;
14532
14560
  createdAtArgonBlock: number;
14533
14561
  fundHoldExtensionsByBitcoinExpirationHeight: Record<number, bigint>;
14534
14562
  }