Skip to content

Commit 539a8c4

Browse files
authored
Types for poll module (#2418)
1 parent b849976 commit 539a8c4

File tree

6 files changed

+35
-0
lines changed

6 files changed

+35
-0
lines changed

packages/types/src/augment/registry.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { StorageKind } from '@polkadot/types/interfaces/offchain';
2929
import { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
3030
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';
3131
import { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
32+
import { Approvals } from '@polkadot/types/interfaces/poll';
3233
import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
3334
import { RpcMethods } from '@polkadot/types/interfaces/rpc';
3435
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' {
12711272
WinningDataEntry: WinningDataEntry;
12721273
'Option<WinningDataEntry>': Option<WinningDataEntry>;
12731274
'Vec<WinningDataEntry>': Vec<WinningDataEntry>;
1275+
Approvals: Approvals;
1276+
'Option<Approvals>': Option<Approvals>;
1277+
'Vec<Approvals>': Vec<Approvals>;
12741278
CallMetadataV0: CallMetadataV0;
12751279
'Option<CallMetadataV0>': Option<CallMetadataV0>;
12761280
'Vec<CallMetadataV0>': Vec<CallMetadataV0>;

packages/types/src/interfaces/definitions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export { default as vesting } from './vesting/definitions';
3939
export { default as attestations } from './attestations/definitions';
4040
export { default as claims } from './claims/definitions';
4141
export { default as parachains } from './parachains/definitions';
42+
export { default as poll } from './poll/definitions';
4243

4344
// pull in metadata & rpc last, assuming that is uses info from above
4445
export { default as metadata } from './metadata/definitions';
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2017-2020 @polkadot/types authors & contributors
2+
// This software may be modified and distributed under the terms
3+
// of the Apache-2.0 license. See the LICENSE file for details.
4+
5+
// order important in structs... :)
6+
/* eslint-disable sort-keys */
7+
8+
import { Definitions } from '../../types';
9+
10+
export default {
11+
rpc: {},
12+
types: {
13+
Approvals: '[bool; 4]'
14+
}
15+
} as Definitions;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2+
/* eslint-disable */
3+
4+
export * from './types';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2+
/* eslint-disable */
3+
4+
import { Vec } from '@polkadot/types/codec';
5+
import { bool } from '@polkadot/types/primitive';
6+
7+
/** @name Approvals */
8+
export interface Approvals extends Vec<bool> {}
9+
10+
export type PHANTOM_POLL = 'poll';

packages/types/src/interfaces/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export * from './vesting/types';
3333
export * from './attestations/types';
3434
export * from './claims/types';
3535
export * from './parachains/types';
36+
export * from './poll/types';
3637
export * from './metadata/types';
3738
export * from './rpc/types';
3839
export * from './author/types';

0 commit comments

Comments
 (0)