diff --git a/packages/api-augment/src/kusama/runtime.ts b/packages/api-augment/src/kusama/runtime.ts index 95d565bb360d..c1d6e4eaa1ab 100644 --- a/packages/api-augment/src/kusama/runtime.ts +++ b/packages/api-augment/src/kusama/runtime.ts @@ -6,10 +6,10 @@ import '@polkadot/api-base/types/calls'; import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; -import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec'; +import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe'; -import type { BeefyAuthoritySet, BeefyNextAuthoritySet } from '@polkadot/types/interfaces/beefy'; +import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } 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'; @@ -18,8 +18,10 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr'; import type { NpPoolId } from '@polkadot/types/interfaces/nompools'; +import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains'; import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; -import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight } from '@polkadot/types/interfaces/runtime'; +import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime'; +import type { SessionIndex } from '@polkadot/types/interfaces/session'; import type { RuntimeVersion } from '@polkadot/types/interfaces/state'; import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system'; import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue'; @@ -83,6 +85,29 @@ declare module '@polkadot/api-base/types/calls' { **/ [key: string]: DecoratedCallBase; }; + /** 0x49eaaf1b548a0cb0/3 */ + beefyApi: { + /** + * Return the block number where BEEFY consensus is enabled/started + **/ + beefyGenesis: AugmentedCall Observable>>; + /** + * Generates a proof of key ownership for the given authority in the given set. + **/ + generateKeyOwnershipProof: AugmentedCall Observable>>; + /** + * Submits an unsigned extrinsic to report an equivocation. + **/ + submitReportEquivocationUnsignedExtrinsic: AugmentedCall Observable>>; + /** + * Return the current active BEEFY validator set + **/ + validatorSet: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; /** 0x2a5e924655399e60/1 */ beefyMmrApi: { /** @@ -235,6 +260,105 @@ declare module '@polkadot/api-base/types/calls' { **/ [key: string]: DecoratedCallBase; }; + /** 0xaf2c0297a23e6d3d/5 */ + parachainHost: { + /** + * Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash. + **/ + assumedValidationData: AugmentedCall Observable>>>; + /** + * Yields information on all availability cores as relevant to the child block. + **/ + availabilityCores: AugmentedCall Observable>>; + /** + * Get a vector of events concerning candidates that occurred within a block. + **/ + candidateEvents: AugmentedCall Observable>>; + /** + * Get the receipt of a candidate pending availability. + **/ + candidatePendingAvailability: AugmentedCall Observable>>; + /** + * Checks if the given validation outputs pass the acceptance criteria. + **/ + checkValidationOutputs: AugmentedCall Observable>; + /** + * Returns all onchain disputes. + **/ + disputes: AugmentedCall Observable>>>; + /** + * Get all the pending inbound messages in the downward message queue for a para. + **/ + dmqContents: AugmentedCall Observable>>; + /** + * Get the contents of all channels addressed to the given recipient. + **/ + inboundHrmpChannelsContents: AugmentedCall Observable>>; + /** + * Returns a merkle proof of a validator session key + **/ + keyOwnershipProof: AugmentedCall Observable>>; + /** + * Scrape dispute relevant from on-chain, backing votes and resolved disputes. + **/ + onChainVotes: AugmentedCall Observable>>; + /** + * Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core. + **/ + persistedValidationData: AugmentedCall Observable>>; + /** + * Returns code hashes of PVFs that require pre-checking by validators in the active set. + **/ + pvfsRequirePrecheck: AugmentedCall Observable>>; + /** + * Returns execution parameters for the session. + **/ + sessionExecutorParams: AugmentedCall Observable>>; + /** + * Returns the session index expected at a child of the block. + **/ + sessionIndexForChild: AugmentedCall Observable>; + /** + * Get the session info for the given session, if stored. + **/ + sessionInfo: AugmentedCall Observable>>; + /** + * Submits a PVF pre-checking statement into the transaction pool. + **/ + submitPvfCheckStatement: AugmentedCall Observable>; + /** + * Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session + **/ + submitReportDisputeLost: AugmentedCall Observable>>; + /** + * Returns a list of validators that lost a past session dispute and need to be slashed + **/ + unappliedSlashes: AugmentedCall Observable>>>; + /** + * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`. + **/ + validationCode: AugmentedCall Observable>; + /** + * Get the validation code from its hash. + **/ + validationCodeByHash: AugmentedCall Observable>>; + /** + * Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`. + **/ + validationCodeHash: AugmentedCall Observable>>; + /** + * Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on + **/ + validatorGroups: AugmentedCall Observable>, GroupRotationInfo]>>>; + /** + * Get the current validators. + **/ + validators: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; /** 0xab3c0572291feb8b/1 */ sessionKeys: { /** diff --git a/packages/api-augment/src/polkadot/runtime.ts b/packages/api-augment/src/polkadot/runtime.ts index 14ccd604d376..e5d663990859 100644 --- a/packages/api-augment/src/polkadot/runtime.ts +++ b/packages/api-augment/src/polkadot/runtime.ts @@ -6,9 +6,10 @@ import '@polkadot/api-base/types/calls'; import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; -import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec'; +import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe'; +import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } 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'; @@ -17,8 +18,10 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr'; import type { NpPoolId } from '@polkadot/types/interfaces/nompools'; +import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains'; import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; -import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight } from '@polkadot/types/interfaces/runtime'; +import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime'; +import type { SessionIndex } from '@polkadot/types/interfaces/session'; import type { RuntimeVersion } from '@polkadot/types/interfaces/state'; import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system'; import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue'; @@ -82,6 +85,29 @@ declare module '@polkadot/api-base/types/calls' { **/ [key: string]: DecoratedCallBase; }; + /** 0x49eaaf1b548a0cb0/3 */ + beefyApi: { + /** + * Return the block number where BEEFY consensus is enabled/started + **/ + beefyGenesis: AugmentedCall Observable>>; + /** + * Generates a proof of key ownership for the given authority in the given set. + **/ + generateKeyOwnershipProof: AugmentedCall Observable>>; + /** + * Submits an unsigned extrinsic to report an equivocation. + **/ + submitReportEquivocationUnsignedExtrinsic: AugmentedCall Observable>>; + /** + * Return the current active BEEFY validator set + **/ + validatorSet: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; /** 0x40fe3ad401f8959a/6 */ blockBuilder: { /** @@ -219,6 +245,105 @@ declare module '@polkadot/api-base/types/calls' { **/ [key: string]: DecoratedCallBase; }; + /** 0xaf2c0297a23e6d3d/5 */ + parachainHost: { + /** + * Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash. + **/ + assumedValidationData: AugmentedCall Observable>>>; + /** + * Yields information on all availability cores as relevant to the child block. + **/ + availabilityCores: AugmentedCall Observable>>; + /** + * Get a vector of events concerning candidates that occurred within a block. + **/ + candidateEvents: AugmentedCall Observable>>; + /** + * Get the receipt of a candidate pending availability. + **/ + candidatePendingAvailability: AugmentedCall Observable>>; + /** + * Checks if the given validation outputs pass the acceptance criteria. + **/ + checkValidationOutputs: AugmentedCall Observable>; + /** + * Returns all onchain disputes. + **/ + disputes: AugmentedCall Observable>>>; + /** + * Get all the pending inbound messages in the downward message queue for a para. + **/ + dmqContents: AugmentedCall Observable>>; + /** + * Get the contents of all channels addressed to the given recipient. + **/ + inboundHrmpChannelsContents: AugmentedCall Observable>>; + /** + * Returns a merkle proof of a validator session key + **/ + keyOwnershipProof: AugmentedCall Observable>>; + /** + * Scrape dispute relevant from on-chain, backing votes and resolved disputes. + **/ + onChainVotes: AugmentedCall Observable>>; + /** + * Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core. + **/ + persistedValidationData: AugmentedCall Observable>>; + /** + * Returns code hashes of PVFs that require pre-checking by validators in the active set. + **/ + pvfsRequirePrecheck: AugmentedCall Observable>>; + /** + * Returns execution parameters for the session. + **/ + sessionExecutorParams: AugmentedCall Observable>>; + /** + * Returns the session index expected at a child of the block. + **/ + sessionIndexForChild: AugmentedCall Observable>; + /** + * Get the session info for the given session, if stored. + **/ + sessionInfo: AugmentedCall Observable>>; + /** + * Submits a PVF pre-checking statement into the transaction pool. + **/ + submitPvfCheckStatement: AugmentedCall Observable>; + /** + * Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session + **/ + submitReportDisputeLost: AugmentedCall Observable>>; + /** + * Returns a list of validators that lost a past session dispute and need to be slashed + **/ + unappliedSlashes: AugmentedCall Observable>>>; + /** + * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`. + **/ + validationCode: AugmentedCall Observable>; + /** + * Get the validation code from its hash. + **/ + validationCodeByHash: AugmentedCall Observable>>; + /** + * Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`. + **/ + validationCodeHash: AugmentedCall Observable>>; + /** + * Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on + **/ + validatorGroups: AugmentedCall Observable>, GroupRotationInfo]>>>; + /** + * Get the current validators. + **/ + validators: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; /** 0xab3c0572291feb8b/1 */ sessionKeys: { /**