import '@polkadot/api-base/types/calls'; import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; import type { Bytes, Null, Option, Result, Text, U256, U8aFixed, Vec, bool, u128, u32 } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; import type { ParaId } from '@polkadot/types/interfaces/parachains'; import type { AccountId32, H160, H256, RuntimeCall, Slot, SlotDuration } from '@polkadot/types/interfaces/runtime'; import type { AssetHubKusamaRuntimeOriginCaller, AssetsCommonRuntimeApiFungiblesAccessError, CumulusPrimitivesCoreCollationInfo, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, PalletReviveEvmApiDebugRpcTypesTrace, PalletReviveEvmApiDebugRpcTypesTracerType, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight, StagingXcmV5Location, XcmRuntimeApisAuthorizedAliasesError, XcmRuntimeApisAuthorizedAliasesOriginAliaser, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmRuntimeApisTrustedQueryError, XcmVersionedAsset, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; import type { IExtrinsic, Observable } from '@polkadot/types/types'; export type __AugmentedCall = AugmentedCall; export type __DecoratedCallBase = DecoratedCallBase; declare module '@polkadot/api-base/types/calls' { interface AugmentedCalls { /** 0xbc9d89904f5b923f/ */ accountNonceApi: { /** * Get current account nonce of given `AccountId`. **/ accountNonce: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x8a8047a53a8277ec/ */ assetConversionApi: { /** * Returns the size of the liquidity pool for the given asset pair. **/ getReserves: AugmentedCall Observable>>>; /** * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].,, Note that the price may have changed by the time the transaction is executed., (Use `amount_out_min` to control slippage.) **/ quotePriceExactTokensForTokens: AugmentedCall Observable>>; /** * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].,, Note that the price may have changed by the time the transaction is executed., (Use `amount_in_max` to control slippage.) **/ quotePriceTokensForExactTokens: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xdd718d5cc53262d4/ */ auraApi: { /** * Return the current set of authorities. **/ authorities: AugmentedCall Observable>>; /** * Returns the slot duration for Aura.,, Currently, only the value provided by this type at genesis will be used. **/ slotDuration: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xd7bdd8a272ca0d65/ */ auraUnincludedSegmentApi: { /** * Whether it is legal to extend the chain, assuming the given block is the most, recently included one as-of the relay parent that will be built against, and, the given relay chain slot.,, This should be consistent with the logic the runtime uses when validating blocks to, avoid issues.,, When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block, whose state we are querying against, this must always return `true` as long as the slot, is more recent than the included block itself. **/ canBuildUpon: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x12c8e3d4d7e06de0/ */ authorizedAliasersApi: { /** * Returns locations allowed to alias into and act as `target`. **/ authorizedAliasers: AugmentedCall Observable, XcmRuntimeApisAuthorizedAliasesError>>>; /** * Returns whether `origin` is allowed to alias into and act as `target`. **/ isAuthorizedAlias: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x40fe3ad401f8959a/ */ blockBuilder: { /** * Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not. **/ applyExtrinsic: AugmentedCall Observable, SpRuntimeTransactionValidityTransactionValidityError>>>; /** * Check that the inherents are valid. The inherent data will vary from chain to chain. **/ checkInherents: AugmentedCall Observable>; /** * Finish the current block. **/ finalizeBlock: AugmentedCall Observable>; /** * Generate inherent extrinsics. The inherent data will vary from chain to chain. **/ inherentExtrinsics: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xea93e3f16f3d6962/ */ collectCollationInfo: { /** * Collect information about a collation.,, The given `header` is the header of the built block for that, we are collecting the collation info for. **/ collectCollationInfo: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xdf6acb689907609b/ */ core: { /** * Execute the given block. **/ executeBlock: AugmentedCall Observable>; /** * Initialize a block with the given header and return the runtime executive mode. **/ initializeBlock: AugmentedCall Observable>; /** * Returns the version of the runtime. **/ version: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x91b1c8b16328eb92/ */ dryRunApi: { /** * Dry run call V2. **/ dryRunCall: AugmentedCall Observable>>; /** * Dry run XCM program **/ dryRunXcm: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xde92b8a0426b9bf6/ */ fungiblesApi: { /** * Returns the list of all [`Asset`] that an `AccountId` has. **/ queryAccountBalances: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xfbc577b9d747efd6/ */ genesisBuilder: { /** * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full, `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the, provided JSON blob is incorrect or incomplete or the deserialization fails, an error, is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used. **/ buildState: AugmentedCall Observable>>; /** * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function should return JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method. **/ getPreset: AugmentedCall | null | Uint8Array | Text | string) => Observable>>; /** * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.,, The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If, no named presets are provided by the runtime the list is empty. **/ presetNames: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xa2ddb6a58477bf63/ */ getParachainInfo: { /** * Retrieve the parachain id used for runtime. **/ parachainId: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x9ffb505aa738d69c/ */ locationToAccountApi: { /** * Converts `Location` to `AccountId`. **/ convertLocation: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x37e397fc7c91f5e4/ */ metadata: { /** * Returns the metadata of a runtime. **/ metadata: AugmentedCall Observable>; /** * Returns the metadata at a given version.,, If the given `version` isn't supported, this will return `None`., Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime. **/ metadataAtVersion: AugmentedCall Observable>>; /** * Returns the supported metadata versions.,, This can be used to call `metadata_at_version`. **/ metadataVersions: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x17a6bc0d0062aeb3/ */ nominationPoolsApi: { /** * Returns the equivalent points of `new_funds` for a given pool. **/ balanceToPoints: AugmentedCall Observable>; /** * Returns true if the delegated funds of the pool `member` needs migration.,, Once a pool has successfully migrated to the strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the, member can be migrated from pool account to the member's account. Use, [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation), to migrate the funds of the pool member. **/ memberNeedsDelegateMigration: AugmentedCall Observable>; /** * Returns the pending slash for a given pool member.,, If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on, chain. **/ memberPendingSlash: AugmentedCall Observable>; /** * Returns the total contribution of a pool member including any balance that is unbonding. **/ memberTotalBalance: AugmentedCall Observable>; /** * Returns the pending rewards for the member that the AccountId was given for. **/ pendingRewards: AugmentedCall Observable>; /** * Returns the equivalent balance of `points` for a given pool. **/ pointsToBalance: AugmentedCall Observable>; /** * Returns the bonded account and reward account associated with the pool_id. **/ poolAccounts: AugmentedCall Observable>>; /** * Total balance contributed to the pool. **/ poolBalance: AugmentedCall Observable>; /** * Returns true if the pool with `pool_id` needs migration.,, This can happen when the `pallet-nomination-pools` has switched to using strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool, still has funds that were staked using the older strategy, [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use, [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake), to migrate the pool. **/ poolNeedsDelegateMigration: AugmentedCall Observable>; /** * Returns the pending slash for a given pool. **/ poolPendingSlash: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xf78b278be53f454c/ */ offchainWorkerApi: { /** * Starts the off-chain task for given block header. **/ offchainWorker: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x04e70521a0d3d2f8/ */ relayParentOffsetApi: { /** * Fetch the slot offset that is expected from the relay chain. **/ relayParentOffset: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x8c403e5c4a9fd442/ */ reviveApi: { /** * Get the H160 address associated to this account id **/ address: AugmentedCall Observable>; /** * Returns the free balance of the given `[H160]` address, using EVM decimals. **/ balance: AugmentedCall Observable>; /** * The address of the validator that produced the current block. **/ blockAuthor: AugmentedCall Observable>>; /** * Returns the block gas limit. **/ blockGasLimit: AugmentedCall Observable>; /** * Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`]. **/ call: AugmentedCall | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any; } | string, storage_deposit_limit: Option | null | Uint8Array | u128 | AnyNumber, input_data: Bytes | string | Uint8Array) => Observable>; /** * The code at the specified address taking pre-compiles into account. **/ code: AugmentedCall Observable>; /** * Perform an Ethereum call.,, See [`crate::Pallet::dry_run_eth_transact`] **/ ethTransact: AugmentedCall Observable>>; /** * Returns the gas price. **/ gasPrice: AugmentedCall Observable>; /** * Query a given storage key in a given contract.,, Returns `Ok(Some(Vec))` 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. **/ getStorage: AugmentedCall Observable, PalletRevivePrimitivesContractAccessError>>>; /** * Query a given variable-sized storage key in a given contract.,, Returns `Ok(Some(Vec))` 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. **/ getStorageVarKey: AugmentedCall Observable, PalletRevivePrimitivesContractAccessError>>>; /** * Instantiate a new contract.,, See `[crate::Pallet::bare_instantiate]`. **/ instantiate: AugmentedCall | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any; } | string, storage_deposit_limit: Option | null | Uint8Array | u128 | AnyNumber, code: PalletRevivePrimitivesCode | { Upload: any; } | { Existing: any; } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Option | null | Uint8Array | U8aFixed | string) => Observable>; /** * Returns the nonce of the given `[H160]` address. **/ nonce: AugmentedCall Observable>; /** * The address used to call the runtime's pallets dispatchables **/ runtimePalletsAddress: AugmentedCall Observable>; /** * 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. **/ traceBlock: AugmentedCall Observable>>>; /** * Dry run and return the trace of the given call.,, See eth-rpc `debug_traceCall` for usage. **/ traceCall: AugmentedCall Observable>>; /** * 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. **/ traceTx: AugmentedCall Observable>>; /** * Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`]. **/ uploadCode: AugmentedCall | null | Uint8Array | u128 | AnyNumber) => Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xccd9de6396c899ca/ */ runtimeViewFunction: { /** * Execute a view function query. **/ executeViewFunction: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xab3c0572291feb8b/ */ sessionKeys: { /** * Decode the given public session keys.,, Returns the list of public raw public keys + key type. **/ decodeSessionKeys: AugmentedCall Observable>>>>; /** * Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid `utf8` string.,, Returns the concatenated SCALE encoded public keys. **/ generateSessionKeys: AugmentedCall | null | Uint8Array | Bytes | string) => Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x18ef58a3b67ba770/ */ stakingApi: { /** * Returns the page count of exposures for a validator `account` in a given era. **/ erasStakersPageCount: AugmentedCall Observable>; /** * Returns the nominations quota for a nominator with a given balance. **/ nominationsQuota: AugmentedCall Observable>; /** * Returns true if validator `account` has pages to be claimed for the given era. **/ pendingRewards: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xd2bc9897eed08f15/ */ taggedTransactionQueue: { /** * Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given `block_hash` corresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order. **/ validateTransaction: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x37c8bb1350a9a2a8/ */ transactionPaymentApi: { /** * **/ queryFeeDetails: AugmentedCall Observable>; /** * **/ queryInfo: AugmentedCall Observable>; /** * **/ queryLengthToFee: AugmentedCall Observable>; /** * **/ queryWeightToFee: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xf3ff14d5ab527059/ */ transactionPaymentCallApi: { /** * Query fee details of a given encoded `Call`. **/ queryCallFeeDetails: AugmentedCall Observable>; /** * Query information of a dispatch class, weight, and fee of a given encoded `Call`. **/ queryCallInfo: AugmentedCall Observable>; /** * Query the output of the current `LengthToFee` given some input. **/ queryLengthToFee: AugmentedCall Observable>; /** * Query the output of the current `WeightToFee` given some input. **/ queryWeightToFee: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x2609be83ac4468dc/ */ trustedQueryApi: { /** * Returns if the location is a trusted reserve for the asset.,, # Arguments, * `asset`: `VersionedAsset`., * `location`: `VersionedLocation`. **/ isTrustedReserve: AugmentedCall Observable>>; /** * Returns if the asset can be teleported to the location.,, # Arguments, * `asset`: `VersionedAsset`., * `location`: `VersionedLocation`. **/ isTrustedTeleporter: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x6ff52ee858e6c5bd/ */ xcmPaymentApi: { /** * Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version. **/ queryAcceptablePaymentAssets: AugmentedCall Observable, XcmRuntimeApisFeesError>>>; /** * Get delivery fees for sending a specific `message` to a `destination`., These always come in a specific asset, defined by the chain.,, # Arguments, * `message`: The message that'll be sent, necessary because most delivery fees are based on the, size of the message., * `destination`: The destination to send the message to. Different destinations may use, different senders that charge different fees. **/ queryDeliveryFees: AugmentedCall Observable>>; /** * Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`. **/ queryWeightToAssetFee: AugmentedCall Observable>>; /** * Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`. **/ queryXcmWeight: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; } }