diff --git a/packages/types/src/interfaceRegistry.ts b/packages/types/src/interfaceRegistry.ts index 71ae1a0d2672..9a347acacea4 100644 --- a/packages/types/src/interfaceRegistry.ts +++ b/packages/types/src/interfaceRegistry.ts @@ -19,7 +19,9 @@ import { AuthorityIndex, AuthorityList, AuthorityWeight, NextAuthority, PendingP import { IdentityInfo, IdentityInfoAdditional, Judgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement } from '@polkadot/types/interfaces/identity'; import { AuthIndex, AuthoritySignature, Heartbeat, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline'; import { Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences'; +import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery'; import { FullIdentification, IdentificationTuple, Keys, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6 } from '@polkadot/types/interfaces/session'; +import { Bid, BidKind, BidKindVouch, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society'; import { EraIndex, EraPoints, EraRewards, Exposure, Forcing, IndividualExposure, MomentOf, Nominations, Points, RewardDestination, SlashJournalEntry, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196 } from '@polkadot/types/interfaces/staking'; import { DigestOf, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, EventRecordTo76, Key, Phase } from '@polkadot/types/interfaces/system'; import { OpenTip, OpenTipFinder, OpenTipTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; @@ -608,6 +610,12 @@ export interface InterfaceRegistry { Reporter: Reporter; 'Option': Option; 'Vec': Vec; + ActiveRecovery: ActiveRecovery; + 'Option': Option; + 'Vec': Vec; + RecoveryConfig: RecoveryConfig; + 'Option': Option; + 'Vec': Vec; Keys: Keys; 'Option': Option; 'Vec': Vec; @@ -639,6 +647,22 @@ export interface InterfaceRegistry { 'Compact': Compact; 'Option': Option; 'Vec': Vec; + Bid: Bid; + 'Option': Option; + 'Vec': Vec; + BidKindVouch: BidKindVouch; + 'Option': Option; + 'Vec': Vec; + BidKind: BidKind; + 'Option': Option; + 'Vec': Vec; + StrikeCount: StrikeCount; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + VouchingStatus: VouchingStatus; + 'Option': Option; + 'Vec': Vec; EraIndex: EraIndex; 'Compact': Compact; 'Option': Option; diff --git a/packages/types/src/interfaces/definitions.ts b/packages/types/src/interfaces/definitions.ts index da1721adfa15..37d0ce8e5fa6 100644 --- a/packages/types/src/interfaces/definitions.ts +++ b/packages/types/src/interfaces/definitions.ts @@ -21,7 +21,9 @@ export { default as grandpa } from './grandpa/definitions'; export { default as identity } from './identity/definitions'; export { default as imOnline } from './imOnline/definitions'; export { default as offences } from './offences/definitions'; +export { default as recovery } from './recovery/definitions'; export { default as session } from './session/definitions'; +export { default as society } from './society/definitions'; export { default as staking } from './staking/definitions'; export { default as system } from './system/definitions'; export { default as treasury } from './treasury/definitions'; diff --git a/packages/types/src/interfaces/recovery/definitions.ts b/packages/types/src/interfaces/recovery/definitions.ts new file mode 100644 index 000000000000..ab7ce461a43d --- /dev/null +++ b/packages/types/src/interfaces/recovery/definitions.ts @@ -0,0 +1,19 @@ +// 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. + +export default { + types: { + ActiveRecovery: { + created: 'BlockNumber', + deposit: 'Balance', + friends: 'Vec' + }, + RecoveryConfig: { + delayPeriod: 'BlockNumber', + deposit: 'Balance', + friends: 'Vec', + threshold: 'u16' + } + } +}; diff --git a/packages/types/src/interfaces/recovery/index.ts b/packages/types/src/interfaces/recovery/index.ts new file mode 100644 index 000000000000..05fdc138ffa0 --- /dev/null +++ b/packages/types/src/interfaces/recovery/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn build:interfaces`, do not edit +/* eslint-disable @typescript-eslint/no-empty-interface */ + +export * from './types'; diff --git a/packages/types/src/interfaces/recovery/types.ts b/packages/types/src/interfaces/recovery/types.ts new file mode 100644 index 000000000000..40d53dc155af --- /dev/null +++ b/packages/types/src/interfaces/recovery/types.ts @@ -0,0 +1,28 @@ +// Auto-generated via `yarn build:interfaces`, do not edit +/* eslint-disable @typescript-eslint/no-empty-interface */ + +import { Struct, Vec } from '@polkadot/types/codec'; +import { u16 } from '@polkadot/types/primitive'; +import { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; + +/** Struct */ +export interface ActiveRecovery extends Struct { + /** BlockNumber */ + readonly created: BlockNumber; + /** Balance */ + readonly deposit: Balance; + /** Vec */ + readonly friends: Vec; +} + +/** Struct */ +export interface RecoveryConfig extends Struct { + /** BlockNumber */ + readonly delayPeriod: BlockNumber; + /** Balance */ + readonly deposit: Balance; + /** Vec */ + readonly friends: Vec; + /** u16 */ + readonly threshold: u16; +} diff --git a/packages/types/src/interfaces/society/definitions.ts b/packages/types/src/interfaces/society/definitions.ts new file mode 100644 index 000000000000..64128fa00d5b --- /dev/null +++ b/packages/types/src/interfaces/society/definitions.ts @@ -0,0 +1,24 @@ +// 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. + +export default { + types: { + Bid: { + who: 'AccountId', + kind: 'BidKind', + value: 'Balance' + }, + BidKindVouch: '(AccountId, Balance)', + BidKind: { + _enum: { + Deposit: 'Balance', + Vouch: 'BidKindVouch' + } + }, + StrikeCount: 'u32', + VouchingStatus: { + _enum: ['Vouching', 'Banned'] + } + } +}; diff --git a/packages/types/src/interfaces/society/index.ts b/packages/types/src/interfaces/society/index.ts new file mode 100644 index 000000000000..05fdc138ffa0 --- /dev/null +++ b/packages/types/src/interfaces/society/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn build:interfaces`, do not edit +/* eslint-disable @typescript-eslint/no-empty-interface */ + +export * from './types'; diff --git a/packages/types/src/interfaces/society/types.ts b/packages/types/src/interfaces/society/types.ts new file mode 100644 index 000000000000..209f0569c925 --- /dev/null +++ b/packages/types/src/interfaces/society/types.ts @@ -0,0 +1,43 @@ +// Auto-generated via `yarn build:interfaces`, do not edit +/* eslint-disable @typescript-eslint/no-empty-interface */ + +import { ITuple } from '@polkadot/types/types'; +import { Enum, Struct } from '@polkadot/types/codec'; +import { u32 } from '@polkadot/types/primitive'; +import { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; + +/** Struct */ +export interface Bid extends Struct { + /** AccountId */ + readonly who: AccountId; + /** BidKind */ + readonly kind: BidKind; + /** Balance */ + readonly value: Balance; +} + +/** Enum */ +export interface BidKind extends Enum { + /** 0:: Deposit(Balance) */ + readonly isDeposit: boolean; + /** Balance */ + readonly asDeposit: Balance; + /** 1:: Vouch(BidKindVouch) */ + readonly isVouch: boolean; + /** BidKindVouch */ + readonly asVouch: BidKindVouch; +} + +/** ITuple<[AccountId, Balance]> */ +export interface BidKindVouch extends ITuple<[AccountId, Balance]> {} + +/** u32 */ +export interface StrikeCount extends u32 {} + +/** Enum */ +export interface VouchingStatus extends Enum { + /** 0:: Vouching */ + readonly isVouching: boolean; + /** 1:: Banned */ + readonly isBanned: boolean; +} diff --git a/packages/types/src/interfaces/types.ts b/packages/types/src/interfaces/types.ts index a5cc77ff772d..3e7cc58ff0cd 100644 --- a/packages/types/src/interfaces/types.ts +++ b/packages/types/src/interfaces/types.ts @@ -17,7 +17,9 @@ export * from './grandpa/types'; export * from './identity/types'; export * from './imOnline/types'; export * from './offences/types'; +export * from './recovery/types'; export * from './session/types'; +export * from './society/types'; export * from './staking/types'; export * from './system/types'; export * from './treasury/types';