@argonprotocol/mainchain 0.0.24 → 0.0.26

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.
Files changed (29) hide show
  1. package/lib/cjs/interfaces/augment-api-consts.d.ts +8 -2
  2. package/lib/cjs/interfaces/augment-api-errors.d.ts +4 -0
  3. package/lib/cjs/interfaces/augment-api-query.d.ts +8 -6
  4. package/lib/cjs/interfaces/augment-api-tx.d.ts +5 -1
  5. package/lib/cjs/interfaces/lookup.d.ts +216 -188
  6. package/lib/cjs/interfaces/lookup.js +221 -193
  7. package/lib/cjs/interfaces/lookup.js.map +1 -1
  8. package/lib/cjs/interfaces/registry.d.ts +4 -1
  9. package/lib/cjs/interfaces/types-lookup.d.ts +215 -189
  10. package/lib/esm/interfaces/augment-api-consts.d.ts +8 -2
  11. package/lib/esm/interfaces/augment-api-errors.d.ts +4 -0
  12. package/lib/esm/interfaces/augment-api-query.d.ts +8 -6
  13. package/lib/esm/interfaces/augment-api-tx.d.ts +5 -1
  14. package/lib/esm/interfaces/lookup.d.ts +216 -188
  15. package/lib/esm/interfaces/lookup.js +221 -193
  16. package/lib/esm/interfaces/lookup.js.map +1 -1
  17. package/lib/esm/interfaces/registry.d.ts +4 -1
  18. package/lib/esm/interfaces/types-lookup.d.ts +215 -189
  19. package/lib/tsconfig-cjs.tsbuildinfo +1 -1
  20. package/lib/tsconfig-types.tsbuildinfo +1 -1
  21. package/lib/tsconfig.tsbuildinfo +1 -1
  22. package/lib/types/interfaces/augment-api-consts.d.ts +8 -2
  23. package/lib/types/interfaces/augment-api-errors.d.ts +4 -0
  24. package/lib/types/interfaces/augment-api-query.d.ts +8 -6
  25. package/lib/types/interfaces/augment-api-tx.d.ts +5 -1
  26. package/lib/types/interfaces/lookup.d.ts +216 -188
  27. package/lib/types/interfaces/registry.d.ts +4 -1
  28. package/lib/types/interfaces/types-lookup.d.ts +215 -189
  29. package/package.json +4 -4
@@ -2,6 +2,7 @@ import '@polkadot/api-base/types/consts';
2
2
  import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
3
  import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
+ import type { Percent } from '@polkadot/types/interfaces/runtime';
5
6
  import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
6
7
  export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
7
8
  declare module '@polkadot/api-base/types/consts' {
@@ -48,7 +49,7 @@ declare module '@polkadot/api-base/types/consts' {
48
49
  };
49
50
  blockRewards: {
50
51
  /**
51
- * The block number at which the halving begins for ownership shares
52
+ * The block number at which the halving begins for ownership tokens
52
53
  **/
53
54
  halvingBeginBlock: u32 & AugmentedConst<ApiType>;
54
55
  /**
@@ -167,6 +168,11 @@ declare module '@polkadot/api-base/types/consts' {
167
168
  * How many new miners can be in the cohort for each slot
168
169
  **/
169
170
  maxCohortSize: u32 & AugmentedConst<ApiType>;
171
+ /**
172
+ * The maximum percent of ownership shares in the network that should be required for
173
+ * ownership mining bonds
174
+ **/
175
+ maximumOwnershipBondAmountPercent: Percent & AugmentedConst<ApiType>;
170
176
  /**
171
177
  * The maximum number of Miners that the pallet can hold.
172
178
  **/
@@ -174,7 +180,7 @@ declare module '@polkadot/api-base/types/consts' {
174
180
  /**
175
181
  * The minimum bond amount possible
176
182
  **/
177
- minimumBondAmount: u128 & AugmentedConst<ApiType>;
183
+ minimumOwnershipBondAmount: u128 & AugmentedConst<ApiType>;
178
184
  /**
179
185
  * The max percent swing for the ownership bond amount per slot (from the last percent
180
186
  **/
@@ -101,6 +101,10 @@ declare module '@polkadot/api-base/types/errors' {
101
101
  };
102
102
  blockRewards: {};
103
103
  blockSeal: {
104
+ /**
105
+ * A block seal authority could not be properly decoded
106
+ **/
107
+ BlockSealDecodeError: AugmentedError<ApiType>;
104
108
  /**
105
109
  * The vote signature was invalid
106
110
  **/
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/
3
3
  import type { BTreeMap, Bytes, Null, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
- import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesBitcoinBitcoinBlock, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinXPub, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBlockSealMiningSlotConfig, ArgonPrimitivesBond, ArgonPrimitivesBondVault, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesDigestsDigestset, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesForkPower, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersBlockSealerInfo, ArgonPrimitivesTickTicker, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, IsmpConsensusStateCommitment, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpHostStateMachine, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBondUtxoCosignRequest, PalletBondUtxoState, PalletChainTransferQueuedTransferOut, PalletDomainsDomainRegistration, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletHyperbridgeVersionedHostParams, PalletMultisigMultisig, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, SpConsensusGrandpaAppPublic, SpRuntimeDigest } from '@polkadot/types/lookup';
6
+ import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesBitcoinBitcoinBlock, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinXPub, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningBidStats, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBlockSealMiningSlotConfig, ArgonPrimitivesBond, ArgonPrimitivesBondVault, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesDigestsDigestset, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesForkPower, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersBlockSealerInfo, ArgonPrimitivesTickTicker, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, IsmpConsensusStateCommitment, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpHostStateMachine, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBondUtxoCosignRequest, PalletBondUtxoState, PalletChainTransferQueuedTransferOut, PalletDomainsDomainRegistration, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletHyperbridgeVersionedHostParams, PalletMintMintAction, PalletMultisigMultisig, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, SpConsensusGrandpaAppPublic, SpRuntimeDigest } from '@polkadot/types/lookup';
7
7
  import type { Observable } from '@polkadot/types/types';
8
8
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
9
9
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -383,15 +383,11 @@ declare module '@polkadot/api-base/types/storage' {
383
383
  /**
384
384
  * The number of bids per slot for the last 10 slots (newest first)
385
385
  **/
386
- historicalBidsPerSlot: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
386
+ historicalBidsPerSlot: AugmentedQuery<ApiType, () => Observable<Vec<ArgonPrimitivesBlockSealMiningBidStats>>, []>;
387
387
  /**
388
388
  * Is the next slot still open for bids
389
389
  **/
390
390
  isNextSlotBiddingOpen: AugmentedQuery<ApiType, () => Observable<bool>, []>;
391
- /**
392
- * The last percentage adjustment to the ownership bond amount
393
- **/
394
- lastOwnershipPercentAdjustment: AugmentedQuery<ApiType, () => Observable<Option<u128>>, []>;
395
391
  /**
396
392
  * The mining slot configuration set in genesis
397
393
  **/
@@ -407,6 +403,7 @@ declare module '@polkadot/api-base/types/storage' {
407
403
  ownershipBondAmount: AugmentedQuery<ApiType, () => Observable<u128>, []>;
408
404
  };
409
405
  mint: {
406
+ blockMintAction: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, PalletMintMintAction]>>, []>;
410
407
  mintedBitcoinArgons: AugmentedQuery<ApiType, () => Observable<U256>, []>;
411
408
  mintedMiningArgons: AugmentedQuery<ApiType, () => Observable<U256>, []>;
412
409
  /**
@@ -646,6 +643,7 @@ declare module '@polkadot/api-base/types/storage' {
646
643
  };
647
644
  ticks: {
648
645
  currentTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
646
+ genesisTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
649
647
  genesisTicker: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesTickTicker>, []>;
650
648
  /**
651
649
  * Blocks from the last 100 ticks. Trimmed in on_initialize.
@@ -676,6 +674,10 @@ declare module '@polkadot/api-base/types/storage' {
676
674
  * A map of the token gateway asset id to the local asset id
677
675
  **/
678
676
  localAssets: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<u32>>, [H256]>;
677
+ /**
678
+ * Assets that originate from this chain
679
+ **/
680
+ nativeAssets: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32]>;
679
681
  /**
680
682
  * Assets supported by this instance of token gateway
681
683
  * A map of the local asset id to the token gateway asset id
@@ -384,7 +384,7 @@ declare module '@polkadot/api-base/types/submittable' {
384
384
  * this event, you will be able to ensure your bid is accepted.
385
385
  *
386
386
  * NOTE: bidding for each slot will be closed at a random block within
387
- * `BlocksBeforeBidEndForVrfClose` blocks of the slot end time.
387
+ * `mining_config.blocks_before_bid_end_for_vrf_close` blocks of the slot end time.
388
388
  *
389
389
  * The slot duration can be calculated as `BlocksBetweenSlots * MaxMiners / MaxCohortSize`.
390
390
  *
@@ -396,6 +396,7 @@ declare module '@polkadot/api-base/types/submittable' {
396
396
  * - `amount`: The amount to bond with the vault.
397
397
  * - `reward_destination`: The account_id for the mining rewards, or `Owner` for the
398
398
  * submitting user.
399
+ * - `keys`: The session "hot" keys for the slot (BlockSealAuthorityId and GrandpaId).
399
400
  **/
400
401
  bid: AugmentedSubmittable<(bondInfo: Option<PalletMiningSlotMiningSlotBid> | null | Uint8Array | PalletMiningSlotMiningSlotBid | {
401
402
  vaultId?: any;
@@ -1129,10 +1130,12 @@ declare module '@polkadot/api-base/types/submittable' {
1129
1130
  *
1130
1131
  * This works by dispatching a request to the TokenGateway module on each requested chain
1131
1132
  * to create the asset.
1133
+ * `native` should be true if this asset originates from this chain
1132
1134
  **/
1133
1135
  createErc6160Asset: AugmentedSubmittable<(asset: PalletTokenGatewayAssetRegistration | {
1134
1136
  localId?: any;
1135
1137
  reg?: any;
1138
+ native?: any;
1136
1139
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletTokenGatewayAssetRegistration]>;
1137
1140
  /**
1138
1141
  * Set the token gateway address for specified chains
@@ -1150,6 +1153,7 @@ declare module '@polkadot/api-base/types/submittable' {
1150
1153
  timeout?: any;
1151
1154
  tokenGateway?: any;
1152
1155
  relayerFee?: any;
1156
+ callData?: any;
1153
1157
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletTokenGatewayTeleportParams]>;
1154
1158
  /**
1155
1159
  * Registers a multi-chain ERC6160 asset. The asset should not already exist.