@polkadot/api-augment 15.9.2 → 15.10.1

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.
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
4
  import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { AccountId32, Call, H160, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAutoRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityProvider, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletIdentityUsernameInformation, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletReviveStorageContractInfo, PalletReviveStorageDeletionQueueManager, PalletReviveWasmCodeInfo, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
7
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetRewardsPoolInfo, PalletAssetRewardsPoolStakerInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAutoRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDelegatedStakingAgentLedger, PalletDelegatedStakingDelegation, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityProvider, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletIdentityUsernameInformation, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletReviveStorageContractInfo, PalletReviveStorageDeletionQueueManager, PalletReviveWasmCodeInfo, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
8
8
  import type { Observable } from '@polkadot/types/types';
9
9
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
10
10
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -124,6 +124,33 @@ declare module '@polkadot/api-base/types/storage' {
124
124
  **/
125
125
  [key: string]: QueryableStorageEntry<ApiType>;
126
126
  };
127
+ assetRewards: {
128
+ /**
129
+ * Stores the [`PoolId`] to use for the next pool.
130
+ *
131
+ * Incremented when a new pool is created.
132
+ **/
133
+ nextPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
134
+ /**
135
+ * The cost associated with storing pool information on-chain which was incurred by the pool
136
+ * creator.
137
+ *
138
+ * This cost may be [`None`], as determined by [`Config::Consideration`].
139
+ **/
140
+ poolCost: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
141
+ /**
142
+ * State and configuration of each staking pool.
143
+ **/
144
+ pools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetRewardsPoolInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
145
+ /**
146
+ * State of pool stakers.
147
+ **/
148
+ poolStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetRewardsPoolStakerInfo>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
149
+ /**
150
+ * Generic query
151
+ **/
152
+ [key: string]: QueryableStorageEntry<ApiType>;
153
+ };
127
154
  assets: {
128
155
  /**
129
156
  * The holdings of a specific account for a specific asset.
@@ -160,6 +187,20 @@ declare module '@polkadot/api-base/types/storage' {
160
187
  **/
161
188
  [key: string]: QueryableStorageEntry<ApiType>;
162
189
  };
190
+ assetsFreezer: {
191
+ /**
192
+ * A map that stores freezes applied on an account for a given AssetId.
193
+ **/
194
+ freezes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
195
+ /**
196
+ * A map that stores the current total frozen balance for every account on a given AssetId.
197
+ **/
198
+ frozenBalances: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
199
+ /**
200
+ * Generic query
201
+ **/
202
+ [key: string]: QueryableStorageEntry<ApiType>;
203
+ };
163
204
  authorityDiscovery: {
164
205
  /**
165
206
  * Keys of the current authority set.
@@ -675,6 +716,31 @@ declare module '@polkadot/api-base/types/storage' {
675
716
  **/
676
717
  [key: string]: QueryableStorageEntry<ApiType>;
677
718
  };
719
+ delegatedStaking: {
720
+ /**
721
+ * Map of `Agent` to their `Ledger`.
722
+ **/
723
+ agents: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletDelegatedStakingAgentLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
724
+ /**
725
+ * Counter for the related counted storage map
726
+ **/
727
+ counterForAgents: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
728
+ /**
729
+ * Counter for the related counted storage map
730
+ **/
731
+ counterForDelegators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
732
+ /**
733
+ * Map of Delegators to their `Delegation`.
734
+ *
735
+ * Implementation note: We are not using a double map with `delegator` and `agent` account
736
+ * as keys since we want to restrict delegators to delegate only to one account at a time.
737
+ **/
738
+ delegators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletDelegatedStakingDelegation>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
739
+ /**
740
+ * Generic query
741
+ **/
742
+ [key: string]: QueryableStorageEntry<ApiType>;
743
+ };
678
744
  democracy: {
679
745
  /**
680
746
  * A record of who vetoed what. Maps proposal hash to a possible existent block number
@@ -1516,6 +1582,8 @@ declare module '@polkadot/api-base/types/storage' {
1516
1582
  **/
1517
1583
  parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | {
1518
1584
  Storage: any;
1585
+ } | {
1586
+ Referenda: any;
1519
1587
  } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
1520
1588
  /**
1521
1589
  * Generic query
@@ -1754,14 +1822,6 @@ declare module '@polkadot/api-base/types/storage' {
1754
1822
  [key: string]: QueryableStorageEntry<ApiType>;
1755
1823
  };
1756
1824
  revive: {
1757
- /**
1758
- * Map a Ethereum address to its original `AccountId32`.
1759
- *
1760
- * Stores the last 12 byte for addresses that were originally an `AccountId32` instead
1761
- * of an `H160`. Register your `AccountId32` using [`Pallet::map_account`] in order to
1762
- * use it with this pallet.
1763
- **/
1764
- addressSuffix: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<U8aFixed>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
1765
1825
  /**
1766
1826
  * A mapping from a contract's code hash to its code info.
1767
1827
  **/
@@ -1786,6 +1846,15 @@ declare module '@polkadot/api-base/types/storage' {
1786
1846
  * The immutable data associated with a given account.
1787
1847
  **/
1788
1848
  immutableDataOf: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<Bytes>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
1849
+ /**
1850
+ * Map a Ethereum address to its original `AccountId32`.
1851
+ *
1852
+ * When deriving a `H160` from an `AccountId32` we use a hash function. In order to
1853
+ * reconstruct the original account we need to store the reverse mapping here.
1854
+ * Register your `AccountId32` using [`Pallet::map_account`] in order to
1855
+ * use it with this pallet.
1856
+ **/
1857
+ originalAccount: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<AccountId32>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
1789
1858
  /**
1790
1859
  * A mapping from a contract's code hash to its code.
1791
1860
  **/
@@ -1835,6 +1904,9 @@ declare module '@polkadot/api-base/types/storage' {
1835
1904
  * Items to be executed, indexed by the block number that they should be executed on.
1836
1905
  **/
1837
1906
  agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1907
+ /**
1908
+ * Block number at which the agenda began incomplete execution.
1909
+ **/
1838
1910
  incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1839
1911
  /**
1840
1912
  * Lookup from a name to the block number and index of the task.
@@ -1864,7 +1936,7 @@ declare module '@polkadot/api-base/types/storage' {
1864
1936
  * disabled using binary search. It gets cleared when `on_session_ending` returns
1865
1937
  * a new set of identities.
1866
1938
  **/
1867
- disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1939
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, Perbill]>>>, []> & QueryableStorageEntry<ApiType, []>;
1868
1940
  /**
1869
1941
  * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1870
1942
  **/
@@ -2045,16 +2117,6 @@ declare module '@polkadot/api-base/types/storage' {
2045
2117
  * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
2046
2118
  **/
2047
2119
  currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
2048
- /**
2049
- * Indices of validators that have offended in the active era. The offenders are disabled for a
2050
- * whole era. For this reason they are kept here - only staking pallet knows about eras. The
2051
- * implementor of [`DisablingStrategy`] defines if a validator should be disabled which
2052
- * implicitly means that the implementor also controls the max number of disabled validators.
2053
- *
2054
- * The vec is always kept sorted so that we can find whether a given validator has previously
2055
- * offended using binary search.
2056
- **/
2057
- disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
2058
2120
  /**
2059
2121
  * Rewards for the last [`Config::HistoryDepth`] eras.
2060
2122
  * If reward hasn't been set or has been removed then 0 reward is returned.
@@ -2376,6 +2438,16 @@ declare module '@polkadot/api-base/types/storage' {
2376
2438
  * Extrinsics data for the current block (maps an extrinsic's index to its data).
2377
2439
  **/
2378
2440
  extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
2441
+ /**
2442
+ * The weight reclaimed for the extrinsic.
2443
+ *
2444
+ * This information is available until the end of the extrinsic execution.
2445
+ * More precisely this information is removed in `note_applied_extrinsic`.
2446
+ *
2447
+ * Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
2448
+ * reduction.
2449
+ **/
2450
+ extrinsicWeightReclaimed: AugmentedQuery<ApiType, () => Observable<SpWeightsWeightV2Weight>, []> & QueryableStorageEntry<ApiType, []>;
2379
2451
  /**
2380
2452
  * Whether all inherents have been applied.
2381
2453
  **/
@@ -1,12 +1,12 @@
1
1
  import '@polkadot/api-base/types/calls';
2
2
  import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
3
- import type { Bytes, Null, Option, Result, Struct, Text, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
3
+ import type { Bytes, Null, Option, Result, Struct, Text, U256, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
6
6
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
7
7
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
8
8
  import type { AccountId32, H160, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
9
- import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthContractResult, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
9
+ import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletReviveEvmApiDebugRpcTypesCallTrace, PalletReviveEvmApiDebugRpcTypesTracerConfig, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
10
10
  import type { IExtrinsic, Observable } from '@polkadot/types/types';
11
11
  export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
12
12
  export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
@@ -66,6 +66,17 @@ declare module '@polkadot/api-base/types/calls' {
66
66
  **/
67
67
  [key: string]: DecoratedCallBase<ApiType>;
68
68
  };
69
+ /** 0x65f855d6e093c2f1/ */
70
+ assetRewards: {
71
+ /**
72
+ * Get the cost of creating a pool.,, This is especially useful when the cost is dynamic.
73
+ **/
74
+ poolCreationCost: AugmentedCall<ApiType, () => Observable<u128>>;
75
+ /**
76
+ * Generic call
77
+ **/
78
+ [key: string]: DecoratedCallBase<ApiType>;
79
+ };
69
80
  /** 0x8453b50b22293977/ */
70
81
  assetsApi: {
71
82
  /**
@@ -434,7 +445,7 @@ declare module '@polkadot/api-base/types/calls' {
434
445
  **/
435
446
  memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
436
447
  /**
437
- * Returns the pending slash for a given pool member.
448
+ * Returns the pending slash for a given pool member.,, If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on, chain.
438
449
  **/
439
450
  memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
440
451
  /**
@@ -490,9 +501,13 @@ declare module '@polkadot/api-base/types/calls' {
490
501
  /** 0x8c403e5c4a9fd442/ */
491
502
  reviveApi: {
492
503
  /**
493
- * Returns the free balance of the given `[H160]` address.
504
+ * Returns the free balance of the given `[H160]` address, using EVM decimals.
505
+ **/
506
+ balance: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<U256>>;
507
+ /**
508
+ * Returns the block gas limit.
494
509
  **/
495
- balance: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<u128>>;
510
+ blockGasLimit: AugmentedCall<ApiType, () => Observable<U256>>;
496
511
  /**
497
512
  * Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`].
498
513
  **/
@@ -503,10 +518,27 @@ declare module '@polkadot/api-base/types/calls' {
503
518
  /**
504
519
  * Perform an Ethereum call.,, See [`crate::Pallet::bare_eth_transact`]
505
520
  **/
506
- ethTransact: AugmentedCall<ApiType, (origin: H160 | string | Uint8Array, dest: Option<H160> | null | Uint8Array | H160 | string, value: u128 | AnyNumber | Uint8Array, input: Bytes | string | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | {
507
- refTime?: any;
508
- proofSize?: any;
509
- } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber) => Observable<PalletRevivePrimitivesEthContractResult>>;
521
+ ethTransact: AugmentedCall<ApiType, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction | {
522
+ accessList?: any;
523
+ blobVersionedHashes?: any;
524
+ blobs?: any;
525
+ chainId?: any;
526
+ from?: any;
527
+ gas?: any;
528
+ gasPrice?: any;
529
+ input?: any;
530
+ maxFeePerBlobGas?: any;
531
+ maxFeePerGas?: any;
532
+ maxPriorityFeePerGas?: any;
533
+ nonce?: any;
534
+ to?: any;
535
+ r_type?: any;
536
+ value?: any;
537
+ } | string | Uint8Array) => Observable<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>>;
538
+ /**
539
+ * Returns the gas price.
540
+ **/
541
+ gasPrice: AugmentedCall<ApiType, () => Observable<U256>>;
510
542
  /**
511
543
  * Query a given storage key in a given contract.,, Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the, specified account and `Ok(None)` if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract then `Err` is returned.
512
544
  **/
@@ -526,6 +558,46 @@ declare module '@polkadot/api-base/types/calls' {
526
558
  * Returns the nonce of the given `[H160]` address.
527
559
  **/
528
560
  nonce: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<u32>>;
561
+ /**
562
+ * Traces the execution of an entire block and returns call traces.,, This is intended to be called through `state_call` to replay the block from the, parent block.,, See eth-rpc `debug_traceBlockByNumber` for usage.
563
+ **/
564
+ traceBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
565
+ header?: any;
566
+ extrinsics?: any;
567
+ } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | {
568
+ CallTracer: any;
569
+ } | string | Uint8Array) => Observable<Vec<ITuple<[u32, PalletReviveEvmApiDebugRpcTypesCallTrace]>>>>;
570
+ /**
571
+ * Dry run and return the trace of the given call.,, See eth-rpc `debug_traceCall` for usage.
572
+ **/
573
+ traceCall: AugmentedCall<ApiType, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction | {
574
+ accessList?: any;
575
+ blobVersionedHashes?: any;
576
+ blobs?: any;
577
+ chainId?: any;
578
+ from?: any;
579
+ gas?: any;
580
+ gasPrice?: any;
581
+ input?: any;
582
+ maxFeePerBlobGas?: any;
583
+ maxFeePerGas?: any;
584
+ maxPriorityFeePerGas?: any;
585
+ nonce?: any;
586
+ to?: any;
587
+ r_type?: any;
588
+ value?: any;
589
+ } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | {
590
+ CallTracer: any;
591
+ } | string | Uint8Array) => Observable<Result<PalletReviveEvmApiDebugRpcTypesCallTrace, PalletRevivePrimitivesEthTransactError>>>;
592
+ /**
593
+ * Traces the execution of a specific transaction within a block.,, This is intended to be called through `state_call` to replay the block from the, parent hash up to the transaction.,, See eth-rpc `debug_traceTransaction` for usage.
594
+ **/
595
+ traceTx: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
596
+ header?: any;
597
+ extrinsics?: any;
598
+ } | string | Uint8Array, tx_index: u32 | AnyNumber | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | {
599
+ CallTracer: any;
600
+ } | string | Uint8Array) => Observable<Option<PalletReviveEvmApiDebugRpcTypesCallTrace>>>;
529
601
  /**
530
602
  * Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
531
603
  **/
@@ -535,6 +607,20 @@ declare module '@polkadot/api-base/types/calls' {
535
607
  **/
536
608
  [key: string]: DecoratedCallBase<ApiType>;
537
609
  };
610
+ /** 0xccd9de6396c899ca/ */
611
+ runtimeViewFunction: {
612
+ /**
613
+ * Execute a view function query.
614
+ **/
615
+ executeViewFunction: AugmentedCall<ApiType, (query_id: FrameSupportViewFunctionsViewFunctionId | {
616
+ prefix?: any;
617
+ suffix?: any;
618
+ } | string | Uint8Array, input: Bytes | string | Uint8Array) => Observable<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>>;
619
+ /**
620
+ * Generic call
621
+ **/
622
+ [key: string]: DecoratedCallBase<ApiType>;
623
+ };
538
624
  /** 0xab3c0572291feb8b/ */
539
625
  sessionKeys: {
540
626
  /**