diff --git a/packages/types/src/augment/registry.ts b/packages/types/src/augment/registry.ts index 264e369520..45334c7313 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -26,6 +26,7 @@ import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, Permiss import type { AuthorityIndex, AuthorityList, AuthorityWeight, EncodedFinalityProofs, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaPrevote, JustificationNotification, KeyOwnerProof, NextAuthority, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa'; import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement } from '@polkadot/types/interfaces/identity'; import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline'; +import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery'; import type { DoubleMapTypeLatest, DoubleMapTypeV10, DoubleMapTypeV11, DoubleMapTypeV12, DoubleMapTypeV9, ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV9, MapTypeLatest, MapTypeV10, MapTypeV11, MapTypeV12, MapTypeV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV9, ModuleConstantMetadataLatest, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV9, ModuleMetadataLatest, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV9, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV9, StorageMetadataLatest, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata'; import type { StorageKind } from '@polkadot/types/interfaces/offchain'; import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences'; @@ -932,6 +933,12 @@ declare module '@polkadot/types/types/registry' { OpaqueNetworkState: OpaqueNetworkState; 'Option': Option; 'Vec': Vec; + CallIndex: CallIndex; + 'Option': Option; + 'Vec': Vec; + LotteryConfig: LotteryConfig; + 'Option': Option; + 'Vec': Vec; DeferredOffenceOf: DeferredOffenceOf; 'Option': Option; 'Vec': Vec; diff --git a/packages/types/src/interfaces/definitions.ts b/packages/types/src/interfaces/definitions.ts index fe9ae88c87..06015a783a 100644 --- a/packages/types/src/interfaces/definitions.ts +++ b/packages/types/src/interfaces/definitions.ts @@ -22,6 +22,7 @@ export { default as genericAsset } from './genericAsset/definitions'; export { default as grandpa } from './grandpa/definitions'; export { default as identity } from './identity/definitions'; export { default as imOnline } from './imOnline/definitions'; +export { default as lottery } from './lottery/definitions'; export { default as offences } from './offences/definitions'; export { default as proxy } from './proxy/definitions'; export { default as recovery } from './recovery/definitions'; diff --git a/packages/types/src/interfaces/lottery/definitions.ts b/packages/types/src/interfaces/lottery/definitions.ts new file mode 100644 index 0000000000..122f423f4d --- /dev/null +++ b/packages/types/src/interfaces/lottery/definitions.ts @@ -0,0 +1,21 @@ +// 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'; + +export default { + rpc: {}, + types: { + CallIndex: '(u8, u8)', + LotteryConfig: { + price: 'Balance', + start: 'BlockNumber', + length: 'BlockNumber', + delay: 'BlockNumber', + repeat: 'bool' + } + } +} as Definitions; diff --git a/packages/types/src/interfaces/lottery/index.ts b/packages/types/src/interfaces/lottery/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/packages/types/src/interfaces/lottery/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/lottery/types.ts b/packages/types/src/interfaces/lottery/types.ts new file mode 100644 index 0000000000..ef5c2a0365 --- /dev/null +++ b/packages/types/src/interfaces/lottery/types.ts @@ -0,0 +1,20 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +import type { Struct, bool, u8 } from '@polkadot/types'; +import type { ITuple } from '@polkadot/types/types'; +import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; + +/** @name CallIndex */ +export interface CallIndex extends ITuple<[u8, u8]> {} + +/** @name LotteryConfig */ +export interface LotteryConfig extends Struct { + readonly price: Balance; + readonly start: BlockNumber; + readonly length: BlockNumber; + readonly delay: BlockNumber; + readonly repeat: bool; +} + +export type PHANTOM_LOTTERY = 'lottery'; diff --git a/packages/types/src/interfaces/types.ts b/packages/types/src/interfaces/types.ts index 6ef68a4a0c..1c6ea355ee 100644 --- a/packages/types/src/interfaces/types.ts +++ b/packages/types/src/interfaces/types.ts @@ -19,6 +19,7 @@ export * from './genericAsset/types'; export * from './grandpa/types'; export * from './identity/types'; export * from './imOnline/types'; +export * from './lottery/types'; export * from './offences/types'; export * from './proxy/types'; export * from './recovery/types';