import { Constants } from "../../metadata/Decorated/types"; import { RpcInterface } from "../../rpc-core/types"; import { Hash, RuntimeVersion } from "../../types/interfaces"; import { InterfaceRegistry } from "../../types/interfaceRegistry"; import { CallFunction, RegistryError, RegistryTypes, SignerPayloadRawBase } from "../../types/types"; import { ApiInterfaceRx, ApiOptions, ApiTypes, DecoratedRpc, DecorateMethod, QueryableStorage, QueryableStorageMulti, SubmittableExtrinsics, Signer } from '../types'; import { Metadata } from "../../types"; import Init from './Init'; interface KeyringSigner { sign(message: Uint8Array): Uint8Array; } interface SignerRawOptions { signer?: Signer; } export default abstract class ApiBase extends Init { /** * @description Create an instance of the class * * @param options Options object to create API instance or a Provider instance * * @example *
* * ```javascript * import Api from '@polkadot/api/promise'; * * const api = new Api().isReady(); * * api.rpc.subscribeNewHeads((header) => { * console.log(`new block #${header.number.toNumber()}`); * }); * ``` */ constructor(options: ApiOptions | undefined, type: ApiTypes, decorateMethod: DecorateMethod); /** * @description Contains the parameter types (constants) of all modules. * * The values are instances of the appropriate type and are accessible using `section`.`constantName`, * * @example *
* * ```javascript * console.log(api.consts.democracy.enactmentPeriod.toString()) * ``` */ get consts(): Constants; /** * @description Derived results that are injected into the API, allowing for combinations of various query results. * * @example *
* * ```javascript * api.derive.chain.bestNumber((number) => { * console.log('best number', number); * }); * ``` */ get derive(): ReturnType['decorateDerive']>; /** * @description Returns the version of extrinsics in-use on this chain */ get extrinsicVersion(): number; /** * @description Contains the genesis Hash of the attached chain. Apart from being useful to determine the actual chain, it can also be used to sign immortal transactions. */ get genesisHash(): Hash; /** * @description `true` when subscriptions are supported */ get hasSubscriptions(): boolean; /** * @description The library information name & version (from package.json) */ get libraryInfo(): string; /** * @description Contains all the chain state modules and their subsequent methods in the API. These are attached dynamically from the runtime metadata. * * All calls inside the namespace, is denoted by `section`.`method` and may take an optional query parameter. As an example, `api.query.timestamp.now()` (current block timestamp) does not take parameters, while `api.query.system.accountNonce()` (retrieving the associated nonce for an account), takes the `AccountId` as a parameter. * * @example *
* * ```javascript * api.query.balances.freeBalance(, (balance) => { * console.log('new balance', balance); * }); * ``` */ get query(): QueryableStorage; /** * @description Allows for the querying of multiple storage entries and the combination thereof into a single result. This is a very optimal way to make multiple queries since it only makes a single connection to the node and retrieves the data over one subscription. * * @example *
* * ```javascript * const unsub = await api.queryMulti( * [ * // you can include the storage without any parameters * api.query.balances.totalIssuance, * // or you can pass parameters to the storage query * [api.query.balances.freeBalance, '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'] * ], * ([existential, balance]) => { * console.log(`You have ${balance.sub(existential)} more than the existential deposit`); * * unsub(); * } * ); * ``` */ get queryMulti(): QueryableStorageMulti; /** * @description Contains all the raw rpc sections and their subsequent methods in the API as defined by the jsonrpc interface definitions. Unlike the dynamic `api.query` and `api.tx` sections, these methods are fixed (although extensible with node upgrades) and not determined by the runtime. * * RPC endpoints available here allow for the query of chain, node and system information, in addition to providing interfaces for the raw queries of state (using known keys) and the submission of transactions. * * @example *
* * ```javascript * api.rpc.chain.subscribeNewHeads((header) => { * console.log('new header', header); * }); * ``` */ get rpc(): DecoratedRpc; /** * @description Yields the current attached runtime metadata. Generally this is only used to construct extrinsics & storage, but is useful for current runtime inspection. */ get runtimeMetadata(): Metadata; /** * @description Contains the version information for the current runtime. */ get runtimeVersion(): RuntimeVersion; /** * @description The underlying Rx API interface */ get rx(): Pick; /** * @description The type of this API instance, either 'rxjs' or 'promise' */ get type(): ApiTypes; /** * @description Contains all the extrinsic modules and their subsequent methods in the API. It allows for the construction of transactions and the submission thereof. These are attached dynamically from the runtime metadata. * * @example *
* * ```javascript * api.tx.balances * .transfer(, ) * .signAndSend(, ({status}) => { * console.log('tx status', status.asFinalized.toHex()); * }); * ``` */ get tx(): SubmittableExtrinsics; /** * @description Creates an instance of a type as registered */ createType: " | "Vec" | "Bytes" | "Option" | "Vec" | "Data" | "Option" | "Vec" | "H160" | "Option" | "Vec" | "H256" | "Option" | "Vec" | "H512" | "Option" | "Vec" | "IdentityFields" | "Option" | "Vec" | "i8" | "Option" | "Vec" | "i16" | "Option" | "Vec" | "i32" | "Option" | "Vec" | "i64" | "Option" | "Vec" | "Fixed64" | "Option" | "Vec" | "i128" | "Option" | "Vec" | "i256" | "Option" | "Vec" | "Null" | "Option" | "Vec" | "StorageData" | "Option" | "Vec" | "StorageKey" | "Option" | "Vec" | "Text" | "Option" | "Vec" | "Type" | "Option" | "Vec" | "u8" | "Compact" | "Option" | "Vec" | "u16" | "Compact" | "Option" | "Vec" | "u32" | "Compact" | "Option" | "Vec" | "u64" | "Compact" | "Option" | "Vec" | "u128" | "Compact" | "Option" | "Vec" | "u256" | "Compact" | "Option" | "Vec" | "U256" | "Compact" | "Option" | "Vec" | "usize" | "Compact" | "Option" | "Vec" | "Raw" | "Option" | "Vec" | "Extrinsic" | "Option" | "Vec" | "ExtrinsicEra" | "Option" | "Vec" | "ExtrinsicPayload" | "Option" | "Vec" | "ExtrinsicV1" | "Option" | "Vec" | "ExtrinsicPayloadV1" | "Option" | "Vec" | "ExtrinsicSignatureV1" | "Option" | "Vec" | "ExtrinsicV2" | "Option" | "Vec" | "ExtrinsicPayloadV2" | "Option" | "Vec" | "ExtrinsicSignatureV2" | "Option" | "Vec" | "ExtrinsicV3" | "Option" | "Vec" | "ExtrinsicPayloadV3" | "Option" | "Vec" | "ExtrinsicSignatureV3" | "Option" | "Vec" | "ExtrinsicV4" | "Option" | "Vec" | "ExtrinsicPayloadV4" | "Option" | "Vec" | "ExtrinsicSignatureV4" | "Option" | "Vec" | "ExtrinsicUnknown" | "Option" | "Vec" | "ExtrinsicPayloadUnknown" | "Option" | "Vec" | "AccountId" | "Option" | "Vec" | "AccountIdOf" | "Option" | "Vec" | "AccountIndex" | "Compact" | "Option" | "Vec" | "Address" | "Option
" | "Vec
" | "AssetId" | "Compact" | "Option" | "Vec" | "Balance" | "Compact" | "Option" | "Vec" | "BalanceOf" | "Option" | "Vec" | "Block" | "Option" | "Vec" | "BlockNumber" | "Compact" | "Option" | "Vec" | "Call" | "Option" | "Vec" | "ChangesTrieConfiguration" | "Option" | "Vec" | "ConsensusEngineId" | "Compact" | "Option" | "Vec" | "Digest" | "Option" | "Vec" | "DigestItem" | "Option" | "Vec" | "DispatchClass" | "Option" | "Vec" | "DispatchInfo" | "Option" | "Vec" | "DispatchInfoTo190" | "Option" | "Vec" | "Hash" | "Option" | "Vec" | "Header" | "Option
" | "Vec
" | "Index" | "Compact" | "Option" | "Vec" | "Justification" | "Option" | "Vec" | "KeyValue" | "Option" | "Vec" | "KeyTypeId" | "Compact" | "Option" | "Vec" | "LockIdentifier" | "Option" | "Vec" | "Moment" | "Compact" | "Option" | "Vec" | "Origin" | "Option" | "Vec" | "Perbill" | "Compact" | "Option" | "Vec" | "Percent" | "Compact" | "Option" | "Vec" | "Permill" | "Compact" | "Option" | "Vec" | "Perquintill" | "Compact" | "Option" | "Vec" | "Phantom" | "Option" | "Vec" | "PhantomData" | "Option" | "Vec" | "Signature" | "Option" | "Vec" | "SignedBlock" | "Option" | "Vec" | "SignerPayload" | "Option" | "Vec" | "ValidatorId" | "Option" | "Vec" | "Weight" | "Compact" | "Option" | "Vec" | "WeightMultiplier" | "Option" | "Vec" | "Ed25519Signature" | "Option" | "Vec" | "Sr25519Signature" | "Option" | "Vec" | "EcdsaSignature" | "Option" | "Vec" | "MultiSignature" | "Option" | "Vec" | "ImmortalEra" | "Option" | "Vec" | "MortalEra" | "Option" | "Vec" | "PreRuntime" | "Option" | "Vec" | "SealV0" | "Option" | "Vec" | "Seal" | "Option" | "Vec" | "Consensus" | "Option" | "Vec" | "InclusionHeight" | "Option" | "Vec" | "Uncle" | "Option" | "Vec" | "UncleEntryItem" | "Option" | "Vec" | "RawAuraPreDigest" | "Option" | "Vec" | "BabeAuthorityWeight" | "Compact" | "Option" | "Vec" | "BabeBlockWeight" | "Compact" | "Option" | "Vec" | "MaybeVrf" | "Option" | "Vec" | "BabeWeight" | "Compact" | "Option" | "Vec" | "RawBabePreDigest" | "Option" | "Vec" | "RawBabePreDigestPrimary" | "Option" | "Vec" | "RawBabePreDigestSecondary" | "Option" | "Vec" | "RawBabePreDigestTo159" | "Option" | "Vec" | "RawBabePreDigestPrimaryTo159" | "Option" | "Vec" | "RawBabePreDigestSecondaryTo159" | "Option" | "Vec" | "RawBabePreDigestCompat" | "Option" | "Vec" | "SlotNumber" | "Compact" | "Option" | "Vec" | "VrfData" | "Option" | "Vec" | "VrfProof" | "Option" | "Vec" | "AccountData" | "Option" | "Vec" | "BalanceLockTo212" | "Option" | "Vec" | "BalanceLock" | "Option" | "Vec" | "Reasons" | "Option" | "Vec" | "VestingSchedule" | "Option" | "Vec" | "WithdrawReasons" | "Option" | "Vec" | "MemberCount" | "Compact" | "Option" | "Vec" | "ProposalIndex" | "Compact" | "Option" | "Vec" | "Votes" | "Option" | "Vec" | "AuthorityId" | "Option" | "Vec" | "AliveContractInfo" | "Option" | "Vec" | "CodeHash" | "Option" | "Vec" | "ContractCallRequest" | "Option" | "Vec" | "ContractExecResultSuccess" | "Option" | "Vec" | "ContractExecResult" | "Option" | "Vec" | "ContractInfo" | "Option" | "Vec" | "ContractStorageKey" | "Option" | "Vec" | "Gas" | "Compact" | "Option" | "Vec" | "PrefabWasmModule" | "Option" | "Vec" | "PrefabWasmModuleReserved" | "Option" | "Vec" | "ScheduleTo212" | "Option" | "Vec" | "Schedule" | "Option" | "Vec" | "SeedOf" | "Option" | "Vec" | "TombstoneContractInfo" | "Option" | "Vec" | "TrieId" | "Option" | "Vec" | "Conviction" | "Option" | "Vec" | "PropIndex" | "Compact" | "Option" | "Vec" | "Proposal" | "Option" | "Vec" | "ReferendumIndex" | "Compact" | "Option" | "Vec" | "ReferendumInfo" | "Option" | "Vec" | "NewAccountOutcome" | "Option" | "Vec" | "Amount" | "Option" | "Vec" | "AssetOf" | "Compact" | "Option" | "Vec" | "AccountInfo" | "Option" | "Vec" | "LockPeriods" | "Option" | "Vec" | "InherentOfflineReport" | "Option" | "Vec" | "SessionKey" | "Option" | "Vec" | "OpaqueKey" | "Option" | "Vec" | "ApprovalFlag" | "Compact" | "Option" | "Vec" | "SetIndex" | "Compact" | "Option" | "Vec" | "Vote" | "Option" | "Vec" | "VoteIndex" | "Compact" | "Option" | "Vec" | "VoterInfo" | "Option" | "Vec" | "VoteThreshold" | "Option" | "Vec" | "Account" | "Option" | "Vec" | "Log" | "Option" | "Vec" | "AssetOptions" | "Option" | "Vec" | "Owner" | "Option" | "Vec" | "PermissionsV1" | "Option" | "Vec" | "PermissionVersions" | "Option" | "Vec" | "PermissionLatest" | "Option" | "Vec" | "AuthorityIndex" | "Compact" | "Option" | "Vec" | "AuthorityList" | "Option" | "Vec" | "AuthorityWeight" | "Compact" | "Option" | "Vec" | "NextAuthority" | "Option" | "Vec" | "PendingPause" | "Option" | "Vec" | "PendingResume" | "Option" | "Vec" | "SetId" | "Compact" | "Option" | "Vec" | "StoredPendingChange" | "Option" | "Vec" | "StoredState" | "Option" | "Vec" | "IdentityInfoAdditional" | "Option" | "Vec" | "IdentityInfo" | "Option" | "Vec" | "IdentityJudgement" | "Option" | "Vec" | "RegistrationJudgement" | "Option" | "Vec" | "Registration" | "Option" | "Vec" | "RegistrarIndex" | "Compact" | "Option" | "Vec" | "RegistrarInfo" | "Option" | "Vec" | "AuthIndex" | "Compact" | "Option" | "Vec" | "AuthoritySignature" | "Option" | "Vec" | "Heartbeat" | "Option" | "Vec" | "OpaqueMultiaddr" | "Option" | "Vec" | "OpaquePeerId" | "Option" | "Vec" | "OpaqueNetworkState" | "Option" | "Vec" | "Kind" | "Option" | "Vec" | "OffenceDetails" | "Option" | "Vec" | "Offender" | "Option" | "Vec" | "OpaqueTimeSlot" | "Option" | "Vec" | "ReportIdOf" | "Option" | "Vec" | "Reporter" | "Option" | "Vec" | "ActiveRecovery" | "Option" | "Vec" | "RecoveryConfig" | "Option" | "Vec" | "Keys" | "Option" | "Vec" | "SessionKeys1" | "Option" | "Vec" | "SessionKeys2" | "Option" | "Vec" | "SessionKeys3" | "Option" | "Vec" | "SessionKeys4" | "Option" | "Vec" | "SessionKeys5" | "Option" | "Vec" | "SessionKeys6" | "Option" | "Vec" | "FullIdentification" | "Option" | "Vec" | "IdentificationTuple" | "Option" | "Vec" | "SessionIndex" | "Compact" | "Option" | "Vec" | "Bid" | "Option" | "Vec" | "BidKindVouch" | "Option" | "Vec" | "BidKind" | "Option" | "Vec" | "SocietyJudgement" | "Option" | "Vec" | "SocietyVote" | "Option" | "Vec" | "StrikeCount" | "Compact" | "Option" | "Vec" | "VouchingStatus" | "Option" | "Vec" | "EraIndex" | "Compact" | "Option" | "Vec" | "EraPoints" | "Option" | "Vec" | "EraRewards" | "Option" | "Vec" | "Exposure" | "Option" | "Vec" | "Forcing" | "Option" | "Vec" | "IndividualExposure" | "Option" | "Vec" | "MomentOf" | "Option" | "Vec" | "Nominations" | "Option" | "Vec" | "Points" | "Compact" | "Option" | "Vec" | "RewardDestination" | "Option" | "Vec" | "SlashJournalEntry" | "Option" | "Vec" | "SlashingSpansTo204" | "Option" | "Vec" | "SlashingSpans" | "Option" | "Vec" | "SpanIndex" | "Compact" | "Option" | "Vec" | "SpanRecord" | "Option" | "Vec" | "StakingLedger" | "Option" | "Vec" | "UnappliedSlashOther" | "Option" | "Vec" | "UnappliedSlash" | "Option" | "Vec" | "UnlockChunk" | "Option" | "Vec" | "ValidatorPrefs" | "Option" | "Vec" | "ValidatorPrefsTo196" | "Option" | "Vec" | "ValidatorPrefsTo145" | "Option" | "Vec" | "DigestOf" | "Option" | "Vec" | "DispatchError" | "Option" | "Vec" | "DispatchErrorModule" | "Option" | "Vec" | "DispatchErrorTo198" | "Option" | "Vec" | "DispatchResult" | "Option" | "Vec" | "DispatchResultOf" | "Option" | "Vec" | "DispatchResultTo198" | "Option" | "Vec" | "Event" | "Option" | "Vec" | "EventId" | "Option" | "Vec" | "EventIndex" | "Compact" | "Option" | "Vec" | "EventRecord" | "Option" | "Vec" | "EventRecordTo76" | "Option" | "Vec" | "Key" | "Option" | "Vec" | "Phase" | "Option" | "Vec" | "OpenTipFinder" | "Option" | "Vec" | "OpenTipTip" | "Option" | "Vec" | "OpenTip" | "Option" | "Vec" | "TreasuryProposal" | "Option" | "Vec" | "Multiplier" | "Option" | "Vec" | "Timepoint" | "Option" | "Vec" | "Multisig" | "Option" | "Vec" | "VestingInfo" | "Option" | "Vec" | "BlockAttestations" | "Option" | "Vec" | "IncludedBlocks" | "Option" | "Vec" | "MoreAttestations" | "Option" | "Vec" | "EthereumAddress" | "Option" | "Vec" | "AttestedCandidate" | "Option" | "Vec" | "AuctionIndex" | "Compact" | "Option" | "Vec" | "BalanceUpload" | "Option" | "Vec" | "Bidder" | "Option" | "Vec" | "CandidateReceipt" | "Option" | "Vec" | "CollatorId" | "Option" | "Vec" | "CollatorSignature" | "Option" | "Vec" | "EgressQueueRoot" | "Option" | "Vec" | "HeadData" | "Option" | "Vec" | "IncomingParachainDeploy" | "Option" | "Vec" | "IncomingParachainFixed" | "Option" | "Vec" | "IncomingParachain" | "Option" | "Vec" | "LeasePeriod" | "Option" | "Vec" | "LeasePeriodOf" | "Option" | "Vec" | "NewBidder" | "Option" | "Vec" | "ParaId" | "Compact" | "Option" | "Vec" | "ParaIdOf" | "Option" | "Vec" | "ParaInfo" | "Option" | "Vec" | "ParachainDispatchOrigin" | "Option" | "Vec" | "ParaScheduling" | "Option" | "Vec" | "Retriable" | "Option" | "Vec" | "SlotRange" | "Option" | "Vec" | "SubId" | "Compact" | "Option" | "Vec" | "UpwardMessage" | "Option" | "Vec" | "ValidityAttestation" | "Option" | "Vec" | "ValidatorIndex" | "Compact" | "Option" | "Vec" | "ValidityVote" | "Option" | "Vec" | "WinningDataEntry" | "Option" | "Vec" | "WinningData" | "Option" | "Vec" | "CallMetadataV0" | "Option" | "Vec" | "EventMetadataV0" | "Option" | "Vec" | "FunctionArgumentMetadataV0" | "Option" | "Vec" | "FunctionMetadataV0" | "Option" | "Vec" | "MapTypeV0" | "Option" | "Vec" | "MetadataV0" | "Option" | "Vec" | "ModuleMetadataV0" | "Option" | "Vec" | "OuterDispatchCallV0" | "Option" | "Vec" | "OuterDispatchMetadataV0" | "Option" | "Vec" | "OuterEventEventMetadataEventsV0" | "Option" | "Vec" | "OuterEventEventMetadataV0" | "Option" | "Vec" | "OuterEventMetadataV0" | "Option" | "Vec" | "PlainTypeV0" | "Option" | "Vec" | "RuntimeModuleMetadataV0" | "Option" | "Vec" | "StorageFunctionMetadataV0" | "Option" | "Vec" | "StorageFunctionModifierV0" | "Option" | "Vec" | "StorageFunctionTypeV0" | "Option" | "Vec" | "StorageMetadataV0" | "Option" | "Vec" | "EventMetadataV1" | "Option" | "Vec" | "FunctionArgumentMetadataV1" | "Option" | "Vec" | "FunctionMetadataV1" | "Option" | "Vec" | "MetadataV1" | "Option" | "Vec" | "ModuleMetadataV1" | "Option" | "Vec" | "StorageFunctionMetadataV1" | "Option" | "Vec" | "StorageFunctionModifierV1" | "Option" | "Vec" | "StorageFunctionTypeV1" | "Option" | "Vec" | "EventMetadataV2" | "Option" | "Vec" | "FunctionArgumentMetadataV2" | "Option" | "Vec" | "FunctionMetadataV2" | "Option" | "Vec" | "MapTypeV2" | "Option" | "Vec" | "MetadataV2" | "Option" | "Vec" | "ModuleMetadataV2" | "Option" | "Vec" | "PlainTypeV2" | "Option" | "Vec" | "StorageFunctionMetadataV2" | "Option" | "Vec" | "StorageFunctionModifierV2" | "Option" | "Vec" | "StorageFunctionTypeV2" | "Option" | "Vec" | "DoubleMapTypeV3" | "Option" | "Vec" | "EventMetadataV3" | "Option" | "Vec" | "FunctionArgumentMetadataV3" | "Option" | "Vec" | "FunctionMetadataV3" | "Option" | "Vec" | "MapTypeV3" | "Option" | "Vec" | "MetadataV3" | "Option" | "Vec" | "ModuleMetadataV3" | "Option" | "Vec" | "PlainTypeV3" | "Option" | "Vec" | "StorageFunctionMetadataV3" | "Option" | "Vec" | "StorageFunctionModifierV3" | "Option" | "Vec" | "StorageFunctionTypeV3" | "Option" | "Vec" | "DoubleMapTypeV4" | "Option" | "Vec" | "EventMetadataV4" | "Option" | "Vec" | "FunctionArgumentMetadataV4" | "Option" | "Vec" | "FunctionMetadataV4" | "Option" | "Vec" | "MapTypeV4" | "Option" | "Vec" | "MetadataV4" | "Option" | "Vec" | "ModuleMetadataV4" | "Option" | "Vec" | "PlainTypeV4" | "Option" | "Vec" | "StorageFunctionMetadataV4" | "Option" | "Vec" | "StorageFunctionModifierV4" | "Option" | "Vec" | "StorageFunctionTypeV4" | "Option" | "Vec" | "StorageHasherV4" | "Option" | "Vec" | "DoubleMapTypeV5" | "Option" | "Vec" | "EventMetadataV5" | "Option" | "Vec" | "FunctionArgumentMetadataV5" | "Option" | "Vec" | "FunctionMetadataV5" | "Option" | "Vec" | "MapTypeV5" | "Option" | "Vec" | "MetadataV5" | "Option" | "Vec" | "ModuleMetadataV5" | "Option" | "Vec" | "PlainTypeV5" | "Option" | "Vec" | "StorageFunctionMetadataV5" | "Option" | "Vec" | "StorageFunctionModifierV5" | "Option" | "Vec" | "StorageFunctionTypeV5" | "Option" | "Vec" | "StorageHasherV5" | "Option" | "Vec" | "DoubleMapTypeV6" | "Option" | "Vec" | "EventMetadataV6" | "Option" | "Vec" | "FunctionArgumentMetadataV6" | "Option" | "Vec" | "FunctionMetadataV6" | "Option" | "Vec" | "MapTypeV6" | "Option" | "Vec" | "MetadataV6" | "Option" | "Vec" | "ModuleConstantMetadataV6" | "Option" | "Vec" | "ModuleMetadataV6" | "Option" | "Vec" | "PlainTypeV6" | "Option" | "Vec" | "StorageEntryModifierV6" | "Option" | "Vec" | "StorageEntryMetadataV6" | "Option" | "Vec" | "StorageEntryTypeV6" | "Option" | "Vec" | "StorageHasherV6" | "Option" | "Vec" | "DoubleMapTypeV7" | "Option" | "Vec" | "EventMetadataV7" | "Option" | "Vec" | "FunctionArgumentMetadataV7" | "Option" | "Vec" | "FunctionMetadataV7" | "Option" | "Vec" | "MapTypeV7" | "Option" | "Vec" | "MetadataV7" | "Option" | "Vec" | "ModuleConstantMetadataV7" | "Option" | "Vec" | "ModuleMetadataV7" | "Option" | "Vec" | "PlainTypeV7" | "Option" | "Vec" | "StorageEntryModifierV7" | "Option" | "Vec" | "StorageEntryMetadataV7" | "Option" | "Vec" | "StorageEntryTypeV7" | "Option" | "Vec" | "StorageHasherV7" | "Option" | "Vec" | "StorageMetadataV7" | "Option" | "Vec" | "DoubleMapTypeV8" | "Option" | "Vec" | "ErrorMetadataV8" | "Option" | "Vec" | "EventMetadataV8" | "Option" | "Vec" | "FunctionArgumentMetadataV8" | "Option" | "Vec" | "FunctionMetadataV8" | "Option" | "Vec" | "MapTypeV8" | "Option" | "Vec" | "MetadataV8" | "Option" | "Vec" | "ModuleConstantMetadataV8" | "Option" | "Vec" | "ModuleMetadataV8" | "Option" | "Vec" | "PlainTypeV8" | "Option" | "Vec" | "StorageEntryModifierV8" | "Option" | "Vec" | "StorageEntryMetadataV8" | "Option" | "Vec" | "StorageEntryTypeV8" | "Option" | "Vec" | "StorageHasherV8" | "Option" | "Vec" | "StorageMetadataV8" | "Option" | "Vec" | "DoubleMapTypeV9" | "Option" | "Vec" | "ErrorMetadataV9" | "Option" | "Vec" | "EventMetadataV9" | "Option" | "Vec" | "FunctionArgumentMetadataV9" | "Option" | "Vec" | "FunctionMetadataV9" | "Option" | "Vec" | "MapTypeV9" | "Option" | "Vec" | "MetadataV9" | "Option" | "Vec" | "ModuleConstantMetadataV9" | "Option" | "Vec" | "ModuleMetadataV9" | "Option" | "Vec" | "PlainTypeV9" | "Option" | "Vec" | "StorageEntryModifierV9" | "Option" | "Vec" | "StorageEntryMetadataV9" | "Option" | "Vec" | "StorageEntryTypeV9" | "Option" | "Vec" | "StorageHasherV9" | "Option" | "Vec" | "StorageMetadataV9" | "Option" | "Vec" | "DoubleMapTypeV10" | "Option" | "Vec" | "ErrorMetadataV10" | "Option" | "Vec" | "EventMetadataV10" | "Option" | "Vec" | "FunctionArgumentMetadataV10" | "Option" | "Vec" | "FunctionMetadataV10" | "Option" | "Vec" | "MapTypeV10" | "Option" | "Vec" | "MetadataV10" | "Option" | "Vec" | "ModuleConstantMetadataV10" | "Option" | "Vec" | "ModuleMetadataV10" | "Option" | "Vec" | "PlainTypeV10" | "Option" | "Vec" | "StorageEntryModifierV10" | "Option" | "Vec" | "StorageEntryMetadataV10" | "Option" | "Vec" | "StorageEntryTypeV10" | "Option" | "Vec" | "StorageMetadataV10" | "Option" | "Vec" | "StorageHasherV10" | "Option" | "Vec" | "DoubleMapTypeV11" | "Option" | "Vec" | "ErrorMetadataV11" | "Option" | "Vec" | "EventMetadataV11" | "Option" | "Vec" | "ExtrinsicMetadataV11" | "Option" | "Vec" | "FunctionArgumentMetadataV11" | "Option" | "Vec" | "FunctionMetadataV11" | "Option" | "Vec" | "MapTypeV11" | "Option" | "Vec" | "MetadataV11" | "Option" | "Vec" | "ModuleConstantMetadataV11" | "Option" | "Vec" | "ModuleMetadataV11" | "Option" | "Vec" | "PlainTypeV11" | "Option" | "Vec" | "StorageEntryModifierV11" | "Option" | "Vec" | "StorageEntryMetadataV11" | "Option" | "Vec" | "StorageEntryTypeV11" | "Option" | "Vec" | "StorageMetadataV11" | "Option" | "Vec" | "StorageHasherV11" | "Option" | "Vec" | "DoubleMapTypeLatest" | "Option" | "Vec" | "EventMetadataLatest" | "Option" | "Vec" | "ExtrinsicMetadataLatest" | "Option" | "Vec" | "FunctionArgumentMetadataLatest" | "Option" | "Vec" | "FunctionMetadataLatest" | "Option" | "Vec" | "MapTypeLatest" | "Option" | "Vec" | "MetadataLatest" | "Option" | "Vec" | "ModuleConstantMetadataLatest" | "Option" | "Vec" | "ModuleMetadataLatest" | "Option" | "Vec" | "PlainTypeLatest" | "Option" | "Vec" | "StorageEntryMetadataLatest" | "Option" | "Vec" | "StorageEntryModifierLatest" | "Option" | "Vec" | "StorageEntryTypeLatest" | "Option" | "Vec" | "StorageMetadataLatest" | "Option" | "Vec" | "StorageHasher" | "Option" | "Vec" | "MetadataAll" | "Option" | "Vec" | "ApiId" | "Option" | "Vec" | "BlockHash" | "Option" | "Vec" | "ChainProperties" | "Option" | "Vec" | "ExtrinsicOrHash" | "Option" | "Vec" | "ExtrinsicStatus" | "Option" | "Vec" | "Health" | "Option" | "Vec" | "KeyValueOption" | "Option" | "Vec" | "NetworkState" | "Option" | "Vec" | "PeerInfo" | "Option" | "Vec" | "RpcMethods" | "Option" | "Vec" | "RuntimeDispatchInfo" | "Option" | "Vec" | "RuntimeVersionApi" | "Option" | "Vec" | "RuntimeVersion" | "Option" | "Vec" | "StorageChangeSet" | "Option" | "Vec" | "IdentityId" | "Option" | "Vec" | "Ticker" | "Option" | "Vec" | "Document" | "Option" | "Vec" | "AssetType" | "Option" | "Vec" | "IdentifierType" | "Option" | "Vec" | "SecurityToken" | "Option" | "Vec" | "LinkedKeyInfo" | "Option" | "Vec" | "AccountKey" | "Option" | "Vec" | "Permission" | "Option" | "Vec" | "Link" | "Option" | "Vec" | "LinkData" | "Option" | "Vec" | "SignatoryType" | "Option" | "Vec" | "Signatory" | "Option" | "Vec" | "SigningItem" | "Option" | "Vec" | "SigningItemWithAuth" | "Option" | "Vec" | "IdentityRole" | "Option" | "Vec" | "PreAuthorizedKeyInfo" | "Option" | "Vec" | "DidRecord" | "Option" | "Vec" | "Claim" | "Option" | "Vec" | "ClaimMetaData" | "Option" | "Vec" | "ClaimValue" | "Option" | "Vec" | "ClaimRecord" | "Option" | "Vec" | "DataTypes" | "Option" | "Vec" | "AssetRule" | "Option" | "Vec" | "Operators" | "Option" | "Vec" | "RuleData" | "Option" | "Vec" | "STO" | "Option" | "Vec" | "Investment" | "Option" | "Vec" | "SimpleTokenRecord" | "Option" | "Vec" | "FeeOf" | "Option" | "Vec" | "Dividend" | "Option" | "Vec" | "TargetIdAuthorization" | "Option" | "Vec" | "TickerRegistration" | "Option" | "Vec" | "TickerRegistrationConfig" | "Option" | "Vec" | "SignData" | "Option" | "Vec" | "Motion" | "Option" | "Vec" | "Ballot" | "Option" | "Vec" | "MipsMetadata" | "Option" | "Vec" | "PolymeshVotes" | "Option" | "Vec" | "MipsIndex" | "Compact" | "Option" | "Vec" | "MipsPriority" | "Option" | "Vec" | "MIP" | "Option" | "Vec" | "PolymeshReferendumInfo" | "Option" | "Vec" | "TickerTransferApproval" | "Option" | "Vec" | "OffChainSignature" | "Option" | "Vec" | "PermissionedValidator" | "Option" | "Vec" | "Authorization" | "Option" | "Vec" | "AuthorizationData" | "Option" | "Vec" | "Compliance" | "Option" | "Vec" | "SmartExtensionType" | "Option" | "Vec" | "SmartExtension" | "Option" | "Vec" | "ProportionMatch" | "Option" | "Vec" | "AuthorizationNonce" | "Compact" | "Option" | "Vec" | "Counter" | "Compact" | "Option" | "Vec" | "Commission" | "Option" | "Vec">(type: K, ...params: any[]) => InterfaceRegistry[K]; /** * @description Disconnect from the underlying provider, halting all network traffic */ disconnect(): void; /** * @description Finds the definition for a specific [[CallFunction]] based on the index supplied */ findCall(callIndex: Uint8Array | string): CallFunction; /** * @description Finds the definition for a specific [[RegistryError]] based on the index supplied */ findError(errorIndex: Uint8Array | string): RegistryError; /** * @description Register additional user-defined of chain-specific types in the type registry */ registerTypes(types?: RegistryTypes): void; /** * @description Set an external signer which will be used to sign extrinsic when account passed in is not KeyringPair */ setSigner(signer: Signer): void; /** * @description Signs a raw signer payload, string or Uint8Array */ sign(address: KeyringSigner | string, data: SignerPayloadRawBase, { signer }?: SignerRawOptions): Promise; } export {};