Additional runtime call definitions (#4998)
* Additional runtime call definitions * Additional * Additional * Expand * mmr (+ grandpa fixes)
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
Changes:
|
||||
|
||||
- Support for `state_call` definitions via API config (exposed on `api.runtime.*`)
|
||||
- Type generation for runtime call definitions (not exposed by default)
|
||||
- Type generation for runtime call definitions
|
||||
|
||||
|
||||
## 8.10.1 Jun 26, 2022
|
||||
|
||||
@@ -2,17 +2,23 @@
|
||||
/* eslint-disable */
|
||||
|
||||
import type { ApiTypes } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, Vec, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
||||
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 { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Block, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
declare module '@polkadot/api-base/types/calls' {
|
||||
export interface AugmentedCalls<ApiType extends ApiTypes> {
|
||||
@@ -60,6 +66,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Returns information regarding the next epoch (which was already previously announced).
|
||||
**/
|
||||
nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -76,8 +86,39 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x40fe3ad401f8959a/6 */
|
||||
blockBuilder: {
|
||||
/**
|
||||
* Apply the given extrinsic.
|
||||
**/
|
||||
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
|
||||
/**
|
||||
* Check that the inherents are valid.
|
||||
**/
|
||||
checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
|
||||
/**
|
||||
* Finish the current block.
|
||||
**/
|
||||
finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
|
||||
/**
|
||||
* Generate inherent extrinsics.
|
||||
**/
|
||||
inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xdf6acb689907609b/4 */
|
||||
core: {
|
||||
/**
|
||||
* Execute the given block.
|
||||
**/
|
||||
executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Initialize a block with the given header.
|
||||
**/
|
||||
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Returns the version of the runtime.
|
||||
**/
|
||||
@@ -93,10 +134,18 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Get current GRANDPA authority set id.
|
||||
**/
|
||||
currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
/**
|
||||
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
|
||||
**/
|
||||
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -113,6 +162,52 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x91d5df18b0d2cf58/1 */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for a series of leaves under given indices.
|
||||
**/
|
||||
generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Generate MMR proof for a leaf under given index.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
||||
**/
|
||||
verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash or a batch of leaves.
|
||||
**/
|
||||
verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
**/
|
||||
verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash.
|
||||
**/
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf78b278be53f454c/2 */
|
||||
offchainWorkerApi: {
|
||||
/**
|
||||
* Starts the off-chain task for given block header.
|
||||
**/
|
||||
offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xab3c0572291feb8b/1 */
|
||||
sessionKeys: {
|
||||
/**
|
||||
@@ -128,16 +223,27 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xd2bc9897eed08f15/3 */
|
||||
taggedTransactionQueue: {
|
||||
/**
|
||||
* Validate the transaction.
|
||||
**/
|
||||
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/1 */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
**/
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Bytes | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
/**
|
||||
* The transaction info
|
||||
**/
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Bytes | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
|
||||
@@ -2,17 +2,23 @@
|
||||
/* eslint-disable */
|
||||
|
||||
import type { ApiTypes } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, Vec, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
||||
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 { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Block, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
declare module '@polkadot/api-base/types/calls' {
|
||||
export interface AugmentedCalls<ApiType extends ApiTypes> {
|
||||
@@ -60,6 +66,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Returns information regarding the next epoch (which was already previously announced).
|
||||
**/
|
||||
nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -76,8 +86,39 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x40fe3ad401f8959a/6 */
|
||||
blockBuilder: {
|
||||
/**
|
||||
* Apply the given extrinsic.
|
||||
**/
|
||||
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
|
||||
/**
|
||||
* Check that the inherents are valid.
|
||||
**/
|
||||
checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
|
||||
/**
|
||||
* Finish the current block.
|
||||
**/
|
||||
finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
|
||||
/**
|
||||
* Generate inherent extrinsics.
|
||||
**/
|
||||
inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xdf6acb689907609b/4 */
|
||||
core: {
|
||||
/**
|
||||
* Execute the given block.
|
||||
**/
|
||||
executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Initialize a block with the given header.
|
||||
**/
|
||||
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Returns the version of the runtime.
|
||||
**/
|
||||
@@ -93,10 +134,18 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Get current GRANDPA authority set id.
|
||||
**/
|
||||
currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
/**
|
||||
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
|
||||
**/
|
||||
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -113,6 +162,52 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x91d5df18b0d2cf58/1 */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for a series of leaves under given indices.
|
||||
**/
|
||||
generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Generate MMR proof for a leaf under given index.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
||||
**/
|
||||
verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash or a batch of leaves.
|
||||
**/
|
||||
verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
**/
|
||||
verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash.
|
||||
**/
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf78b278be53f454c/2 */
|
||||
offchainWorkerApi: {
|
||||
/**
|
||||
* Starts the off-chain task for given block header.
|
||||
**/
|
||||
offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xab3c0572291feb8b/1 */
|
||||
sessionKeys: {
|
||||
/**
|
||||
@@ -128,16 +223,27 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xd2bc9897eed08f15/3 */
|
||||
taggedTransactionQueue: {
|
||||
/**
|
||||
* Validate the transaction.
|
||||
**/
|
||||
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/1 */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
**/
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Bytes | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
/**
|
||||
* The transaction info
|
||||
**/
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Bytes | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
|
||||
@@ -2,17 +2,23 @@
|
||||
/* eslint-disable */
|
||||
|
||||
import type { ApiTypes } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, Vec, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, Result, Vec, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
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 { CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
|
||||
import type { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Balance, Block, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
declare module '@polkadot/api-base/types/calls' {
|
||||
export interface AugmentedCalls<ApiType extends ApiTypes> {
|
||||
@@ -60,6 +66,33 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Returns information regarding the next epoch (which was already previously announced).
|
||||
**/
|
||||
nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x40fe3ad401f8959a/6 */
|
||||
blockBuilder: {
|
||||
/**
|
||||
* Apply the given extrinsic.
|
||||
**/
|
||||
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
|
||||
/**
|
||||
* Check that the inherents are valid.
|
||||
**/
|
||||
checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
|
||||
/**
|
||||
* Finish the current block.
|
||||
**/
|
||||
finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
|
||||
/**
|
||||
* Generate inherent extrinsics.
|
||||
**/
|
||||
inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -90,6 +123,14 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
};
|
||||
/** 0xdf6acb689907609b/4 */
|
||||
core: {
|
||||
/**
|
||||
* Execute the given block.
|
||||
**/
|
||||
executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Initialize a block with the given header.
|
||||
**/
|
||||
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Returns the version of the runtime.
|
||||
**/
|
||||
@@ -105,10 +146,18 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Get current GRANDPA authority set id.
|
||||
**/
|
||||
currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
/**
|
||||
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
|
||||
**/
|
||||
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -125,6 +174,52 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x91d5df18b0d2cf58/1 */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for a series of leaves under given indices.
|
||||
**/
|
||||
generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Generate MMR proof for a leaf under given index.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
||||
**/
|
||||
verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash or a batch of leaves.
|
||||
**/
|
||||
verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
**/
|
||||
verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash.
|
||||
**/
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf78b278be53f454c/2 */
|
||||
offchainWorkerApi: {
|
||||
/**
|
||||
* Starts the off-chain task for given block header.
|
||||
**/
|
||||
offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xab3c0572291feb8b/1 */
|
||||
sessionKeys: {
|
||||
/**
|
||||
@@ -140,16 +235,27 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xd2bc9897eed08f15/3 */
|
||||
taggedTransactionQueue: {
|
||||
/**
|
||||
* Validate the transaction.
|
||||
**/
|
||||
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/1 */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
**/
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Bytes | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
/**
|
||||
* The transaction info
|
||||
**/
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Bytes | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
|
||||
@@ -56,11 +56,11 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
||||
/**
|
||||
* Submit and subscribe to watch an extrinsic until unsubscribed
|
||||
**/
|
||||
submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<ExtrinsicStatus>>;
|
||||
submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>>;
|
||||
/**
|
||||
* Submit a fully formatted extrinsic for block inclusion
|
||||
**/
|
||||
submitExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<Hash>>;
|
||||
submitExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>>;
|
||||
};
|
||||
babe: {
|
||||
/**
|
||||
|
||||
@@ -31,7 +31,7 @@ export function getSimilarTypes (registry: Registry, definitions: Record<string,
|
||||
if (type === 'Extrinsic') {
|
||||
setImports(definitions, imports, ['IExtrinsic']);
|
||||
|
||||
return ['IExtrinsic'];
|
||||
return ['Extrinsic', 'IExtrinsic', 'string', 'Uint8Array'];
|
||||
} else if (type === 'Keys') {
|
||||
// This one is weird... surely it should popup as a Tuple? (but either way better as defined hex)
|
||||
return ['Keys', 'string', 'Uint8Array'];
|
||||
|
||||
@@ -11,6 +11,8 @@ import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
|
||||
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, OpaqueKeyOwnershipProof, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
|
||||
import type { BeefyAuthoritySet, BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter } from '@polkadot/types/interfaces/benchmark';
|
||||
import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
||||
@@ -26,7 +28,7 @@ import type { BlockStats } from '@polkadot/types/interfaces/dev';
|
||||
import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections';
|
||||
import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';
|
||||
import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFeeHistory, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth';
|
||||
import type { EvmAccount, EvmLog, EvmVicinity, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm';
|
||||
import type { EvmAccount, EvmCallInfo, EvmCreateInfo, EvmLog, EvmVicinity, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm';
|
||||
import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset';
|
||||
import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt';
|
||||
@@ -35,7 +37,7 @@ import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfo
|
||||
import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline';
|
||||
import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';
|
||||
import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, OpaqueMetadata, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
||||
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||
@@ -45,7 +47,7 @@ import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/ty
|
||||
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
||||
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
||||
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||
import type { AccountId, AccountId20, AccountId32, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageProof, TransactionInfo, TransactionPriority, TransactionStorageProof, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, AccountId20, AccountId32, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||
import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
|
||||
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||
@@ -56,6 +58,7 @@ import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'
|
||||
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorModuleU8, DispatchErrorModuleU8a, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, TransactionalError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';
|
||||
import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
|
||||
import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
||||
import type { TransactionSource, TransactionValidity, ValidTransaction } from '@polkadot/types/interfaces/txqueue';
|
||||
import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';
|
||||
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
||||
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
|
||||
@@ -146,6 +149,10 @@ declare module '@polkadot/types/types/registry' {
|
||||
BeefyPayload: BeefyPayload;
|
||||
BeefyPayloadId: BeefyPayloadId;
|
||||
BeefySignedCommitment: BeefySignedCommitment;
|
||||
BenchmarkConfig: BenchmarkConfig;
|
||||
BenchmarkList: BenchmarkList;
|
||||
BenchmarkMetadata: BenchmarkMetadata;
|
||||
BenchmarkParameter: BenchmarkParameter;
|
||||
Bid: Bid;
|
||||
Bidder: Bidder;
|
||||
BidKind: BidKind;
|
||||
@@ -198,6 +205,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
ChainType: ChainType;
|
||||
ChangesTrieConfiguration: ChangesTrieConfiguration;
|
||||
ChangesTrieSignal: ChangesTrieSignal;
|
||||
CheckInherentsResult: CheckInherentsResult;
|
||||
ClassDetails: ClassDetails;
|
||||
ClassId: ClassId;
|
||||
ClassMetadata: ClassMetadata;
|
||||
@@ -402,6 +410,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
EventMetadataV9: EventMetadataV9;
|
||||
EventRecord: EventRecord;
|
||||
EvmAccount: EvmAccount;
|
||||
EvmCallInfo: EvmCallInfo;
|
||||
EvmCreateInfo: EvmCreateInfo;
|
||||
EvmLog: EvmLog;
|
||||
EvmVicinity: EvmVicinity;
|
||||
ExecReturnValue: ExecReturnValue;
|
||||
@@ -534,6 +544,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
Index: Index;
|
||||
IndicesLookupSource: IndicesLookupSource;
|
||||
IndividualExposure: IndividualExposure;
|
||||
InherentData: InherentData;
|
||||
InherentIdentifier: InherentIdentifier;
|
||||
InitializationData: InitializationData;
|
||||
InstanceDetails: InstanceDetails;
|
||||
InstanceId: InstanceId;
|
||||
@@ -604,8 +616,14 @@ declare module '@polkadot/types/types/registry' {
|
||||
MetadataV14: MetadataV14;
|
||||
MetadataV9: MetadataV9;
|
||||
MigrationStatusResult: MigrationStatusResult;
|
||||
MmrBatchProof: MmrBatchProof;
|
||||
MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf;
|
||||
MmrError: MmrError;
|
||||
MmrLeafBatchProof: MmrLeafBatchProof;
|
||||
MmrLeafIndex: MmrLeafIndex;
|
||||
MmrLeafProof: MmrLeafProof;
|
||||
MmrNodeIndex: MmrNodeIndex;
|
||||
MmrProof: MmrProof;
|
||||
MmrRootHash: MmrRootHash;
|
||||
ModuleConstantMetadataV10: ModuleConstantMetadataV10;
|
||||
ModuleConstantMetadataV11: ModuleConstantMetadataV11;
|
||||
@@ -979,6 +997,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
StorageHasherV13: StorageHasherV13;
|
||||
StorageHasherV14: StorageHasherV14;
|
||||
StorageHasherV9: StorageHasherV9;
|
||||
StorageInfo: StorageInfo;
|
||||
StorageKey: StorageKey;
|
||||
StorageKind: StorageKind;
|
||||
StorageMetadataV10: StorageMetadataV10;
|
||||
@@ -1008,11 +1027,15 @@ declare module '@polkadot/types/types/registry' {
|
||||
TraceError: TraceError;
|
||||
TransactionalError: TransactionalError;
|
||||
TransactionInfo: TransactionInfo;
|
||||
TransactionLongevity: TransactionLongevity;
|
||||
TransactionPriority: TransactionPriority;
|
||||
TransactionSource: TransactionSource;
|
||||
TransactionStorageProof: TransactionStorageProof;
|
||||
TransactionTag: TransactionTag;
|
||||
TransactionV0: TransactionV0;
|
||||
TransactionV1: TransactionV1;
|
||||
TransactionV2: TransactionV2;
|
||||
TransactionValidity: TransactionValidity;
|
||||
TransactionValidityError: TransactionValidityError;
|
||||
TransientValidationData: TransientValidationData;
|
||||
TreasuryProposal: TreasuryProposal;
|
||||
@@ -1064,6 +1087,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
ValidatorSignature: ValidatorSignature;
|
||||
ValidDisputeStatementKind: ValidDisputeStatementKind;
|
||||
ValidityAttestation: ValidityAttestation;
|
||||
ValidTransaction: ValidTransaction;
|
||||
VecInboundHrmpMessage: VecInboundHrmpMessage;
|
||||
VersionedMultiAsset: VersionedMultiAsset;
|
||||
VersionedMultiAssets: VersionedMultiAssets;
|
||||
|
||||
@@ -34,8 +34,21 @@ const V1_V2_SHARED: Record<string, DefinitionCall> = {
|
||||
description: 'Returns information regarding the next epoch (which was already previously announced).',
|
||||
params: [],
|
||||
type: 'Epoch'
|
||||
},
|
||||
submit_report_equivocation_unsigned_extrinsic: {
|
||||
description: 'Submits an unsigned extrinsic to report an equivocation.',
|
||||
params: [
|
||||
{
|
||||
name: 'equivocationProof',
|
||||
type: 'BabeEquivocationProof'
|
||||
},
|
||||
{
|
||||
name: 'keyOwnerProof',
|
||||
type: 'OpaqueKeyOwnershipProof'
|
||||
}
|
||||
],
|
||||
type: 'Option<Null>'
|
||||
}
|
||||
// TODO Add submit_report_equivocation_unsigned_extrinsic
|
||||
};
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
|
||||
import { runtime } from './runtime';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {
|
||||
BenchmarkConfig: {
|
||||
pallet: 'Bytes',
|
||||
benchmark: 'Bytes',
|
||||
selectedComponents: 'Vec<(BenchmarkParameter, u32)>',
|
||||
verify: 'bool',
|
||||
internalRepeats: 'u32'
|
||||
},
|
||||
BenchmarkList: {
|
||||
pallet: 'Bytes',
|
||||
instance: 'Bytes',
|
||||
benchmarks: 'Vec<BenchmarkMetadata>'
|
||||
},
|
||||
BenchmarkMetadata: {
|
||||
name: 'Bytes',
|
||||
components: 'Vec<(BenchmarkParameter, u32, u32)>'
|
||||
},
|
||||
BenchmarkParameter: {
|
||||
_enum: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
@@ -0,0 +1,34 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
Benchmark: [
|
||||
{
|
||||
methods: {
|
||||
benchmark_metadata: {
|
||||
description: 'Get the benchmark metadata available for this runtime.',
|
||||
params: [
|
||||
{
|
||||
name: 'extra',
|
||||
type: 'bool'
|
||||
}
|
||||
],
|
||||
type: '(Vec<BenchmarkList>, Vec<StorageInfo>)'
|
||||
},
|
||||
dispatch_benchmark: {
|
||||
description: 'Dispatch the given benchmark.',
|
||||
params: [
|
||||
{
|
||||
name: 'config',
|
||||
type: 'BenchmarkConfig'
|
||||
}
|
||||
],
|
||||
type: 'Result<Vec<BenchmarkBatch>, Text>'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,60 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Bytes, Enum, Struct, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
|
||||
/** @name BenchmarkConfig */
|
||||
export interface BenchmarkConfig extends Struct {
|
||||
readonly pallet: Bytes;
|
||||
readonly benchmark: Bytes;
|
||||
readonly selectedComponents: Vec<ITuple<[BenchmarkParameter, u32]>>;
|
||||
readonly verify: bool;
|
||||
readonly internalRepeats: u32;
|
||||
}
|
||||
|
||||
/** @name BenchmarkList */
|
||||
export interface BenchmarkList extends Struct {
|
||||
readonly pallet: Bytes;
|
||||
readonly instance: Bytes;
|
||||
readonly benchmarks: Vec<BenchmarkMetadata>;
|
||||
}
|
||||
|
||||
/** @name BenchmarkMetadata */
|
||||
export interface BenchmarkMetadata extends Struct {
|
||||
readonly name: Bytes;
|
||||
readonly components: Vec<ITuple<[BenchmarkParameter, u32, u32]>>;
|
||||
}
|
||||
|
||||
/** @name BenchmarkParameter */
|
||||
export interface BenchmarkParameter extends Enum {
|
||||
readonly isA: boolean;
|
||||
readonly isB: boolean;
|
||||
readonly isC: boolean;
|
||||
readonly isD: boolean;
|
||||
readonly isE: boolean;
|
||||
readonly isF: boolean;
|
||||
readonly isG: boolean;
|
||||
readonly isH: boolean;
|
||||
readonly isI: boolean;
|
||||
readonly isJ: boolean;
|
||||
readonly isK: boolean;
|
||||
readonly isL: boolean;
|
||||
readonly isM: boolean;
|
||||
readonly isN: boolean;
|
||||
readonly isO: boolean;
|
||||
readonly isP: boolean;
|
||||
readonly isQ: boolean;
|
||||
readonly isR: boolean;
|
||||
readonly isS: boolean;
|
||||
readonly isT: boolean;
|
||||
readonly isU: boolean;
|
||||
readonly isV: boolean;
|
||||
readonly isW: boolean;
|
||||
readonly isX: boolean;
|
||||
readonly isY: boolean;
|
||||
readonly isZ: boolean;
|
||||
readonly type: 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
|
||||
}
|
||||
|
||||
export type PHANTOM_BENCHMARK = 'benchmark';
|
||||
@@ -0,0 +1,25 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
|
||||
import { runtime } from './runtime';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {
|
||||
CheckInherentsResult: {
|
||||
okay: 'bool',
|
||||
fatalError: 'bool',
|
||||
errors: 'InherentData'
|
||||
},
|
||||
InherentData: {
|
||||
data: 'BTreeMap<InherentIdentifier, Bytes>'
|
||||
},
|
||||
InherentIdentifier: '[u8; 8]'
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
@@ -0,0 +1,53 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
BlockBuilder: [
|
||||
{
|
||||
methods: {
|
||||
apply_extrinsic: {
|
||||
description: 'Apply the given extrinsic.',
|
||||
params: [
|
||||
{
|
||||
name: 'extrinsic',
|
||||
type: 'Extrinsic'
|
||||
}
|
||||
],
|
||||
type: 'ApplyExtrinsicResult'
|
||||
},
|
||||
check_inherents: {
|
||||
description: 'Check that the inherents are valid.',
|
||||
params: [
|
||||
{
|
||||
name: 'block',
|
||||
type: 'Block'
|
||||
},
|
||||
{
|
||||
name: 'data',
|
||||
type: 'InherentData'
|
||||
}
|
||||
],
|
||||
type: 'CheckInherentsResult'
|
||||
},
|
||||
finalize_block: {
|
||||
description: 'Finish the current block.',
|
||||
params: [],
|
||||
type: 'Header'
|
||||
},
|
||||
inherent_extrinsics: {
|
||||
description: 'Generate inherent extrinsics.',
|
||||
params: [
|
||||
{
|
||||
name: 'inherent',
|
||||
type: 'InherentData'
|
||||
}
|
||||
],
|
||||
type: 'Vec<Extrinsic>'
|
||||
}
|
||||
},
|
||||
version: 6
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BTreeMap, Bytes, Struct, U8aFixed, bool } from '@polkadot/types-codec';
|
||||
|
||||
/** @name CheckInherentsResult */
|
||||
export interface CheckInherentsResult extends Struct {
|
||||
readonly okay: bool;
|
||||
readonly fatalError: bool;
|
||||
readonly errors: InherentData;
|
||||
}
|
||||
|
||||
/** @name InherentData */
|
||||
export interface InherentData extends Struct {
|
||||
readonly data: BTreeMap<InherentIdentifier, Bytes>;
|
||||
}
|
||||
|
||||
/** @name InherentIdentifier */
|
||||
export interface InherentIdentifier extends U8aFixed {}
|
||||
|
||||
export type PHANTOM_BLOCKBUILDER = 'blockbuilder';
|
||||
@@ -10,6 +10,8 @@ export { default as aura } from './aura/definitions';
|
||||
export { default as babe } from './babe/definitions';
|
||||
export { default as balances } from './balances/definitions';
|
||||
export { default as beefy } from './beefy/definitions';
|
||||
export { default as benchmark } from './benchmark/definitions';
|
||||
export { default as blockbuilder } from './blockbuilder/definitions';
|
||||
export { default as collective } from './collective/definitions';
|
||||
export { default as consensus } from './consensus/definitions';
|
||||
export { default as contracts } from './contracts/definitions';
|
||||
@@ -39,6 +41,7 @@ export { default as syncstate } from './syncstate/definitions';
|
||||
export { default as system } from './system/definitions';
|
||||
export { default as treasury } from './treasury/definitions';
|
||||
export { default as txpayment } from './txpayment/definitions';
|
||||
export { default as txqueue } from './txqueue/definitions';
|
||||
export { default as uniques } from './uniques/definitions';
|
||||
export { default as utility } from './utility/definitions';
|
||||
export { default as vesting } from './vesting/definitions';
|
||||
|
||||
@@ -11,6 +11,7 @@ import type { DefinitionsTypes } from '../../types';
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import { rpc } from './rpc';
|
||||
import { runtime } from './runtime';
|
||||
|
||||
const V0: DefinitionsTypes = {
|
||||
BlockV0: {
|
||||
@@ -335,4 +336,4 @@ const types: DefinitionsTypes = objectSpread({}, V0, V1, V2, {
|
||||
}
|
||||
});
|
||||
|
||||
export default { rpc, types };
|
||||
export default { rpc, runtime, types };
|
||||
|
||||
@@ -0,0 +1,175 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
ConvertTransactionRuntimeApi: [
|
||||
{
|
||||
methods: {
|
||||
convert_transaction: {
|
||||
description: 'Converts an Ethereum-style transaction to Extrinsic',
|
||||
params: [
|
||||
{
|
||||
name: 'transaction',
|
||||
type: 'TransactionV2'
|
||||
}
|
||||
],
|
||||
type: 'Extrinsic'
|
||||
}
|
||||
},
|
||||
version: 2
|
||||
}
|
||||
],
|
||||
EthereumRuntimeRPCApi: [
|
||||
{
|
||||
methods: {
|
||||
account_basic: {
|
||||
description: 'Returns pallet_evm::Accounts by address.',
|
||||
params: [
|
||||
{
|
||||
name: 'address',
|
||||
type: 'H160'
|
||||
}
|
||||
],
|
||||
type: 'EvmAccount'
|
||||
},
|
||||
account_code_at: {
|
||||
description: 'For a given account address, returns pallet_evm::AccountCodes.',
|
||||
params: [
|
||||
{
|
||||
name: 'address',
|
||||
type: 'H160'
|
||||
}
|
||||
],
|
||||
type: 'Bytes'
|
||||
},
|
||||
author: {
|
||||
description: 'Returns the converted FindAuthor::find_author authority id.',
|
||||
params: [],
|
||||
type: 'H160'
|
||||
},
|
||||
call: {
|
||||
description: 'Returns a frame_ethereum::call response. If `estimate` is true,',
|
||||
params: [
|
||||
{
|
||||
name: 'from',
|
||||
type: 'H160'
|
||||
},
|
||||
{
|
||||
name: 'to',
|
||||
type: 'H160'
|
||||
},
|
||||
{
|
||||
name: 'data',
|
||||
type: 'Vec<u8>'
|
||||
},
|
||||
{
|
||||
name: 'value',
|
||||
type: 'U256'
|
||||
},
|
||||
{
|
||||
name: 'gasLimit',
|
||||
type: 'U256'
|
||||
},
|
||||
{
|
||||
name: 'maxFeePerGas',
|
||||
type: 'Option<U256>'
|
||||
},
|
||||
{
|
||||
name: 'maxPriorityFeePerGas',
|
||||
type: 'Option<U256>'
|
||||
},
|
||||
{
|
||||
name: 'nonce',
|
||||
type: 'Option<U256>'
|
||||
},
|
||||
{
|
||||
name: 'estimate',
|
||||
type: 'bool'
|
||||
},
|
||||
{
|
||||
name: 'accessList',
|
||||
type: 'Option<Vec<(H160, Vec<H256>)>>'
|
||||
}
|
||||
],
|
||||
type: 'Result<EvmCallInfo, DispatchError>'
|
||||
},
|
||||
chain_id: {
|
||||
description: 'Returns runtime defined pallet_evm::ChainId.',
|
||||
params: [],
|
||||
type: 'u64'
|
||||
},
|
||||
create: {
|
||||
description: 'Returns a frame_ethereum::call response. If `estimate` is true,',
|
||||
params: [
|
||||
{
|
||||
name: 'from',
|
||||
type: 'H160'
|
||||
},
|
||||
{
|
||||
name: 'data',
|
||||
type: 'Vec<u8>'
|
||||
},
|
||||
{
|
||||
name: 'value',
|
||||
type: 'U256'
|
||||
},
|
||||
{
|
||||
name: 'gasLimit',
|
||||
type: 'U256'
|
||||
},
|
||||
{
|
||||
name: 'maxFeePerGas',
|
||||
type: 'Option<U256>'
|
||||
},
|
||||
{
|
||||
name: 'maxPriorityFeePerGas',
|
||||
type: 'Option<U256>'
|
||||
},
|
||||
{
|
||||
name: 'nonce',
|
||||
type: 'Option<U256>'
|
||||
},
|
||||
{
|
||||
name: 'estimate',
|
||||
type: 'bool'
|
||||
},
|
||||
{
|
||||
name: 'accessList',
|
||||
type: 'Option<Vec<(H160, Vec<H256>)>>'
|
||||
}
|
||||
],
|
||||
type: 'Result<EvmCreateInfo, DispatchError>'
|
||||
},
|
||||
current_block: {
|
||||
description: 'Return the current block.',
|
||||
params: [],
|
||||
type: 'BlockV2'
|
||||
},
|
||||
gas_price: {
|
||||
description: 'Returns FixedGasPrice::min_gas_price',
|
||||
params: [],
|
||||
type: 'u256'
|
||||
},
|
||||
storage_at: {
|
||||
description: 'For a given account address and index, returns pallet_evm::AccountStorages.',
|
||||
params: [
|
||||
{
|
||||
name: 'address',
|
||||
type: 'H160'
|
||||
},
|
||||
{
|
||||
name: 'index',
|
||||
type: 'u256'
|
||||
}
|
||||
],
|
||||
type: 'H256'
|
||||
}
|
||||
},
|
||||
version: 4
|
||||
// TODO This is _very_ incomplete, missing everything from this point onwards is missing -
|
||||
// https://github.com/paritytech/frontier/blob/87e60b9b67ab31f4ea7285c949997337bb76ffd0/primitives/rpc/src/lib.rs#L131
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -13,6 +13,18 @@ export default {
|
||||
nonce: 'u256',
|
||||
balance: 'u256'
|
||||
},
|
||||
EvmCallInfo: {
|
||||
exitReason: 'ExitReason',
|
||||
value: 'Bytes',
|
||||
usedGas: 'U256',
|
||||
logs: 'Vec<EvmLog>'
|
||||
},
|
||||
EvmCreateInfo: {
|
||||
exitReason: 'ExitReason',
|
||||
value: 'H160',
|
||||
usedGas: 'U256',
|
||||
logs: 'Vec<EvmLog>'
|
||||
},
|
||||
EvmLog: {
|
||||
address: 'H160',
|
||||
topics: 'Vec<H256>',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Bytes, Enum, Struct, Text, Vec, u256 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Enum, Struct, Text, U256, Vec, u256 } from '@polkadot/types-codec';
|
||||
import type { H160, H256 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
/** @name EvmAccount */
|
||||
@@ -10,6 +10,22 @@ export interface EvmAccount extends Struct {
|
||||
readonly balance: u256;
|
||||
}
|
||||
|
||||
/** @name EvmCallInfo */
|
||||
export interface EvmCallInfo extends Struct {
|
||||
readonly exitReason: ExitReason;
|
||||
readonly value: Bytes;
|
||||
readonly usedGas: U256;
|
||||
readonly logs: Vec<EvmLog>;
|
||||
}
|
||||
|
||||
/** @name EvmCreateInfo */
|
||||
export interface EvmCreateInfo extends Struct {
|
||||
readonly exitReason: ExitReason;
|
||||
readonly value: H160;
|
||||
readonly usedGas: U256;
|
||||
readonly logs: Vec<EvmLog>;
|
||||
}
|
||||
|
||||
/** @name EvmLog */
|
||||
export interface EvmLog extends Struct {
|
||||
readonly address: H160;
|
||||
|
||||
@@ -12,12 +12,39 @@ export const runtime: DefinitionsCall = {
|
||||
params: [],
|
||||
type: 'SetId'
|
||||
},
|
||||
generate_key_ownership_proof: {
|
||||
description: 'Generates a proof of key ownership for the given authority in the given set.',
|
||||
params: [
|
||||
{
|
||||
name: 'setId',
|
||||
type: 'SetId'
|
||||
},
|
||||
{
|
||||
name: 'authorityId',
|
||||
type: 'AuthorityId'
|
||||
}
|
||||
],
|
||||
type: 'Option<OpaqueKeyOwnershipProof>'
|
||||
},
|
||||
grandpa_authorities: {
|
||||
description: 'Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.',
|
||||
params: [],
|
||||
type: 'AuthorityList'
|
||||
},
|
||||
submit_report_equivocation_unsigned_extrinsic: {
|
||||
description: 'Submits an unsigned extrinsic to report an equivocation.',
|
||||
params: [
|
||||
{
|
||||
name: 'equivocationProof',
|
||||
type: 'GrandpaEquivocationProof'
|
||||
},
|
||||
{
|
||||
name: 'keyOwnerProof',
|
||||
type: 'OpaqueKeyOwnershipProof'
|
||||
}
|
||||
],
|
||||
type: 'Option<Null>'
|
||||
}
|
||||
// TODO submit_report_equivocation_unsigned_extrinsic, generate_key_ownership_proof
|
||||
},
|
||||
version: 3
|
||||
}
|
||||
|
||||
@@ -7,19 +7,37 @@
|
||||
import type { Definitions } from '../../types';
|
||||
|
||||
import { rpc } from './rpc';
|
||||
import { runtime } from './runtime';
|
||||
|
||||
export default {
|
||||
rpc,
|
||||
runtime,
|
||||
types: {
|
||||
MmrBatchProof: {
|
||||
leafIndices: 'Vec<MmrLeafIndex>',
|
||||
leafCount: 'MmrNodeIndex',
|
||||
items: 'Vec<Hash>'
|
||||
},
|
||||
MmrEncodableOpaqueLeaf: 'Bytes',
|
||||
MmrError: {
|
||||
_enum: ['Push', 'GetRoot', 'Commit', 'GenerateProof', 'Verify', 'LeafNotFound', ' PalletNotIncluded', 'InvalidLeafIndex']
|
||||
},
|
||||
MmrLeafBatchProof: {
|
||||
blockHash: 'BlockHash',
|
||||
leaves: 'Bytes',
|
||||
proof: 'Bytes'
|
||||
},
|
||||
MmrLeafIndex: 'u64',
|
||||
MmrLeafProof: {
|
||||
blockHash: 'BlockHash',
|
||||
leaf: 'Bytes',
|
||||
proof: 'Bytes'
|
||||
},
|
||||
MmrNodeIndex: 'u64',
|
||||
MmrProof: {
|
||||
leafIndex: 'MmrLeafIndex',
|
||||
leafCount: 'MmrNodeIndex',
|
||||
items: 'Vec<Hash>'
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
MmrApi: [
|
||||
{
|
||||
methods: {
|
||||
generate_batch_proof: {
|
||||
description: 'Generate MMR proof for a series of leaves under given indices.',
|
||||
params: [
|
||||
{
|
||||
name: 'leafIndices',
|
||||
type: 'Vec<MmrLeafIndex>'
|
||||
}
|
||||
],
|
||||
type: 'Result<(Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof), MmrError>'
|
||||
},
|
||||
generate_proof: {
|
||||
description: 'Generate MMR proof for a leaf under given index.',
|
||||
params: [
|
||||
{
|
||||
name: 'leafIndex',
|
||||
type: 'MmrLeafIndex'
|
||||
}
|
||||
],
|
||||
type: 'Result<(MmrEncodableOpaqueLeaf, MmrProof), MmrError>'
|
||||
},
|
||||
mmr_root: {
|
||||
description: 'Return the on-chain MMR root hash.',
|
||||
params: [],
|
||||
type: 'Result<Hash, MmrError>'
|
||||
},
|
||||
verify_batch_proof: {
|
||||
description: 'Verify MMR proof against on-chain MMR for a batch of leaves.',
|
||||
params: [
|
||||
{
|
||||
name: 'leaves',
|
||||
type: 'Vec<MmrEncodableOpaqueLeaf>'
|
||||
},
|
||||
{
|
||||
name: 'proof',
|
||||
type: 'MmrBatchProof'
|
||||
}
|
||||
],
|
||||
type: 'Result<(), MmrError>'
|
||||
},
|
||||
verify_batch_proof_stateless: {
|
||||
description: 'Verify MMR proof against given root hash or a batch of leaves.',
|
||||
params: [
|
||||
{
|
||||
name: 'root',
|
||||
type: 'Hash'
|
||||
},
|
||||
{
|
||||
name: 'leaves',
|
||||
type: 'Vec<MmrEncodableOpaqueLeaf>'
|
||||
},
|
||||
{
|
||||
name: 'proof',
|
||||
type: 'MmrBatchProof'
|
||||
}
|
||||
],
|
||||
type: 'Result<(), MmrError>'
|
||||
},
|
||||
verify_proof: {
|
||||
description: 'Verify MMR proof against on-chain MMR.',
|
||||
params: [
|
||||
{
|
||||
name: 'leaf',
|
||||
type: 'MmrEncodableOpaqueLeaf'
|
||||
},
|
||||
{
|
||||
name: 'proof',
|
||||
type: 'MmrProof'
|
||||
}
|
||||
],
|
||||
type: 'Result<(), MmrError>'
|
||||
},
|
||||
verify_proof_stateless: {
|
||||
description: 'Verify MMR proof against given root hash.',
|
||||
params: [
|
||||
{
|
||||
name: 'root',
|
||||
type: 'Hash'
|
||||
},
|
||||
{
|
||||
name: 'leaf',
|
||||
type: 'MmrEncodableOpaqueLeaf'
|
||||
},
|
||||
{
|
||||
name: 'proof',
|
||||
type: 'MmrProof'
|
||||
}
|
||||
],
|
||||
type: 'Result<(), MmrError>'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -1,8 +1,32 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Bytes, Struct } from '@polkadot/types-codec';
|
||||
import type { Bytes, Enum, Struct, Vec, u64 } from '@polkadot/types-codec';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { Hash } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
/** @name MmrBatchProof */
|
||||
export interface MmrBatchProof extends Struct {
|
||||
readonly leafIndices: Vec<MmrLeafIndex>;
|
||||
readonly leafCount: MmrNodeIndex;
|
||||
readonly items: Vec<Hash>;
|
||||
}
|
||||
|
||||
/** @name MmrEncodableOpaqueLeaf */
|
||||
export interface MmrEncodableOpaqueLeaf extends Bytes {}
|
||||
|
||||
/** @name MmrError */
|
||||
export interface MmrError extends Enum {
|
||||
readonly isPush: boolean;
|
||||
readonly isGetRoot: boolean;
|
||||
readonly isCommit: boolean;
|
||||
readonly isGenerateProof: boolean;
|
||||
readonly isVerify: boolean;
|
||||
readonly isLeafNotFound: boolean;
|
||||
readonly isPalletNotIncluded: boolean;
|
||||
readonly isInvalidLeafIndex: boolean;
|
||||
readonly type: 'Push' | 'GetRoot' | 'Commit' | 'GenerateProof' | 'Verify' | 'LeafNotFound' | 'PalletNotIncluded' | 'InvalidLeafIndex';
|
||||
}
|
||||
|
||||
/** @name MmrLeafBatchProof */
|
||||
export interface MmrLeafBatchProof extends Struct {
|
||||
@@ -11,6 +35,9 @@ export interface MmrLeafBatchProof extends Struct {
|
||||
readonly proof: Bytes;
|
||||
}
|
||||
|
||||
/** @name MmrLeafIndex */
|
||||
export interface MmrLeafIndex extends u64 {}
|
||||
|
||||
/** @name MmrLeafProof */
|
||||
export interface MmrLeafProof extends Struct {
|
||||
readonly blockHash: BlockHash;
|
||||
@@ -18,4 +45,14 @@ export interface MmrLeafProof extends Struct {
|
||||
readonly proof: Bytes;
|
||||
}
|
||||
|
||||
/** @name MmrNodeIndex */
|
||||
export interface MmrNodeIndex extends u64 {}
|
||||
|
||||
/** @name MmrProof */
|
||||
export interface MmrProof extends Struct {
|
||||
readonly leafIndex: MmrLeafIndex;
|
||||
readonly leafCount: MmrNodeIndex;
|
||||
readonly items: Vec<Hash>;
|
||||
}
|
||||
|
||||
export type PHANTOM_MMR = 'mmr';
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
import type { Definitions } from '../../types';
|
||||
|
||||
import { rpc } from './rpc';
|
||||
import { runtime } from './runtime';
|
||||
|
||||
export default {
|
||||
rpc,
|
||||
runtime,
|
||||
types: {
|
||||
StorageKind: {
|
||||
_enum: {
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
OffchainWorkerApi: [
|
||||
{
|
||||
methods: {
|
||||
offchain_worker: {
|
||||
description: 'Starts the off-chain task for given block header.',
|
||||
params: [
|
||||
{
|
||||
name: 'header',
|
||||
type: 'Header'
|
||||
}
|
||||
],
|
||||
type: 'Null'
|
||||
}
|
||||
},
|
||||
version: 2
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -12,7 +12,7 @@ export const runtime: DefinitionsCall = {
|
||||
params: [
|
||||
{
|
||||
name: 'uxt',
|
||||
type: 'Bytes'
|
||||
type: 'Extrinsic'
|
||||
},
|
||||
{
|
||||
name: 'len',
|
||||
@@ -26,7 +26,7 @@ export const runtime: DefinitionsCall = {
|
||||
params: [
|
||||
{
|
||||
name: 'uxt',
|
||||
type: 'Bytes'
|
||||
type: 'Extrinsic'
|
||||
},
|
||||
{
|
||||
name: 'len',
|
||||
|
||||
@@ -183,10 +183,19 @@ export default {
|
||||
Slot: 'u64',
|
||||
SlotDuration: 'u64',
|
||||
StorageData: 'Bytes',
|
||||
StorageInfo: {
|
||||
palletName: 'Bytes',
|
||||
storage_name: 'Bytes',
|
||||
prefix: 'Bytes',
|
||||
maxValues: 'Option<u32>',
|
||||
maxSize: 'Option<u32>'
|
||||
},
|
||||
StorageProof: {
|
||||
trieNodes: 'Vec<Bytes>'
|
||||
},
|
||||
TransactionPriority: 'u64',
|
||||
TransactionLongevity: 'u64',
|
||||
TransactionTag: 'Bytes',
|
||||
TransactionInfo: {
|
||||
_alias: {
|
||||
dataSize: 'size'
|
||||
|
||||
@@ -7,6 +7,26 @@ export const runtime: DefinitionsCall = {
|
||||
Core: [
|
||||
{
|
||||
methods: {
|
||||
execute_block: {
|
||||
description: 'Execute the given block.',
|
||||
params: [
|
||||
{
|
||||
name: 'block',
|
||||
type: 'Block'
|
||||
}
|
||||
],
|
||||
type: 'Null'
|
||||
},
|
||||
initialize_block: {
|
||||
description: 'Initialize a block with the given header.',
|
||||
params: [
|
||||
{
|
||||
name: 'header',
|
||||
type: 'Header'
|
||||
}
|
||||
],
|
||||
type: 'Null'
|
||||
},
|
||||
version: {
|
||||
description: 'Returns the version of the runtime.',
|
||||
params: [],
|
||||
@@ -14,7 +34,28 @@ export const runtime: DefinitionsCall = {
|
||||
}
|
||||
},
|
||||
version: 4
|
||||
// TODO Add execute_block & initialize_block
|
||||
}
|
||||
],
|
||||
TryRuntime: [
|
||||
{
|
||||
methods: {
|
||||
execute_block_no_check: {
|
||||
description: "Execute the given block, but don't check that its state root matches that of yours.",
|
||||
params: [
|
||||
{
|
||||
name: 'block',
|
||||
type: 'Block'
|
||||
}
|
||||
],
|
||||
type: 'Weight'
|
||||
},
|
||||
on_runtime_upgrade: {
|
||||
description: 'dry-run runtime upgrades, returning the total weight consumed.',
|
||||
params: [],
|
||||
type: '(Weight, Weight)'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
@@ -339,6 +339,15 @@ export interface SlotDuration extends u64 {}
|
||||
/** @name StorageData */
|
||||
export interface StorageData extends Bytes {}
|
||||
|
||||
/** @name StorageInfo */
|
||||
export interface StorageInfo extends Struct {
|
||||
readonly palletName: Bytes;
|
||||
readonly storage_name: Bytes;
|
||||
readonly prefix: Bytes;
|
||||
readonly maxValues: Option<u32>;
|
||||
readonly maxSize: Option<u32>;
|
||||
}
|
||||
|
||||
/** @name StorageProof */
|
||||
export interface StorageProof extends Struct {
|
||||
readonly trieNodes: Vec<Bytes>;
|
||||
@@ -352,6 +361,9 @@ export interface TransactionInfo extends Struct {
|
||||
readonly blockChunks: u32;
|
||||
}
|
||||
|
||||
/** @name TransactionLongevity */
|
||||
export interface TransactionLongevity extends u64 {}
|
||||
|
||||
/** @name TransactionPriority */
|
||||
export interface TransactionPriority extends u64 {}
|
||||
|
||||
@@ -361,6 +373,9 @@ export interface TransactionStorageProof extends Struct {
|
||||
readonly proof: Vec<Bytes>;
|
||||
}
|
||||
|
||||
/** @name TransactionTag */
|
||||
export interface TransactionTag extends Bytes {}
|
||||
|
||||
/** @name U32F32 */
|
||||
export interface U32F32 extends UInt {}
|
||||
|
||||
|
||||
@@ -141,7 +141,8 @@ export default {
|
||||
ExhaustsResources: 'Null',
|
||||
Custom: 'u8',
|
||||
BadMandatory: 'Null',
|
||||
MandatoryDispatch: 'Null'
|
||||
MandatoryDispatch: 'Null',
|
||||
BadSigner: 'Null'
|
||||
}
|
||||
},
|
||||
Key: 'Bytes',
|
||||
|
||||
@@ -238,7 +238,8 @@ export interface InvalidTransaction extends Enum {
|
||||
readonly asCustom: u8;
|
||||
readonly isBadMandatory: boolean;
|
||||
readonly isMandatoryDispatch: boolean;
|
||||
readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryDispatch';
|
||||
readonly isBadSigner: boolean;
|
||||
readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryDispatch' | 'BadSigner';
|
||||
}
|
||||
|
||||
/** @name Key */
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
|
||||
import { runtime } from './runtime';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {
|
||||
TransactionSource: {
|
||||
_enum: ['InBlock', 'Local', 'External']
|
||||
},
|
||||
TransactionValidity: 'Result<ValidTransaction, TransactionValidityError>',
|
||||
ValidTransaction: {
|
||||
priority: 'TransactionPriority',
|
||||
requires: 'Vec<TransactionTag>',
|
||||
provides: 'Vec<TransactionTag>',
|
||||
longevity: 'TransactionLongevity',
|
||||
propagate: 'bool'
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
@@ -0,0 +1,32 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
TaggedTransactionQueue: [
|
||||
{
|
||||
methods: {
|
||||
validate_transaction: {
|
||||
description: 'Validate the transaction.',
|
||||
params: [
|
||||
{
|
||||
name: 'source',
|
||||
type: 'TransactionSource'
|
||||
},
|
||||
{
|
||||
name: 'tx',
|
||||
type: 'Extrinsic'
|
||||
},
|
||||
{
|
||||
name: 'blockHash',
|
||||
type: 'BlockHash'
|
||||
}
|
||||
],
|
||||
type: 'TransactionValidity'
|
||||
}
|
||||
},
|
||||
version: 3
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Enum, Result, Struct, Vec, bool } from '@polkadot/types-codec';
|
||||
import type { TransactionLongevity, TransactionPriority, TransactionTag } from '@polkadot/types/interfaces/runtime';
|
||||
import type { TransactionValidityError } from '@polkadot/types/interfaces/system';
|
||||
|
||||
/** @name TransactionSource */
|
||||
export interface TransactionSource extends Enum {
|
||||
readonly isInBlock: boolean;
|
||||
readonly isLocal: boolean;
|
||||
readonly isExternal: boolean;
|
||||
readonly type: 'InBlock' | 'Local' | 'External';
|
||||
}
|
||||
|
||||
/** @name TransactionValidity */
|
||||
export interface TransactionValidity extends Result<ValidTransaction, TransactionValidityError> {
|
||||
readonly isErr: boolean;
|
||||
readonly asErr: TransactionValidityError;
|
||||
/** @deprecated Use isErr */
|
||||
readonly isError: boolean;
|
||||
/** @deprecated Use asErr */
|
||||
readonly asError: TransactionValidityError;
|
||||
readonly isOk: boolean;
|
||||
readonly asOk: ValidTransaction;
|
||||
}
|
||||
|
||||
/** @name ValidTransaction */
|
||||
export interface ValidTransaction extends Struct {
|
||||
readonly priority: TransactionPriority;
|
||||
readonly requires: Vec<TransactionTag>;
|
||||
readonly provides: Vec<TransactionTag>;
|
||||
readonly longevity: TransactionLongevity;
|
||||
readonly propagate: bool;
|
||||
}
|
||||
|
||||
export type PHANTOM_TXQUEUE = 'txqueue';
|
||||
@@ -9,6 +9,8 @@ export * from './authorship/types';
|
||||
export * from './babe/types';
|
||||
export * from './balances/types';
|
||||
export * from './beefy/types';
|
||||
export * from './benchmark/types';
|
||||
export * from './blockbuilder/types';
|
||||
export * from './bridges/types';
|
||||
export * from './chain/types';
|
||||
export * from './childstate/types';
|
||||
@@ -54,6 +56,7 @@ export * from './syncstate/types';
|
||||
export * from './system/types';
|
||||
export * from './treasury/types';
|
||||
export * from './txpayment/types';
|
||||
export * from './txqueue/types';
|
||||
export * from './uniques/types';
|
||||
export * from './utility/types';
|
||||
export * from './vesting/types';
|
||||
|
||||
@@ -61,10 +61,12 @@ export interface DefinitionRpcSub extends DefinitionRpc {
|
||||
|
||||
export type DefinitionsRpc = Record<string, DefinitionRpc | DefinitionRpcSub>;
|
||||
|
||||
export type DefinitionsCall = Record<string, {
|
||||
export interface DefinitionsCallEntry {
|
||||
methods: Record<string, DefinitionCall>;
|
||||
version: number;
|
||||
}[]>;
|
||||
}
|
||||
|
||||
export type DefinitionsCall = Record<string, DefinitionsCallEntry[]>;
|
||||
|
||||
export interface DefinitionCallNamed extends DefinitionCall {
|
||||
method: string;
|
||||
|
||||
Reference in New Issue
Block a user