@argonprotocol/mainchain 1.4.11-dev.645b1642 → 1.4.11-dev.7b637899

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.
@@ -2044,9 +2044,13 @@ declare module '@polkadot/api-base/types/errors' {
2044
2044
  **/
2045
2045
  BondPurchaseRejected: AugmentedError<ApiType>;
2046
2046
  /**
2047
- * The beneficiary already has a bond lot for this vault.
2047
+ * The bonus approval nonce has already been consumed or superseded.
2048
2048
  **/
2049
- BonusApprovalExistingBondLot: AugmentedError<ApiType>;
2049
+ BonusApprovalAlreadyUsed: AugmentedError<ApiType>;
2050
+ /**
2051
+ * The approved bonus plus the vault's profit sharing exceeds 100%.
2052
+ **/
2053
+ BonusApprovalExceedsProfitSharing: AugmentedError<ApiType>;
2050
2054
  /**
2051
2055
  * The bonus approval already expired.
2052
2056
  **/
@@ -2147,10 +2151,6 @@ declare module '@polkadot/api-base/types/errors' {
2147
2151
  * The bitcoin script to lock this bitcoin has errors
2148
2152
  **/
2149
2153
  InvalidBitcoinScript: AugmentedError<ApiType>;
2150
- /**
2151
- * Treasury bond sharing plus bonus cannot exceed 100%.
2152
- **/
2153
- InvalidBondSharingTerms: AugmentedError<ApiType>;
2154
2154
  /**
2155
2155
  * An invalid securitization percent was provided for the vault. NOTE: it cannot be
2156
2156
  * decreased (or negative)
@@ -5834,6 +5834,10 @@ declare module '@polkadot/api-base/types/storage' {
5834
5834
  encumberedBondMicrogonsByAccount: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u128>, [
5835
5835
  AccountId32
5836
5836
  ]>;
5837
+ lastBonusApprovalNonceByVaultAndAccount: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u64>>, [
5838
+ u32,
5839
+ AccountId32
5840
+ ]>;
5837
5841
  /**
5838
5842
  * The next bond lot id.
5839
5843
  **/
@@ -7532,8 +7536,10 @@ declare module '@polkadot/api-base/types/submittable' {
7532
7536
  buyBonds: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, bonds: u32 | AnyNumber | Uint8Array, bonusApproval: Option<ArgonPrimitivesVaultTreasuryBonusApprovalProof> | null | Uint8Array | ArgonPrimitivesVaultTreasuryBonusApprovalProof | {
7533
7537
  vaultId?: any;
7534
7538
  beneficiary?: any;
7539
+ bonusPercent?: any;
7535
7540
  expiresAtFrame?: any;
7536
7541
  backfillBondsToUnreserve?: any;
7542
+ nonce?: any;
7537
7543
  signature?: any;
7538
7544
  } | string) => SubmittableExtrinsic<ApiType>, [
7539
7545
  u32,
@@ -7771,7 +7777,6 @@ declare module '@polkadot/api-base/types/submittable' {
7771
7777
  bitcoinAnnualPercentRate?: any;
7772
7778
  bitcoinBaseFee?: any;
7773
7779
  treasuryProfitSharing?: any;
7774
- treasuryBonusProfitSharing?: any;
7775
7780
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7776
7781
  u32,
7777
7782
  ArgonPrimitivesVaultVaultTerms
@@ -12104,7 +12109,6 @@ declare module '@polkadot/types/lookup' {
12104
12109
  readonly bitcoinAnnualPercentRate: Compact<u128>;
12105
12110
  readonly bitcoinBaseFee: Compact<u128>;
12106
12111
  readonly treasuryProfitSharing: Compact<Permill>;
12107
- readonly treasuryBonusProfitSharing: Compact<Permill>;
12108
12112
  }
12109
12113
  /** @name ArgonPrimitivesBitcoinOpaqueBitcoinXpub (214) */
12110
12114
  interface ArgonPrimitivesBitcoinOpaqueBitcoinXpub extends U8aFixed {
@@ -12603,8 +12607,10 @@ declare module '@polkadot/types/lookup' {
12603
12607
  interface ArgonPrimitivesVaultTreasuryBonusApprovalProof extends Struct {
12604
12608
  readonly vaultId: Compact<u32>;
12605
12609
  readonly beneficiary: AccountId32;
12610
+ readonly bonusPercent: Compact<Permill>;
12606
12611
  readonly expiresAtFrame: Compact<u64>;
12607
12612
  readonly backfillBondsToUnreserve: Compact<u32>;
12613
+ readonly nonce: Compact<u64>;
12608
12614
  readonly signature: SpRuntimeMultiSignature;
12609
12615
  }
12610
12616
  /** @name PalletOperationalAccountsCall (279) */
@@ -13178,14 +13184,13 @@ declare module '@polkadot/types/lookup' {
13178
13184
  readonly isInternalError: boolean;
13179
13185
  readonly isUnableToGenerateVaultBitcoinPubkey: boolean;
13180
13186
  readonly isFundingChangeAlreadyScheduled: boolean;
13181
- readonly isInvalidBondSharingTerms: boolean;
13182
13187
  readonly isPendingCosignsBeforeCollect: boolean;
13183
13188
  readonly isPendingOrphanedUtxoCosignsBeforeCollect: boolean;
13184
13189
  readonly isOverdueCollectBlockersBeforeCollect: boolean;
13185
13190
  readonly isAccountAlreadyHasVault: boolean;
13186
13191
  readonly isOperationalAccountRegistrationRequired: boolean;
13187
13192
  readonly isCommittedArgonotsBelowEncumberedBacking: boolean;
13188
- readonly type: 'NoMoreVaultIds' | 'InsufficientFunds' | 'InsufficientVaultFunds' | 'AccountBelowMinimumBalance' | 'VaultClosed' | 'InvalidVaultAmount' | 'VaultReductionBelowSecuritization' | 'InvalidSecuritization' | 'ReusedVaultBitcoinXpub' | 'InvalidBitcoinScript' | 'InvalidXpubkey' | 'WrongXpubNetwork' | 'UnsafeXpubkey' | 'UnableToDeriveVaultXpubChild' | 'BitcoinConversionFailed' | 'NoPermissions' | 'HoldUnexpectedlyModified' | 'UnrecoverableHold' | 'VaultNotFound' | 'VaultNotYetActive' | 'NoVaultBitcoinPubkeysAvailable' | 'TermsModificationOverflow' | 'TermsChangeAlreadyScheduled' | 'InternalError' | 'UnableToGenerateVaultBitcoinPubkey' | 'FundingChangeAlreadyScheduled' | 'InvalidBondSharingTerms' | 'PendingCosignsBeforeCollect' | 'PendingOrphanedUtxoCosignsBeforeCollect' | 'OverdueCollectBlockersBeforeCollect' | 'AccountAlreadyHasVault' | 'OperationalAccountRegistrationRequired' | 'CommittedArgonotsBelowEncumberedBacking';
13193
+ readonly type: 'NoMoreVaultIds' | 'InsufficientFunds' | 'InsufficientVaultFunds' | 'AccountBelowMinimumBalance' | 'VaultClosed' | 'InvalidVaultAmount' | 'VaultReductionBelowSecuritization' | 'InvalidSecuritization' | 'ReusedVaultBitcoinXpub' | 'InvalidBitcoinScript' | 'InvalidXpubkey' | 'WrongXpubNetwork' | 'UnsafeXpubkey' | 'UnableToDeriveVaultXpubChild' | 'BitcoinConversionFailed' | 'NoPermissions' | 'HoldUnexpectedlyModified' | 'UnrecoverableHold' | 'VaultNotFound' | 'VaultNotYetActive' | 'NoVaultBitcoinPubkeysAvailable' | 'TermsModificationOverflow' | 'TermsChangeAlreadyScheduled' | 'InternalError' | 'UnableToGenerateVaultBitcoinPubkey' | 'FundingChangeAlreadyScheduled' | 'PendingCosignsBeforeCollect' | 'PendingOrphanedUtxoCosignsBeforeCollect' | 'OverdueCollectBlockersBeforeCollect' | 'AccountAlreadyHasVault' | 'OperationalAccountRegistrationRequired' | 'CommittedArgonotsBelowEncumberedBacking';
13189
13194
  }
13190
13195
  /** @name PalletBitcoinLocksLockedBitcoin (421) */
13191
13196
  interface PalletBitcoinLocksLockedBitcoin extends Struct {
@@ -13661,13 +13666,14 @@ declare module '@polkadot/types/lookup' {
13661
13666
  readonly isBonusApprovalWrongVault: boolean;
13662
13667
  readonly isBonusApprovalWrongAccount: boolean;
13663
13668
  readonly isBonusApprovalExpired: boolean;
13664
- readonly isBonusApprovalExistingBondLot: boolean;
13669
+ readonly isBonusApprovalAlreadyUsed: boolean;
13665
13670
  readonly isInvalidBonusApprovalSignature: boolean;
13671
+ readonly isBonusApprovalExceedsProfitSharing: boolean;
13666
13672
  readonly isArgonotBondPurchaseBelowCutoff: boolean;
13667
13673
  readonly isArgonotBondPurchaseAboveCap: boolean;
13668
13674
  readonly isBondLotNotEligibleForBackfill: boolean;
13669
13675
  readonly isNoPermissions: boolean;
13670
- readonly type: 'BondPurchaseRejected' | 'VaultNotAcceptingBondPurchases' | 'BondPurchaseBelowMinimum' | 'InternalError' | 'MaxAcceptedBondLotsExceeded' | 'MaxPendingBondReleasesExceeded' | 'BondLotNotFound' | 'NotBondLotOwner' | 'BondLotAlreadyReleasing' | 'BondPurchaseAboveSecurity' | 'ActiveBondAmountBelowEncumberedBacking' | 'BonusApprovalWrongVault' | 'BonusApprovalWrongAccount' | 'BonusApprovalExpired' | 'BonusApprovalExistingBondLot' | 'InvalidBonusApprovalSignature' | 'ArgonotBondPurchaseBelowCutoff' | 'ArgonotBondPurchaseAboveCap' | 'BondLotNotEligibleForBackfill' | 'NoPermissions';
13676
+ readonly type: 'BondPurchaseRejected' | 'VaultNotAcceptingBondPurchases' | 'BondPurchaseBelowMinimum' | 'InternalError' | 'MaxAcceptedBondLotsExceeded' | 'MaxPendingBondReleasesExceeded' | 'BondLotNotFound' | 'NotBondLotOwner' | 'BondLotAlreadyReleasing' | 'BondPurchaseAboveSecurity' | 'ActiveBondAmountBelowEncumberedBacking' | 'BonusApprovalWrongVault' | 'BonusApprovalWrongAccount' | 'BonusApprovalExpired' | 'BonusApprovalAlreadyUsed' | 'InvalidBonusApprovalSignature' | 'BonusApprovalExceedsProfitSharing' | 'ArgonotBondPurchaseBelowCutoff' | 'ArgonotBondPurchaseAboveCap' | 'BondLotNotEligibleForBackfill' | 'NoPermissions';
13671
13677
  }
13672
13678
  /** @name PalletFeeControlError (546) */
13673
13679
  interface PalletFeeControlError extends Enum {
@@ -14271,7 +14277,6 @@ declare class Vault {
14271
14277
  bitcoinXpub: string;
14272
14278
  delegateAccountId?: string;
14273
14279
  treasuryProfitSharing: number;
14274
- treasuryBonusProfitSharing: number;
14275
14280
  doNotExceedBalance?: bigint;
14276
14281
  } & ISubmittableOptions, config?: {
14277
14282
  tickDurationMillis?: number;
@@ -14287,7 +14292,6 @@ interface ITerms {
14287
14292
  readonly bitcoinAnnualPercentRate: BigNumber;
14288
14293
  readonly bitcoinBaseFee: bigint;
14289
14294
  readonly treasuryProfitSharing: BigNumber;
14290
- readonly treasuryBonusProfitSharing: BigNumber;
14291
14295
  }
14292
14296
 
14293
14297
  declare function toFixedNumber(value: string | number | BigNumber, // accept string to avoid early precision loss