@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
68
|
-
"@argonprotocol/testing": "1.4.
|
|
68
|
+
"@argonprotocol/testing": "1.4.9",
|
|
69
69
|
"@polkadot/typegen": "^16.5.6",
|
|
70
70
|
"@substrate/ss58-registry": "^1.51.0",
|
|
71
71
|
"@types/node": "^20",
|
|
@@ -790,6 +790,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
790
790
|
* Bids must be in allowed increments
|
|
791
791
|
**/
|
|
792
792
|
InvalidBidAmount: AugmentedError<ApiType>;
|
|
793
|
+
/**
|
|
794
|
+
* Mining slot bidding currently requires prior operational-account registration.
|
|
795
|
+
**/
|
|
796
|
+
OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
|
|
793
797
|
/**
|
|
794
798
|
* Bidding for the next cohort has closed
|
|
795
799
|
**/
|
|
@@ -1018,6 +1022,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1018
1022
|
* The referral proof has expired.
|
|
1019
1023
|
**/
|
|
1020
1024
|
ReferralProofExpired: AugmentedError<ApiType>;
|
|
1025
|
+
/**
|
|
1026
|
+
* A valid invite is required to register an operational account.
|
|
1027
|
+
**/
|
|
1028
|
+
RegistrationInviteRequired: AugmentedError<ApiType>;
|
|
1021
1029
|
/**
|
|
1022
1030
|
* Reward claims must be at least one Argon.
|
|
1023
1031
|
**/
|
|
@@ -1343,6 +1351,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1343
1351
|
* No Vault public keys are available
|
|
1344
1352
|
**/
|
|
1345
1353
|
NoVaultBitcoinPubkeysAvailable: AugmentedError<ApiType>;
|
|
1354
|
+
/**
|
|
1355
|
+
* Vault creation currently requires prior operational-account registration.
|
|
1356
|
+
**/
|
|
1357
|
+
OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
|
|
1346
1358
|
/**
|
|
1347
1359
|
* A vault must clear out all overdue external collect blockers before it can collect.
|
|
1348
1360
|
**/
|
|
@@ -1266,6 +1266,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1266
1266
|
* Oldest referral expiration frame that still has cleanup work to resume.
|
|
1267
1267
|
**/
|
|
1268
1268
|
expiredReferralCodeCleanupFrame: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
1269
|
+
/**
|
|
1270
|
+
* Whether operational-account access is invite-only.
|
|
1271
|
+
*
|
|
1272
|
+
* When enabled, registration requires a valid referral invite and vault creation plus
|
|
1273
|
+
* mining-slot bidding remain restricted to registered operational accounts.
|
|
1274
|
+
*
|
|
1275
|
+
* Existing live raw chain specs do not contain this key, so the default remains invite-only
|
|
1276
|
+
* unless a development chain overrides it in genesis.
|
|
1277
|
+
**/
|
|
1278
|
+
isOperationalAccountInviteOnly: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
1269
1279
|
/**
|
|
1270
1280
|
* Reverse lookup of any linked account to its operational account id.
|
|
1271
1281
|
**/
|
|
@@ -1169,6 +1169,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1169
1169
|
* Register vault, mining funding, and bot accounts for an operational account.
|
|
1170
1170
|
* Any account in the registration may submit the transaction.
|
|
1171
1171
|
* If a referral proof is provided, the registration records the sponsor relationship.
|
|
1172
|
+
* When invite-only is enabled, a valid referral proof is required.
|
|
1172
1173
|
**/
|
|
1173
1174
|
register: AugmentedSubmittable<
|
|
1174
1175
|
(
|
package/src/interfaces/lookup.ts
CHANGED
|
@@ -3146,6 +3146,7 @@ export default {
|
|
|
3146
3146
|
'InsufficientFunds',
|
|
3147
3147
|
'BidCannotBeReduced',
|
|
3148
3148
|
'InvalidBidAmount',
|
|
3149
|
+
'OperationalAccountRegistrationRequired',
|
|
3149
3150
|
'UnrecoverableHold',
|
|
3150
3151
|
],
|
|
3151
3152
|
},
|
|
@@ -3310,6 +3311,7 @@ export default {
|
|
|
3310
3311
|
'PendingOrphanedUtxoCosignsBeforeCollect',
|
|
3311
3312
|
'OverdueCollectBlockersBeforeCollect',
|
|
3312
3313
|
'AccountAlreadyHasVault',
|
|
3314
|
+
'OperationalAccountRegistrationRequired',
|
|
3313
3315
|
'CommittedArgonotsBelowEncumberedBacking',
|
|
3314
3316
|
],
|
|
3315
3317
|
},
|
|
@@ -3892,6 +3894,7 @@ export default {
|
|
|
3892
3894
|
'NotOperationalAccount',
|
|
3893
3895
|
'InvalidReferralProof',
|
|
3894
3896
|
'ReferralProofExpired',
|
|
3897
|
+
'RegistrationInviteRequired',
|
|
3895
3898
|
'NoProgressUpdateProvided',
|
|
3896
3899
|
'EncryptedServerTooLong',
|
|
3897
3900
|
'NotSponsorOfSponsee',
|
|
@@ -3659,6 +3659,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
3659
3659
|
readonly isInsufficientFunds: boolean;
|
|
3660
3660
|
readonly isBidCannotBeReduced: boolean;
|
|
3661
3661
|
readonly isInvalidBidAmount: boolean;
|
|
3662
|
+
readonly isOperationalAccountRegistrationRequired: boolean;
|
|
3662
3663
|
readonly isUnrecoverableHold: boolean;
|
|
3663
3664
|
readonly type:
|
|
3664
3665
|
| 'SlotNotTakingBids'
|
|
@@ -3670,6 +3671,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
3670
3671
|
| 'InsufficientFunds'
|
|
3671
3672
|
| 'BidCannotBeReduced'
|
|
3672
3673
|
| 'InvalidBidAmount'
|
|
3674
|
+
| 'OperationalAccountRegistrationRequired'
|
|
3673
3675
|
| 'UnrecoverableHold';
|
|
3674
3676
|
}
|
|
3675
3677
|
|
|
@@ -3841,6 +3843,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
3841
3843
|
readonly isPendingOrphanedUtxoCosignsBeforeCollect: boolean;
|
|
3842
3844
|
readonly isOverdueCollectBlockersBeforeCollect: boolean;
|
|
3843
3845
|
readonly isAccountAlreadyHasVault: boolean;
|
|
3846
|
+
readonly isOperationalAccountRegistrationRequired: boolean;
|
|
3844
3847
|
readonly isCommittedArgonotsBelowEncumberedBacking: boolean;
|
|
3845
3848
|
readonly type:
|
|
3846
3849
|
| 'NoMoreVaultIds'
|
|
@@ -3875,6 +3878,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
3875
3878
|
| 'PendingOrphanedUtxoCosignsBeforeCollect'
|
|
3876
3879
|
| 'OverdueCollectBlockersBeforeCollect'
|
|
3877
3880
|
| 'AccountAlreadyHasVault'
|
|
3881
|
+
| 'OperationalAccountRegistrationRequired'
|
|
3878
3882
|
| 'CommittedArgonotsBelowEncumberedBacking';
|
|
3879
3883
|
}
|
|
3880
3884
|
|
|
@@ -4537,6 +4541,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4537
4541
|
readonly isNotOperationalAccount: boolean;
|
|
4538
4542
|
readonly isInvalidReferralProof: boolean;
|
|
4539
4543
|
readonly isReferralProofExpired: boolean;
|
|
4544
|
+
readonly isRegistrationInviteRequired: boolean;
|
|
4540
4545
|
readonly isNoProgressUpdateProvided: boolean;
|
|
4541
4546
|
readonly isEncryptedServerTooLong: boolean;
|
|
4542
4547
|
readonly isNotSponsorOfSponsee: boolean;
|
|
@@ -4555,6 +4560,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4555
4560
|
| 'NotOperationalAccount'
|
|
4556
4561
|
| 'InvalidReferralProof'
|
|
4557
4562
|
| 'ReferralProofExpired'
|
|
4563
|
+
| 'RegistrationInviteRequired'
|
|
4558
4564
|
| 'NoProgressUpdateProvided'
|
|
4559
4565
|
| 'EncryptedServerTooLong'
|
|
4560
4566
|
| 'NotSponsorOfSponsee'
|