@argonprotocol/mainchain 1.4.8-dev.fe6d442d → 1.4.9
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 +29 -3
- package/browser/index.js +1 -1
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +29 -3
- package/lib/index.d.ts +29 -3
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-errors.ts +12 -0
- package/src/interfaces/augment-api-query.ts +10 -0
- package/src/interfaces/augment-api-tx.ts +1 -0
- package/src/interfaces/lookup.ts +3 -0
- package/src/interfaces/types-lookup.ts +6 -0
package/browser/index.d.ts
CHANGED
|
@@ -1515,6 +1515,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1515
1515
|
* Bids must be in allowed increments
|
|
1516
1516
|
**/
|
|
1517
1517
|
InvalidBidAmount: AugmentedError<ApiType>;
|
|
1518
|
+
/**
|
|
1519
|
+
* Mining slot bidding currently requires prior operational-account registration.
|
|
1520
|
+
**/
|
|
1521
|
+
OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
|
|
1518
1522
|
/**
|
|
1519
1523
|
* Bidding for the next cohort has closed
|
|
1520
1524
|
**/
|
|
@@ -1743,6 +1747,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1743
1747
|
* The referral proof has expired.
|
|
1744
1748
|
**/
|
|
1745
1749
|
ReferralProofExpired: AugmentedError<ApiType>;
|
|
1750
|
+
/**
|
|
1751
|
+
* A valid invite is required to register an operational account.
|
|
1752
|
+
**/
|
|
1753
|
+
RegistrationInviteRequired: AugmentedError<ApiType>;
|
|
1746
1754
|
/**
|
|
1747
1755
|
* Reward claims must be at least one Argon.
|
|
1748
1756
|
**/
|
|
@@ -2068,6 +2076,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2068
2076
|
* No Vault public keys are available
|
|
2069
2077
|
**/
|
|
2070
2078
|
NoVaultBitcoinPubkeysAvailable: AugmentedError<ApiType>;
|
|
2079
|
+
/**
|
|
2080
|
+
* Vault creation currently requires prior operational-account registration.
|
|
2081
|
+
**/
|
|
2082
|
+
OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
|
|
2071
2083
|
/**
|
|
2072
2084
|
* A vault must clear out all overdue external collect blockers before it can collect.
|
|
2073
2085
|
**/
|
|
@@ -5226,6 +5238,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
5226
5238
|
* Oldest referral expiration frame that still has cleanup work to resume.
|
|
5227
5239
|
**/
|
|
5228
5240
|
expiredReferralCodeCleanupFrame: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
5241
|
+
/**
|
|
5242
|
+
* Whether operational-account access is invite-only.
|
|
5243
|
+
*
|
|
5244
|
+
* When enabled, registration requires a valid referral invite and vault creation plus
|
|
5245
|
+
* mining-slot bidding remain restricted to registered operational accounts.
|
|
5246
|
+
*
|
|
5247
|
+
* Existing live raw chain specs do not contain this key, so the default remains invite-only
|
|
5248
|
+
* unless a development chain overrides it in genesis.
|
|
5249
|
+
**/
|
|
5250
|
+
isOperationalAccountInviteOnly: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
5229
5251
|
/**
|
|
5230
5252
|
* Reverse lookup of any linked account to its operational account id.
|
|
5231
5253
|
**/
|
|
@@ -6525,6 +6547,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6525
6547
|
* Register vault, mining funding, and bot accounts for an operational account.
|
|
6526
6548
|
* Any account in the registration may submit the transaction.
|
|
6527
6549
|
* If a referral proof is provided, the registration records the sponsor relationship.
|
|
6550
|
+
* When invite-only is enabled, a valid referral proof is required.
|
|
6528
6551
|
**/
|
|
6529
6552
|
register: AugmentedSubmittable<(registration: PalletOperationalAccountsRegistration | {
|
|
6530
6553
|
V1: any;
|
|
@@ -12613,8 +12636,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
12613
12636
|
readonly isInsufficientFunds: boolean;
|
|
12614
12637
|
readonly isBidCannotBeReduced: boolean;
|
|
12615
12638
|
readonly isInvalidBidAmount: boolean;
|
|
12639
|
+
readonly isOperationalAccountRegistrationRequired: boolean;
|
|
12616
12640
|
readonly isUnrecoverableHold: boolean;
|
|
12617
|
-
readonly type: 'SlotNotTakingBids' | 'TooManyBlockRegistrants' | 'InsufficientOwnershipTokens' | 'BidTooLow' | 'CannotRegisterOverlappingSessions' | 'CannotChangeFundingAccount' | 'InsufficientFunds' | 'BidCannotBeReduced' | 'InvalidBidAmount' | 'UnrecoverableHold';
|
|
12641
|
+
readonly type: 'SlotNotTakingBids' | 'TooManyBlockRegistrants' | 'InsufficientOwnershipTokens' | 'BidTooLow' | 'CannotRegisterOverlappingSessions' | 'CannotChangeFundingAccount' | 'InsufficientFunds' | 'BidCannotBeReduced' | 'InvalidBidAmount' | 'OperationalAccountRegistrationRequired' | 'UnrecoverableHold';
|
|
12618
12642
|
}
|
|
12619
12643
|
/** @name ArgonPrimitivesBitcoinUtxoValue (376) */
|
|
12620
12644
|
interface ArgonPrimitivesBitcoinUtxoValue extends Struct {
|
|
@@ -12759,8 +12783,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
12759
12783
|
readonly isPendingOrphanedUtxoCosignsBeforeCollect: boolean;
|
|
12760
12784
|
readonly isOverdueCollectBlockersBeforeCollect: boolean;
|
|
12761
12785
|
readonly isAccountAlreadyHasVault: boolean;
|
|
12786
|
+
readonly isOperationalAccountRegistrationRequired: boolean;
|
|
12762
12787
|
readonly isCommittedArgonotsBelowEncumberedBacking: boolean;
|
|
12763
|
-
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' | 'InvalidVaultName' | 'PendingCosignsBeforeCollect' | 'PendingOrphanedUtxoCosignsBeforeCollect' | 'OverdueCollectBlockersBeforeCollect' | 'AccountAlreadyHasVault' | 'CommittedArgonotsBelowEncumberedBacking';
|
|
12788
|
+
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' | 'InvalidVaultName' | 'PendingCosignsBeforeCollect' | 'PendingOrphanedUtxoCosignsBeforeCollect' | 'OverdueCollectBlockersBeforeCollect' | 'AccountAlreadyHasVault' | 'OperationalAccountRegistrationRequired' | 'CommittedArgonotsBelowEncumberedBacking';
|
|
12764
12789
|
}
|
|
12765
12790
|
/** @name PalletBitcoinLocksLockedBitcoin (414) */
|
|
12766
12791
|
interface PalletBitcoinLocksLockedBitcoin extends Struct {
|
|
@@ -13229,6 +13254,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
13229
13254
|
readonly isNotOperationalAccount: boolean;
|
|
13230
13255
|
readonly isInvalidReferralProof: boolean;
|
|
13231
13256
|
readonly isReferralProofExpired: boolean;
|
|
13257
|
+
readonly isRegistrationInviteRequired: boolean;
|
|
13232
13258
|
readonly isNoProgressUpdateProvided: boolean;
|
|
13233
13259
|
readonly isEncryptedServerTooLong: boolean;
|
|
13234
13260
|
readonly isNotSponsorOfSponsee: boolean;
|
|
@@ -13239,7 +13265,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
13239
13265
|
readonly isTreasuryInsufficientFunds: boolean;
|
|
13240
13266
|
readonly isAlreadyOperational: boolean;
|
|
13241
13267
|
readonly isNotEligibleForActivation: boolean;
|
|
13242
|
-
readonly type: 'AlreadyRegistered' | 'InvalidRegistrationSubmitter' | 'AccountAlreadyLinked' | 'InvalidAccountProof' | 'NotOperationalAccount' | 'InvalidReferralProof' | 'ReferralProofExpired' | 'NoProgressUpdateProvided' | 'EncryptedServerTooLong' | 'NotSponsorOfSponsee' | 'NoPendingRewards' | 'RewardClaimBelowMinimum' | 'RewardClaimNotWholeArgon' | 'RewardClaimExceedsPending' | 'TreasuryInsufficientFunds' | 'AlreadyOperational' | 'NotEligibleForActivation';
|
|
13268
|
+
readonly type: 'AlreadyRegistered' | 'InvalidRegistrationSubmitter' | 'AccountAlreadyLinked' | 'InvalidAccountProof' | 'NotOperationalAccount' | 'InvalidReferralProof' | 'ReferralProofExpired' | 'RegistrationInviteRequired' | 'NoProgressUpdateProvided' | 'EncryptedServerTooLong' | 'NotSponsorOfSponsee' | 'NoPendingRewards' | 'RewardClaimBelowMinimum' | 'RewardClaimNotWholeArgon' | 'RewardClaimExceedsPending' | 'TreasuryInsufficientFunds' | 'AlreadyOperational' | 'NotEligibleForActivation';
|
|
13243
13269
|
}
|
|
13244
13270
|
/** @name PalletEthereumVerifierFinalizedBeaconHeaderState (536) */
|
|
13245
13271
|
interface PalletEthereumVerifierFinalizedBeaconHeaderState extends Struct {
|