import '@polkadot/api-base/types/calls'; import type { CommonPrimitivesMsaDelegatorId, CommonPrimitivesMsaProviderId } from '@frequency-chain/api-augment/msa'; import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; import type { Bytes, Null, Option, Result, Text, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; import type { AccountId32, H160, H256, Slot, SlotDuration } from '@polkadot/types/interfaces/runtime'; import type { CommonPrimitivesCapacityUnclaimedRewardInfo, CommonPrimitivesHandlesCheckHandleResponse, CommonPrimitivesHandlesHandleResponse, CommonPrimitivesHandlesPresumptiveSuffixesResponse, CommonPrimitivesMessagesBlockPaginationRequest, CommonPrimitivesMessagesBlockPaginationResponse, CommonPrimitivesMessagesMessageResponse, CommonPrimitivesMsaAccountId20Response, CommonPrimitivesMsaDelegationGrant, CommonPrimitivesMsaDelegationResponse, CommonPrimitivesMsaProviderApplicationContext, CommonPrimitivesRpcRpcEvent, CommonPrimitivesSchemaIntentGroupResponse, CommonPrimitivesSchemaIntentResponse, CommonPrimitivesSchemaNameLookupResponse, CommonPrimitivesSchemaPayloadLocation, CommonPrimitivesSchemaSchemaResponse, CommonPrimitivesSchemaSchemaResponseV2, CommonPrimitivesSchemaSchemaVersionResponse, CommonPrimitivesStatefulStorageItemizedStoragePageResponse, CommonPrimitivesStatefulStorageItemizedStoragePageResponseV2, CommonPrimitivesStatefulStoragePaginatedStorageResponse, CommonPrimitivesStatefulStoragePaginatedStorageResponseV2, CumulusPrimitivesCoreCollationInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } 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; }; /** 0xc451b3fcf34859b4/ */ additionalRuntimeApi: { /** * Fetch the events of a block, An easy to work with structure with minimal SCALE needs **/ getEvents: 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; }; /** 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; }; /** 0x565bdd41a48b481c/ */ capacityRuntimeApi: { /** * Get the list of unclaimed rewards information for each eligible Reward Era. **/ listUnclaimedRewards: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x63cf1fb7b1dad5a9/ */ capacityTransactionPaymentRuntimeApi: { /** * Query the capacity fee details for a given extrinsic. **/ computeCapacityFee: 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; }; /** 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; }; /** 0x0304bb19c2df37a2/ */ handlesRuntimeApi: { /** * Return information about a given handle **/ checkHandle: AugmentedCall Observable>; /** * Retrieve handle for a particular msa **/ getHandleForMsa: AugmentedCall Observable>>; /** * Retrieve msa for a particular handle **/ getMsaForHandle: AugmentedCall Observable>>; /** * Retrieve the next `n` suffixes for a given handle **/ getNextSuffixes: AugmentedCall Observable>; /** * Check if a handle is valid **/ validateHandle: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x54bef602b989d121/ */ messagesRuntimeApi: { /** * Retrieve the messages for a particular intent and block range (paginated) **/ getMessagesByIntentId: AugmentedCall Observable>; /** * Retrieve the messages for a particular schema and block number **/ getMessagesBySchemaAndBlock: AugmentedCall Observable>>; /** * Retrieve a schema by id **/ getSchemaById: 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; }; /** 0x24d062f93a859f6f/ */ msaRuntimeApi: { /** * Get the list of all delegated providers with Intent permission grants (if any) that exist in any delegation between the delegator and provider., The returned list contains both Intent id and the block number at which permission was revoked (0 if currently not revoked). **/ getAllGrantedDelegationsByMsaId: AugmentedCall Observable>>; /** * Get the list of Intent permission grants (if any) that exist in any delegation between the delegator and provider., The returned list contains both Intent id and the block number at which permission was revoked (0 if currently not revoked). **/ getDelegationForMsaAndProvider: AugmentedCall Observable>>; /** * Get the Ethereum address of the given MSA., The address is returned as both a 20-byte binary address and a hex-encoded checksummed string (ERC-55). **/ getEthereumAddressForMsaId: AugmentedCall Observable>; /** * Get the list of Intent permission grants (if any) that exist in any delegation between the delegator and provider, The returned list contains both Intent id and the block number at which permission was revoked (0 if currently not revoked), NOTE: pre-deprecation this returned SchemaIds; now it returns IntentIds **/ getGrantedSchemasByMsaId: AugmentedCall Observable>>>; /** * Get the provider application context for a given provider and application **/ getProviderApplicationContext: AugmentedCall | null | Uint8Array | u16 | AnyNumber, locale: Option | null | Uint8Array | Bytes | string) => Observable>>; /** * Check to see if a delegation existed between the given delegator and provider at a given block **/ hasDelegation: AugmentedCall | null | Uint8Array | u16 | AnyNumber) => Observable>; /** * Validate if the given Ethereum address is associated with the given MSA **/ validateEthAddressForMsa: 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; }; /** 0x02fadd88517cc081/ */ schemasRuntimeApi: { /** * Fetch the schema by id **/ getBySchemaId: AugmentedCall Observable>>; /** * Fetch the Intent by id **/ getIntentById: AugmentedCall Observable>>; /** * Fetch the IntentGroup by id **/ getIntentGroupById: AugmentedCall Observable>>; /** * Fetch registered entity identifiers by name **/ getRegisteredEntitiesByName: AugmentedCall Observable>>>; /** * Fetch the schema by id **/ getSchemaById: AugmentedCall Observable>>; /** * Fetch the schema versions by name **/ getSchemaVersionsByName: 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; }; /** 0x4250010199fc50d3/ */ statefulStorageRuntimeApi: { /** * Retrieve the itemized storage for a particular msa and schema **/ getItemizedStorage: AugmentedCall Observable>>; /** * Retrieve the itemized storage for a particular msa and schema **/ getItemizedStorageV2: AugmentedCall Observable>>; /** * Retrieve the paginated storage for a particular msa and schema **/ getPaginatedStorage: AugmentedCall Observable, SpRuntimeDispatchError>>>; /** * Retrieve the paginated storage for a particular msa and schema **/ getPaginatedStorageV2: AugmentedCall Observable, SpRuntimeDispatchError>>>; /** * 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; }; } }