@argonprotocol/mainchain 1.4.11-dev.455b3ae5 → 1.4.11-dev.6b43f925

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.
@@ -2024,17 +2024,13 @@ declare module '@polkadot/api-base/types/errors' {
2024
2024
  **/
2025
2025
  BondLotAlreadyReleasing: AugmentedError<ApiType>;
2026
2026
  /**
2027
- * Only an active vault bond owned by its operator can be used as backfill.
2027
+ * Only an active vault bond owned by its operator can be used as flexible.
2028
2028
  **/
2029
- BondLotNotEligibleForBackfill: AugmentedError<ApiType>;
2029
+ BondLotCannotBeFlexible: AugmentedError<ApiType>;
2030
2030
  /**
2031
2031
  * The bond lot could not be found.
2032
2032
  **/
2033
2033
  BondLotNotFound: AugmentedError<ApiType>;
2034
- /**
2035
- * The vault doesn't have enough bitcoin security to support this bond purchase
2036
- **/
2037
- BondPurchaseAboveSecurity: AugmentedError<ApiType>;
2038
2034
  /**
2039
2035
  * The purchase is below the minimum amount.
2040
2036
  **/
@@ -2063,6 +2059,10 @@ declare module '@polkadot/api-base/types/errors' {
2063
2059
  * The bonus approval was signed for a different vault.
2064
2060
  **/
2065
2061
  BonusApprovalWrongVault: AugmentedError<ApiType>;
2062
+ /**
2063
+ * The vault doesn't have enough bitcoin security to support this bond purchase
2064
+ **/
2065
+ InsufficientBondSpace: AugmentedError<ApiType>;
2066
2066
  /**
2067
2067
  * An internal error occurred.
2068
2068
  **/
@@ -2547,15 +2547,6 @@ declare module '@polkadot/api-base/types/events' {
2547
2547
  compensationAmount: u128;
2548
2548
  compensatedAccountId: AccountId32;
2549
2549
  }>;
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
2550
  BitcoinLockBurned: AugmentedEvent<ApiType, [
2560
2551
  utxoId: u64,
2561
2552
  vaultId: u32,
@@ -2582,6 +2573,15 @@ declare module '@polkadot/api-base/types/events' {
2582
2573
  accountId: AccountId32;
2583
2574
  securityFee: u128;
2584
2575
  }>;
2576
+ BitcoinLockFlexibleChanged: AugmentedEvent<ApiType, [
2577
+ utxoId: u64,
2578
+ vaultId: u32,
2579
+ isFlexible: bool
2580
+ ], {
2581
+ utxoId: u64;
2582
+ vaultId: u32;
2583
+ isFlexible: bool;
2584
+ }>;
2585
2585
  BitcoinLockRatcheted: AugmentedEvent<ApiType, [
2586
2586
  utxoId: u64,
2587
2587
  vaultId: u32,
@@ -4183,21 +4183,14 @@ declare module '@polkadot/api-base/types/events' {
4183
4183
  }>;
4184
4184
  };
4185
4185
  treasury: {
4186
- BackfillBondsReservedChanged: AugmentedEvent<ApiType, [
4187
- vaultId: u32,
4188
- backfillBondsReserved: u32
4189
- ], {
4190
- vaultId: u32;
4191
- backfillBondsReserved: u32;
4192
- }>;
4193
- BondLotBackfillChanged: AugmentedEvent<ApiType, [
4186
+ BondLotFlexibilityChanged: AugmentedEvent<ApiType, [
4194
4187
  vaultId: u32,
4195
4188
  bondLotId: u64,
4196
- isBackfill: bool
4189
+ isFlexible: bool
4197
4190
  ], {
4198
4191
  vaultId: u32;
4199
4192
  bondLotId: u64;
4200
- isBackfill: bool;
4193
+ isFlexible: bool;
4201
4194
  }>;
4202
4195
  /**
4203
4196
  * A bond purchase entered its active program set.
@@ -4356,6 +4349,13 @@ declare module '@polkadot/api-base/types/events' {
4356
4349
  totalEligibleBonds: u128;
4357
4350
  participatingVaults: u32;
4358
4351
  }>;
4352
+ ReservedBondSpaceChanged: AugmentedEvent<ApiType, [
4353
+ vaultId: u32,
4354
+ reservedBondSpace: u32
4355
+ ], {
4356
+ vaultId: u32;
4357
+ reservedBondSpace: u32;
4358
+ }>;
4359
4359
  };
4360
4360
  txPause: {
4361
4361
  /**
@@ -4429,13 +4429,6 @@ declare module '@polkadot/api-base/types/events' {
4429
4429
  }>;
4430
4430
  };
4431
4431
  vaults: {
4432
- BackfillSecuritizationReservedChanged: AugmentedEvent<ApiType, [
4433
- vaultId: u32,
4434
- backfillSecuritizationReserved: u128
4435
- ], {
4436
- vaultId: u32;
4437
- backfillSecuritizationReserved: u128;
4438
- }>;
4439
4432
  CommittedArgonotsSet: AugmentedEvent<ApiType, [
4440
4433
  vaultId: u32,
4441
4434
  operatorAccountId: AccountId32,
@@ -4501,6 +4494,13 @@ declare module '@polkadot/api-base/types/events' {
4501
4494
  toBeneficiary: u128;
4502
4495
  burned: u128;
4503
4496
  }>;
4497
+ ReservedSecuritizationSpaceChanged: AugmentedEvent<ApiType, [
4498
+ vaultId: u32,
4499
+ reservedSecuritizationSpace: u128
4500
+ ], {
4501
+ vaultId: u32;
4502
+ reservedSecuritizationSpace: u128;
4503
+ }>;
4504
4504
  TreasuryRecordingError: AugmentedEvent<ApiType, [
4505
4505
  vaultId: u32,
4506
4506
  frameId: u64,
@@ -5803,7 +5803,7 @@ declare module '@polkadot/api-base/types/storage' {
5803
5803
  * The active bond state for a vault.
5804
5804
  *
5805
5805
  * 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
5806
+ * when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
5807
5807
  * aggregate.
5808
5808
  **/
5809
5809
  bondLotsByVault: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletTreasuryVaultBondState>, [
@@ -6227,7 +6227,7 @@ declare module '@polkadot/api-base/types/submittable' {
6227
6227
  Bytes,
6228
6228
  u64
6229
6229
  ]>;
6230
- setAsBackfill: AugmentedSubmittable<(utxoId: u64 | AnyNumber | Uint8Array, isBackfill: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6230
+ setFlexible: AugmentedSubmittable<(utxoId: u64 | AnyNumber | Uint8Array, isFlexible: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6231
6231
  u64,
6232
6232
  bool
6233
6233
  ]>;
@@ -7538,7 +7538,7 @@ declare module '@polkadot/api-base/types/submittable' {
7538
7538
  beneficiary?: any;
7539
7539
  bonusPercent?: any;
7540
7540
  expiresAtFrame?: any;
7541
- backfillBondsToUnreserve?: any;
7541
+ bondSpaceToUnreserve?: any;
7542
7542
  nonce?: any;
7543
7543
  signature?: any;
7544
7544
  } | string) => SubmittableExtrinsic<ApiType>, [
@@ -7554,14 +7554,17 @@ declare module '@polkadot/api-base/types/submittable' {
7554
7554
  liquidateBondLot: AugmentedSubmittable<(bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7555
7555
  u64
7556
7556
  ]>;
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>, [
7557
+ setBondLotFlexible: AugmentedSubmittable<(bondLotId: u64 | AnyNumber | Uint8Array, isFlexible: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7562
7558
  u64,
7563
7559
  bool
7564
7560
  ]>;
7561
+ /**
7562
+ * Reserve vault bond space for future bond purchases.
7563
+ **/
7564
+ setReservedBondSpace: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, reservedBondSpace: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7565
+ u32,
7566
+ u32
7567
+ ]>;
7565
7568
  };
7566
7569
  txPause: {
7567
7570
  /**
@@ -7790,16 +7793,18 @@ declare module '@polkadot/api-base/types/submittable' {
7790
7793
  u32,
7791
7794
  ArgonPrimitivesBitcoinOpaqueBitcoinXpub
7792
7795
  ]>;
7793
- setBackfillSecuritizationReserved: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, backfillSecuritizationReserved: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7794
- u32,
7795
- u128
7796
- ]>;
7797
7796
  setCommittedArgonots: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7798
7797
  Compact<u128>
7799
7798
  ]>;
7800
7799
  setDelegateAccount: AugmentedSubmittable<(delegateAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [
7801
7800
  Option<AccountId32>
7802
7801
  ]>;
7802
+ /**
7803
+ * Reserve vault securitization space for future Bitcoin locks.
7804
+ **/
7805
+ setReservedSecuritizationSpace: AugmentedSubmittable<(reservedSecuritizationSpace: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7806
+ u128
7807
+ ]>;
7803
7808
  };
7804
7809
  }
7805
7810
  }
@@ -10381,10 +10386,10 @@ declare module '@polkadot/types/lookup' {
10381
10386
  readonly asVaultBitcoinXpubChange: {
10382
10387
  readonly vaultId: u32;
10383
10388
  } & Struct;
10384
- readonly isBackfillSecuritizationReservedChanged: boolean;
10385
- readonly asBackfillSecuritizationReservedChanged: {
10389
+ readonly isReservedSecuritizationSpaceChanged: boolean;
10390
+ readonly asReservedSecuritizationSpaceChanged: {
10386
10391
  readonly vaultId: u32;
10387
- readonly backfillSecuritizationReserved: u128;
10392
+ readonly reservedSecuritizationSpace: u128;
10388
10393
  } & Struct;
10389
10394
  readonly isVaultRevenueUncollected: boolean;
10390
10395
  readonly asVaultRevenueUncollected: {
@@ -10447,7 +10452,7 @@ declare module '@polkadot/types/lookup' {
10447
10452
  readonly operatorAccountId: AccountId32;
10448
10453
  readonly amount: u128;
10449
10454
  } & Struct;
10450
- readonly type: 'VaultCreated' | 'VaultModified' | 'VaultTermsChangeScheduled' | 'VaultTermsChanged' | 'VaultClosed' | 'VaultBitcoinXpubChange' | 'BackfillSecuritizationReservedChanged' | 'VaultRevenueUncollected' | 'VaultCollected' | 'FundsLocked' | 'FundLockCanceled' | 'FundsScheduledForRelease' | 'LostBitcoinCompensated' | 'FundsReleased' | 'FundsReleasedError' | 'TreasuryRecordingError' | 'CommittedArgonotsSet';
10455
+ readonly type: 'VaultCreated' | 'VaultModified' | 'VaultTermsChangeScheduled' | 'VaultTermsChanged' | 'VaultClosed' | 'VaultBitcoinXpubChange' | 'ReservedSecuritizationSpaceChanged' | 'VaultRevenueUncollected' | 'VaultCollected' | 'FundsLocked' | 'FundLockCanceled' | 'FundsScheduledForRelease' | 'LostBitcoinCompensated' | 'FundsReleased' | 'FundsReleasedError' | 'TreasuryRecordingError' | 'CommittedArgonotsSet';
10451
10456
  }
10452
10457
  /** @name PalletBitcoinLocksEvent (57) */
10453
10458
  interface PalletBitcoinLocksEvent extends Enum {
@@ -10547,13 +10552,13 @@ declare module '@polkadot/types/lookup' {
10547
10552
  readonly newSatoshis: u64;
10548
10553
  readonly accountId: AccountId32;
10549
10554
  } & Struct;
10550
- readonly isBitcoinLockBackfillChanged: boolean;
10551
- readonly asBitcoinLockBackfillChanged: {
10555
+ readonly isBitcoinLockFlexibleChanged: boolean;
10556
+ readonly asBitcoinLockFlexibleChanged: {
10552
10557
  readonly utxoId: u64;
10553
10558
  readonly vaultId: u32;
10554
- readonly isBackfill: bool;
10559
+ readonly isFlexible: bool;
10555
10560
  } & Struct;
10556
- readonly type: 'BitcoinLockCreated' | 'BitcoinLockRatcheted' | 'BitcoinLockBurned' | 'BitcoinUtxoCosignRequested' | 'BitcoinUtxoCosigned' | 'BitcoinSpentAfterRelease' | 'BitcoinCosignPastDue' | 'CosignOverdueError' | 'LockExpirationError' | 'OrphanedUtxoReceived' | 'OrphanedUtxoReleaseRequested' | 'OrphanedUtxoCosigned' | 'UtxoFundedFromCandidate' | 'SecuritizationIncreased' | 'BitcoinLockBackfillChanged';
10561
+ readonly type: 'BitcoinLockCreated' | 'BitcoinLockRatcheted' | 'BitcoinLockBurned' | 'BitcoinUtxoCosignRequested' | 'BitcoinUtxoCosigned' | 'BitcoinSpentAfterRelease' | 'BitcoinCosignPastDue' | 'CosignOverdueError' | 'LockExpirationError' | 'OrphanedUtxoReceived' | 'OrphanedUtxoReleaseRequested' | 'OrphanedUtxoCosigned' | 'UtxoFundedFromCandidate' | 'SecuritizationIncreased' | 'BitcoinLockFlexibleChanged';
10557
10562
  }
10558
10563
  /** @name PalletNotariesEvent (60) */
10559
10564
  interface PalletNotariesEvent extends Enum {
@@ -11318,16 +11323,16 @@ declare module '@polkadot/types/lookup' {
11318
11323
  readonly accountId: AccountId32;
11319
11324
  readonly bonds: u32;
11320
11325
  } & Struct;
11321
- readonly isBondLotBackfillChanged: boolean;
11322
- readonly asBondLotBackfillChanged: {
11326
+ readonly isBondLotFlexibilityChanged: boolean;
11327
+ readonly asBondLotFlexibilityChanged: {
11323
11328
  readonly vaultId: u32;
11324
11329
  readonly bondLotId: u64;
11325
- readonly isBackfill: bool;
11330
+ readonly isFlexible: bool;
11326
11331
  } & Struct;
11327
- readonly isBackfillBondsReservedChanged: boolean;
11328
- readonly asBackfillBondsReservedChanged: {
11332
+ readonly isReservedBondSpaceChanged: boolean;
11333
+ readonly asReservedBondSpaceChanged: {
11329
11334
  readonly vaultId: u32;
11330
- readonly backfillBondsReserved: u32;
11335
+ readonly reservedBondSpace: u32;
11331
11336
  } & Struct;
11332
11337
  readonly isEncumberedBondMicrogonsBurned: boolean;
11333
11338
  readonly asEncumberedBondMicrogonsBurned: {
@@ -11335,7 +11340,7 @@ declare module '@polkadot/types/lookup' {
11335
11340
  readonly burnedAmount: u128;
11336
11341
  readonly releasedAmount: u128;
11337
11342
  } & Struct;
11338
- readonly type: 'CouldNotDistributeEarningsToBondLot' | 'CouldNotDistributeEarningsToArgonotBondLot' | 'CouldNotTransferToTreasuryReserves' | 'FrameEarningsDistributed' | 'FrameVaultCapitalLocked' | 'CouldNotReleaseBondLot' | 'BondLotPurchased' | 'BondLotReleaseScheduled' | 'BondLotReleased' | 'BondLotBackfillChanged' | 'BackfillBondsReservedChanged' | 'EncumberedBondMicrogonsBurned';
11343
+ readonly type: 'CouldNotDistributeEarningsToBondLot' | 'CouldNotDistributeEarningsToArgonotBondLot' | 'CouldNotTransferToTreasuryReserves' | 'FrameEarningsDistributed' | 'FrameVaultCapitalLocked' | 'CouldNotReleaseBondLot' | 'BondLotPurchased' | 'BondLotReleaseScheduled' | 'BondLotReleased' | 'BondLotFlexibilityChanged' | 'ReservedBondSpaceChanged' | 'EncumberedBondMicrogonsBurned';
11339
11344
  }
11340
11345
  /** @name PalletTreasuryBondProgramId (120) */
11341
11346
  interface PalletTreasuryBondProgramId extends Enum {
@@ -12089,12 +12094,11 @@ declare module '@polkadot/types/lookup' {
12089
12094
  readonly asSetCommittedArgonots: {
12090
12095
  readonly amount: Compact<u128>;
12091
12096
  } & Struct;
12092
- readonly isSetBackfillSecuritizationReserved: boolean;
12093
- readonly asSetBackfillSecuritizationReserved: {
12094
- readonly vaultId: u32;
12095
- readonly backfillSecuritizationReserved: u128;
12097
+ readonly isSetReservedSecuritizationSpace: boolean;
12098
+ readonly asSetReservedSecuritizationSpace: {
12099
+ readonly reservedSecuritizationSpace: u128;
12096
12100
  } & Struct;
12097
- readonly type: 'Create' | 'ModifyFunding' | 'ModifyTerms' | 'Close' | 'ReplaceBitcoinXpub' | 'Collect' | 'SetDelegateAccount' | 'SetCommittedArgonots' | 'SetBackfillSecuritizationReserved';
12101
+ readonly type: 'Create' | 'ModifyFunding' | 'ModifyTerms' | 'Close' | 'ReplaceBitcoinXpub' | 'Collect' | 'SetDelegateAccount' | 'SetCommittedArgonots' | 'SetReservedSecuritizationSpace';
12098
12102
  }
12099
12103
  /** @name PalletVaultsVaultConfig (209) */
12100
12104
  interface PalletVaultsVaultConfig extends Struct {
@@ -12159,12 +12163,12 @@ declare module '@polkadot/types/lookup' {
12159
12163
  readonly utxoId: u64;
12160
12164
  readonly newSatoshis: Compact<u64>;
12161
12165
  } & Struct;
12162
- readonly isSetAsBackfill: boolean;
12163
- readonly asSetAsBackfill: {
12166
+ readonly isSetFlexible: boolean;
12167
+ readonly asSetFlexible: {
12164
12168
  readonly utxoId: u64;
12165
- readonly isBackfill: bool;
12169
+ readonly isFlexible: bool;
12166
12170
  } & Struct;
12167
- readonly type: 'Initialize' | 'RequestRelease' | 'CosignRelease' | 'Ratchet' | 'AdminModifyMinimumLockedSats' | 'RequestOrphanedUtxoRelease' | 'CosignOrphanedUtxoRelease' | 'IncreaseSecuritization' | 'SetAsBackfill';
12171
+ readonly type: 'Initialize' | 'RequestRelease' | 'CosignRelease' | 'Ratchet' | 'AdminModifyMinimumLockedSats' | 'RequestOrphanedUtxoRelease' | 'CosignOrphanedUtxoRelease' | 'IncreaseSecuritization' | 'SetFlexible';
12168
12172
  }
12169
12173
  /** @name ArgonPrimitivesBitcoinCompressedBitcoinPubkey (217) */
12170
12174
  interface ArgonPrimitivesBitcoinCompressedBitcoinPubkey extends U8aFixed {
@@ -12188,7 +12192,7 @@ declare module '@polkadot/types/lookup' {
12188
12192
  readonly genesisHash: H256;
12189
12193
  readonly beneficiary: AccountId32;
12190
12194
  readonly feeDiscount: Compact<u128>;
12191
- readonly backfillSecuritizationToUnreserve: Compact<u128>;
12195
+ readonly securitizationSpaceToUnreserve: Compact<u128>;
12192
12196
  readonly expiresAtFrame: Compact<u64>;
12193
12197
  readonly nonce: Compact<u64>;
12194
12198
  readonly signature: SpRuntimeMultiSignature;
@@ -12591,17 +12595,17 @@ declare module '@polkadot/types/lookup' {
12591
12595
  readonly asBuyArgonotBonds: {
12592
12596
  readonly bonds: u32;
12593
12597
  } & Struct;
12594
- readonly isSetBondLotAsBackfill: boolean;
12595
- readonly asSetBondLotAsBackfill: {
12598
+ readonly isSetBondLotFlexible: boolean;
12599
+ readonly asSetBondLotFlexible: {
12596
12600
  readonly bondLotId: u64;
12597
- readonly isBackfill: bool;
12601
+ readonly isFlexible: bool;
12598
12602
  } & Struct;
12599
- readonly isSetBackfillBondsReserved: boolean;
12600
- readonly asSetBackfillBondsReserved: {
12603
+ readonly isSetReservedBondSpace: boolean;
12604
+ readonly asSetReservedBondSpace: {
12601
12605
  readonly vaultId: u32;
12602
- readonly backfillBondsReserved: u32;
12606
+ readonly reservedBondSpace: u32;
12603
12607
  } & Struct;
12604
- readonly type: 'BuyBonds' | 'LiquidateBondLot' | 'BuyArgonotBonds' | 'SetBondLotAsBackfill' | 'SetBackfillBondsReserved';
12608
+ readonly type: 'BuyBonds' | 'LiquidateBondLot' | 'BuyArgonotBonds' | 'SetBondLotFlexible' | 'SetReservedBondSpace';
12605
12609
  }
12606
12610
  /** @name ArgonPrimitivesVaultTreasuryBonusApprovalProof (278) */
12607
12611
  interface ArgonPrimitivesVaultTreasuryBonusApprovalProof extends Struct {
@@ -12609,7 +12613,7 @@ declare module '@polkadot/types/lookup' {
12609
12613
  readonly beneficiary: AccountId32;
12610
12614
  readonly bonusPercent: Compact<Permill>;
12611
12615
  readonly expiresAtFrame: Compact<u64>;
12612
- readonly backfillBondsToUnreserve: Compact<u32>;
12616
+ readonly bondSpaceToUnreserve: Compact<u32>;
12613
12617
  readonly nonce: Compact<u64>;
12614
12618
  readonly signature: SpRuntimeMultiSignature;
12615
12619
  }
@@ -13103,12 +13107,12 @@ declare module '@polkadot/types/lookup' {
13103
13107
  readonly securitization: Compact<u128>;
13104
13108
  readonly securitizationTarget: Compact<u128>;
13105
13109
  readonly securitizationLocked: Compact<u128>;
13106
- readonly backfillSecuritizationLocked: Compact<u128>;
13107
- readonly backfillSecuritizationReserved: Compact<u128>;
13110
+ readonly flexibleSecuritizationLocked: Compact<u128>;
13111
+ readonly reservedSecuritizationSpace: Compact<u128>;
13108
13112
  readonly securitizationPendingActivation: Compact<u128>;
13109
13113
  readonly lockedSatoshis: Compact<u64>;
13110
13114
  readonly securitizedSatoshis: Compact<u64>;
13111
- readonly backfillSecuritizedSatoshis: Compact<u64>;
13115
+ readonly flexibleSecuritizedSatoshis: Compact<u64>;
13112
13116
  readonly securitizationReleaseSchedule: BTreeMap<u64, u128>;
13113
13117
  readonly securitizationRatio: Compact<u128>;
13114
13118
  readonly isClosed: bool;
@@ -13212,7 +13216,7 @@ declare module '@polkadot/types/lookup' {
13212
13216
  readonly createdAtHeight: Compact<u64>;
13213
13217
  readonly utxoScriptPubkey: ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey;
13214
13218
  readonly isFunded: bool;
13215
- readonly isBackfill: bool;
13219
+ readonly isFlexible: bool;
13216
13220
  readonly fundHoldExtensions: BTreeMap<u64, u128>;
13217
13221
  readonly createdAtArgonBlock: Compact<u32>;
13218
13222
  }
@@ -13598,9 +13602,9 @@ declare module '@polkadot/types/lookup' {
13598
13602
  }
13599
13603
  /** @name PalletTreasuryVaultCapital (528) */
13600
13604
  interface PalletTreasuryVaultCapital extends Struct {
13601
- readonly bondLotAllocations: Vec<PalletTreasuryBondLotAllocation>;
13602
- readonly backfillBondsEligible: Compact<u32>;
13603
- readonly backfillProrata: u128;
13605
+ readonly regularBondAllocations: Vec<PalletTreasuryBondLotAllocation>;
13606
+ readonly flexibleBondsEligible: Compact<u32>;
13607
+ readonly flexibleProrata: u128;
13604
13608
  readonly eligibleBonds: Compact<u32>;
13605
13609
  }
13606
13610
  /** @name PalletTreasuryBondLotAllocation (530) */
@@ -13624,7 +13628,7 @@ declare module '@polkadot/types/lookup' {
13624
13628
  readonly owner: AccountId32;
13625
13629
  readonly program: PalletTreasuryBondProgram;
13626
13630
  readonly bonds: Compact<u32>;
13627
- readonly isBackfill: bool;
13631
+ readonly isFlexible: bool;
13628
13632
  readonly createdFrameId: Compact<u64>;
13629
13633
  readonly participatedFrames: Compact<u32>;
13630
13634
  readonly lastFrameEarningsFrameId: Option<u64>;
@@ -13646,9 +13650,9 @@ declare module '@polkadot/types/lookup' {
13646
13650
  }
13647
13651
  /** @name PalletTreasuryVaultBondState (543) */
13648
13652
  interface PalletTreasuryVaultBondState extends Struct {
13649
- readonly bondLots: Vec<PalletTreasuryBondLotSummary>;
13650
- readonly backfillBonds: Compact<u32>;
13651
- readonly backfillBondsReserved: Compact<u32>;
13653
+ readonly regularBondLots: Vec<PalletTreasuryBondLotSummary>;
13654
+ readonly flexibleBonds: Compact<u32>;
13655
+ readonly reservedBondSpace: Compact<u32>;
13652
13656
  }
13653
13657
  /** @name PalletTreasuryError (545) */
13654
13658
  interface PalletTreasuryError extends Enum {
@@ -13661,7 +13665,7 @@ declare module '@polkadot/types/lookup' {
13661
13665
  readonly isBondLotNotFound: boolean;
13662
13666
  readonly isNotBondLotOwner: boolean;
13663
13667
  readonly isBondLotAlreadyReleasing: boolean;
13664
- readonly isBondPurchaseAboveSecurity: boolean;
13668
+ readonly isInsufficientBondSpace: boolean;
13665
13669
  readonly isActiveBondAmountBelowEncumberedBacking: boolean;
13666
13670
  readonly isBonusApprovalWrongVault: boolean;
13667
13671
  readonly isBonusApprovalWrongAccount: boolean;
@@ -13671,9 +13675,9 @@ declare module '@polkadot/types/lookup' {
13671
13675
  readonly isBonusApprovalExceedsProfitSharing: boolean;
13672
13676
  readonly isArgonotBondPurchaseBelowCutoff: boolean;
13673
13677
  readonly isArgonotBondPurchaseAboveCap: boolean;
13674
- readonly isBondLotNotEligibleForBackfill: boolean;
13678
+ readonly isBondLotCannotBeFlexible: boolean;
13675
13679
  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';
13680
+ readonly type: 'BondPurchaseRejected' | 'VaultNotAcceptingBondPurchases' | 'BondPurchaseBelowMinimum' | 'InternalError' | 'MaxAcceptedBondLotsExceeded' | 'MaxPendingBondReleasesExceeded' | 'BondLotNotFound' | 'NotBondLotOwner' | 'BondLotAlreadyReleasing' | 'InsufficientBondSpace' | 'ActiveBondAmountBelowEncumberedBacking' | 'BonusApprovalWrongVault' | 'BonusApprovalWrongAccount' | 'BonusApprovalExpired' | 'BonusApprovalAlreadyUsed' | 'InvalidBonusApprovalSignature' | 'BonusApprovalExceedsProfitSharing' | 'ArgonotBondPurchaseBelowCutoff' | 'ArgonotBondPurchaseAboveCap' | 'BondLotCannotBeFlexible' | 'NoPermissions';
13677
13681
  }
13678
13682
  /** @name PalletFeeControlError (546) */
13679
13683
  interface PalletFeeControlError extends Enum {
@@ -14226,6 +14230,16 @@ interface ArgonPrimitivesVaultV144 extends Struct {
14226
14230
  readonly pendingTerms: Option<ITuple<[u64, ArgonPrimitivesVaultVaultTerms]>>;
14227
14231
  readonly openedTick: Compact<u64>;
14228
14232
  }
14233
+ type PreviousArgonPrimitivesVault = Omit<ArgonPrimitivesVault, 'flexibleSecuritizationLocked' | 'reservedSecuritizationSpace' | 'flexibleSecuritizedSatoshis'> & {
14234
+ readonly backfillSecuritizationLocked: ArgonPrimitivesVault['flexibleSecuritizationLocked'];
14235
+ readonly backfillSecuritizationReserved: ArgonPrimitivesVault['reservedSecuritizationSpace'];
14236
+ readonly backfillSecuritizedSatoshis: ArgonPrimitivesVault['flexibleSecuritizedSatoshis'];
14237
+ };
14238
+ type PreviousPalletTreasuryVaultBondState = Omit<PalletTreasuryVaultBondState, 'regularBondLots' | 'flexibleBonds' | 'reservedBondSpace'> & {
14239
+ readonly bondLots: PalletTreasuryVaultBondState['regularBondLots'];
14240
+ readonly backfillBonds: PalletTreasuryVaultBondState['flexibleBonds'];
14241
+ readonly backfillBondsReserved: PalletTreasuryVaultBondState['reservedBondSpace'];
14242
+ };
14229
14243
  declare class Vault {
14230
14244
  tickDuration: number;
14231
14245
  securitization: bigint;
@@ -14246,19 +14260,19 @@ declare class Vault {
14246
14260
  securitizationRatio: number;
14247
14261
  lockedSatoshis: number;
14248
14262
  securitizedSatoshis: number;
14249
- backfillSecuritizationLocked: bigint;
14250
- backfillSecuritizationReserved: bigint;
14251
- backfillSecuritizedSatoshis: number;
14263
+ flexibleSecuritizationLocked: bigint;
14264
+ reservedSecuritizationSpace: bigint;
14265
+ flexibleSecuritizedSatoshis: number;
14252
14266
  name?: string;
14253
14267
  lastNameChangeTick?: number;
14254
14268
  delegateAccountId?: string;
14255
14269
  constructor(id: number, vault: ArgonPrimitivesVault, tickDuration: number);
14256
- load(vault: ArgonPrimitivesVault | ArgonPrimitivesVaultV144): void;
14270
+ load(vault: ArgonPrimitivesVault | PreviousArgonPrimitivesVault | ArgonPrimitivesVaultV144): void;
14257
14271
  availableBitcoinSpace(lockOwner?: string): bigint;
14258
- availableSecuritization(lockOwner?: string): bigint;
14272
+ availableSecuritizationSpace(lockOwner?: string): bigint;
14259
14273
  availableBondSpace(priceIndex: PriceIndex, bondState?: Iterable<{
14260
14274
  activeBonds: number;
14261
- }> | PalletTreasuryVaultBondState, bondFullCapacityPerFrame?: boolean): bigint;
14275
+ }> | PalletTreasuryVaultBondState | PreviousPalletTreasuryVaultBondState, bondFullCapacityPerFrame?: boolean): bigint;
14262
14276
  getRelockCapacity(): bigint;
14263
14277
  securitizationRatioBN(): BigNumber;
14264
14278
  activatedSecuritization(): bigint;
@@ -14319,7 +14333,7 @@ type BitcoinLockFeeCoupon = {
14319
14333
  genesisHash: string;
14320
14334
  beneficiary: string;
14321
14335
  feeDiscount: bigint;
14322
- backfillSecuritizationToUnreserve: bigint;
14336
+ securitizationSpaceToUnreserve: bigint;
14323
14337
  expiresAtFrame: bigint;
14324
14338
  nonce: bigint;
14325
14339
  signature: AnyJson;
@@ -14347,7 +14361,7 @@ declare class BitcoinLock implements IBitcoinLock {
14347
14361
  openClaimHeight: number;
14348
14362
  createdAtHeight: number;
14349
14363
  isFunded: boolean;
14350
- isBackfill: boolean;
14364
+ isFlexible: boolean;
14351
14365
  createdAtArgonBlock: number;
14352
14366
  fundHoldExtensionsByBitcoinExpirationHeight: Record<number, bigint>;
14353
14367
  couponFeesPaid: bigint;
@@ -14455,7 +14469,7 @@ declare class BitcoinLock implements IBitcoinLock {
14455
14469
  tip?: bigint;
14456
14470
  feeCoupon?: BitcoinLockFeeCoupon;
14457
14471
  initializeForAccountId?: string;
14458
- backfillSecuritizationToUnreserve?: bigint;
14472
+ securitizationSpaceToUnreserve?: bigint;
14459
14473
  }): Promise<{
14460
14474
  tx: SubmittableExtrinsic$1;
14461
14475
  securityFee: bigint;
@@ -14528,7 +14542,7 @@ interface IBitcoinLock {
14528
14542
  openClaimHeight: number;
14529
14543
  createdAtHeight: number;
14530
14544
  isFunded: boolean;
14531
- isBackfill: boolean;
14545
+ isFlexible: boolean;
14532
14546
  createdAtArgonBlock: number;
14533
14547
  fundHoldExtensionsByBitcoinExpirationHeight: Record<number, bigint>;
14534
14548
  }