Bump metadata (#5534)

* Bump metadata

* Adjust with rebuild & runtime bumps

* Remove root babel deps

* 10.1.1
This commit is contained in:
Jaco
2023-03-11 10:30:55 +02:00
committed by GitHub
parent f4ee507a17
commit fcdb31dc3c
56 changed files with 5635 additions and 4504 deletions
+7 -1
View File
@@ -1,10 +1,16 @@
# CHANGELOG
## master
## 10.1.1 Mar 11, 2023
Contributed:
- Fix yargs usage inside ESM modules (Thanks to https://github.com/conr2d)
Changes:
- Align runtime APIs with latest Substrate
- Update to latest Polkadot, Kusama & Substrate metadata
- Use consistent `.js` imports in source files (TS moduleResolution)
## 10.0.1 Mar 4, 2023
+2 -5
View File
@@ -11,7 +11,7 @@
},
"sideEffects": false,
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"versions": {
"git": "10.0.2-8-x",
"npm": "10.0.1"
@@ -37,10 +37,7 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@babel/core": "^7.21.0",
"@babel/register": "^7.21.0",
"@babel/runtime": "^7.21.0",
"@polkadot/dev": "^0.71.3",
"@polkadot/dev": "^0.71.4",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^18.15.0"
},
+7 -7
View File
@@ -20,15 +20,15 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "10.0.2-8-x",
"@polkadot/rpc-augment": "10.0.2-8-x",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-augment": "10.0.2-8-x",
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/api-base": "10.1.0",
"@polkadot/rpc-augment": "10.1.0",
"@polkadot/types": "10.1.0",
"@polkadot/types-augment": "10.1.0",
"@polkadot/types-codec": "10.1.0",
"@polkadot/util": "^11.0.2",
"tslib": "^2.5.0"
}
}
+2 -2
View File
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
import type { ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -496,7 +496,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* New authority set has been applied.
**/
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>> }>;
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }>;
/**
* Current authority set has been paused.
**/
+2 -2
View File
@@ -85,7 +85,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x49eaaf1b548a0cb0/1 */
/** 0x49eaaf1b548a0cb0/2 */
beefyApi: {
/**
* Return the block number where BEEFY consensus is enabled/started
@@ -184,7 +184,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x91d5df18b0d2cf58/1 */
/** 0x91d5df18b0d2cf58/2 */
mmrApi: {
/**
* Generate MMR proof for a series of leaves under given indices.
+3 -3
View File
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -1663,7 +1663,7 @@ declare module '@polkadot/api-base/types/submittable' {
* against the extracted offender. If both are valid, the offence
* will be reported.
**/
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
/**
* Report voter equivocation/misbehavior. This method will verify the
* equivocation proof and validate the given key ownership proof
@@ -1675,7 +1675,7 @@ declare module '@polkadot/api-base/types/submittable' {
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
/**
* Generic tx
**/
+2 -2
View File
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
import type { ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -395,7 +395,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* New authority set has been applied.
**/
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>> }>;
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }>;
/**
* Current authority set has been paused.
**/
+2 -2
View File
@@ -85,7 +85,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x49eaaf1b548a0cb0/1 */
/** 0x49eaaf1b548a0cb0/2 */
beefyApi: {
/**
* Return the block number where BEEFY consensus is enabled/started
@@ -184,7 +184,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x91d5df18b0d2cf58/1 */
/** 0x91d5df18b0d2cf58/2 */
mmrApi: {
/**
* Generate MMR proof for a series of leaves under given indices.
+3 -3
View File
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -1371,7 +1371,7 @@ declare module '@polkadot/api-base/types/submittable' {
* against the extracted offender. If both are valid, the offence
* will be reported.
**/
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
/**
* Report voter equivocation/misbehavior. This method will verify the
* equivocation proof and validate the given key ownership proof
@@ -1383,7 +1383,7 @@ declare module '@polkadot/api-base/types/submittable' {
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
/**
* Generic tx
**/
@@ -965,6 +965,33 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
salary: {
/**
* The total budget per cycle.
*
* This may change over the course of a cycle without any problem.
**/
budget: u128 & AugmentedConst<ApiType>;
/**
* The number of blocks within a cycle which accounts have to claim the payout.
*
* The number of blocks between sequential payout cycles is the sum of this and
* `RegistrationPeriod`.
**/
payoutPeriod: u32 & AugmentedConst<ApiType>;
/**
* The number of blocks within a cycle which accounts have to register their intent to
* claim.
*
* The number of blocks between sequential payout cycles is the sum of this and
* `PayoutPeriod`.
**/
registrationPeriod: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
scheduler: {
/**
* The maximum weight that may be scheduled per block for any dispatchables.
@@ -475,6 +475,9 @@ declare module '@polkadot/api-base/types/errors' {
RandomSubjectTooLong: AugmentedError<ApiType>;
/**
* A call tried to invoke a contract that is flagged as non-reentrant.
* The only other cause is that a call from a contract into the runtime tried to call back
* into `pallet-contracts`. This would make the whole pallet reentrant with regard to
* contract code execution which is not supported.
**/
ReentranceDenied: AugmentedError<ApiType>;
/**
@@ -1851,6 +1854,65 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
salary: {
/**
* The account is already inducted.
**/
AlreadyInducted: AugmentedError<ApiType>;
/**
* The salary system has already been started.
**/
AlreadyStarted: AugmentedError<ApiType>;
/**
* There is no budget left for the payout.
**/
Bankrupt: AugmentedError<ApiType>;
/**
* The member's claim is zero.
**/
ClaimZero: AugmentedError<ApiType>;
/**
* The payment has neither failed nor succeeded yet.
**/
Inconclusive: AugmentedError<ApiType>;
/**
* The member does not have a current valid claim.
**/
NoClaim: AugmentedError<ApiType>;
/**
* The cycle is after that in which the payment was made.
**/
NotCurrent: AugmentedError<ApiType>;
NotInducted: AugmentedError<ApiType>;
/**
* The account is not a ranked member.
**/
NotMember: AugmentedError<ApiType>;
/**
* The payout cycles have not yet started.
**/
NotStarted: AugmentedError<ApiType>;
/**
* Cycle is not yet over.
**/
NotYet: AugmentedError<ApiType>;
/**
* There was some issue with the mechanism of payment.
**/
PayError: AugmentedError<ApiType>;
/**
* Current cycle's payment period is not yet begun.
**/
TooEarly: AugmentedError<ApiType>;
/**
* Current cycle's registration period is over.
**/
TooLate: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
scheduler: {
/**
* Failed to schedule a call
+36 -5
View File
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -130,6 +130,10 @@ declare module '@polkadot/api-base/types/events' {
* Some asset `asset_id` was frozen.
**/
AssetFrozen: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
/**
* The min_balance of an asset has been updated by the asset owner.
**/
AssetMinBalanceChanged: AugmentedEvent<ApiType, [assetId: u32, newMinBalance: u128], { assetId: u32, newMinBalance: u128 }>;
/**
* An asset has had its attributes changed by the `Force` origin.
**/
@@ -626,7 +630,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* New authority set has been applied.
**/
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>> }>;
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }>;
/**
* Current authority set has been paused.
**/
@@ -807,11 +811,11 @@ declare module '@polkadot/api-base/types/events' {
/**
* Attribute metadata has been cleared for a `collection` or `item`.
**/
AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace }>;
AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: PalletNftsAttributeNamespace }>;
/**
* New attribute metadata has been set for a `collection` or `item`.
**/
AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace }>;
AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace }>;
/**
* An `item` was destroyed.
**/
@@ -908,10 +912,15 @@ declare module '@polkadot/api-base/types/events' {
* Ownership acceptance has changed for an account.
**/
OwnershipAcceptanceChanged: AugmentedEvent<ApiType, [who: AccountId32, maybeCollection: Option<u32>], { who: AccountId32, maybeCollection: Option<u32> }>;
/**
* A new attribute in the `Pallet` namespace was set for the `collection` or an `item`
* within that `collection`.
**/
PalletAttributeSet: AugmentedEvent<ApiType, [collection: u32, item: Option<u32>, attribute: PalletNftsPalletAttributes, value: Bytes], { collection: u32, item: Option<u32>, attribute: PalletNftsPalletAttributes, value: Bytes }>;
/**
* New attributes have been set for an `item` of the `collection`.
**/
PreSignedAttributesSet: AugmentedEvent<ApiType, [collection: u32, item: u32, namespace: FrameSupportTokensMiscAttributeNamespace], { collection: u32, item: u32, namespace: FrameSupportTokensMiscAttributeNamespace }>;
PreSignedAttributesSet: AugmentedEvent<ApiType, [collection: u32, item: u32, namespace: PalletNftsAttributeNamespace], { collection: u32, item: u32, namespace: PalletNftsAttributeNamespace }>;
/**
* The deposit for a set of `item`s within a `collection` has been updated.
**/
@@ -1307,6 +1316,28 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
salary: {
/**
* The next cycle begins.
**/
CycleStarted: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
/**
* A member is inducted into the payroll.
**/
Inducted: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
/**
* A payment happened.
**/
Paid: AugmentedEvent<ApiType, [who: AccountId32, beneficiary: AccountId32, amount: u128, id: Null], { who: AccountId32, beneficiary: AccountId32, amount: u128, id: Null }>;
/**
* A member registered for a payout.
**/
Registered: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
scheduler: {
/**
* The call for the provided hash was not found so the task has been aborted.
+17 -2
View File
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -904,7 +904,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Attributes of a collection.
**/
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
/**
* Details of a collection.
**/
@@ -1133,6 +1133,7 @@ declare module '@polkadot/api-base/types/storage' {
map1M: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
unboundedMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
unboundedMap2: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
unboundedMapTwox: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* A value without a MEL bound.
**/
@@ -1302,6 +1303,20 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
salary: {
/**
* The status of a claimant.
**/
claimant: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSalaryClaimantStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* The overall status of the system.
**/
status: AugmentedQuery<ApiType, () => Observable<Option<PalletSalaryStatusType>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
scheduler: {
/**
* Items to be executed, indexed by the block number that they should be executed on.
+13 -1
View File
@@ -8,6 +8,7 @@ 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 { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
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';
@@ -42,6 +43,17 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x8453b50b22293977/1 */
assetsApi: {
/**
* Return the current set of authorities.
**/
accountBalances: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array) => Observable<Vec<ITuple<[u32, TAssetBalance]>>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x687ad44ad37f03c2/1 */
authorityDiscoveryApi: {
/**
@@ -183,7 +195,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x91d5df18b0d2cf58/1 */
/** 0x91d5df18b0d2cf58/2 */
mmrApi: {
/**
* Generate MMR proof for a series of leaves under given indices.
+82 -7
View File
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -581,6 +581,21 @@ declare module '@polkadot/api-base/types/submittable' {
* Weight: `O(1)`
**/
setMetadata: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes, Bytes, u8]>;
/**
* Sets the minimum balance of an asset.
*
* Only works if there aren't any accounts that are holding the asset or if
* the new value of `min_balance` is less than the old one.
*
* Origin must be Signed and the sender has to be the Owner of the
* asset `id`.
*
* - `id`: The identifier of the asset.
* - `min_balance`: The new value of `min_balance`.
*
* Emits `AssetMinBalanceChanged` event when successful.
**/
setMinBalance: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u128]>;
/**
* Change the Issuer, Admin and Freezer of an asset.
*
@@ -2048,7 +2063,7 @@ declare module '@polkadot/api-base/types/submittable' {
* against the extracted offender. If both are valid, the offence
* will be reported.
**/
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
/**
* Report voter equivocation/misbehavior. This method will verify the
* equivocation proof and validate the given key ownership proof
@@ -2060,7 +2075,7 @@ declare module '@polkadot/api-base/types/submittable' {
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
/**
* Generic tx
**/
@@ -2745,7 +2760,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Weight: `O(1)`
**/
clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
/**
* Clear the metadata for a collection.
*
@@ -2911,7 +2926,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Weight: `O(1)`
**/
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
/**
* Disallows specified settings for the whole collection.
*
@@ -2976,7 +2991,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Weight: `O(1)`
**/
mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | { ownerOfItem?: any } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | { ownedItem?: any } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
/**
* Mint an item by providing the pre-signed approval.
*
@@ -3060,7 +3075,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Weight: `O(1)`
**/
setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
/**
* Set attributes for an item by providing the pre-signed approval.
*
@@ -4113,6 +4128,66 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
salary: {
/**
* Move to next payout cycle, assuming that the present block is now within that cycle.
*
* - `origin`: A `Signed` origin of an account.
**/
bump: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Update a payment's status; if it failed, alter the state so the payment can be retried.
*
* This must be called within the same cycle as the failed payment. It will fail with
* `Event::NotCurrent` otherwise.
*
* - `origin`: A `Signed` origin of an account which is a member of `Members` who has
* received a payment this cycle.
**/
checkPayment: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Induct oneself into the payout system.
**/
induct: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Start the first payout cycle.
*
* - `origin`: A `Signed` origin of an account.
**/
init: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Request a payout.
*
* Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
* started but by no more than `PayoutPeriod` blocks.
*
* - `origin`: A `Signed` origin of an account which is a member of `Members`.
**/
payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Request a payout to a secondary account.
*
* Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
* started but by no more than `PayoutPeriod` blocks.
*
* - `origin`: A `Signed` origin of an account which is a member of `Members`.
* - `beneficiary`: The account to receive payment.
**/
payoutOther: AugmentedSubmittable<(beneficiary: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
* Register for a payout.
*
* Will only work if we are in the first `RegistrationPeriod` blocks since the cycle
* started.
*
* - `origin`: A `Signed` origin of an account which is a member of `Members`.
**/
register: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
scheduler: {
/**
* Cancel an anonymously scheduled task.
+4 -4
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "10.0.2-8-x",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/rpc-core": "10.1.0",
"@polkadot/types": "10.1.0",
"@polkadot/util": "^11.0.2",
"rxjs": "^7.8.0",
"tslib": "^2.5.0"
}
+9 -9
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/api": "10.0.2-8-x",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/types-create": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/util-crypto": "^11.0.1",
"@polkadot/api": "10.1.0",
"@polkadot/types": "10.1.0",
"@polkadot/types-codec": "10.1.0",
"@polkadot/types-create": "10.1.0",
"@polkadot/util": "^11.0.2",
"@polkadot/util-crypto": "^11.0.2",
"rxjs": "^7.8.0",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/api-augment": "10.0.2-8-x",
"@polkadot/keyring": "^11.0.1"
"@polkadot/api-augment": "10.1.0",
"@polkadot/keyring": "^11.0.2"
}
}
+14 -14
View File
@@ -20,25 +20,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/api": "10.0.2-8-x",
"@polkadot/api-augment": "10.0.2-8-x",
"@polkadot/api-base": "10.0.2-8-x",
"@polkadot/rpc-core": "10.0.2-8-x",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/util-crypto": "^11.0.1",
"@polkadot/api": "10.1.0",
"@polkadot/api-augment": "10.1.0",
"@polkadot/api-base": "10.1.0",
"@polkadot/rpc-core": "10.1.0",
"@polkadot/types": "10.1.0",
"@polkadot/types-codec": "10.1.0",
"@polkadot/util": "^11.0.2",
"@polkadot/util-crypto": "^11.0.2",
"rxjs": "^7.8.0",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/api": "10.0.2-8-x",
"@polkadot/api-augment": "10.0.2-8-x",
"@polkadot/rpc-augment": "10.0.2-8-x",
"@polkadot/rpc-provider": "10.0.2-8-x",
"@polkadot/types-support": "10.0.2-8-x"
"@polkadot/api": "10.1.0",
"@polkadot/api-augment": "10.1.0",
"@polkadot/rpc-augment": "10.1.0",
"@polkadot/rpc-provider": "10.1.0",
"@polkadot/types-support": "10.1.0"
}
}
+17 -17
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "10.0.2-8-x",
"@polkadot/api-base": "10.0.2-8-x",
"@polkadot/api-derive": "10.0.2-8-x",
"@polkadot/keyring": "^11.0.1",
"@polkadot/rpc-augment": "10.0.2-8-x",
"@polkadot/rpc-core": "10.0.2-8-x",
"@polkadot/rpc-provider": "10.0.2-8-x",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-augment": "10.0.2-8-x",
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/types-create": "10.0.2-8-x",
"@polkadot/types-known": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/util-crypto": "^11.0.1",
"@polkadot/api-augment": "10.1.0",
"@polkadot/api-base": "10.1.0",
"@polkadot/api-derive": "10.1.0",
"@polkadot/keyring": "^11.0.2",
"@polkadot/rpc-augment": "10.1.0",
"@polkadot/rpc-core": "10.1.0",
"@polkadot/rpc-provider": "10.1.0",
"@polkadot/types": "10.1.0",
"@polkadot/types-augment": "10.1.0",
"@polkadot/types-codec": "10.1.0",
"@polkadot/types-create": "10.1.0",
"@polkadot/types-known": "10.1.0",
"@polkadot/util": "^11.0.2",
"@polkadot/util-crypto": "^11.0.2",
"eventemitter3": "^5.0.0",
"rxjs": "^7.8.0",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/api-augment": "10.0.2-8-x",
"@polkadot/types-support": "10.0.2-8-x"
"@polkadot/api-augment": "10.1.0",
"@polkadot/types-support": "10.1.0"
}
}
+5 -5
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "10.0.2-8-x",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/rpc-core": "10.1.0",
"@polkadot/types": "10.1.0",
"@polkadot/types-codec": "10.1.0",
"@polkadot/util": "^11.0.2",
"tslib": "^2.5.0"
}
}
+7 -7
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "10.0.2-8-x",
"@polkadot/rpc-provider": "10.0.2-8-x",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/rpc-augment": "10.1.0",
"@polkadot/rpc-provider": "10.1.0",
"@polkadot/types": "10.1.0",
"@polkadot/util": "^11.0.2",
"rxjs": "^7.8.0",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/keyring": "^11.0.1",
"@polkadot/rpc-augment": "10.0.2-8-x"
"@polkadot/keyring": "^11.0.2",
"@polkadot/rpc-augment": "10.1.0"
}
}
+9 -9
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^11.0.1",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-support": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/util-crypto": "^11.0.1",
"@polkadot/x-fetch": "^11.0.1",
"@polkadot/x-global": "^11.0.1",
"@polkadot/x-ws": "^11.0.1",
"@polkadot/keyring": "^11.0.2",
"@polkadot/types": "10.1.0",
"@polkadot/types-support": "10.1.0",
"@polkadot/util": "^11.0.2",
"@polkadot/util-crypto": "^11.0.2",
"@polkadot/x-fetch": "^11.0.2",
"@polkadot/x-global": "^11.0.2",
"@polkadot/x-ws": "^11.0.2",
"eventemitter3": "^5.0.0",
"mock-socket": "^9.2.1",
"nock": "^13.3.0",
+2
View File
@@ -47,6 +47,7 @@ const TIMEOUT_INTERVAL = 5_000;
const l = logger('api-ws');
/** @internal Clears a Record<*> of all keys, optionally with all callback on clear */
function eraseRecord<T> (record: Record<string, T>, cb?: (item: T) => void): void {
Object.keys(record).forEach((key): void => {
if (cb) {
@@ -57,6 +58,7 @@ function eraseRecord<T> (record: Record<string, T>, cb?: (item: T) => void): voi
});
}
/** @internal Creates a default/empty stats object */
function defaultEndpointStats (): EndpointStats {
return { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 };
}
+13 -13
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -30,18 +30,18 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
},
"dependencies": {
"@polkadot/api": "10.0.2-8-x",
"@polkadot/api-augment": "10.0.2-8-x",
"@polkadot/rpc-augment": "10.0.2-8-x",
"@polkadot/rpc-provider": "10.0.2-8-x",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-augment": "10.0.2-8-x",
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/types-create": "10.0.2-8-x",
"@polkadot/types-support": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/util-crypto": "^11.0.1",
"@polkadot/x-ws": "^11.0.1",
"@polkadot/api": "10.1.0",
"@polkadot/api-augment": "10.1.0",
"@polkadot/rpc-augment": "10.1.0",
"@polkadot/rpc-provider": "10.1.0",
"@polkadot/types": "10.1.0",
"@polkadot/types-augment": "10.1.0",
"@polkadot/types-codec": "10.1.0",
"@polkadot/types-create": "10.1.0",
"@polkadot/types-support": "10.1.0",
"@polkadot/util": "^11.0.2",
"@polkadot/util-crypto": "^11.0.2",
"@polkadot/x-ws": "^11.0.2",
"handlebars": "^4.7.7",
"tslib": "^2.5.0",
"yargs": "^17.7.1"
+4 -4
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/types": "10.1.0",
"@polkadot/types-codec": "10.1.0",
"@polkadot/util": "^11.0.2",
"tslib": "^2.5.0"
}
}
+2 -2
View File
@@ -8,7 +8,7 @@ export default {
* Lookup107: kusama_runtime::SessionKeys
**/
KusamaRuntimeSessionKeys: {
grandpa: 'SpFinalityGrandpaAppPublic',
grandpa: 'SpConsensusGrandpaAppPublic',
babe: 'SpConsensusBabeAppPublic',
imOnline: 'PalletImOnlineSr25519AppSr25519Public',
paraValidator: 'PolkadotPrimitivesV2ValidatorAppPublic',
@@ -164,7 +164,7 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
},
/**
* Lookup880: kusama_runtime::Runtime
* Lookup882: kusama_runtime::Runtime
**/
KusamaRuntimeRuntime: 'Null'
};
+35 -20
View File
@@ -907,7 +907,7 @@ export default {
* Lookup230: polkadot_runtime::SessionKeys
**/
PolkadotRuntimeSessionKeys: {
grandpa: 'SpFinalityGrandpaAppPublic',
grandpa: 'SpConsensusGrandpaAppPublic',
babe: 'SpConsensusBabeAppPublic',
imOnline: 'PalletImOnlineSr25519AppSr25519Public',
paraValidator: 'PolkadotPrimitivesV2ValidatorAppPublic',
@@ -2323,14 +2323,29 @@ export default {
**/
PolkadotPrimitivesVstagingExecutorParamsExecutorParam: {
_enum: {
__Unused0: 'Null',
MaxMemoryPages: 'u32',
StackLogicalMax: 'u32',
StackNativeMax: 'u32',
PrecheckingMaxMemory: 'u64'
PrecheckingMaxMemory: 'u64',
PvfPrepTimeout: '(PolkadotPrimitivesV2PvfPrepTimeoutKind,u64)',
PvfExecTimeout: '(PolkadotPrimitivesV2PvfExecTimeoutKind,u64)'
}
},
/**
* Lookup716: polkadot_primitives::v2::DisputeState<N>
* Lookup715: polkadot_primitives::v2::PvfPrepTimeoutKind
**/
PolkadotPrimitivesV2PvfPrepTimeoutKind: {
_enum: ['Precheck', 'Lenient']
},
/**
* Lookup716: polkadot_primitives::v2::PvfExecTimeoutKind
**/
PolkadotPrimitivesV2PvfExecTimeoutKind: {
_enum: ['Backing', 'Approval']
},
/**
* Lookup718: polkadot_primitives::v2::DisputeState<N>
**/
PolkadotPrimitivesV2DisputeState: {
validatorsFor: 'BitVec',
@@ -2339,13 +2354,13 @@ export default {
concludedAt: 'Option<u32>'
},
/**
* Lookup718: polkadot_runtime_parachains::disputes::pallet::Error<T>
* Lookup720: polkadot_runtime_parachains::disputes::pallet::Error<T>
**/
PolkadotRuntimeParachainsDisputesPalletError: {
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'SingleSidedDispute', 'MaliciousBacker', 'MissingBackingVotes', 'UnconfirmedDispute']
},
/**
* Lookup719: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
* Lookup721: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
**/
PolkadotRuntimeCommonParasRegistrarParaInfo: {
manager: 'AccountId32',
@@ -2353,25 +2368,25 @@ export default {
locked: 'bool'
},
/**
* Lookup720: polkadot_runtime_common::paras_registrar::pallet::Error<T>
* Lookup722: polkadot_runtime_common::paras_registrar::pallet::Error<T>
**/
PolkadotRuntimeCommonParasRegistrarPalletError: {
_enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode', 'CannotSwap']
},
/**
* Lookup722: polkadot_runtime_common::slots::pallet::Error<T>
* Lookup724: polkadot_runtime_common::slots::pallet::Error<T>
**/
PolkadotRuntimeCommonSlotsPalletError: {
_enum: ['ParaNotOnboarding', 'LeaseError']
},
/**
* Lookup727: polkadot_runtime_common::auctions::pallet::Error<T>
* Lookup729: polkadot_runtime_common::auctions::pallet::Error<T>
**/
PolkadotRuntimeCommonAuctionsPalletError: {
_enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut']
},
/**
* Lookup728: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
* Lookup730: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
**/
PolkadotRuntimeCommonCrowdloanFundInfo: {
depositor: 'AccountId32',
@@ -2386,7 +2401,7 @@ export default {
fundIndex: 'u32'
},
/**
* Lookup729: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
* Lookup731: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
**/
PolkadotRuntimeCommonCrowdloanLastContribution: {
_enum: {
@@ -2396,13 +2411,13 @@ export default {
}
},
/**
* Lookup730: polkadot_runtime_common::crowdloan::pallet::Error<T>
* Lookup732: polkadot_runtime_common::crowdloan::pallet::Error<T>
**/
PolkadotRuntimeCommonCrowdloanPalletError: {
_enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod']
},
/**
* Lookup731: pallet_xcm::pallet::QueryStatus<BlockNumber>
* Lookup733: pallet_xcm::pallet::QueryStatus<BlockNumber>
**/
PalletXcmQueryStatus: {
_enum: {
@@ -2423,7 +2438,7 @@ export default {
}
},
/**
* Lookup735: xcm::VersionedResponse
* Lookup737: xcm::VersionedResponse
**/
XcmVersionedResponse: {
_enum: {
@@ -2432,7 +2447,7 @@ export default {
}
},
/**
* Lookup741: pallet_xcm::pallet::VersionMigrationStage
* Lookup743: pallet_xcm::pallet::VersionMigrationStage
**/
PalletXcmVersionMigrationStage: {
_enum: {
@@ -2443,7 +2458,7 @@ export default {
}
},
/**
* Lookup744: xcm::VersionedAssetId
* Lookup746: xcm::VersionedAssetId
**/
XcmVersionedAssetId: {
_enum: {
@@ -2451,7 +2466,7 @@ export default {
}
},
/**
* Lookup745: pallet_xcm::pallet::RemoteLockedFungibleRecord
* Lookup747: pallet_xcm::pallet::RemoteLockedFungibleRecord
**/
PalletXcmRemoteLockedFungibleRecord: {
amount: 'u128',
@@ -2460,21 +2475,21 @@ export default {
users: 'u32'
},
/**
* Lookup749: pallet_xcm::pallet::Error<T>
* Lookup751: pallet_xcm::pallet::Error<T>
**/
PalletXcmError: {
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'InvalidAsset', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse']
},
/**
* Lookup760: pallet_transaction_payment::ChargeTransactionPayment<T>
* Lookup762: pallet_transaction_payment::ChargeTransactionPayment<T>
**/
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
* Lookup761: polkadot_runtime_common::claims::PrevalidateAttests<T>
* Lookup763: polkadot_runtime_common::claims::PrevalidateAttests<T>
**/
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
/**
* Lookup762: polkadot_runtime::Runtime
* Lookup764: polkadot_runtime::Runtime
**/
PolkadotRuntimeRuntime: 'Null'
};
File diff suppressed because it is too large Load Diff
@@ -12,7 +12,7 @@ import type { PerU16 } from '@polkadot/types/interfaces/runtime';
declare module '@polkadot/types/lookup' {
/** @name KusamaRuntimeSessionKeys (107) */
interface KusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic;
readonly grandpa: SpConsensusGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
readonly imOnline: PalletImOnlineSr25519AppSr25519Public;
readonly paraValidator: PolkadotPrimitivesV2ValidatorAppPublic;
@@ -111,7 +111,7 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
}
/** @name KusamaRuntimeRuntime (880) */
/** @name KusamaRuntimeRuntime (882) */
type KusamaRuntimeRuntime = Null;
} // declare module
@@ -1040,7 +1040,7 @@ declare module '@polkadot/types/lookup' {
/** @name PolkadotRuntimeSessionKeys (230) */
interface PolkadotRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic;
readonly grandpa: SpConsensusGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
readonly imOnline: PalletImOnlineSr25519AppSr25519Public;
readonly paraValidator: PolkadotPrimitivesV2ValidatorAppPublic;
@@ -2361,10 +2361,28 @@ declare module '@polkadot/types/lookup' {
readonly asStackNativeMax: u32;
readonly isPrecheckingMaxMemory: boolean;
readonly asPrecheckingMaxMemory: u64;
readonly type: 'MaxMemoryPages' | 'StackLogicalMax' | 'StackNativeMax' | 'PrecheckingMaxMemory';
readonly isPvfPrepTimeout: boolean;
readonly asPvfPrepTimeout: ITuple<[PolkadotPrimitivesV2PvfPrepTimeoutKind, u64]>;
readonly isPvfExecTimeout: boolean;
readonly asPvfExecTimeout: ITuple<[PolkadotPrimitivesV2PvfExecTimeoutKind, u64]>;
readonly type: 'MaxMemoryPages' | 'StackLogicalMax' | 'StackNativeMax' | 'PrecheckingMaxMemory' | 'PvfPrepTimeout' | 'PvfExecTimeout';
}
/** @name PolkadotPrimitivesV2DisputeState (716) */
/** @name PolkadotPrimitivesV2PvfPrepTimeoutKind (715) */
interface PolkadotPrimitivesV2PvfPrepTimeoutKind extends Enum {
readonly isPrecheck: boolean;
readonly isLenient: boolean;
readonly type: 'Precheck' | 'Lenient';
}
/** @name PolkadotPrimitivesV2PvfExecTimeoutKind (716) */
interface PolkadotPrimitivesV2PvfExecTimeoutKind extends Enum {
readonly isBacking: boolean;
readonly isApproval: boolean;
readonly type: 'Backing' | 'Approval';
}
/** @name PolkadotPrimitivesV2DisputeState (718) */
interface PolkadotPrimitivesV2DisputeState extends Struct {
readonly validatorsFor: BitVec;
readonly validatorsAgainst: BitVec;
@@ -2372,7 +2390,7 @@ declare module '@polkadot/types/lookup' {
readonly concludedAt: Option<u32>;
}
/** @name PolkadotRuntimeParachainsDisputesPalletError (718) */
/** @name PolkadotRuntimeParachainsDisputesPalletError (720) */
interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
readonly isDuplicateDisputeStatementSets: boolean;
readonly isAncientDisputeStatement: boolean;
@@ -2386,14 +2404,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'SingleSidedDispute' | 'MaliciousBacker' | 'MissingBackingVotes' | 'UnconfirmedDispute';
}
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (719) */
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (721) */
interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
readonly manager: AccountId32;
readonly deposit: u128;
readonly locked: bool;
}
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (720) */
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (722) */
interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
readonly isNotRegistered: boolean;
readonly isAlreadyRegistered: boolean;
@@ -2412,14 +2430,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode' | 'CannotSwap';
}
/** @name PolkadotRuntimeCommonSlotsPalletError (722) */
/** @name PolkadotRuntimeCommonSlotsPalletError (724) */
interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
readonly isParaNotOnboarding: boolean;
readonly isLeaseError: boolean;
readonly type: 'ParaNotOnboarding' | 'LeaseError';
}
/** @name PolkadotRuntimeCommonAuctionsPalletError (727) */
/** @name PolkadotRuntimeCommonAuctionsPalletError (729) */
interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
readonly isAuctionInProgress: boolean;
readonly isLeasePeriodInPast: boolean;
@@ -2431,7 +2449,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
}
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (728) */
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (730) */
interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
readonly depositor: AccountId32;
readonly verifier: Option<SpRuntimeMultiSigner>;
@@ -2445,7 +2463,7 @@ declare module '@polkadot/types/lookup' {
readonly fundIndex: u32;
}
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (729) */
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (731) */
interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
readonly isNever: boolean;
readonly isPreEnding: boolean;
@@ -2455,7 +2473,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Never' | 'PreEnding' | 'Ending';
}
/** @name PolkadotRuntimeCommonCrowdloanPalletError (730) */
/** @name PolkadotRuntimeCommonCrowdloanPalletError (732) */
interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
readonly isFirstPeriodInPast: boolean;
readonly isFirstPeriodTooFarInFuture: boolean;
@@ -2483,7 +2501,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
}
/** @name PalletXcmQueryStatus (731) */
/** @name PalletXcmQueryStatus (733) */
interface PalletXcmQueryStatus extends Enum {
readonly isPending: boolean;
readonly asPending: {
@@ -2505,7 +2523,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
}
/** @name XcmVersionedResponse (735) */
/** @name XcmVersionedResponse (737) */
interface XcmVersionedResponse extends Enum {
readonly isV2: boolean;
readonly asV2: XcmV2Response;
@@ -2514,7 +2532,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'V2' | 'V3';
}
/** @name PalletXcmVersionMigrationStage (741) */
/** @name PalletXcmVersionMigrationStage (743) */
interface PalletXcmVersionMigrationStage extends Enum {
readonly isMigrateSupportedVersion: boolean;
readonly isMigrateVersionNotifiers: boolean;
@@ -2524,14 +2542,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
}
/** @name XcmVersionedAssetId (744) */
/** @name XcmVersionedAssetId (746) */
interface XcmVersionedAssetId extends Enum {
readonly isV3: boolean;
readonly asV3: XcmV3MultiassetAssetId;
readonly type: 'V3';
}
/** @name PalletXcmRemoteLockedFungibleRecord (745) */
/** @name PalletXcmRemoteLockedFungibleRecord (747) */
interface PalletXcmRemoteLockedFungibleRecord extends Struct {
readonly amount: u128;
readonly owner: XcmVersionedMultiLocation;
@@ -2539,7 +2557,7 @@ declare module '@polkadot/types/lookup' {
readonly users: u32;
}
/** @name PalletXcmError (749) */
/** @name PalletXcmError (751) */
interface PalletXcmError extends Enum {
readonly isUnreachable: boolean;
readonly isSendFailure: boolean;
@@ -2564,13 +2582,13 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'InvalidAsset' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse';
}
/** @name PalletTransactionPaymentChargeTransactionPayment (760) */
/** @name PalletTransactionPaymentChargeTransactionPayment (762) */
interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (761) */
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (763) */
type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
/** @name PolkadotRuntimeRuntime (762) */
/** @name PolkadotRuntimeRuntime (764) */
type PolkadotRuntimeRuntime = Null;
} // declare module
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+7 -7
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^11.0.1",
"@polkadot/x-bigint": "^11.0.1",
"@polkadot/util": "^11.0.2",
"@polkadot/x-bigint": "^11.0.2",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-augment": "10.0.2-8-x",
"@polkadot/types-support": "10.0.2-8-x",
"@polkadot/util-crypto": "^11.0.1"
"@polkadot/types": "10.1.0",
"@polkadot/types-augment": "10.1.0",
"@polkadot/types-support": "10.1.0",
"@polkadot/util-crypto": "^11.0.2"
}
}
+4 -4
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/types-codec": "10.1.0",
"@polkadot/util": "^11.0.2",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/types": "10.0.2-8-x"
"@polkadot/types": "10.1.0"
}
}
+7 -7
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^11.0.1",
"@polkadot/types": "10.0.2-8-x",
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/types-create": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/networks": "^11.0.2",
"@polkadot/types": "10.1.0",
"@polkadot/types-codec": "10.1.0",
"@polkadot/types-create": "10.1.0",
"@polkadot/util": "^11.0.2",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/api": "10.0.2-8-x"
"@polkadot/api": "10.1.0"
}
}
+2 -2
View File
@@ -20,10 +20,10 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^11.0.1",
"@polkadot/util": "^11.0.2",
"tslib": "^2.5.0"
}
}
File diff suppressed because one or more lines are too long
@@ -236,7 +236,7 @@
{
"name": "BlockWeights",
"type": 510,
"value": "0x0700b2da2502000b00204aa9d10113ffffffffffffffff0225d21700010bc046eb90580113a3703d0ad7a370bd010b0098f73e5d0113ffffffffffffffbf0100000225d21700010bc0ce3dfbcc0113a3703d0ad7a370fd010b00204aa9d10113ffffffffffffffff01070088526a741300000000000000400225d21700000000",
"value": "0x07c0b8212702000b00204aa9d10113ffffffffffffffff2236eb1800010b7802a590580113a3703d0ad7a370bd010b0098f73e5d0113ffffffffffffffbf0100002236eb1800010b788af7facc0113a3703d0ad7a370fd010b00204aa9d10113ffffffffffffffff01070088526a741300000000000000402236eb1800000000",
"docs": [
" Block & extrinsics weights: base values and limits."
]
@@ -268,7 +268,7 @@
{
"name": "Version",
"type": 516,
"value": "0x186b7573616d61347061726974792d6b7573616d61020000009a2400000000000044df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a803000000f3ff14d5ab5270590300000017a6bc0d0062aeb30100000018ef58a3b67ba770010000001300000000",
"value": "0x186b7573616d61347061726974792d6b7573616d61020000009a2400000000000044df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00200000091d5df18b0d2cf5802000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a803000000f3ff14d5ab5270590300000017a6bc0d0062aeb30100000018ef58a3b67ba770010000001300000000",
"docs": [
" Get the chain's current version."
]
@@ -5132,7 +5132,7 @@
{
"name": "SignedMaxWeight",
"type": 8,
"value": "0x0bc094106b560113a3703d0ad7a370bd",
"value": "0x0bb8498369560113a3703d0ad7a370bd",
"docs": [
" Maximum weight of a signed solution.",
"",
@@ -5219,7 +5219,7 @@
{
"name": "MinerMaxWeight",
"type": 8,
"value": "0x0bc094106b560113a3703d0ad7a370bd",
"value": "0x0bb8498369560113a3703d0ad7a370bd",
"docs": []
},
{
@@ -7389,8 +7389,8 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 834,
"value": 835
"key": 836,
"value": 837
}
},
"fallback": "0x00",
@@ -7407,8 +7407,8 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 834,
"value": 836
"key": 836,
"value": 838
}
},
"fallback": "0x00",
@@ -7426,7 +7426,7 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 834,
"key": 836,
"value": 4
}
},
@@ -7460,7 +7460,7 @@
},
"constants": [],
"errors": {
"type": 837
"type": 839
},
"index": 62
},
@@ -7495,7 +7495,7 @@
"Twox64Concat"
],
"key": 156,
"value": 838
"value": 840
}
},
"fallback": "0x00",
@@ -7545,7 +7545,7 @@
}
],
"errors": {
"type": 839
"type": 841
},
"index": 70
},
@@ -7563,7 +7563,7 @@
"Twox64Concat"
],
"key": 156,
"value": 840
"value": 842
}
},
"fallback": "0x00",
@@ -7613,7 +7613,7 @@
}
],
"errors": {
"type": 841
"type": 843
},
"index": 71
},
@@ -7656,7 +7656,7 @@
"hashers": [
"Twox64Concat"
],
"key": 842,
"key": 844,
"value": 6
}
},
@@ -7675,7 +7675,7 @@
"Twox64Concat"
],
"key": 4,
"value": 843
"value": 845
}
},
"fallback": "0x00",
@@ -7726,7 +7726,7 @@
}
],
"errors": {
"type": 846
"type": 848
},
"index": 72
},
@@ -7744,7 +7744,7 @@
"Twox64Concat"
],
"key": 156,
"value": 847
"value": 849
}
},
"fallback": "0x00",
@@ -7822,7 +7822,7 @@
}
],
"errors": {
"type": 849
"type": 851
},
"index": 73
},
@@ -7851,7 +7851,7 @@
"Blake2_128Concat"
],
"key": 10,
"value": 850
"value": 852
}
},
"fallback": "0x00",
@@ -7900,7 +7900,7 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 855,
"key": 857,
"value": 4
}
},
@@ -7918,7 +7918,7 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 855,
"key": 857,
"value": 10
}
},
@@ -7936,8 +7936,8 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 855,
"value": 856
"key": 857,
"value": 858
}
},
"fallback": "0x00",
@@ -7950,7 +7950,7 @@
"name": "VersionDiscoveryQueue",
"modifier": "Default",
"type": {
"plain": 857
"plain": 859
},
"fallback": "0x00",
"docs": [
@@ -7963,7 +7963,7 @@
"name": "CurrentMigration",
"modifier": "Optional",
"type": {
"plain": 860
"plain": 862
},
"fallback": "0x00",
"docs": [
@@ -7980,8 +7980,8 @@
"Blake2_128Concat",
"Blake2_128Concat"
],
"key": 862,
"value": 864
"key": 864,
"value": 866
}
},
"fallback": "0x00",
@@ -7998,7 +7998,7 @@
"Blake2_128Concat"
],
"key": 0,
"value": 865
"value": 867
}
},
"fallback": "0x00",
@@ -8016,58 +8016,58 @@
},
"constants": [],
"errors": {
"type": 868
"type": 870
},
"index": 99
}
],
"extrinsic": {
"type": 869,
"type": 871,
"version": 4,
"signedExtensions": [
{
"identifier": "CheckNonZeroSender",
"type": 871,
"type": 873,
"additionalSigned": 63
},
{
"identifier": "CheckSpecVersion",
"type": 872,
"type": 874,
"additionalSigned": 4
},
{
"identifier": "CheckTxVersion",
"type": 873,
"type": 875,
"additionalSigned": 4
},
{
"identifier": "CheckGenesis",
"type": 874,
"type": 876,
"additionalSigned": 11
},
{
"identifier": "CheckMortality",
"type": 875,
"type": 877,
"additionalSigned": 11
},
{
"identifier": "CheckNonce",
"type": 877,
"type": 879,
"additionalSigned": 63
},
{
"identifier": "CheckWeight",
"type": 878,
"type": 880,
"additionalSigned": 63
},
{
"identifier": "ChargeTransactionPayment",
"type": 879,
"type": 881,
"additionalSigned": 63
}
]
},
"type": 880
"type": 882
}
}
}
@@ -2699,7 +2699,7 @@
"id": 45,
"type": {
"path": [
"sp_finality_grandpa",
"sp_consensus_grandpa",
"app",
"Public"
],
@@ -8246,7 +8246,7 @@
"id": 112,
"type": {
"path": [
"sp_finality_grandpa",
"sp_consensus_grandpa",
"EquivocationProof"
],
"params": [
@@ -8284,7 +8284,7 @@
"id": 113,
"type": {
"path": [
"sp_finality_grandpa",
"sp_consensus_grandpa",
"Equivocation"
],
"params": [
@@ -8428,7 +8428,7 @@
"id": 116,
"type": {
"path": [
"sp_finality_grandpa",
"sp_consensus_grandpa",
"app",
"Signature"
],
@@ -52144,7 +52144,7 @@
"docs": []
}
],
"index": 0,
"index": 1,
"docs": []
},
{
@@ -52157,7 +52157,7 @@
"docs": []
}
],
"index": 1,
"index": 2,
"docs": []
},
{
@@ -52170,7 +52170,7 @@
"docs": []
}
],
"index": 2,
"index": 3,
"docs": []
},
{
@@ -52183,7 +52183,45 @@
"docs": []
}
],
"index": 3,
"index": 4,
"docs": []
},
{
"name": "PvfPrepTimeout",
"fields": [
{
"name": null,
"type": 834,
"typeName": "PvfPrepTimeoutKind",
"docs": []
},
{
"name": null,
"type": 10,
"typeName": "u64",
"docs": []
}
],
"index": 5,
"docs": []
},
{
"name": "PvfExecTimeout",
"fields": [
{
"name": null,
"type": 835,
"typeName": "PvfExecTimeoutKind",
"docs": []
},
{
"name": null,
"type": 10,
"typeName": "u64",
"docs": []
}
],
"index": 6,
"docs": []
}
]
@@ -52194,6 +52232,66 @@
},
{
"id": 834,
"type": {
"path": [
"polkadot_primitives",
"v2",
"PvfPrepTimeoutKind"
],
"params": [],
"def": {
"variant": {
"variants": [
{
"name": "Precheck",
"fields": [],
"index": 0,
"docs": []
},
{
"name": "Lenient",
"fields": [],
"index": 1,
"docs": []
}
]
}
},
"docs": []
}
},
{
"id": 835,
"type": {
"path": [
"polkadot_primitives",
"v2",
"PvfExecTimeoutKind"
],
"params": [],
"def": {
"variant": {
"variants": [
{
"name": "Backing",
"fields": [],
"index": 0,
"docs": []
},
{
"name": "Approval",
"fields": [],
"index": 1,
"docs": []
}
]
}
},
"docs": []
}
},
{
"id": 836,
"type": {
"path": [],
"params": [],
@@ -52207,7 +52305,7 @@
}
},
{
"id": 835,
"id": 837,
"type": {
"path": [
"polkadot_primitives",
@@ -52254,7 +52352,7 @@
}
},
{
"id": 836,
"id": 838,
"type": {
"path": [
"BTreeSet"
@@ -52281,7 +52379,7 @@
}
},
{
"id": 837,
"id": 839,
"type": {
"path": [
"polkadot_runtime_parachains",
@@ -52379,7 +52477,7 @@
}
},
{
"id": 838,
"id": 840,
"type": {
"path": [
"polkadot_runtime_common",
@@ -52424,7 +52522,7 @@
}
},
{
"id": 839,
"id": 841,
"type": {
"path": [
"polkadot_runtime_common",
@@ -52563,7 +52661,7 @@
}
},
{
"id": 840,
"id": 842,
"type": {
"path": [],
"params": [],
@@ -52576,7 +52674,7 @@
}
},
{
"id": 841,
"id": 843,
"type": {
"path": [
"polkadot_runtime_common",
@@ -52618,7 +52716,7 @@
}
},
{
"id": 842,
"id": 844,
"type": {
"path": [],
"params": [],
@@ -52632,21 +52730,21 @@
}
},
{
"id": 843,
"id": 845,
"type": {
"path": [],
"params": [],
"def": {
"array": {
"len": 36,
"type": 844
"type": 846
}
},
"docs": []
}
},
{
"id": 844,
"id": 846,
"type": {
"path": [
"Option"
@@ -52654,7 +52752,7 @@
"params": [
{
"name": "T",
"type": 845
"type": 847
}
],
"def": {
@@ -52671,7 +52769,7 @@
"fields": [
{
"name": null,
"type": 845,
"type": 847,
"typeName": null,
"docs": []
}
@@ -52686,7 +52784,7 @@
}
},
{
"id": 845,
"id": 847,
"type": {
"path": [],
"params": [],
@@ -52701,7 +52799,7 @@
}
},
{
"id": 846,
"id": 848,
"type": {
"path": [
"polkadot_runtime_common",
@@ -52783,7 +52881,7 @@
}
},
{
"id": 847,
"id": 849,
"type": {
"path": [
"polkadot_runtime_common",
@@ -52849,7 +52947,7 @@
},
{
"name": "last_contribution",
"type": 848,
"type": 850,
"typeName": "LastContribution<BlockNumber>",
"docs": []
},
@@ -52878,7 +52976,7 @@
}
},
{
"id": 848,
"id": 850,
"type": {
"path": [
"polkadot_runtime_common",
@@ -52933,7 +53031,7 @@
}
},
{
"id": 849,
"id": 851,
"type": {
"path": [
"polkadot_runtime_common",
@@ -53143,7 +53241,7 @@
}
},
{
"id": 850,
"id": 852,
"type": {
"path": [
"pallet_xcm",
@@ -53170,13 +53268,13 @@
},
{
"name": "maybe_match_querier",
"type": 851,
"type": 853,
"typeName": "Option<VersionedMultiLocation>",
"docs": []
},
{
"name": "maybe_notify",
"type": 852,
"type": 854,
"typeName": "Option<(u8, u8)>",
"docs": []
},
@@ -53214,7 +53312,7 @@
"fields": [
{
"name": "response",
"type": 854,
"type": 856,
"typeName": "VersionedResponse",
"docs": []
},
@@ -53235,7 +53333,7 @@
}
},
{
"id": 851,
"id": 853,
"type": {
"path": [
"Option"
@@ -53275,7 +53373,7 @@
}
},
{
"id": 852,
"id": 854,
"type": {
"path": [
"Option"
@@ -53283,7 +53381,7 @@
"params": [
{
"name": "T",
"type": 853
"type": 855
}
],
"def": {
@@ -53300,7 +53398,7 @@
"fields": [
{
"name": null,
"type": 853,
"type": 855,
"typeName": null,
"docs": []
}
@@ -53315,7 +53413,7 @@
}
},
{
"id": 853,
"id": 855,
"type": {
"path": [],
"params": [],
@@ -53329,7 +53427,7 @@
}
},
{
"id": 854,
"id": 856,
"type": {
"path": [
"xcm",
@@ -53372,7 +53470,7 @@
}
},
{
"id": 855,
"id": 857,
"type": {
"path": [],
"params": [],
@@ -53386,7 +53484,7 @@
}
},
{
"id": 856,
"id": 858,
"type": {
"path": [],
"params": [],
@@ -53401,7 +53499,7 @@
}
},
{
"id": 857,
"id": 859,
"type": {
"path": [
"bounded_collections",
@@ -53411,7 +53509,7 @@
"params": [
{
"name": "T",
"type": 858
"type": 860
},
{
"name": "S",
@@ -53423,7 +53521,7 @@
"fields": [
{
"name": null,
"type": 859,
"type": 861,
"typeName": "Vec<T>",
"docs": []
}
@@ -53434,7 +53532,7 @@
}
},
{
"id": 858,
"id": 860,
"type": {
"path": [],
"params": [],
@@ -53448,20 +53546,20 @@
}
},
{
"id": 859,
"id": 861,
"type": {
"path": [],
"params": [],
"def": {
"sequence": {
"type": 858
"type": 860
}
},
"docs": []
}
},
{
"id": 860,
"id": 862,
"type": {
"path": [
"pallet_xcm",
@@ -53489,7 +53587,7 @@
"fields": [
{
"name": null,
"type": 861,
"type": 863,
"typeName": "Option<Vec<u8>>",
"docs": []
}
@@ -53510,7 +53608,7 @@
}
},
{
"id": 861,
"id": 863,
"type": {
"path": [
"Option"
@@ -53550,7 +53648,7 @@
}
},
{
"id": 862,
"id": 864,
"type": {
"path": [],
"params": [],
@@ -53558,14 +53656,14 @@
"tuple": [
4,
0,
863
865
]
},
"docs": []
}
},
{
"id": 863,
"id": 865,
"type": {
"path": [
"xcm",
@@ -53595,7 +53693,7 @@
}
},
{
"id": 864,
"id": 866,
"type": {
"path": [
"pallet_xcm",
@@ -53637,7 +53735,7 @@
}
},
{
"id": 865,
"id": 867,
"type": {
"path": [
"bounded_collections",
@@ -53647,7 +53745,7 @@
"params": [
{
"name": "T",
"type": 866
"type": 868
},
{
"name": "S",
@@ -53659,7 +53757,7 @@
"fields": [
{
"name": null,
"type": 867,
"type": 869,
"typeName": "Vec<T>",
"docs": []
}
@@ -53670,7 +53768,7 @@
}
},
{
"id": 866,
"id": 868,
"type": {
"path": [],
"params": [],
@@ -53684,20 +53782,20 @@
}
},
{
"id": 867,
"id": 869,
"type": {
"path": [],
"params": [],
"def": {
"sequence": {
"type": 866
"type": 868
}
},
"docs": []
}
},
{
"id": 868,
"id": 870,
"type": {
"path": [
"pallet_xcm",
@@ -53885,7 +53983,7 @@
}
},
{
"id": 869,
"id": 871,
"type": {
"path": [
"sp_runtime",
@@ -53908,7 +54006,7 @@
},
{
"name": "Extra",
"type": 870
"type": 872
}
],
"def": {
@@ -53927,27 +54025,27 @@
}
},
{
"id": 870,
"id": 872,
"type": {
"path": [],
"params": [],
"def": {
"tuple": [
871,
872,
873,
874,
875,
876,
877,
878,
879
879,
880,
881
]
},
"docs": []
}
},
{
"id": 871,
"id": 873,
"type": {
"path": [
"frame_system",
@@ -53970,7 +54068,7 @@
}
},
{
"id": 872,
"id": 874,
"type": {
"path": [
"frame_system",
@@ -53993,7 +54091,7 @@
}
},
{
"id": 873,
"id": 875,
"type": {
"path": [
"frame_system",
@@ -54016,7 +54114,7 @@
}
},
{
"id": 874,
"id": 876,
"type": {
"path": [
"frame_system",
@@ -54039,7 +54137,7 @@
}
},
{
"id": 875,
"id": 877,
"type": {
"path": [
"frame_system",
@@ -54058,7 +54156,7 @@
"fields": [
{
"name": null,
"type": 876,
"type": 878,
"typeName": "Era",
"docs": []
}
@@ -54069,7 +54167,7 @@
}
},
{
"id": 876,
"id": 878,
"type": {
"path": [
"sp_runtime",
@@ -57409,7 +57507,7 @@
}
},
{
"id": 877,
"id": 879,
"type": {
"path": [
"frame_system",
@@ -57439,7 +57537,7 @@
}
},
{
"id": 878,
"id": 880,
"type": {
"path": [
"frame_system",
@@ -57462,7 +57560,7 @@
}
},
{
"id": 879,
"id": 881,
"type": {
"path": [
"pallet_transaction_payment",
@@ -57490,7 +57588,7 @@
}
},
{
"id": 880,
"id": 882,
"type": {
"path": [
"kusama_runtime",
@@ -38,11 +38,11 @@ export default {
],
[
"0x49eaaf1b548a0cb0",
1
2
],
[
"0x91d5df18b0d2cf58",
1
2
],
[
"0xed99c5acb25eedf5",
File diff suppressed because one or more lines are too long
@@ -236,7 +236,7 @@
{
"name": "BlockWeights",
"type": 185,
"value": "0x0738ec45e401000b00204aa9d10113ffffffffffffffff62026d1700010b688f0491580113a3703d0ad7a370bd010b0098f73e5d0113ffffffffffffffbf01000062026d1700010b681757fbcc0113a3703d0ad7a370fd010b00204aa9d10113ffffffffffffffff01070088526a7413000000000000004062026d1700000000",
"value": "0x07c0beb2e501000b00204aa9d10113ffffffffffffffff8218941900010be0c97a90580113a3703d0ad7a370bd010b0098f73e5d0113ffffffffffffffbf0100008218941900010be051cdfacc0113a3703d0ad7a370fd010b00204aa9d10113ffffffffffffffff01070088526a741300000000000000408218941900000000",
"docs": [
" Block & extrinsics weights: base values and limits."
]
@@ -268,7 +268,7 @@
{
"name": "Version",
"type": 192,
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f74000000009a2400000000000044df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a0600000017a6bc0d0062aeb30100000018ef58a3b67ba77001000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a803000000f3ff14d5ab527059030000001400000000",
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f74000000009a2400000000000044df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a0600000017a6bc0d0062aeb30100000018ef58a3b67ba77001000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00200000091d5df18b0d2cf5802000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a803000000f3ff14d5ab527059030000001400000000",
"docs": [
" Get the chain's current version."
]
@@ -4153,7 +4153,7 @@
{
"name": "SignedMaxWeight",
"type": 8,
"value": "0x0b30a3beac560113a3703d0ad7a370bd",
"value": "0x0b200bc8aa560113a3703d0ad7a370bd",
"docs": [
" Maximum weight of a signed solution.",
"",
@@ -4240,7 +4240,7 @@
{
"name": "MinerMaxWeight",
"type": 8,
"value": "0x0b30a3beac560113a3703d0ad7a370bd",
"value": "0x0b200bc8aa560113a3703d0ad7a370bd",
"docs": []
},
{
@@ -6083,8 +6083,8 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 715,
"value": 716
"key": 717,
"value": 718
}
},
"fallback": "0x00",
@@ -6101,8 +6101,8 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 715,
"value": 717
"key": 717,
"value": 719
}
},
"fallback": "0x00",
@@ -6120,7 +6120,7 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 715,
"key": 717,
"value": 4
}
},
@@ -6154,7 +6154,7 @@
},
"constants": [],
"errors": {
"type": 718
"type": 720
},
"index": 62
},
@@ -6189,7 +6189,7 @@
"Twox64Concat"
],
"key": 102,
"value": 719
"value": 721
}
},
"fallback": "0x00",
@@ -6239,7 +6239,7 @@
}
],
"errors": {
"type": 720
"type": 722
},
"index": 70
},
@@ -6257,7 +6257,7 @@
"Twox64Concat"
],
"key": 102,
"value": 721
"value": 723
}
},
"fallback": "0x00",
@@ -6307,7 +6307,7 @@
}
],
"errors": {
"type": 722
"type": 724
},
"index": 71
},
@@ -6350,7 +6350,7 @@
"hashers": [
"Twox64Concat"
],
"key": 723,
"key": 725,
"value": 6
}
},
@@ -6369,7 +6369,7 @@
"Twox64Concat"
],
"key": 4,
"value": 724
"value": 726
}
},
"fallback": "0x00",
@@ -6420,7 +6420,7 @@
}
],
"errors": {
"type": 727
"type": 729
},
"index": 72
},
@@ -6438,7 +6438,7 @@
"Twox64Concat"
],
"key": 102,
"value": 728
"value": 730
}
},
"fallback": "0x00",
@@ -6516,7 +6516,7 @@
}
],
"errors": {
"type": 730
"type": 732
},
"index": 73
},
@@ -6545,7 +6545,7 @@
"Blake2_128Concat"
],
"key": 10,
"value": 731
"value": 733
}
},
"fallback": "0x00",
@@ -6594,7 +6594,7 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 736,
"key": 738,
"value": 4
}
},
@@ -6612,7 +6612,7 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 736,
"key": 738,
"value": 10
}
},
@@ -6630,8 +6630,8 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 736,
"value": 737
"key": 738,
"value": 739
}
},
"fallback": "0x00",
@@ -6644,7 +6644,7 @@
"name": "VersionDiscoveryQueue",
"modifier": "Default",
"type": {
"plain": 738
"plain": 740
},
"fallback": "0x00",
"docs": [
@@ -6657,7 +6657,7 @@
"name": "CurrentMigration",
"modifier": "Optional",
"type": {
"plain": 741
"plain": 743
},
"fallback": "0x00",
"docs": [
@@ -6674,8 +6674,8 @@
"Blake2_128Concat",
"Blake2_128Concat"
],
"key": 743,
"value": 745
"key": 745,
"value": 747
}
},
"fallback": "0x00",
@@ -6692,7 +6692,7 @@
"Blake2_128Concat"
],
"key": 0,
"value": 746
"value": 748
}
},
"fallback": "0x00",
@@ -6710,63 +6710,63 @@
},
"constants": [],
"errors": {
"type": 749
"type": 751
},
"index": 99
}
],
"extrinsic": {
"type": 750,
"type": 752,
"version": 4,
"signedExtensions": [
{
"identifier": "CheckNonZeroSender",
"type": 752,
"type": 754,
"additionalSigned": 33
},
{
"identifier": "CheckSpecVersion",
"type": 753,
"type": 755,
"additionalSigned": 4
},
{
"identifier": "CheckTxVersion",
"type": 754,
"type": 756,
"additionalSigned": 4
},
{
"identifier": "CheckGenesis",
"type": 755,
"type": 757,
"additionalSigned": 11
},
{
"identifier": "CheckMortality",
"type": 756,
"type": 758,
"additionalSigned": 11
},
{
"identifier": "CheckNonce",
"type": 758,
"additionalSigned": 33
},
{
"identifier": "CheckWeight",
"type": 759,
"additionalSigned": 33
},
{
"identifier": "ChargeTransactionPayment",
"type": 760,
"additionalSigned": 33
},
{
"identifier": "PrevalidateAttests",
"identifier": "CheckWeight",
"type": 761,
"additionalSigned": 33
},
{
"identifier": "ChargeTransactionPayment",
"type": 762,
"additionalSigned": 33
},
{
"identifier": "PrevalidateAttests",
"type": 763,
"additionalSigned": 33
}
]
},
"type": 762
"type": 764
}
}
}
@@ -2925,7 +2925,7 @@
"id": 51,
"type": {
"path": [
"sp_finality_grandpa",
"sp_consensus_grandpa",
"app",
"Public"
],
@@ -17544,7 +17544,7 @@
"id": 235,
"type": {
"path": [
"sp_finality_grandpa",
"sp_consensus_grandpa",
"EquivocationProof"
],
"params": [
@@ -17582,7 +17582,7 @@
"id": 236,
"type": {
"path": [
"sp_finality_grandpa",
"sp_consensus_grandpa",
"Equivocation"
],
"params": [
@@ -17726,7 +17726,7 @@
"id": 239,
"type": {
"path": [
"sp_finality_grandpa",
"sp_consensus_grandpa",
"app",
"Signature"
],
@@ -43163,7 +43163,7 @@
"docs": []
}
],
"index": 0,
"index": 1,
"docs": []
},
{
@@ -43176,7 +43176,7 @@
"docs": []
}
],
"index": 1,
"index": 2,
"docs": []
},
{
@@ -43189,7 +43189,7 @@
"docs": []
}
],
"index": 2,
"index": 3,
"docs": []
},
{
@@ -43202,7 +43202,45 @@
"docs": []
}
],
"index": 3,
"index": 4,
"docs": []
},
{
"name": "PvfPrepTimeout",
"fields": [
{
"name": null,
"type": 715,
"typeName": "PvfPrepTimeoutKind",
"docs": []
},
{
"name": null,
"type": 10,
"typeName": "u64",
"docs": []
}
],
"index": 5,
"docs": []
},
{
"name": "PvfExecTimeout",
"fields": [
{
"name": null,
"type": 716,
"typeName": "PvfExecTimeoutKind",
"docs": []
},
{
"name": null,
"type": 10,
"typeName": "u64",
"docs": []
}
],
"index": 6,
"docs": []
}
]
@@ -43213,6 +43251,66 @@
},
{
"id": 715,
"type": {
"path": [
"polkadot_primitives",
"v2",
"PvfPrepTimeoutKind"
],
"params": [],
"def": {
"variant": {
"variants": [
{
"name": "Precheck",
"fields": [],
"index": 0,
"docs": []
},
{
"name": "Lenient",
"fields": [],
"index": 1,
"docs": []
}
]
}
},
"docs": []
}
},
{
"id": 716,
"type": {
"path": [
"polkadot_primitives",
"v2",
"PvfExecTimeoutKind"
],
"params": [],
"def": {
"variant": {
"variants": [
{
"name": "Backing",
"fields": [],
"index": 0,
"docs": []
},
{
"name": "Approval",
"fields": [],
"index": 1,
"docs": []
}
]
}
},
"docs": []
}
},
{
"id": 717,
"type": {
"path": [],
"params": [],
@@ -43226,7 +43324,7 @@
}
},
{
"id": 716,
"id": 718,
"type": {
"path": [
"polkadot_primitives",
@@ -43273,7 +43371,7 @@
}
},
{
"id": 717,
"id": 719,
"type": {
"path": [
"BTreeSet"
@@ -43300,7 +43398,7 @@
}
},
{
"id": 718,
"id": 720,
"type": {
"path": [
"polkadot_runtime_parachains",
@@ -43398,7 +43496,7 @@
}
},
{
"id": 719,
"id": 721,
"type": {
"path": [
"polkadot_runtime_common",
@@ -43443,7 +43541,7 @@
}
},
{
"id": 720,
"id": 722,
"type": {
"path": [
"polkadot_runtime_common",
@@ -43582,7 +43680,7 @@
}
},
{
"id": 721,
"id": 723,
"type": {
"path": [],
"params": [],
@@ -43595,7 +43693,7 @@
}
},
{
"id": 722,
"id": 724,
"type": {
"path": [
"polkadot_runtime_common",
@@ -43637,7 +43735,7 @@
}
},
{
"id": 723,
"id": 725,
"type": {
"path": [],
"params": [],
@@ -43651,21 +43749,21 @@
}
},
{
"id": 724,
"id": 726,
"type": {
"path": [],
"params": [],
"def": {
"array": {
"len": 36,
"type": 725
"type": 727
}
},
"docs": []
}
},
{
"id": 725,
"id": 727,
"type": {
"path": [
"Option"
@@ -43673,7 +43771,7 @@
"params": [
{
"name": "T",
"type": 726
"type": 728
}
],
"def": {
@@ -43690,7 +43788,7 @@
"fields": [
{
"name": null,
"type": 726,
"type": 728,
"typeName": null,
"docs": []
}
@@ -43705,7 +43803,7 @@
}
},
{
"id": 726,
"id": 728,
"type": {
"path": [],
"params": [],
@@ -43720,7 +43818,7 @@
}
},
{
"id": 727,
"id": 729,
"type": {
"path": [
"polkadot_runtime_common",
@@ -43802,7 +43900,7 @@
}
},
{
"id": 728,
"id": 730,
"type": {
"path": [
"polkadot_runtime_common",
@@ -43868,7 +43966,7 @@
},
{
"name": "last_contribution",
"type": 729,
"type": 731,
"typeName": "LastContribution<BlockNumber>",
"docs": []
},
@@ -43897,7 +43995,7 @@
}
},
{
"id": 729,
"id": 731,
"type": {
"path": [
"polkadot_runtime_common",
@@ -43952,7 +44050,7 @@
}
},
{
"id": 730,
"id": 732,
"type": {
"path": [
"polkadot_runtime_common",
@@ -44162,7 +44260,7 @@
}
},
{
"id": 731,
"id": 733,
"type": {
"path": [
"pallet_xcm",
@@ -44189,13 +44287,13 @@
},
{
"name": "maybe_match_querier",
"type": 732,
"type": 734,
"typeName": "Option<VersionedMultiLocation>",
"docs": []
},
{
"name": "maybe_notify",
"type": 733,
"type": 735,
"typeName": "Option<(u8, u8)>",
"docs": []
},
@@ -44233,7 +44331,7 @@
"fields": [
{
"name": "response",
"type": 735,
"type": 737,
"typeName": "VersionedResponse",
"docs": []
},
@@ -44254,7 +44352,7 @@
}
},
{
"id": 732,
"id": 734,
"type": {
"path": [
"Option"
@@ -44294,7 +44392,7 @@
}
},
{
"id": 733,
"id": 735,
"type": {
"path": [
"Option"
@@ -44302,7 +44400,7 @@
"params": [
{
"name": "T",
"type": 734
"type": 736
}
],
"def": {
@@ -44319,7 +44417,7 @@
"fields": [
{
"name": null,
"type": 734,
"type": 736,
"typeName": null,
"docs": []
}
@@ -44334,7 +44432,7 @@
}
},
{
"id": 734,
"id": 736,
"type": {
"path": [],
"params": [],
@@ -44348,7 +44446,7 @@
}
},
{
"id": 735,
"id": 737,
"type": {
"path": [
"xcm",
@@ -44391,7 +44489,7 @@
}
},
{
"id": 736,
"id": 738,
"type": {
"path": [],
"params": [],
@@ -44405,7 +44503,7 @@
}
},
{
"id": 737,
"id": 739,
"type": {
"path": [],
"params": [],
@@ -44420,7 +44518,7 @@
}
},
{
"id": 738,
"id": 740,
"type": {
"path": [
"bounded_collections",
@@ -44430,7 +44528,7 @@
"params": [
{
"name": "T",
"type": 739
"type": 741
},
{
"name": "S",
@@ -44442,7 +44540,7 @@
"fields": [
{
"name": null,
"type": 740,
"type": 742,
"typeName": "Vec<T>",
"docs": []
}
@@ -44453,7 +44551,7 @@
}
},
{
"id": 739,
"id": 741,
"type": {
"path": [],
"params": [],
@@ -44467,20 +44565,20 @@
}
},
{
"id": 740,
"id": 742,
"type": {
"path": [],
"params": [],
"def": {
"sequence": {
"type": 739
"type": 741
}
},
"docs": []
}
},
{
"id": 741,
"id": 743,
"type": {
"path": [
"pallet_xcm",
@@ -44508,7 +44606,7 @@
"fields": [
{
"name": null,
"type": 742,
"type": 744,
"typeName": "Option<Vec<u8>>",
"docs": []
}
@@ -44529,7 +44627,7 @@
}
},
{
"id": 742,
"id": 744,
"type": {
"path": [
"Option"
@@ -44569,7 +44667,7 @@
}
},
{
"id": 743,
"id": 745,
"type": {
"path": [],
"params": [],
@@ -44577,14 +44675,14 @@
"tuple": [
4,
0,
744
746
]
},
"docs": []
}
},
{
"id": 744,
"id": 746,
"type": {
"path": [
"xcm",
@@ -44614,7 +44712,7 @@
}
},
{
"id": 745,
"id": 747,
"type": {
"path": [
"pallet_xcm",
@@ -44656,7 +44754,7 @@
}
},
{
"id": 746,
"id": 748,
"type": {
"path": [
"bounded_collections",
@@ -44666,7 +44764,7 @@
"params": [
{
"name": "T",
"type": 747
"type": 749
},
{
"name": "S",
@@ -44678,7 +44776,7 @@
"fields": [
{
"name": null,
"type": 748,
"type": 750,
"typeName": "Vec<T>",
"docs": []
}
@@ -44689,7 +44787,7 @@
}
},
{
"id": 747,
"id": 749,
"type": {
"path": [],
"params": [],
@@ -44703,20 +44801,20 @@
}
},
{
"id": 748,
"id": 750,
"type": {
"path": [],
"params": [],
"def": {
"sequence": {
"type": 747
"type": 749
}
},
"docs": []
}
},
{
"id": 749,
"id": 751,
"type": {
"path": [
"pallet_xcm",
@@ -44904,7 +45002,7 @@
}
},
{
"id": 750,
"id": 752,
"type": {
"path": [
"sp_runtime",
@@ -44927,7 +45025,7 @@
},
{
"name": "Extra",
"type": 751
"type": 753
}
],
"def": {
@@ -44946,28 +45044,28 @@
}
},
{
"id": 751,
"id": 753,
"type": {
"path": [],
"params": [],
"def": {
"tuple": [
752,
753,
754,
755,
756,
757,
758,
759,
760,
761
761,
762,
763
]
},
"docs": []
}
},
{
"id": 752,
"id": 754,
"type": {
"path": [
"frame_system",
@@ -44990,7 +45088,7 @@
}
},
{
"id": 753,
"id": 755,
"type": {
"path": [
"frame_system",
@@ -45013,7 +45111,7 @@
}
},
{
"id": 754,
"id": 756,
"type": {
"path": [
"frame_system",
@@ -45036,7 +45134,7 @@
}
},
{
"id": 755,
"id": 757,
"type": {
"path": [
"frame_system",
@@ -45059,7 +45157,7 @@
}
},
{
"id": 756,
"id": 758,
"type": {
"path": [
"frame_system",
@@ -45078,7 +45176,7 @@
"fields": [
{
"name": null,
"type": 757,
"type": 759,
"typeName": "Era",
"docs": []
}
@@ -45089,7 +45187,7 @@
}
},
{
"id": 757,
"id": 759,
"type": {
"path": [
"sp_runtime",
@@ -48429,7 +48527,7 @@
}
},
{
"id": 758,
"id": 760,
"type": {
"path": [
"frame_system",
@@ -48459,7 +48557,7 @@
}
},
{
"id": 759,
"id": 761,
"type": {
"path": [
"frame_system",
@@ -48482,7 +48580,7 @@
}
},
{
"id": 760,
"id": 762,
"type": {
"path": [
"pallet_transaction_payment",
@@ -48510,7 +48608,7 @@
}
},
{
"id": 761,
"id": 763,
"type": {
"path": [
"polkadot_runtime_common",
@@ -48532,7 +48630,7 @@
}
},
{
"id": 762,
"id": 764,
"type": {
"path": [
"polkadot_runtime",
@@ -46,11 +46,11 @@ export default {
],
[
"0x49eaaf1b548a0cb0",
1
2
],
[
"0x91d5df18b0d2cf58",
1
2
],
[
"0xed99c5acb25eedf5",
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -56,6 +56,10 @@ export default {
"0xbc9d89904f5b923f",
1
],
[
"0x8453b50b22293977",
1
],
[
"0x68b66ba122c93fa7",
2
@@ -74,7 +78,7 @@ export default {
],
[
"0x91d5df18b0d2cf58",
1
2
],
[
"0xab3c0572291feb8b",
+9 -9
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.0.2-8-x",
"version": "10.1.0",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^11.0.1",
"@polkadot/types-augment": "10.0.2-8-x",
"@polkadot/types-codec": "10.0.2-8-x",
"@polkadot/types-create": "10.0.2-8-x",
"@polkadot/util": "^11.0.1",
"@polkadot/util-crypto": "^11.0.1",
"@polkadot/keyring": "^11.0.2",
"@polkadot/types-augment": "10.1.0",
"@polkadot/types-codec": "10.1.0",
"@polkadot/types-create": "10.1.0",
"@polkadot/util": "^11.0.2",
"@polkadot/util-crypto": "^11.0.2",
"rxjs": "^7.8.0",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/keyring": "^11.0.1",
"@polkadot/types-support": "10.0.2-8-x"
"@polkadot/keyring": "^11.0.2",
"@polkadot/types-support": "10.1.0"
}
}
@@ -6,8 +6,11 @@
import type { Definitions } from '../../types/index.js';
import { runtime } from './runtime.js';
export default {
rpc: {},
runtime,
types: {
AssetApprovalKey: {
owner: 'AccountId',
@@ -0,0 +1,24 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionsCall } from '../../types/index.js';
export const runtime: DefinitionsCall = {
AssetsApi: [
{
methods: {
account_balances: {
description: 'Return the current set of authorities.',
params: [
{
name: 'account',
type: 'AccountId'
}
],
type: 'Vec<(u32, TAssetBalance)>'
}
},
version: 1
}
]
};
+61 -53
View File
@@ -1,68 +1,76 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionsCall } from '../../types/index.js';
import type { DefinitionCall, DefinitionsCall } from '../../types/index.js';
const BEEFY_V1_V2: Record<string, DefinitionCall> = {
beefy_genesis: {
description: 'Return the block number where BEEFY consensus is enabled/started',
params: [],
type: 'Option<BlockNumber>'
},
generate_key_ownership_proof: {
description: 'Generates a proof of key ownership for the given authority in the given set.',
params: [
{
name: 'setId',
type: 'ValidatorSetId'
},
{
name: 'authorityId',
type: 'AuthorityId'
}
],
type: 'Option<OpaqueKeyOwnershipProof>'
},
submit_report_equivocation_unsigned_extrinsic: {
description: 'Submits an unsigned extrinsic to report an equivocation.',
params: [
{
name: 'equivocationProof',
type: 'BeefyEquivocationProof'
},
{
name: 'keyOwnerProof',
type: 'OpaqueKeyOwnershipProof'
}
],
type: 'Option<Null>'
},
validator_set: {
description: 'Return the current active BEEFY validator set',
params: [],
type: 'Option<ValidatorSet>'
}
};
const BEEFY_MMR_V1: Record<string, DefinitionCall> = {
authority_set_proof: {
description: 'Return the currently active BEEFY authority set proof.',
params: [],
type: 'BeefyAuthoritySet'
},
next_authority_set_proof: {
description: 'Return the next/queued BEEFY authority set proof.',
params: [],
type: 'BeefyNextAuthoritySet'
}
};
export const runtime: DefinitionsCall = {
BeefyApi: [
{
methods: {
beefy_genesis: {
description: 'Return the block number where BEEFY consensus is enabled/started',
params: [],
type: 'Option<BlockNumber>'
},
generate_key_ownership_proof: {
description: 'Generates a proof of key ownership for the given authority in the given set.',
params: [
{
name: 'setId',
type: 'ValidatorSetId'
},
{
name: 'authorityId',
type: 'AuthorityId'
}
],
type: 'Option<OpaqueKeyOwnershipProof>'
},
submit_report_equivocation_unsigned_extrinsic: {
description: 'Submits an unsigned extrinsic to report an equivocation.',
params: [
{
name: 'equivocationProof',
type: 'BeefyEquivocationProof'
},
{
name: 'keyOwnerProof',
type: 'OpaqueKeyOwnershipProof'
}
],
type: 'Option<Null>'
},
validator_set: {
description: 'Return the current active BEEFY validator set',
params: [],
type: 'Option<ValidatorSet>'
}
},
methods: BEEFY_V1_V2,
version: 2
},
{
methods: BEEFY_V1_V2,
version: 1
}
],
BeefyMmrApi: [
{
methods: {
authority_set_proof: {
description: 'Return the currently active BEEFY authority set proof.',
params: [],
type: 'BeefyAuthoritySet'
},
next_authority_set_proof: {
description: 'Return the next/queued BEEFY authority set proof.',
params: [],
type: 'BeefyNextAuthoritySet'
}
},
methods: BEEFY_MMR_V1,
version: 1
}
]
+98 -92
View File
@@ -1,102 +1,108 @@
// Copyright 2017-2023 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionsCall } from '../../types/index.js';
import type { DefinitionCall, DefinitionsCall } from '../../types/index.js';
const MMR_V1_V2: Record<string, DefinitionCall> = {
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>'
}
};
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>'
}
},
methods: MMR_V1_V2,
version: 2
},
{
methods: MMR_V1_V2,
version: 1
}
]
+2 -8
View File
@@ -47,13 +47,10 @@ export function decodeLatestMeta (registry: Registry, type: string, version: num
expect(json).toEqual(readJson(version, type, 'json'));
} catch (error) {
if (process.env.GITHUB_REPOSITORY) {
console.error(stringify(json));
throw error;
} else {
console.error(error);
}
console.error(error);
writeJson(json, version, type, 'json');
}
});
@@ -66,13 +63,10 @@ export function decodeLatestMeta (registry: Registry, type: string, version: num
expect(json).toEqual(readJson(version, type, 'types'));
} catch (error) {
if (process.env.GITHUB_REPOSITORY) {
console.error(stringify(metadata.toJSON()));
throw error;
} else {
console.error(error);
}
console.error(error);
writeJson(json, version, type, 'types');
}
});
+238 -610
View File
File diff suppressed because it is too large Load Diff