Updata cumulus types (#3512)

* Updata cumulus types

* yarn .lock
This commit is contained in:
Jaco
2021-05-10 06:33:20 +02:00
committed by GitHub
parent b3649a70ce
commit edaf13abe1
16 changed files with 199 additions and 119 deletions
+4 -4
View File
@@ -21,13 +21,13 @@
"dependencies": {
"@babel/runtime": "^7.14.0",
"@polkadot/metadata": "4.9.3-8",
"@polkadot/util": "^6.3.2-6",
"@polkadot/util-crypto": "^6.3.2-6",
"@polkadot/x-rxjs": "^6.3.2-6",
"@polkadot/util": "^6.3.2-9",
"@polkadot/util-crypto": "^6.3.2-9",
"@polkadot/x-rxjs": "^6.3.2-9",
"@types/bn.js": "^4.11.6",
"bn.js": "^4.11.9"
},
"devDependencies": {
"@polkadot/keyring": "^6.3.2-6"
"@polkadot/keyring": "^6.3.2-9"
}
}
+18
View File
@@ -18,6 +18,7 @@ import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/conse
import type { AliveContractInfo, CodeHash, ContractCallRequest, ContractExecResult, ContractExecResultErr, ContractExecResultErrModule, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractInfo, ContractInstantiateResult, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateReturnValue, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
import type { ContractConstructorSpec, ContractContractSpec, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpec, ContractEventSpec, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpec, ContractMessageSpec, ContractProject, ContractProjectContract, ContractProjectSource, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';
import type { ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';
import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections';
import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';
@@ -92,6 +93,8 @@ declare module '@polkadot/types/types/registry' {
'Compact<MomentOf>': Compact<MomentOf>;
'Compact<NominatorIndex>': Compact<NominatorIndex>;
'Compact<OffchainAccuracy>': Compact<OffchainAccuracy>;
'Compact<OverweightIndex>': Compact<OverweightIndex>;
'Compact<PageCounter>': Compact<PageCounter>;
'Compact<ParaId>': Compact<ParaId>;
'Compact<ParaValidatorIndex>': Compact<ParaValidatorIndex>;
'Compact<Perbill>': Compact<Perbill>;
@@ -268,6 +271,7 @@ declare module '@polkadot/types/types/registry' {
'Option<CompactAssignmentsTo257>': Option<CompactAssignmentsTo257>;
'Option<CompactScore>': Option<CompactScore>;
'Option<CompactScoreCompact>': Option<CompactScoreCompact>;
'Option<ConfigData>': Option<ConfigData>;
'Option<Consensus>': Option<Consensus>;
'Option<ConsensusEngineId>': Option<ConsensusEngineId>;
'Option<ConsumedWeight>': Option<ConsumedWeight>;
@@ -557,6 +561,7 @@ declare module '@polkadot/types/types/registry' {
'Option<MaybeVrf>': Option<MaybeVrf>;
'Option<MemberCount>': Option<MemberCount>;
'Option<MembershipProof>': Option<MembershipProof>;
'Option<MessageId>': Option<MessageId>;
'Option<MessageIngestionType>': Option<MessageIngestionType>;
'Option<MessageQueueChain>': Option<MessageQueueChain>;
'Option<MessagingStateSnapshot>': Option<MessagingStateSnapshot>;
@@ -633,7 +638,10 @@ declare module '@polkadot/types/types/registry' {
'Option<OutboundHrmpMessage>': Option<OutboundHrmpMessage>;
'Option<OutboundStatus>': Option<OutboundStatus>;
'Option<Outcome>': Option<Outcome>;
'Option<OverweightIndex>': Option<OverweightIndex>;
'Option<Owner>': Option<Owner>;
'Option<PageCounter>': Option<PageCounter>;
'Option<PageIndexData>': Option<PageIndexData>;
'Option<PalletId>': Option<PalletId>;
'Option<PalletsOrigin>': Option<PalletsOrigin>;
'Option<PalletVersion>': Option<PalletVersion>;
@@ -1097,6 +1105,7 @@ declare module '@polkadot/types/types/registry' {
'Vec<CompactAssignmentsTo257>': Vec<CompactAssignmentsTo257>;
'Vec<CompactScore>': Vec<CompactScore>;
'Vec<CompactScoreCompact>': Vec<CompactScoreCompact>;
'Vec<ConfigData>': Vec<ConfigData>;
'Vec<Consensus>': Vec<Consensus>;
'Vec<ConsensusEngineId>': Vec<ConsensusEngineId>;
'Vec<ConsumedWeight>': Vec<ConsumedWeight>;
@@ -1386,6 +1395,7 @@ declare module '@polkadot/types/types/registry' {
'Vec<MaybeVrf>': Vec<MaybeVrf>;
'Vec<MemberCount>': Vec<MemberCount>;
'Vec<MembershipProof>': Vec<MembershipProof>;
'Vec<MessageId>': Vec<MessageId>;
'Vec<MessageIngestionType>': Vec<MessageIngestionType>;
'Vec<MessageQueueChain>': Vec<MessageQueueChain>;
'Vec<MessagingStateSnapshot>': Vec<MessagingStateSnapshot>;
@@ -1462,7 +1472,10 @@ declare module '@polkadot/types/types/registry' {
'Vec<OutboundHrmpMessage>': Vec<OutboundHrmpMessage>;
'Vec<OutboundStatus>': Vec<OutboundStatus>;
'Vec<Outcome>': Vec<Outcome>;
'Vec<OverweightIndex>': Vec<OverweightIndex>;
'Vec<Owner>': Vec<Owner>;
'Vec<PageCounter>': Vec<PageCounter>;
'Vec<PageIndexData>': Vec<PageIndexData>;
'Vec<PalletId>': Vec<PalletId>;
'Vec<PalletsOrigin>': Vec<PalletsOrigin>;
'Vec<PalletVersion>': Vec<PalletVersion>;
@@ -1926,6 +1939,7 @@ declare module '@polkadot/types/types/registry' {
CompactAssignmentsTo257: CompactAssignmentsTo257;
CompactScore: CompactScore;
CompactScoreCompact: CompactScoreCompact;
ConfigData: ConfigData;
Consensus: Consensus;
ConsensusEngineId: ConsensusEngineId;
ConsumedWeight: ConsumedWeight;
@@ -2215,6 +2229,7 @@ declare module '@polkadot/types/types/registry' {
MaybeVrf: MaybeVrf;
MemberCount: MemberCount;
MembershipProof: MembershipProof;
MessageId: MessageId;
MessageIngestionType: MessageIngestionType;
MessageQueueChain: MessageQueueChain;
MessagingStateSnapshot: MessagingStateSnapshot;
@@ -2291,7 +2306,10 @@ declare module '@polkadot/types/types/registry' {
OutboundHrmpMessage: OutboundHrmpMessage;
OutboundStatus: OutboundStatus;
Outcome: Outcome;
OverweightIndex: OverweightIndex;
Owner: Owner;
PageCounter: PageCounter;
PageIndexData: PageIndexData;
PalletId: PalletId;
PalletsOrigin: PalletsOrigin;
PalletVersion: PalletVersion;
@@ -0,0 +1,28 @@
// Copyright 2017-2021 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// order important in structs... :)
/* eslint-disable sort-keys */
import type { Definitions } from '../../types';
const dmpQueue = {
ConfigData: {
maxIndividual: 'Weight'
},
MessageId: '[u8; 32]',
OverweightIndex: 'u64',
PageCounter: 'u32',
PageIndexData: {
beginUsed: 'PageCounter',
endUsed: 'PageCounter',
overweightCount: 'OverweightIndex'
}
};
export default {
rpc: {},
types: {
...dmpQueue
}
} as Definitions;
@@ -0,0 +1,4 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
export * from './types';
@@ -0,0 +1,28 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import type { Struct, U8aFixed, u32, u64 } from '@polkadot/types';
import type { Weight } from '@polkadot/types/interfaces/runtime';
/** @name ConfigData */
export interface ConfigData extends Struct {
readonly maxIndividual: Weight;
}
/** @name MessageId */
export interface MessageId extends U8aFixed {}
/** @name OverweightIndex */
export interface OverweightIndex extends u64 {}
/** @name PageCounter */
export interface PageCounter extends u32 {}
/** @name PageIndexData */
export interface PageIndexData extends Struct {
readonly beginUsed: PageCounter;
readonly endUsed: PageCounter;
readonly overweightCount: OverweightIndex;
}
export type PHANTOM_CUMULUS = 'cumulus';
+2 -1
View File
@@ -10,6 +10,7 @@ export { default as authorship } from './authorship/definitions';
export { default as aura } from './aura/definitions';
export { default as babe } from './babe/definitions';
export { default as balances } from './balances/definitions';
export { default as beefy } from './beefy/definitions';
export { default as collective } from './collective/definitions';
export { default as consensus } from './consensus/definitions';
export { default as contracts } from './contracts/definitions';
@@ -42,9 +43,9 @@ export { default as vesting } from './vesting/definitions';
// polkadot-specific types
export { default as attestations } from './attestations/definitions';
export { default as beefy } from './beefy/definitions';
export { default as claims } from './claims/definitions';
export { default as crowdloan } from './crowdloan/definitions';
export { default as cumulus } from './cumulus/definitions';
export { default as parachains } from './parachains/definitions';
export { default as poll } from './poll/definitions';
export { default as purchase } from './purchase/definitions';
+2 -1
View File
@@ -7,6 +7,7 @@ export * from './authorship/types';
export * from './aura/types';
export * from './babe/types';
export * from './balances/types';
export * from './beefy/types';
export * from './collective/types';
export * from './consensus/types';
export * from './contracts/types';
@@ -37,9 +38,9 @@ export * from './txpayment/types';
export * from './utility/types';
export * from './vesting/types';
export * from './attestations/types';
export * from './beefy/types';
export * from './claims/types';
export * from './crowdloan/types';
export * from './cumulus/types';
export * from './parachains/types';
export * from './poll/types';
export * from './purchase/types';