@argonprotocol/mainchain 1.4.8 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.4.8",
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.8",
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
  **/
@@ -403,6 +403,10 @@ declare module '@polkadot/api-base/types/storage' {
403
403
  * Bool if block rewards are paused
404
404
  **/
405
405
  blockRewardsPaused: AugmentedQuery<ApiType, () => Observable<bool>, []>;
406
+ /**
407
+ * Bool if block voter rewards are enabled
408
+ **/
409
+ blockVoterRewardsEnabled: AugmentedQuery<ApiType, () => Observable<bool>, []>;
406
410
  /**
407
411
  * Historical payouts by block number
408
412
  **/
@@ -1262,6 +1266,16 @@ declare module '@polkadot/api-base/types/storage' {
1262
1266
  * Oldest referral expiration frame that still has cleanup work to resume.
1263
1267
  **/
1264
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>, []>;
1265
1279
  /**
1266
1280
  * Reverse lookup of any linked account to its operational account id.
1267
1281
  **/
@@ -508,6 +508,10 @@ declare module '@polkadot/api-base/types/submittable' {
508
508
  (paused: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>,
509
509
  [bool]
510
510
  >;
511
+ setBlockVoterRewardsEnabled: AugmentedSubmittable<
512
+ (enabled: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>,
513
+ [bool]
514
+ >;
511
515
  };
512
516
  blockSeal: {
513
517
  apply: AugmentedSubmittable<
@@ -1165,6 +1169,7 @@ declare module '@polkadot/api-base/types/submittable' {
1165
1169
  * Register vault, mining funding, and bot accounts for an operational account.
1166
1170
  * Any account in the registration may submit the transaction.
1167
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.
1168
1173
  **/
1169
1174
  register: AugmentedSubmittable<
1170
1175
  (
@@ -2495,6 +2495,9 @@ export default {
2495
2495
  set_block_rewards_paused: {
2496
2496
  paused: 'bool',
2497
2497
  },
2498
+ set_block_voter_rewards_enabled: {
2499
+ enabled: 'bool',
2500
+ },
2498
2501
  },
2499
2502
  },
2500
2503
  /**
@@ -3143,6 +3146,7 @@ export default {
3143
3146
  'InsufficientFunds',
3144
3147
  'BidCannotBeReduced',
3145
3148
  'InvalidBidAmount',
3149
+ 'OperationalAccountRegistrationRequired',
3146
3150
  'UnrecoverableHold',
3147
3151
  ],
3148
3152
  },
@@ -3307,6 +3311,7 @@ export default {
3307
3311
  'PendingOrphanedUtxoCosignsBeforeCollect',
3308
3312
  'OverdueCollectBlockersBeforeCollect',
3309
3313
  'AccountAlreadyHasVault',
3314
+ 'OperationalAccountRegistrationRequired',
3310
3315
  'CommittedArgonotsBelowEncumberedBacking',
3311
3316
  ],
3312
3317
  },
@@ -3889,6 +3894,7 @@ export default {
3889
3894
  'NotOperationalAccount',
3890
3895
  'InvalidReferralProof',
3891
3896
  'ReferralProofExpired',
3897
+ 'RegistrationInviteRequired',
3892
3898
  'NoProgressUpdateProvided',
3893
3899
  'EncryptedServerTooLong',
3894
3900
  'NotSponsorOfSponsee',
@@ -2967,7 +2967,11 @@ declare module '@polkadot/types/lookup' {
2967
2967
  readonly asSetBlockRewardsPaused: {
2968
2968
  readonly paused: bool;
2969
2969
  } & Struct;
2970
- readonly type: 'SetBlockRewardsPaused';
2970
+ readonly isSetBlockVoterRewardsEnabled: boolean;
2971
+ readonly asSetBlockVoterRewardsEnabled: {
2972
+ readonly enabled: bool;
2973
+ } & Struct;
2974
+ readonly type: 'SetBlockRewardsPaused' | 'SetBlockVoterRewardsEnabled';
2971
2975
  }
2972
2976
 
2973
2977
  /** @name PalletMintCall (262) */
@@ -3655,6 +3659,7 @@ declare module '@polkadot/types/lookup' {
3655
3659
  readonly isInsufficientFunds: boolean;
3656
3660
  readonly isBidCannotBeReduced: boolean;
3657
3661
  readonly isInvalidBidAmount: boolean;
3662
+ readonly isOperationalAccountRegistrationRequired: boolean;
3658
3663
  readonly isUnrecoverableHold: boolean;
3659
3664
  readonly type:
3660
3665
  | 'SlotNotTakingBids'
@@ -3666,6 +3671,7 @@ declare module '@polkadot/types/lookup' {
3666
3671
  | 'InsufficientFunds'
3667
3672
  | 'BidCannotBeReduced'
3668
3673
  | 'InvalidBidAmount'
3674
+ | 'OperationalAccountRegistrationRequired'
3669
3675
  | 'UnrecoverableHold';
3670
3676
  }
3671
3677
 
@@ -3837,6 +3843,7 @@ declare module '@polkadot/types/lookup' {
3837
3843
  readonly isPendingOrphanedUtxoCosignsBeforeCollect: boolean;
3838
3844
  readonly isOverdueCollectBlockersBeforeCollect: boolean;
3839
3845
  readonly isAccountAlreadyHasVault: boolean;
3846
+ readonly isOperationalAccountRegistrationRequired: boolean;
3840
3847
  readonly isCommittedArgonotsBelowEncumberedBacking: boolean;
3841
3848
  readonly type:
3842
3849
  | 'NoMoreVaultIds'
@@ -3871,6 +3878,7 @@ declare module '@polkadot/types/lookup' {
3871
3878
  | 'PendingOrphanedUtxoCosignsBeforeCollect'
3872
3879
  | 'OverdueCollectBlockersBeforeCollect'
3873
3880
  | 'AccountAlreadyHasVault'
3881
+ | 'OperationalAccountRegistrationRequired'
3874
3882
  | 'CommittedArgonotsBelowEncumberedBacking';
3875
3883
  }
3876
3884
 
@@ -4533,6 +4541,7 @@ declare module '@polkadot/types/lookup' {
4533
4541
  readonly isNotOperationalAccount: boolean;
4534
4542
  readonly isInvalidReferralProof: boolean;
4535
4543
  readonly isReferralProofExpired: boolean;
4544
+ readonly isRegistrationInviteRequired: boolean;
4536
4545
  readonly isNoProgressUpdateProvided: boolean;
4537
4546
  readonly isEncryptedServerTooLong: boolean;
4538
4547
  readonly isNotSponsorOfSponsee: boolean;
@@ -4551,6 +4560,7 @@ declare module '@polkadot/types/lookup' {
4551
4560
  | 'NotOperationalAccount'
4552
4561
  | 'InvalidReferralProof'
4553
4562
  | 'ReferralProofExpired'
4563
+ | 'RegistrationInviteRequired'
4554
4564
  | 'NoProgressUpdateProvided'
4555
4565
  | 'EncryptedServerTooLong'
4556
4566
  | 'NotSponsorOfSponsee'