@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.
@@ -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
  **/
@@ -4608,6 +4620,10 @@ declare module '@polkadot/api-base/types/storage' {
4608
4620
  * Bool if block rewards are paused
4609
4621
  **/
4610
4622
  blockRewardsPaused: AugmentedQuery<ApiType, () => Observable<bool>, []>;
4623
+ /**
4624
+ * Bool if block voter rewards are enabled
4625
+ **/
4626
+ blockVoterRewardsEnabled: AugmentedQuery<ApiType, () => Observable<bool>, []>;
4611
4627
  /**
4612
4628
  * Historical payouts by block number
4613
4629
  **/
@@ -5222,6 +5238,16 @@ declare module '@polkadot/api-base/types/storage' {
5222
5238
  * Oldest referral expiration frame that still has cleanup work to resume.
5223
5239
  **/
5224
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>, []>;
5225
5251
  /**
5226
5252
  * Reverse lookup of any linked account to its operational account id.
5227
5253
  **/
@@ -6015,6 +6041,9 @@ declare module '@polkadot/api-base/types/submittable' {
6015
6041
  setBlockRewardsPaused: AugmentedSubmittable<(paused: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6016
6042
  bool
6017
6043
  ]>;
6044
+ setBlockVoterRewardsEnabled: AugmentedSubmittable<(enabled: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6045
+ bool
6046
+ ]>;
6018
6047
  };
6019
6048
  blockSeal: {
6020
6049
  apply: AugmentedSubmittable<(seal: ArgonPrimitivesInherentsBlockSealInherent | {
@@ -6518,6 +6547,7 @@ declare module '@polkadot/api-base/types/submittable' {
6518
6547
  * Register vault, mining funding, and bot accounts for an operational account.
6519
6548
  * Any account in the registration may submit the transaction.
6520
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.
6521
6551
  **/
6522
6552
  register: AugmentedSubmittable<(registration: PalletOperationalAccountsRegistration | {
6523
6553
  V1: any;
@@ -12024,7 +12054,11 @@ declare module '@polkadot/types/lookup' {
12024
12054
  readonly asSetBlockRewardsPaused: {
12025
12055
  readonly paused: bool;
12026
12056
  } & Struct;
12027
- readonly type: 'SetBlockRewardsPaused';
12057
+ readonly isSetBlockVoterRewardsEnabled: boolean;
12058
+ readonly asSetBlockVoterRewardsEnabled: {
12059
+ readonly enabled: bool;
12060
+ } & Struct;
12061
+ readonly type: 'SetBlockRewardsPaused' | 'SetBlockVoterRewardsEnabled';
12028
12062
  }
12029
12063
  /** @name PalletMintCall (262) */
12030
12064
  type PalletMintCall = Null;
@@ -12602,8 +12636,9 @@ declare module '@polkadot/types/lookup' {
12602
12636
  readonly isInsufficientFunds: boolean;
12603
12637
  readonly isBidCannotBeReduced: boolean;
12604
12638
  readonly isInvalidBidAmount: boolean;
12639
+ readonly isOperationalAccountRegistrationRequired: boolean;
12605
12640
  readonly isUnrecoverableHold: boolean;
12606
- 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';
12607
12642
  }
12608
12643
  /** @name ArgonPrimitivesBitcoinUtxoValue (376) */
12609
12644
  interface ArgonPrimitivesBitcoinUtxoValue extends Struct {
@@ -12748,8 +12783,9 @@ declare module '@polkadot/types/lookup' {
12748
12783
  readonly isPendingOrphanedUtxoCosignsBeforeCollect: boolean;
12749
12784
  readonly isOverdueCollectBlockersBeforeCollect: boolean;
12750
12785
  readonly isAccountAlreadyHasVault: boolean;
12786
+ readonly isOperationalAccountRegistrationRequired: boolean;
12751
12787
  readonly isCommittedArgonotsBelowEncumberedBacking: boolean;
12752
- 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';
12753
12789
  }
12754
12790
  /** @name PalletBitcoinLocksLockedBitcoin (414) */
12755
12791
  interface PalletBitcoinLocksLockedBitcoin extends Struct {
@@ -13218,6 +13254,7 @@ declare module '@polkadot/types/lookup' {
13218
13254
  readonly isNotOperationalAccount: boolean;
13219
13255
  readonly isInvalidReferralProof: boolean;
13220
13256
  readonly isReferralProofExpired: boolean;
13257
+ readonly isRegistrationInviteRequired: boolean;
13221
13258
  readonly isNoProgressUpdateProvided: boolean;
13222
13259
  readonly isEncryptedServerTooLong: boolean;
13223
13260
  readonly isNotSponsorOfSponsee: boolean;
@@ -13228,7 +13265,7 @@ declare module '@polkadot/types/lookup' {
13228
13265
  readonly isTreasuryInsufficientFunds: boolean;
13229
13266
  readonly isAlreadyOperational: boolean;
13230
13267
  readonly isNotEligibleForActivation: boolean;
13231
- 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';
13232
13269
  }
13233
13270
  /** @name PalletEthereumVerifierFinalizedBeaconHeaderState (536) */
13234
13271
  interface PalletEthereumVerifierFinalizedBeaconHeaderState extends Struct {
@@ -13749,7 +13786,7 @@ declare class Vault {
13749
13786
  delegateAccountId?: string;
13750
13787
  name?: string;
13751
13788
  treasuryProfitSharing: number;
13752
- bonusSharingPercent: number;
13789
+ treasuryBonusProfitSharing: number;
13753
13790
  doNotExceedBalance?: bigint;
13754
13791
  } & ISubmittableOptions, config?: {
13755
13792
  tickDurationMillis?: number;
@@ -13765,7 +13802,7 @@ interface ITerms {
13765
13802
  readonly bitcoinAnnualPercentRate: BigNumber;
13766
13803
  readonly bitcoinBaseFee: bigint;
13767
13804
  readonly treasuryProfitSharing: BigNumber;
13768
- readonly bonusSharingPercent: BigNumber;
13805
+ readonly treasuryBonusProfitSharing: BigNumber;
13769
13806
  }
13770
13807
 
13771
13808
  declare function toFixedNumber(value: string | number | BigNumber, // accept string to avoid early precision loss