@dedot/api 0.10.0 → 0.11.0

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.
@@ -1,6 +1,6 @@
1
1
  import type { AccountId32, AccountId32Like, Bytes, BytesLike, Data, Digest, FixedBytes, FixedU128, FixedU64, H160, H256, Perbill, Percent, Phase } from '@dedot/codecs';
2
2
  import type { GenericChainStorage, GenericStorageQuery, RpcVersion } from '@dedot/types';
3
- import type { FrameSupportDispatchPerDispatchClass, FrameSupportPreimagesBounded, FrameSupportTokensFungibleHoldConsideration, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmount, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, KitchensinkRuntimeRuntimeCall, 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, PalletCoreFellowshipParamsType, 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, PalletNftsBitFlagsCollectionRole, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletReferendaReferendumInfoTally, 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, SpConsensusSlotsSlot, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from './types.js';
3
+ import type { FrameSupportDispatchPerDispatchClass, FrameSupportPreimagesBounded, FrameSupportTokensFungibleHoldConsideration, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmount, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, KitchensinkRuntimeRuntimeCall, 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, PalletCoreFellowshipParamsType, 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, PalletNftsBitFlagsCollectionRole, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletReferendaReferendumInfoTally, 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, SpConsensusSlotsSlot, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingOffenceOffenceSeverity, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight } from './types.js';
4
4
  export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
5
5
  /**
6
6
  * Pallet `System`'s storage queries
@@ -134,6 +134,18 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
134
134
  * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
135
135
  **/
136
136
  authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
137
+ /**
138
+ * The weight reclaimed for the extrinsic.
139
+ *
140
+ * This information is available until the end of the extrinsic execution.
141
+ * More precisely this information is removed in `note_applied_extrinsic`.
142
+ *
143
+ * Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
144
+ * reduction.
145
+ *
146
+ * @param {Callback<SpWeightsWeightV2Weight> =} callback
147
+ **/
148
+ extrinsicWeightReclaimed: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight>;
137
149
  /**
138
150
  * Generic pallet storage query
139
151
  **/
@@ -961,18 +973,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
961
973
  * @param {Callback<number> =} callback
962
974
  **/
963
975
  currentPlannedSession: GenericStorageQuery<Rv, () => number>;
964
- /**
965
- * Indices of validators that have offended in the active era. The offenders are disabled for a
966
- * whole era. For this reason they are kept here - only staking pallet knows about eras. The
967
- * implementor of [`DisablingStrategy`] defines if a validator should be disabled which
968
- * implicitly means that the implementor also controls the max number of disabled validators.
969
- *
970
- * The vec is always kept sorted so that we can find whether a given validator has previously
971
- * offended using binary search.
972
- *
973
- * @param {Callback<Array<number>> =} callback
974
- **/
975
- disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
976
976
  /**
977
977
  * The threshold for when users can start calling `chill_other` for other validators /
978
978
  * nominators. The threshold is compared to the actual number of validators / nominators
@@ -1023,9 +1023,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1023
1023
  * disabled using binary search. It gets cleared when `on_session_ending` returns
1024
1024
  * a new set of identities.
1025
1025
  *
1026
- * @param {Callback<Array<number>> =} callback
1026
+ * @param {Callback<Array<[number, SpStakingOffenceOffenceSeverity]>> =} callback
1027
1027
  **/
1028
- disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
1028
+ disabledValidators: GenericStorageQuery<Rv, () => Array<[number, SpStakingOffenceOffenceSeverity]>>;
1029
1029
  /**
1030
1030
  * The next session keys for a validator.
1031
1031
  *
@@ -2020,6 +2020,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2020
2020
  **/
2021
2021
  scheduler: {
2022
2022
  /**
2023
+ * Block number at which the agenda began incomplete execution.
2023
2024
  *
2024
2025
  * @param {Callback<number | undefined> =} callback
2025
2026
  **/
@@ -4051,14 +4052,126 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
4051
4052
  /**
4052
4053
  * Map a Ethereum address to its original `AccountId32`.
4053
4054
  *
4054
- * Stores the last 12 byte for addresses that were originally an `AccountId32` instead
4055
- * of an `H160`. Register your `AccountId32` using [`Pallet::map_account`] in order to
4055
+ * When deriving a `H160` from an `AccountId32` we use a hash function. In order to
4056
+ * reconstruct the original account we need to store the reverse mapping here.
4057
+ * Register your `AccountId32` using [`Pallet::map_account`] in order to
4056
4058
  * use it with this pallet.
4057
4059
  *
4058
4060
  * @param {H160} arg
4059
- * @param {Callback<FixedBytes<12> | undefined> =} callback
4061
+ * @param {Callback<AccountId32 | undefined> =} callback
4062
+ **/
4063
+ originalAccount: GenericStorageQuery<Rv, (arg: H160) => AccountId32 | undefined, H160>;
4064
+ /**
4065
+ * Generic pallet storage query
4066
+ **/
4067
+ [storage: string]: GenericStorageQuery<Rv>;
4068
+ };
4069
+ /**
4070
+ * Pallet `DelegatedStaking`'s storage queries
4071
+ **/
4072
+ delegatedStaking: {
4073
+ /**
4074
+ * Map of Delegators to their `Delegation`.
4075
+ *
4076
+ * Implementation note: We are not using a double map with `delegator` and `agent` account
4077
+ * as keys since we want to restrict delegators to delegate only to one account at a time.
4078
+ *
4079
+ * @param {AccountId32Like} arg
4080
+ * @param {Callback<PalletDelegatedStakingDelegation | undefined> =} callback
4081
+ **/
4082
+ delegators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletDelegatedStakingDelegation | undefined, AccountId32>;
4083
+ /**
4084
+ * Counter for the related counted storage map
4085
+ *
4086
+ * @param {Callback<number> =} callback
4087
+ **/
4088
+ counterForDelegators: GenericStorageQuery<Rv, () => number>;
4089
+ /**
4090
+ * Map of `Agent` to their `Ledger`.
4091
+ *
4092
+ * @param {AccountId32Like} arg
4093
+ * @param {Callback<PalletDelegatedStakingAgentLedger | undefined> =} callback
4094
+ **/
4095
+ agents: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletDelegatedStakingAgentLedger | undefined, AccountId32>;
4096
+ /**
4097
+ * Counter for the related counted storage map
4098
+ *
4099
+ * @param {Callback<number> =} callback
4100
+ **/
4101
+ counterForAgents: GenericStorageQuery<Rv, () => number>;
4102
+ /**
4103
+ * Generic pallet storage query
4104
+ **/
4105
+ [storage: string]: GenericStorageQuery<Rv>;
4106
+ };
4107
+ /**
4108
+ * Pallet `AssetRewards`'s storage queries
4109
+ **/
4110
+ assetRewards: {
4111
+ /**
4112
+ * State of pool stakers.
4113
+ *
4114
+ * @param {[number, AccountId32Like]} arg
4115
+ * @param {Callback<PalletAssetRewardsPoolStakerInfo | undefined> =} callback
4116
+ **/
4117
+ poolStakers: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => PalletAssetRewardsPoolStakerInfo | undefined, [
4118
+ number,
4119
+ AccountId32
4120
+ ]>;
4121
+ /**
4122
+ * State and configuration of each staking pool.
4123
+ *
4124
+ * @param {number} arg
4125
+ * @param {Callback<PalletAssetRewardsPoolInfo | undefined> =} callback
4060
4126
  **/
4061
- addressSuffix: GenericStorageQuery<Rv, (arg: H160) => FixedBytes<12> | undefined, H160>;
4127
+ pools: GenericStorageQuery<Rv, (arg: number) => PalletAssetRewardsPoolInfo | undefined, number>;
4128
+ /**
4129
+ * The cost associated with storing pool information on-chain which was incurred by the pool
4130
+ * creator.
4131
+ *
4132
+ * This cost may be [`None`], as determined by [`Config::Consideration`].
4133
+ *
4134
+ * @param {number} arg
4135
+ * @param {Callback<[AccountId32, FrameSupportTokensFungibleHoldConsideration] | undefined> =} callback
4136
+ **/
4137
+ poolCost: GenericStorageQuery<Rv, (arg: number) => [AccountId32, FrameSupportTokensFungibleHoldConsideration] | undefined, number>;
4138
+ /**
4139
+ * Stores the [`PoolId`] to use for the next pool.
4140
+ *
4141
+ * Incremented when a new pool is created.
4142
+ *
4143
+ * @param {Callback<number> =} callback
4144
+ **/
4145
+ nextPoolId: GenericStorageQuery<Rv, () => number>;
4146
+ /**
4147
+ * Generic pallet storage query
4148
+ **/
4149
+ [storage: string]: GenericStorageQuery<Rv>;
4150
+ };
4151
+ /**
4152
+ * Pallet `AssetsFreezer`'s storage queries
4153
+ **/
4154
+ assetsFreezer: {
4155
+ /**
4156
+ * A map that stores freezes applied on an account for a given AssetId.
4157
+ *
4158
+ * @param {[number, AccountId32Like]} arg
4159
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
4160
+ **/
4161
+ freezes: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>, [
4162
+ number,
4163
+ AccountId32
4164
+ ]>;
4165
+ /**
4166
+ * A map that stores the current total frozen balance for every account on a given AssetId.
4167
+ *
4168
+ * @param {[number, AccountId32Like]} arg
4169
+ * @param {Callback<bigint | undefined> =} callback
4170
+ **/
4171
+ frozenBalances: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => bigint | undefined, [
4172
+ number,
4173
+ AccountId32
4174
+ ]>;
4062
4175
  /**
4063
4176
  * Generic pallet storage query
4064
4177
  **/
@@ -1,6 +1,6 @@
1
- import type { AccountId32, AccountId32Like, Bytes, BytesLike, DispatchError, FixedBytes, H160, H256, Header, Result, RuntimeVersion, UncheckedExtrinsic, UncheckedExtrinsicLike } from '@dedot/codecs';
1
+ import type { AccountId32, AccountId32Like, Bytes, BytesLike, DispatchError, FixedBytes, H160, H256, Header, Result, RuntimeVersion, U256, UncheckedExtrinsic, UncheckedExtrinsicLike } from '@dedot/codecs';
2
2
  import type { GenericRuntimeApiMethod, GenericRuntimeApis, RpcVersion } from '@dedot/types';
3
- import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeRuntimeCallLike, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesContractResultResult, PalletContractsWasmDeterminism, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResult, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthContractResult, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBabeOpaqueKeyOwnershipProof, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpConsensusSlotsSlot, SpCoreCryptoKeyTypeId, SpCoreOpaqueMetadata, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesEncodableOpaqueLeaf, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeExtrinsicInclusionMode, SpRuntimeOpaqueValue, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpWeightsWeightV2Weight } from './types.js';
3
+ import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, KitchensinkRuntimeRuntimeCallLike, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesContractResultResult, PalletContractsWasmDeterminism, PalletReviveEvmApiDebugRpcTypesCallTrace, PalletReviveEvmApiDebugRpcTypesTracerConfig, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResult, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBabeOpaqueKeyOwnershipProof, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpConsensusSlotsSlot, SpCoreCryptoKeyTypeId, SpCoreOpaqueMetadata, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesEncodableOpaqueLeaf, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeExtrinsicInclusionMode, SpRuntimeOpaqueValue, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpWeightsWeightV2Weight } from './types.js';
4
4
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
5
5
  /**
6
6
  * @runtimeapi: Core - 0xdf6acb689907609b
@@ -64,6 +64,23 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
64
64
  **/
65
65
  [method: string]: GenericRuntimeApiMethod<Rv>;
66
66
  };
67
+ /**
68
+ * @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
69
+ **/
70
+ runtimeViewFunction: {
71
+ /**
72
+ * Execute a view function query.
73
+ *
74
+ * @callname: RuntimeViewFunction_execute_view_function
75
+ * @param {FrameSupportViewFunctionsViewFunctionId} query_id
76
+ * @param {BytesLike} input
77
+ **/
78
+ executeViewFunction: GenericRuntimeApiMethod<Rv, (queryId: FrameSupportViewFunctionsViewFunctionId, input: BytesLike) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>>;
79
+ /**
80
+ * Generic runtime api call
81
+ **/
82
+ [method: string]: GenericRuntimeApiMethod<Rv>;
83
+ };
67
84
  /**
68
85
  * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
69
86
  **/
@@ -259,6 +276,9 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
259
276
  /**
260
277
  * Returns the pending slash for a given pool member.
261
278
  *
279
+ * If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on
280
+ * chain.
281
+ *
262
282
  * @callname: NominationPoolsApi_member_pending_slash
263
283
  * @param {AccountId32Like} member
264
284
  **/
@@ -529,12 +549,24 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
529
549
  **/
530
550
  reviveApi: {
531
551
  /**
532
- * Returns the free balance of the given `[H160]` address.
552
+ * Returns the block gas limit.
553
+ *
554
+ * @callname: ReviveApi_block_gas_limit
555
+ **/
556
+ blockGasLimit: GenericRuntimeApiMethod<Rv, () => Promise<U256>>;
557
+ /**
558
+ * Returns the free balance of the given `[H160]` address, using EVM decimals.
533
559
  *
534
560
  * @callname: ReviveApi_balance
535
561
  * @param {H160} address
536
562
  **/
537
- balance: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<bigint>>;
563
+ balance: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<U256>>;
564
+ /**
565
+ * Returns the gas price.
566
+ *
567
+ * @callname: ReviveApi_gas_price
568
+ **/
569
+ gasPrice: GenericRuntimeApiMethod<Rv, () => Promise<U256>>;
538
570
  /**
539
571
  * Returns the nonce of the given `[H160]` address.
540
572
  *
@@ -577,14 +609,9 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
577
609
  * See [`crate::Pallet::bare_eth_transact`]
578
610
  *
579
611
  * @callname: ReviveApi_eth_transact
580
- * @param {H160} origin
581
- * @param {H160 | undefined} dest
582
- * @param {bigint} value
583
- * @param {BytesLike} input
584
- * @param {SpWeightsWeightV2Weight | undefined} gas_limit
585
- * @param {bigint | undefined} storage_deposit_limit
612
+ * @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
586
613
  **/
587
- ethTransact: GenericRuntimeApiMethod<Rv, (origin: H160, dest: H160 | undefined, value: bigint, input: BytesLike, gasLimit?: SpWeightsWeightV2Weight | undefined, storageDepositLimit?: bigint | undefined) => Promise<PalletRevivePrimitivesEthContractResult>>;
614
+ ethTransact: GenericRuntimeApiMethod<Rv, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>>;
588
615
  /**
589
616
  * Upload new code without instantiating a contract from it.
590
617
  *
@@ -608,6 +635,43 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
608
635
  * @param {FixedBytes<32>} key
609
636
  **/
610
637
  getStorage: GenericRuntimeApiMethod<Rv, (address: H160, key: FixedBytes<32>) => Promise<Result<Bytes | undefined, PalletRevivePrimitivesContractAccessError>>>;
638
+ /**
639
+ * Traces the execution of an entire block and returns call traces.
640
+ *
641
+ * This is intended to be called through `state_call` to replay the block from the
642
+ * parent block.
643
+ *
644
+ * See eth-rpc `debug_traceBlockByNumber` for usage.
645
+ *
646
+ * @callname: ReviveApi_trace_block
647
+ * @param {SpRuntimeBlock} block
648
+ * @param {PalletReviveEvmApiDebugRpcTypesTracerConfig} config
649
+ **/
650
+ traceBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock, config: PalletReviveEvmApiDebugRpcTypesTracerConfig) => Promise<Array<[number, PalletReviveEvmApiDebugRpcTypesCallTrace]>>>;
651
+ /**
652
+ * Traces the execution of a specific transaction within a block.
653
+ *
654
+ * This is intended to be called through `state_call` to replay the block from the
655
+ * parent hash up to the transaction.
656
+ *
657
+ * See eth-rpc `debug_traceTransaction` for usage.
658
+ *
659
+ * @callname: ReviveApi_trace_tx
660
+ * @param {SpRuntimeBlock} block
661
+ * @param {number} tx_index
662
+ * @param {PalletReviveEvmApiDebugRpcTypesTracerConfig} config
663
+ **/
664
+ traceTx: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock, txIndex: number, config: PalletReviveEvmApiDebugRpcTypesTracerConfig) => Promise<PalletReviveEvmApiDebugRpcTypesCallTrace | undefined>>;
665
+ /**
666
+ * Dry run and return the trace of the given call.
667
+ *
668
+ * See eth-rpc `debug_traceCall` for usage.
669
+ *
670
+ * @callname: ReviveApi_trace_call
671
+ * @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
672
+ * @param {PalletReviveEvmApiDebugRpcTypesTracerConfig} config
673
+ **/
674
+ traceCall: GenericRuntimeApiMethod<Rv, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction, config: PalletReviveEvmApiDebugRpcTypesTracerConfig) => Promise<Result<PalletReviveEvmApiDebugRpcTypesCallTrace, PalletRevivePrimitivesEthTransactError>>>;
611
675
  /**
612
676
  * Generic runtime api call
613
677
  **/
@@ -1014,6 +1078,23 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1014
1078
  **/
1015
1079
  [method: string]: GenericRuntimeApiMethod<Rv>;
1016
1080
  };
1081
+ /**
1082
+ * @runtimeapi: AssetRewards - 0x65f855d6e093c2f1
1083
+ **/
1084
+ assetRewards: {
1085
+ /**
1086
+ * Get the cost of creating a pool.
1087
+ *
1088
+ * This is especially useful when the cost is dynamic.
1089
+ *
1090
+ * @callname: AssetRewards_pool_creation_cost
1091
+ **/
1092
+ poolCreationCost: GenericRuntimeApiMethod<Rv, () => Promise<bigint>>;
1093
+ /**
1094
+ * Generic runtime api call
1095
+ **/
1096
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1097
+ };
1017
1098
  /**
1018
1099
  * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
1019
1100
  **/