diff --git a/packages/types/src/augment/registry.ts b/packages/types/src/augment/registry.ts index 3d59d534d5..bb2e32b458 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -29,6 +29,7 @@ import { StorageKind } from '@polkadot/types/interfaces/offchain'; import { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences'; import { AbridgedCandidateReceipt, AttestedCandidate, AuctionIndex, Bidder, CandidateCommitments, CandidateReceipt, CollatorId, CollatorSignature, DoubleVoteReport, DownwardMessage, GlobalValidationSchedule, HeadData, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, LeasePeriod, LeasePeriodOf, LocalValidationData, NewBidder, ParaId, ParaInfo, ParaPastCodeMeta, ParaScheduling, ParachainDispatchOrigin, Remark, Retriable, Scheduling, SigningContext, SlotRange, Statement, SubId, UpwardMessage, ValidationCode, ValidatorSignature, ValidityAttestation, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains'; import { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; +import { Approvals } from '@polkadot/types/interfaces/poll'; import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery'; import { RpcMethods } from '@polkadot/types/interfaces/rpc'; import { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, ChangesTrieConfiguration, Consensus, ConsensusEngineId, Digest, DigestItem, ExtrinsicsWeight, Fixed128, Fixed64, H160, H256, H512, Hash, Header, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, OpaqueCall, Origin, Pays, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, ProxyType, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, StorageData, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime'; @@ -1271,6 +1272,9 @@ declare module '@polkadot/types/types/registry' { WinningDataEntry: WinningDataEntry; 'Option': Option; 'Vec': Vec; + Approvals: Approvals; + 'Option': Option; + 'Vec': Vec; CallMetadataV0: CallMetadataV0; 'Option': Option; 'Vec': Vec; diff --git a/packages/types/src/interfaces/definitions.ts b/packages/types/src/interfaces/definitions.ts index 211268ef50..7d8c4cdca3 100644 --- a/packages/types/src/interfaces/definitions.ts +++ b/packages/types/src/interfaces/definitions.ts @@ -39,6 +39,7 @@ export { default as vesting } from './vesting/definitions'; export { default as attestations } from './attestations/definitions'; export { default as claims } from './claims/definitions'; export { default as parachains } from './parachains/definitions'; +export { default as poll } from './poll/definitions'; // pull in metadata & rpc last, assuming that is uses info from above export { default as metadata } from './metadata/definitions'; diff --git a/packages/types/src/interfaces/poll/definitions.ts b/packages/types/src/interfaces/poll/definitions.ts new file mode 100644 index 0000000000..00939c84ce --- /dev/null +++ b/packages/types/src/interfaces/poll/definitions.ts @@ -0,0 +1,15 @@ +// Copyright 2017-2020 @polkadot/types authors & contributors +// This software may be modified and distributed under the terms +// of the Apache-2.0 license. See the LICENSE file for details. + +// order important in structs... :) +/* eslint-disable sort-keys */ + +import { Definitions } from '../../types'; + +export default { + rpc: {}, + types: { + Approvals: '[bool; 4]' + } +} as Definitions; diff --git a/packages/types/src/interfaces/poll/index.ts b/packages/types/src/interfaces/poll/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/packages/types/src/interfaces/poll/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './types'; diff --git a/packages/types/src/interfaces/poll/types.ts b/packages/types/src/interfaces/poll/types.ts new file mode 100644 index 0000000000..4dbab37f97 --- /dev/null +++ b/packages/types/src/interfaces/poll/types.ts @@ -0,0 +1,10 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +import { Vec } from '@polkadot/types/codec'; +import { bool } from '@polkadot/types/primitive'; + +/** @name Approvals */ +export interface Approvals extends Vec {} + +export type PHANTOM_POLL = 'poll'; diff --git a/packages/types/src/interfaces/types.ts b/packages/types/src/interfaces/types.ts index 82a464fc1f..af8d7714bf 100644 --- a/packages/types/src/interfaces/types.ts +++ b/packages/types/src/interfaces/types.ts @@ -33,6 +33,7 @@ export * from './vesting/types'; export * from './attestations/types'; export * from './claims/types'; export * from './parachains/types'; +export * from './poll/types'; export * from './metadata/types'; export * from './rpc/types'; export * from './author/types';