import '@polkadot/api-base/types/calls'; import type { AssetSwitchApiError, CompleteMerkleProof, DidApiAccountId, DipProofRequest, LinkedDidResource, PublicCredentialError, PublicCredentialFilter, RawDidLinkedInfo, RuntimeApiDipProofError, StakingRates } from './runtimeDefinitions'; import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; import type { Bytes, Null, Option, Result, Text, Vec, bool, u128, u32 } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder'; import type { BlockHash } from '@polkadot/types/interfaces/chain'; import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; import type { CollationInfo } from '@polkadot/types/interfaces/cumulus'; import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder'; import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; import type { AccountId, AccountId32, Balance, Block, Call, Hash, Header, Index, KeyTypeId, RuntimeCall, Slot, SlotDuration, Weight } from '@polkadot/types/interfaces/runtime'; import type { RuntimeVersion } from '@polkadot/types/interfaces/state'; import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system'; import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue'; import type { PublicCredentialsCredentialsCredentialEntry, XcmVersionedAssetId, 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/1 */ accountNonceApi: { /** * The API to query account nonce (aka transaction index) **/ accountNonce: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xa3fd5536eea70e74/2 */ assetSwitch: { /** * Calculate the pool account address for a switch pallet instance and asset ID **/ poolAccountId: AugmentedCall Observable>>; /** * Computes the XCM program that will be executed at destination to complete the cross-chain switch. **/ xcmForSwitch: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xdd718d5cc53262d4/1 */ auraApi: { /** * Return the current set of authorities. **/ authorities: AugmentedCall Observable>>; /** * Returns the slot duration for Aura. **/ slotDuration: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xd7bdd8a272ca0d65/1 */ auraUnincludedSegmentApi: { /** * Whether it is legal to extend the chain **/ canBuildUpon: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x40fe3ad401f8959a/6 */ blockBuilder: { /** * Apply the given extrinsic. **/ applyExtrinsic: AugmentedCall Observable>; /** * Check that the inherents are valid. **/ checkInherents: AugmentedCall Observable>; /** * Finish the current block. **/ finalizeBlock: AugmentedCall Observable
>; /** * Generate inherent extrinsics. **/ inherentExtrinsics: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xea93e3f16f3d6962/2 */ collectCollationInfo: { /** * Collect information about a collation. **/ collectCollationInfo: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xdf6acb689907609b/4 */ core: { /** * Execute the given block. **/ executeBlock: AugmentedCall Observable>; /** * Initialize a block with the given header. **/ initializeBlock: AugmentedCall Observable>; /** * Returns the version of the runtime. **/ version: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x26609555c0656603/4 */ did: { /** * Batch multiple calls of `query`. **/ batchQuery: AugmentedCall | (AccountId32 | string | Uint8Array)[]) => Observable>>>; /** * Batch multiple calls of `query_by_account`. **/ batchQueryByAccount: AugmentedCall | (DidApiAccountId | { AccountId20: any; } | { AccountId32: any; } | string | Uint8Array)[]) => Observable>>>; /** * Batch multiple calls of `query_by_web3_name`. **/ batchQueryByWeb3Name: AugmentedCall | (Text | string)[]) => Observable>>>; /** * Returns the list of linked resources for a given DID that must be deleted before the DID itself can be deleted. **/ linkedResources: AugmentedCall Observable>>; /** * Returns the list of calls that must be executed to delete the linked resources of a given DID, before deleting the DID itself. **/ linkedResourcesDeletionCalls: AugmentedCall Observable>>; /** * Return the information relative to the owner of the provided DID, if present. **/ query: AugmentedCall Observable>>; /** * Return the information relative to the DID to which the provided account is linked, if any. **/ queryByAccount: AugmentedCall Observable>>; /** * Return the information relative to the owner of the provided web3name, if any. **/ queryByWeb3Name: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xc3b3e8d33273990d/1 */ dipProvider: { /** * Generate a Merkle proof for the DIP protocol for the specified request parameters. **/ generateProof: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xfbc577b9d747efd6/1 */ genesisBuilder: { /** * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage. **/ buildConfig: AugmentedCall Observable, GenesisBuildErr>>>; /** * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob. **/ createDefaultConfig: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x37e397fc7c91f5e4/2 */ metadata: { /** * Returns the metadata of a runtime **/ metadata: AugmentedCall Observable>; /** * Returns the metadata at a given version. **/ metadataAtVersion: AugmentedCall Observable>>; /** * Returns the supported metadata versions. **/ metadataVersions: AugmentedCall Observable>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xf78b278be53f454c/2 */ offchainWorkerApi: { /** * Starts the off-chain task for given block header. **/ offchainWorker: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xa47b7d544994c99b/1 */ publicCredentials: { /** * Return the public credential with the specified ID, if found. **/ getById: AugmentedCall Observable>>; /** * Return all the public credentials linked to the specified subject. An optional filter can be passed to be applied to the result before being returned to the client. It returns an error if the provided specified subject ID is not valid. **/ getBySubject: AugmentedCall | null | Uint8Array | PublicCredentialFilter | { ctypeHash: any; } | { attester: any; } | string) => Observable>, PublicCredentialError>>>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xab3c0572291feb8b/1 */ sessionKeys: { /** * Decode the given public session keys. **/ decodeSessionKeys: AugmentedCall Observable>>>>; /** * Generate a set of session keys with optionally using the given seed. **/ generateSessionKeys: AugmentedCall | null | Uint8Array | Bytes | string) => Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x45bfba51a310b223/1 */ staking: { /** * Calculate the current staking and reward rates for collators and delegators **/ getStakingRates: AugmentedCall Observable>; /** * Calculate the claimable staking rewards for a given account address **/ getUnclaimedStakingRewards: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0xd2bc9897eed08f15/3 */ taggedTransactionQueue: { /** * Validate the transaction. **/ validateTransaction: AugmentedCall Observable>; /** * Generic call **/ [key: string]: DecoratedCallBase; }; /** 0x37c8bb1350a9a2a8/4 */ transactionPaymentApi: { /** * The transaction fee details **/ queryFeeDetails: AugmentedCall Observable>; /** * The transaction info **/ queryInfo: 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; }; /** 0xf3ff14d5ab527059/3 */ transactionPaymentCallApi: { /** * The call fee details **/ queryCallFeeDetails: AugmentedCall Observable>; /** * The call info **/ 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; }; } }