@argonprotocol/mainchain 1.4.10-dev.f355ccc1 → 1.4.11-dev.455b3ae5
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.
- package/browser/index.d.ts +22 -16
- package/browser/index.js +2 -15
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +28 -41
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +22 -16
- package/lib/index.d.ts +22 -16
- package/lib/index.js +2 -15
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +2 -1
- package/src/interfaces/augment-api-errors.ts +6 -6
- package/src/interfaces/augment-api-query.ts +10 -1
- package/src/interfaces/augment-api-tx.ts +3 -6
- package/src/interfaces/lookup.ts +4 -3
- package/src/interfaces/types-lookup.ts +6 -5
package/browser/index.d.ts
CHANGED
|
@@ -185,7 +185,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
185
185
|
**/
|
|
186
186
|
maximumSatoshiThresholdFromExpected: u64 & AugmentedConst<ApiType>;
|
|
187
187
|
/**
|
|
188
|
-
* Maximum bitcoin blocks to
|
|
188
|
+
* Maximum bitcoin blocks to accept a UTXO for confirmation. Expired locks remain watched
|
|
189
|
+
* for this many additional blocks so late funding can be detected as orphaned.
|
|
189
190
|
**/
|
|
190
191
|
maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
|
|
191
192
|
/**
|
|
@@ -2043,9 +2044,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2043
2044
|
**/
|
|
2044
2045
|
BondPurchaseRejected: AugmentedError<ApiType>;
|
|
2045
2046
|
/**
|
|
2046
|
-
* The
|
|
2047
|
+
* The bonus approval nonce has already been consumed or superseded.
|
|
2047
2048
|
**/
|
|
2048
|
-
|
|
2049
|
+
BonusApprovalAlreadyUsed: AugmentedError<ApiType>;
|
|
2050
|
+
/**
|
|
2051
|
+
* The approved bonus plus the vault's profit sharing exceeds 100%.
|
|
2052
|
+
**/
|
|
2053
|
+
BonusApprovalExceedsProfitSharing: AugmentedError<ApiType>;
|
|
2049
2054
|
/**
|
|
2050
2055
|
* The bonus approval already expired.
|
|
2051
2056
|
**/
|
|
@@ -2146,10 +2151,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2146
2151
|
* The bitcoin script to lock this bitcoin has errors
|
|
2147
2152
|
**/
|
|
2148
2153
|
InvalidBitcoinScript: AugmentedError<ApiType>;
|
|
2149
|
-
/**
|
|
2150
|
-
* Treasury bond sharing plus bonus cannot exceed 100%.
|
|
2151
|
-
**/
|
|
2152
|
-
InvalidBondSharingTerms: AugmentedError<ApiType>;
|
|
2153
2154
|
/**
|
|
2154
2155
|
* An invalid securitization percent was provided for the vault. NOTE: it cannot be
|
|
2155
2156
|
* decreased (or negative)
|
|
@@ -4754,7 +4755,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
4754
4755
|
confirmedBitcoinBlockTip: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>, [
|
|
4755
4756
|
]>;
|
|
4756
4757
|
/**
|
|
4757
|
-
* Pending funding entries that have expired
|
|
4758
|
+
* Pending funding entries that have expired. These remain watched until their additional
|
|
4759
|
+
* orphan-detection window ends, then await bounded cleanup.
|
|
4758
4760
|
**/
|
|
4759
4761
|
expiredPendingFunding: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>, [
|
|
4760
4762
|
]>;
|
|
@@ -5832,6 +5834,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
5832
5834
|
encumberedBondMicrogonsByAccount: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u128>, [
|
|
5833
5835
|
AccountId32
|
|
5834
5836
|
]>;
|
|
5837
|
+
lastBonusApprovalNonceByVaultAndAccount: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u64>>, [
|
|
5838
|
+
u32,
|
|
5839
|
+
AccountId32
|
|
5840
|
+
]>;
|
|
5835
5841
|
/**
|
|
5836
5842
|
* The next bond lot id.
|
|
5837
5843
|
**/
|
|
@@ -7530,8 +7536,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7530
7536
|
buyBonds: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, bonds: u32 | AnyNumber | Uint8Array, bonusApproval: Option<ArgonPrimitivesVaultTreasuryBonusApprovalProof> | null | Uint8Array | ArgonPrimitivesVaultTreasuryBonusApprovalProof | {
|
|
7531
7537
|
vaultId?: any;
|
|
7532
7538
|
beneficiary?: any;
|
|
7539
|
+
bonusPercent?: any;
|
|
7533
7540
|
expiresAtFrame?: any;
|
|
7534
7541
|
backfillBondsToUnreserve?: any;
|
|
7542
|
+
nonce?: any;
|
|
7535
7543
|
signature?: any;
|
|
7536
7544
|
} | string) => SubmittableExtrinsic<ApiType>, [
|
|
7537
7545
|
u32,
|
|
@@ -7769,7 +7777,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7769
7777
|
bitcoinAnnualPercentRate?: any;
|
|
7770
7778
|
bitcoinBaseFee?: any;
|
|
7771
7779
|
treasuryProfitSharing?: any;
|
|
7772
|
-
treasuryBonusProfitSharing?: any;
|
|
7773
7780
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7774
7781
|
u32,
|
|
7775
7782
|
ArgonPrimitivesVaultVaultTerms
|
|
@@ -12102,7 +12109,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
12102
12109
|
readonly bitcoinAnnualPercentRate: Compact<u128>;
|
|
12103
12110
|
readonly bitcoinBaseFee: Compact<u128>;
|
|
12104
12111
|
readonly treasuryProfitSharing: Compact<Permill>;
|
|
12105
|
-
readonly treasuryBonusProfitSharing: Compact<Permill>;
|
|
12106
12112
|
}
|
|
12107
12113
|
/** @name ArgonPrimitivesBitcoinOpaqueBitcoinXpub (214) */
|
|
12108
12114
|
interface ArgonPrimitivesBitcoinOpaqueBitcoinXpub extends U8aFixed {
|
|
@@ -12601,8 +12607,10 @@ declare module '@polkadot/types/lookup' {
|
|
|
12601
12607
|
interface ArgonPrimitivesVaultTreasuryBonusApprovalProof extends Struct {
|
|
12602
12608
|
readonly vaultId: Compact<u32>;
|
|
12603
12609
|
readonly beneficiary: AccountId32;
|
|
12610
|
+
readonly bonusPercent: Compact<Permill>;
|
|
12604
12611
|
readonly expiresAtFrame: Compact<u64>;
|
|
12605
12612
|
readonly backfillBondsToUnreserve: Compact<u32>;
|
|
12613
|
+
readonly nonce: Compact<u64>;
|
|
12606
12614
|
readonly signature: SpRuntimeMultiSignature;
|
|
12607
12615
|
}
|
|
12608
12616
|
/** @name PalletOperationalAccountsCall (279) */
|
|
@@ -13176,14 +13184,13 @@ declare module '@polkadot/types/lookup' {
|
|
|
13176
13184
|
readonly isInternalError: boolean;
|
|
13177
13185
|
readonly isUnableToGenerateVaultBitcoinPubkey: boolean;
|
|
13178
13186
|
readonly isFundingChangeAlreadyScheduled: boolean;
|
|
13179
|
-
readonly isInvalidBondSharingTerms: boolean;
|
|
13180
13187
|
readonly isPendingCosignsBeforeCollect: boolean;
|
|
13181
13188
|
readonly isPendingOrphanedUtxoCosignsBeforeCollect: boolean;
|
|
13182
13189
|
readonly isOverdueCollectBlockersBeforeCollect: boolean;
|
|
13183
13190
|
readonly isAccountAlreadyHasVault: boolean;
|
|
13184
13191
|
readonly isOperationalAccountRegistrationRequired: boolean;
|
|
13185
13192
|
readonly isCommittedArgonotsBelowEncumberedBacking: boolean;
|
|
13186
|
-
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' | '
|
|
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';
|
|
13187
13194
|
}
|
|
13188
13195
|
/** @name PalletBitcoinLocksLockedBitcoin (421) */
|
|
13189
13196
|
interface PalletBitcoinLocksLockedBitcoin extends Struct {
|
|
@@ -13659,13 +13666,14 @@ declare module '@polkadot/types/lookup' {
|
|
|
13659
13666
|
readonly isBonusApprovalWrongVault: boolean;
|
|
13660
13667
|
readonly isBonusApprovalWrongAccount: boolean;
|
|
13661
13668
|
readonly isBonusApprovalExpired: boolean;
|
|
13662
|
-
readonly
|
|
13669
|
+
readonly isBonusApprovalAlreadyUsed: boolean;
|
|
13663
13670
|
readonly isInvalidBonusApprovalSignature: boolean;
|
|
13671
|
+
readonly isBonusApprovalExceedsProfitSharing: boolean;
|
|
13664
13672
|
readonly isArgonotBondPurchaseBelowCutoff: boolean;
|
|
13665
13673
|
readonly isArgonotBondPurchaseAboveCap: boolean;
|
|
13666
13674
|
readonly isBondLotNotEligibleForBackfill: boolean;
|
|
13667
13675
|
readonly isNoPermissions: boolean;
|
|
13668
|
-
readonly type: 'BondPurchaseRejected' | 'VaultNotAcceptingBondPurchases' | 'BondPurchaseBelowMinimum' | 'InternalError' | 'MaxAcceptedBondLotsExceeded' | 'MaxPendingBondReleasesExceeded' | 'BondLotNotFound' | 'NotBondLotOwner' | 'BondLotAlreadyReleasing' | 'BondPurchaseAboveSecurity' | 'ActiveBondAmountBelowEncumberedBacking' | 'BonusApprovalWrongVault' | 'BonusApprovalWrongAccount' | 'BonusApprovalExpired' | '
|
|
13676
|
+
readonly type: 'BondPurchaseRejected' | 'VaultNotAcceptingBondPurchases' | 'BondPurchaseBelowMinimum' | 'InternalError' | 'MaxAcceptedBondLotsExceeded' | 'MaxPendingBondReleasesExceeded' | 'BondLotNotFound' | 'NotBondLotOwner' | 'BondLotAlreadyReleasing' | 'BondPurchaseAboveSecurity' | 'ActiveBondAmountBelowEncumberedBacking' | 'BonusApprovalWrongVault' | 'BonusApprovalWrongAccount' | 'BonusApprovalExpired' | 'BonusApprovalAlreadyUsed' | 'InvalidBonusApprovalSignature' | 'BonusApprovalExceedsProfitSharing' | 'ArgonotBondPurchaseBelowCutoff' | 'ArgonotBondPurchaseAboveCap' | 'BondLotNotEligibleForBackfill' | 'NoPermissions';
|
|
13669
13677
|
}
|
|
13670
13678
|
/** @name PalletFeeControlError (546) */
|
|
13671
13679
|
interface PalletFeeControlError extends Enum {
|
|
@@ -14269,7 +14277,6 @@ declare class Vault {
|
|
|
14269
14277
|
bitcoinXpub: string;
|
|
14270
14278
|
delegateAccountId?: string;
|
|
14271
14279
|
treasuryProfitSharing: number;
|
|
14272
|
-
treasuryBonusProfitSharing: number;
|
|
14273
14280
|
doNotExceedBalance?: bigint;
|
|
14274
14281
|
} & ISubmittableOptions, config?: {
|
|
14275
14282
|
tickDurationMillis?: number;
|
|
@@ -14285,7 +14292,6 @@ interface ITerms {
|
|
|
14285
14292
|
readonly bitcoinAnnualPercentRate: BigNumber;
|
|
14286
14293
|
readonly bitcoinBaseFee: bigint;
|
|
14287
14294
|
readonly treasuryProfitSharing: BigNumber;
|
|
14288
|
-
readonly treasuryBonusProfitSharing: BigNumber;
|
|
14289
14295
|
}
|
|
14290
14296
|
|
|
14291
14297
|
declare function toFixedNumber(value: string | number | BigNumber, // accept string to avoid early precision loss
|