Society/Recovery types (#1719)
* Society/Recovery types * camelCase (linting)
This commit is contained in:
@@ -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<Reporter>': Option<Reporter>;
|
||||
'Vec<Reporter>': Vec<Reporter>;
|
||||
ActiveRecovery: ActiveRecovery;
|
||||
'Option<ActiveRecovery>': Option<ActiveRecovery>;
|
||||
'Vec<ActiveRecovery>': Vec<ActiveRecovery>;
|
||||
RecoveryConfig: RecoveryConfig;
|
||||
'Option<RecoveryConfig>': Option<RecoveryConfig>;
|
||||
'Vec<RecoveryConfig>': Vec<RecoveryConfig>;
|
||||
Keys: Keys;
|
||||
'Option<Keys>': Option<Keys>;
|
||||
'Vec<Keys>': Vec<Keys>;
|
||||
@@ -639,6 +647,22 @@ export interface InterfaceRegistry {
|
||||
'Compact<SessionIndex>': Compact<SessionIndex>;
|
||||
'Option<SessionIndex>': Option<SessionIndex>;
|
||||
'Vec<SessionIndex>': Vec<SessionIndex>;
|
||||
Bid: Bid;
|
||||
'Option<Bid>': Option<Bid>;
|
||||
'Vec<Bid>': Vec<Bid>;
|
||||
BidKindVouch: BidKindVouch;
|
||||
'Option<BidKindVouch>': Option<BidKindVouch>;
|
||||
'Vec<BidKindVouch>': Vec<BidKindVouch>;
|
||||
BidKind: BidKind;
|
||||
'Option<BidKind>': Option<BidKind>;
|
||||
'Vec<BidKind>': Vec<BidKind>;
|
||||
StrikeCount: StrikeCount;
|
||||
'Compact<StrikeCount>': Compact<StrikeCount>;
|
||||
'Option<StrikeCount>': Option<StrikeCount>;
|
||||
'Vec<StrikeCount>': Vec<StrikeCount>;
|
||||
VouchingStatus: VouchingStatus;
|
||||
'Option<VouchingStatus>': Option<VouchingStatus>;
|
||||
'Vec<VouchingStatus>': Vec<VouchingStatus>;
|
||||
EraIndex: EraIndex;
|
||||
'Compact<EraIndex>': Compact<EraIndex>;
|
||||
'Option<EraIndex>': Option<EraIndex>;
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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<AccountId>'
|
||||
},
|
||||
RecoveryConfig: {
|
||||
delayPeriod: 'BlockNumber',
|
||||
deposit: 'Balance',
|
||||
friends: 'Vec<AccountId>',
|
||||
threshold: 'u16'
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn build:interfaces`, do not edit
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
|
||||
export * from './types';
|
||||
@@ -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<AccountId> */
|
||||
readonly friends: Vec<AccountId>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface RecoveryConfig extends Struct {
|
||||
/** BlockNumber */
|
||||
readonly delayPeriod: BlockNumber;
|
||||
/** Balance */
|
||||
readonly deposit: Balance;
|
||||
/** Vec<AccountId> */
|
||||
readonly friends: Vec<AccountId>;
|
||||
/** u16 */
|
||||
readonly threshold: u16;
|
||||
}
|
||||
@@ -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']
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn build:interfaces`, do not edit
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
|
||||
export * from './types';
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user