Cleanup generated doc (only top-level docs) (#1777)

* Cleanup generated doc (only top-level docs)

* Single-line name
This commit is contained in:
Jaco Greeff
2020-01-30 12:09:16 +01:00
committed by GitHub
parent e19e530c1c
commit 9c913fb482
32 changed files with 437 additions and 1063 deletions
@@ -7,29 +7,21 @@ import { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime
import { SessionIndex } from '@polkadot/types/interfaces/session';
import { CandidateReceipt, ParaId } from '@polkadot/types/interfaces/parachains';
/** Struct */
/** @name BlockAttestations */
export interface BlockAttestations extends Struct {
/** CandidateReceipt */
readonly receipt: CandidateReceipt;
/** Vec<AccountId> */
readonly valid: Vec<AccountId>;
/** Vec<AccountId> */
readonly invalid: Vec<AccountId>;
}
/** Struct */
/** @name IncludedBlocks */
export interface IncludedBlocks extends Struct {
/** BlockNumber */
readonly actualNumber: BlockNumber;
/** SessionIndex */
readonly session: SessionIndex;
/** H256 */
readonly randomSeed: H256;
/** Vec<ParaId> */
readonly activeParachains: Vec<ParaId>;
/** Vec<Hash> */
readonly paraBlocks: Vec<Hash>;
}
/** Struct */
/** @name MoreAttestations */
export interface MoreAttestations extends Struct {}
+1 -2
View File
@@ -4,8 +4,7 @@
import { Struct } from '@polkadot/types/codec';
import { u64 } from '@polkadot/types/primitive';
/** Struct */
/** @name RawAuraPreDigest */
export interface RawAuraPreDigest extends Struct {
/** u64 */
readonly slotNumber: u64;
}
@@ -5,20 +5,16 @@ import { ITuple } from '@polkadot/types/types';
import { Enum, Option } from '@polkadot/types/codec';
import { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
/** BlockNumber */
/** @name InclusionHeight */
export interface InclusionHeight extends BlockNumber {}
/** ITuple<[Hash, Option<AccountId>]> */
/** @name Uncle */
export interface Uncle extends ITuple<[Hash, Option<AccountId>]> {}
/** Enum */
/** @name UncleEntryItem */
export interface UncleEntryItem extends Enum {
/** 0:: InclusionHeight(InclusionHeight) */
readonly isInclusionHeight: boolean;
/** InclusionHeight */
readonly asInclusionHeight: InclusionHeight;
/** 1:: Uncle(Uncle) */
readonly isUncle: boolean;
/** Uncle */
readonly asUncle: Uncle;
}
+14 -43
View File
@@ -5,109 +5,80 @@ import { Codec } from '@polkadot/types/types';
import { Enum, Option, Struct } from '@polkadot/types/codec';
import { u32, u64 } from '@polkadot/types/primitive';
/** u64 */
/** @name BabeAuthorityWeight */
export interface BabeAuthorityWeight extends u64 {}
/** u32 */
/** @name BabeBlockWeight */
export interface BabeBlockWeight extends u32 {}
/** u64 */
/** @name BabeWeight */
export interface BabeWeight extends u64 {}
/** Option<VrfData> */
/** @name MaybeVrf */
export interface MaybeVrf extends Option<VrfData> {}
/** Enum */
/** @name RawBabePreDigest */
export interface RawBabePreDigest extends Enum {
/** 0:: Phantom */
readonly isPhantom: boolean;
/** 1:: Primary(RawBabePreDigestPrimary) */
readonly isPrimary: boolean;
/** RawBabePreDigestPrimary */
readonly asPrimary: RawBabePreDigestPrimary;
/** 2:: Secondary(RawBabePreDigestSecondary) */
readonly isSecondary: boolean;
/** RawBabePreDigestSecondary */
readonly asSecondary: RawBabePreDigestSecondary;
}
/** Enum */
/** @name RawBabePreDigestCompat */
export interface RawBabePreDigestCompat extends Enum {
/** 0:: Zero(u32) */
readonly isZero: boolean;
/** u32 */
readonly asZero: u32;
/** 1:: One(u32) */
readonly isOne: boolean;
/** u32 */
readonly asOne: u32;
/** 2:: Two(u32) */
readonly isTwo: boolean;
/** u32 */
readonly asTwo: u32;
}
/** Struct */
/** @name RawBabePreDigestPrimary */
export interface RawBabePreDigestPrimary extends Struct {
/** u32 */
readonly authorityIndex: u32;
/** SlotNumber */
readonly slotNumber: SlotNumber;
/** VrfData */
readonly vrfOutput: VrfData;
/** VrfProof */
readonly vrfProof: VrfProof;
}
/** Struct */
/** @name RawBabePreDigestPrimaryTo159 */
export interface RawBabePreDigestPrimaryTo159 extends Struct {
/** u32 */
readonly authorityIndex: u32;
/** SlotNumber */
readonly slotNumber: SlotNumber;
/** BabeBlockWeight */
readonly weight: BabeBlockWeight;
/** VrfData */
readonly vrfOutput: VrfData;
/** VrfProof */
readonly vrfProof: VrfProof;
}
/** Struct */
/** @name RawBabePreDigestSecondary */
export interface RawBabePreDigestSecondary extends Struct {
/** u32 */
readonly authorityIndex: u32;
/** SlotNumber */
readonly slotNumber: SlotNumber;
}
/** Struct */
/** @name RawBabePreDigestSecondaryTo159 */
export interface RawBabePreDigestSecondaryTo159 extends Struct {
/** u32 */
readonly authorityIndex: u32;
/** SlotNumber */
readonly slotNumber: SlotNumber;
/** BabeBlockWeight */
readonly weight: BabeBlockWeight;
}
/** Enum */
/** @name RawBabePreDigestTo159 */
export interface RawBabePreDigestTo159 extends Enum {
/** 0:: Primary(RawBabePreDigestPrimaryTo159) */
readonly isPrimary: boolean;
/** RawBabePreDigestPrimaryTo159 */
readonly asPrimary: RawBabePreDigestPrimaryTo159;
/** 1:: Secondary(RawBabePreDigestSecondaryTo159) */
readonly isSecondary: boolean;
/** RawBabePreDigestSecondaryTo159 */
readonly asSecondary: RawBabePreDigestSecondaryTo159;
}
/** u64 */
/** @name SlotNumber */
export interface SlotNumber extends u64 {}
/** Uint8Array, Codec */
/** @name VrfData */
export interface VrfData extends Uint8Array, Codec {}
/** Uint8Array, Codec */
/** @name VrfProof */
export interface VrfProof extends Uint8Array, Codec {}
@@ -4,38 +4,26 @@
import { Set, Struct } from '@polkadot/types/codec';
import { Balance, BlockNumber, LockIdentifier } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name BalanceLock */
export interface BalanceLock extends Struct {
/** LockIdentifier */
readonly id: LockIdentifier;
/** Balance */
readonly amount: Balance;
/** BlockNumber */
readonly until: BlockNumber;
/** WithdrawReasons */
readonly reasons: WithdrawReasons;
}
/** Struct */
/** @name VestingSchedule */
export interface VestingSchedule extends Struct {
/** Balance */
readonly offset: Balance;
/** Balance */
readonly perBlock: Balance;
/** BlockNumber */
readonly startingBlock: BlockNumber;
}
/** Set */
/** @name WithdrawReasons */
export interface WithdrawReasons extends Set {
/** boolean */
readonly isTransactionPayment: boolean;
/** boolean */
readonly isTransfer: boolean;
/** boolean */
readonly isReserve: boolean;
/** boolean */
readonly isFee: boolean;
/** boolean */
readonly isTip: boolean;
}
@@ -3,5 +3,5 @@
import { H160 } from '@polkadot/types/primitive';
/** H160 */
/** @name EthereumAddress */
export interface EthereumAddress extends H160 {}
@@ -5,20 +5,16 @@ import { Struct, Vec } from '@polkadot/types/codec';
import { u32 } from '@polkadot/types/primitive';
import { AccountId } from '@polkadot/types/interfaces/runtime';
/** u32 */
/** @name MemberCount */
export interface MemberCount extends u32 {}
/** u32 */
/** @name ProposalIndex */
export interface ProposalIndex extends u32 {}
/** Struct */
/** @name Votes */
export interface Votes extends Struct {
/** ProposalIndex */
readonly index: ProposalIndex;
/** MemberCount */
readonly threshold: MemberCount;
/** Vec<AccountId> */
readonly ayes: Vec<AccountId>;
/** Vec<AccountId> */
readonly nays: Vec<AccountId>;
}
@@ -3,5 +3,5 @@
import { AccountId } from '@polkadot/types/interfaces/runtime';
/** AccountId */
/** @name AuthorityId */
export interface AuthorityId extends AccountId {}
@@ -6,131 +6,91 @@ import { Compact, Enum, Option, Raw, Struct } from '@polkadot/types/codec';
import { Bytes, Null, bool, u32, u64, u8 } from '@polkadot/types/primitive';
import { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name AliveContractInfo */
export interface AliveContractInfo extends Struct {
/** TrieId */
readonly trieId: TrieId;
/** u32 */
readonly storageSize: u32;
/** CodeHash */
readonly codeHash: CodeHash;
/** Balance */
readonly rentAllowance: Balance;
/** BlockNumber */
readonly deductBlock: BlockNumber;
/** Option<BlockNumber> */
readonly lastWrite: Option<BlockNumber>;
}
/** Hash */
/** @name CodeHash */
export interface CodeHash extends Hash {}
/** Struct */
/** @name ContractCallRequest */
export interface ContractCallRequest extends Struct {
/** AccountId */
readonly origin: AccountId;
/** AccountId */
readonly dest: AccountId;
/** Balance */
readonly value: Balance;
/** u64 */
readonly gasLimit: u64;
/** Bytes */
readonly inputData: Bytes;
}
/** Enum */
/** @name ContractExecResult */
export interface ContractExecResult extends Enum {
/** 0:: Success(ContractExecResultSuccess) */
readonly isSuccess: boolean;
/** ContractExecResultSuccess */
readonly asSuccess: ContractExecResultSuccess;
/** 1:: Error */
readonly isError: boolean;
}
/** Struct */
/** @name ContractExecResultSuccess */
export interface ContractExecResultSuccess extends Struct {
/** u8 */
readonly status: u8;
/** Raw */
readonly data: Raw;
}
/** Enum */
/** @name ContractInfo */
export interface ContractInfo extends Enum {
/** 0:: Alive(AliveContractInfo) */
readonly isAlive: boolean;
/** AliveContractInfo */
readonly asAlive: AliveContractInfo;
/** 1:: Tombstone(TombstoneContractInfo) */
readonly isTombstone: boolean;
/** TombstoneContractInfo */
readonly asTombstone: TombstoneContractInfo;
}
/** Uint8Array, Codec */
/** @name ContractStorageKey */
export interface ContractStorageKey extends Uint8Array, Codec {}
/** u64 */
/** @name Gas */
export interface Gas extends u64 {}
/** Struct */
/** @name PrefabWasmModule */
export interface PrefabWasmModule extends Struct {
/** Compact<u32> */
readonly scheduleVersion: Compact<u32>;
/** Compact<u32> */
readonly initial: Compact<u32>;
/** Compact<u32> */
readonly maximum: Compact<u32>;
/** PrefabWasmModuleReserved */
readonly _reserved: PrefabWasmModuleReserved;
/** Bytes */
readonly code: Bytes;
}
/** Option<Null> */
/** @name PrefabWasmModuleReserved */
export interface PrefabWasmModuleReserved extends Option<Null> {}
/** Struct */
/** @name Schedule */
export interface Schedule extends Struct {
/** u32 */
readonly version: u32;
/** Gas */
readonly putCodePerByteCost: Gas;
/** Gas */
readonly growMemCost: Gas;
/** Gas */
readonly regularOpCost: Gas;
/** Gas */
readonly returnDataPerByteCost: Gas;
/** Gas */
readonly eventDataPerByteCost: Gas;
/** Gas */
readonly eventPerTopicCost: Gas;
/** Gas */
readonly eventBaseCost: Gas;
/** Gas */
readonly sandboxDataReadCost: Gas;
/** Gas */
readonly sandboxDataWriteCost: Gas;
/** u32 */
readonly maxEventTopics: u32;
/** u32 */
readonly maxStackHeight: u32;
/** u32 */
readonly maxMemoryPages: u32;
/** bool */
readonly enablePrintln: bool;
/** u32 */
readonly maxSubjectLen: u32;
}
/** Hash */
/** @name SeedOf */
export interface SeedOf extends Hash {}
/** Hash */
/** @name TombstoneContractInfo */
export interface TombstoneContractInfo extends Hash {}
/** Bytes */
/** @name TrieId */
export interface TrieId extends Bytes {}
@@ -6,41 +6,30 @@ import { u32 } from '@polkadot/types/primitive';
import { BlockNumber, Call, Hash } from '@polkadot/types/interfaces/runtime';
import { VoteThreshold } from '@polkadot/types/interfaces/elections';
/** Enum */
/** @name Conviction */
export interface Conviction extends Enum {
/** 0:: None */
readonly isNone: boolean;
/** 1:: Locked1x */
readonly isLocked1X: boolean;
/** 2:: Locked2x */
readonly isLocked2X: boolean;
/** 3:: Locked3x */
readonly isLocked3X: boolean;
/** 4:: Locked4x */
readonly isLocked4X: boolean;
/** 5:: Locked5x */
readonly isLocked5X: boolean;
/** 6:: Locked6x */
readonly isLocked6X: boolean;
}
/** u32 */
/** @name PropIndex */
export interface PropIndex extends u32 {}
/** Call */
/** @name Proposal */
export interface Proposal extends Call {}
/** u32 */
/** @name ReferendumIndex */
export interface ReferendumIndex extends u32 {}
/** Struct */
/** @name ReferendumInfo */
export interface ReferendumInfo extends Struct {
/** BlockNumber */
readonly end: BlockNumber;
/** Hash */
readonly proposalHash: Hash;
/** VoteThreshold */
readonly threshold: VoteThreshold;
/** BlockNumber */
readonly delay: BlockNumber;
}
@@ -6,38 +6,33 @@ import { Enum, Struct } from '@polkadot/types/codec';
import { Bytes, i8, u32, u64 } from '@polkadot/types/primitive';
import { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name AccountInfo */
export interface AccountInfo extends Struct {
/** Bytes */
readonly trieId: Bytes;
/** u64 */
readonly currentMemStored: u64;
}
/** Balance */
/** @name Amount */
export interface Amount extends Balance {}
/** u32 */
/** @name AssetOf */
export interface AssetOf extends u32 {}
/** ITuple<[]> */
/** @name InherentOfflineReport */
export interface InherentOfflineReport extends ITuple<[]> {}
/** i8 */
/** @name LockPeriods */
export interface LockPeriods extends i8 {}
/** Enum */
/** @name NewAccountOutcome */
export interface NewAccountOutcome extends Enum {
/** 0:: NoHint */
readonly isNoHint: boolean;
/** 1:: GoodHint */
readonly isGoodHint: boolean;
/** 2:: BadHint */
readonly isBadHint: boolean;
}
/** Bytes */
/** @name OpaqueKey */
export interface OpaqueKey extends Bytes {}
/** AccountId */
/** @name SessionKey */
export interface SessionKey extends AccountId {}
@@ -5,36 +5,29 @@ import { Enum, Struct } from '@polkadot/types/codec';
import { GenericVote, u32 } from '@polkadot/types/primitive';
import { Balance } from '@polkadot/types/interfaces/runtime';
/** u32 */
/** @name ApprovalFlag */
export interface ApprovalFlag extends u32 {}
/** u32 */
/** @name SetIndex */
export interface SetIndex extends u32 {}
/** GenericVote */
/** @name Vote */
export interface Vote extends GenericVote {}
/** u32 */
/** @name VoteIndex */
export interface VoteIndex extends u32 {}
/** Struct */
/** @name VoterInfo */
export interface VoterInfo extends Struct {
/** VoteIndex */
readonly lastActive: VoteIndex;
/** VoteIndex */
readonly lastWin: VoteIndex;
/** Balance */
readonly pot: Balance;
/** Balance */
readonly stake: Balance;
}
/** Enum */
/** @name VoteThreshold */
export interface VoteThreshold extends Enum {
/** 0:: Supermajorityapproval */
readonly isSupermajorityapproval: boolean;
/** 1:: Supermajorityrejection */
readonly isSupermajorityrejection: boolean;
/** 2:: Simplemajority */
readonly isSimplemajority: boolean;
}
+2 -7
View File
@@ -4,20 +4,15 @@
import { Struct, Vec } from '@polkadot/types/codec';
import { Bytes, H160, H256, U256 } from '@polkadot/types/primitive';
/** Struct */
/** @name Account */
export interface Account extends Struct {
/** U256 */
readonly nonce: U256;
/** U256 */
readonly balance: U256;
}
/** Struct */
/** @name Log */
export interface Log extends Struct {
/** H160 */
readonly address: H160;
/** Vec<H256> */
readonly topics: Vec<H256>;
/** Bytes */
readonly data: Bytes;
}
@@ -4,41 +4,31 @@
import { Compact, Enum, Struct } from '@polkadot/types/codec';
import { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name AssetOptions */
export interface AssetOptions extends Struct {
/** Compact<Balance> */
readonly initalIssuance: Compact<Balance>;
/** PermissionLatest */
readonly permissions: PermissionLatest;
}
/** Enum */
/** @name Owner */
export interface Owner extends Enum {
/** 0:: None */
readonly isNone: boolean;
/** 1:: Address(AccountId) */
readonly isAddress: boolean;
/** AccountId */
readonly asAddress: AccountId;
}
/** PermissionsV1 */
/** @name PermissionLatest */
export interface PermissionLatest extends PermissionsV1 {}
/** Struct */
/** @name PermissionsV1 */
export interface PermissionsV1 extends Struct {
/** Owner */
readonly update: Owner;
/** Owner */
readonly mint: Owner;
/** Owner */
readonly burn: Owner;
}
/** Enum */
/** @name PermissionVersions */
export interface PermissionVersions extends Enum {
/** 0:: V1(PermissionsV1) */
readonly isV1: boolean;
/** PermissionsV1 */
readonly asV1: PermissionsV1;
}
+9 -22
View File
@@ -7,59 +7,46 @@ import { u64 } from '@polkadot/types/primitive';
import { BlockNumber } from '@polkadot/types/interfaces/runtime';
import { AuthorityId } from '@polkadot/types/interfaces/consensus';
/** u64 */
/** @name AuthorityIndex */
export interface AuthorityIndex extends u64 {}
/** Vec<NextAuthority> */
/** @name AuthorityList */
export interface AuthorityList extends Vec<NextAuthority> {}
/** u64 */
/** @name AuthorityWeight */
export interface AuthorityWeight extends u64 {}
/** ITuple<[AuthorityId, AuthorityWeight]> */
/** @name NextAuthority */
export interface NextAuthority extends ITuple<[AuthorityId, AuthorityWeight]> {}
/** Struct */
/** @name PendingPause */
export interface PendingPause extends Struct {
/** BlockNumber */
readonly scheduledAt: BlockNumber;
/** BlockNumber */
readonly delay: BlockNumber;
}
/** Struct */
/** @name PendingResume */
export interface PendingResume extends Struct {
/** BlockNumber */
readonly scheduledAt: BlockNumber;
/** BlockNumber */
readonly delay: BlockNumber;
}
/** u64 */
/** @name SetId */
export interface SetId extends u64 {}
/** Struct */
/** @name StoredPendingChange */
export interface StoredPendingChange extends Struct {
/** BlockNumber */
readonly scheduledAt: BlockNumber;
/** BlockNumber */
readonly delay: BlockNumber;
/** AuthorityList */
readonly nextAuthorities: AuthorityList;
}
/** Enum */
/** @name StoredState */
export interface StoredState extends Enum {
/** 0:: Live */
readonly isLive: boolean;
/** 1:: PendingPause(PendingPause) */
readonly isPendingPause: boolean;
/** PendingPause */
readonly asPendingPause: PendingPause;
/** 2:: Paused */
readonly isPaused: boolean;
/** 3:: PendingResume(PendingResume) */
readonly isPendingResume: boolean;
/** PendingResume */
readonly asPendingResume: PendingResume;
}
@@ -6,73 +6,50 @@ import { Enum, Option, Struct, Vec } from '@polkadot/types/codec';
import { Data, H160, IdentityFields, u32 } from '@polkadot/types/primitive';
import { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name IdentityInfo */
export interface IdentityInfo extends Struct {
/** Vec<IdentityInfoAdditional> */
readonly additional: Vec<IdentityInfoAdditional>;
/** Data */
readonly display: Data;
/** Data */
readonly legal: Data;
/** Data */
readonly web: Data;
/** Data */
readonly riot: Data;
/** Data */
readonly email: Data;
/** Option<H160> */
readonly pgpFingerprint: Option<H160>;
/** Data */
readonly image: Data;
/** Data */
readonly twitter: Data;
}
/** ITuple<[Data, Data]> */
/** @name IdentityInfoAdditional */
export interface IdentityInfoAdditional extends ITuple<[Data, Data]> {}
/** Enum */
/** @name IdentityJudgement */
export interface IdentityJudgement extends Enum {
/** 0:: Unknown */
readonly isUnknown: boolean;
/** 1:: FeePaid(Balance) */
readonly isFeePaid: boolean;
/** Balance */
readonly asFeePaid: Balance;
/** 2:: Reasonable */
readonly isReasonable: boolean;
/** 3:: KnownGood */
readonly isKnownGood: boolean;
/** 4:: OutOfDate */
readonly isOutOfDate: boolean;
/** 5:: LowQuality */
readonly isLowQuality: boolean;
/** 6:: Erroneous */
readonly isErroneous: boolean;
}
/** u32 */
/** @name RegistrarIndex */
export interface RegistrarIndex extends u32 {}
/** Struct */
/** @name RegistrarInfo */
export interface RegistrarInfo extends Struct {
/** AccountId */
readonly account: AccountId;
/** Balance */
readonly fee: Balance;
/** IdentityFields */
readonly fields: IdentityFields;
}
/** Struct */
/** @name Registration */
export interface Registration extends Struct {
/** Vec<RegistrationJudgement> */
readonly judgements: Vec<RegistrationJudgement>;
/** Balance */
readonly deposit: Balance;
/** IdentityInfo */
readonly info: IdentityInfo;
}
/** ITuple<[RegistrarIndex, IdentityJudgement]> */
/** @name RegistrationJudgement */
export interface RegistrationJudgement extends ITuple<[RegistrarIndex, IdentityJudgement]> {}
@@ -6,34 +6,28 @@ import { Bytes, u32 } from '@polkadot/types/primitive';
import { BlockNumber, Signature } from '@polkadot/types/interfaces/runtime';
import { SessionIndex } from '@polkadot/types/interfaces/session';
/** u32 */
/** @name AuthIndex */
export interface AuthIndex extends u32 {}
/** Signature */
/** @name AuthoritySignature */
export interface AuthoritySignature extends Signature {}
/** Struct */
/** @name Heartbeat */
export interface Heartbeat extends Struct {
/** BlockNumber */
readonly blockNumber: BlockNumber;
/** OpaqueNetworkState */
readonly networkState: OpaqueNetworkState;
/** SessionIndex */
readonly sessionIndex: SessionIndex;
/** AuthIndex */
readonly authorityIndex: AuthIndex;
}
/** Bytes */
/** @name OpaqueMultiaddr */
export interface OpaqueMultiaddr extends Bytes {}
/** Struct */
/** @name OpaqueNetworkState */
export interface OpaqueNetworkState extends Struct {
/** OpaquePeerId */
readonly peerId: OpaquePeerId;
/** Vec<OpaqueMultiaddr> */
readonly externalAddresses: Vec<OpaqueMultiaddr>;
}
/** Bytes */
/** @name OpaquePeerId */
export interface OpaquePeerId extends Bytes {}
File diff suppressed because it is too large Load Diff
@@ -7,25 +7,23 @@ import { Bytes } from '@polkadot/types/primitive';
import { AccountId, Hash } from '@polkadot/types/interfaces/runtime';
import { IdentificationTuple } from '@polkadot/types/interfaces/session';
/** Uint8Array, Codec */
/** @name Kind */
export interface Kind extends Uint8Array, Codec {}
/** Struct */
/** @name OffenceDetails */
export interface OffenceDetails extends Struct {
/** Offender */
readonly offender: Offender;
/** Vec<Reporter> */
readonly reporters: Vec<Reporter>;
}
/** IdentificationTuple */
/** @name Offender */
export interface Offender extends IdentificationTuple {}
/** Bytes */
/** @name OpaqueTimeSlot */
export interface OpaqueTimeSlot extends Bytes {}
/** AccountId */
/** @name Reporter */
export interface Reporter extends AccountId {}
/** Hash */
/** @name ReportIdOf */
export interface ReportIdOf extends Hash {}
@@ -6,205 +6,154 @@ import { Enum, Struct, Vec } from '@polkadot/types/codec';
import { Bytes, H256, u32, u64 } from '@polkadot/types/primitive';
import { AccountId, BalanceOf, BlockNumber, Hash, Signature } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name AttestedCandidate */
export interface AttestedCandidate extends Struct {
/** CandidateReceipt */
readonly candidate: CandidateReceipt;
/** Vec<ValidityVote> */
readonly validityVotes: Vec<ValidityVote>;
}
/** u32 */
/** @name AuctionIndex */
export interface AuctionIndex extends u32 {}
/** ITuple<[AccountId, u64]> */
/** @name BalanceUpload */
export interface BalanceUpload extends ITuple<[AccountId, u64]> {}
/** Enum */
/** @name Bidder */
export interface Bidder extends Enum {
/** 0:: New(NewBidder) */
readonly isNew: boolean;
/** NewBidder */
readonly asNew: NewBidder;
/** 1:: Existing(ParaId) */
readonly isExisting: boolean;
/** ParaId */
readonly asExisting: ParaId;
}
/** Struct */
/** @name CandidateReceipt */
export interface CandidateReceipt extends Struct {
/** ParaId */
readonly parachainIndex: ParaId;
/** AccountId */
readonly collator: AccountId;
/** CollatorSignature */
readonly signature: CollatorSignature;
/** HeadData */
readonly headData: HeadData;
/** Vec<BalanceUpload> */
readonly balanceUploads: Vec<BalanceUpload>;
/** Vec<EgressQueueRoot> */
readonly egressQueueRoots: Vec<EgressQueueRoot>;
/** u64 */
readonly fees: u64;
/** Hash */
readonly blockDataHash: Hash;
}
/** H256 */
/** @name CollatorId */
export interface CollatorId extends H256 {}
/** Signature */
/** @name CollatorSignature */
export interface CollatorSignature extends Signature {}
/** ITuple<[ParaId, Hash]> */
/** @name EgressQueueRoot */
export interface EgressQueueRoot extends ITuple<[ParaId, Hash]> {}
/** Bytes */
/** @name HeadData */
export interface HeadData extends Bytes {}
/** Enum */
/** @name IncomingParachain */
export interface IncomingParachain extends Enum {
/** 0:: Unset(NewBidder) */
readonly isUnset: boolean;
/** NewBidder */
readonly asUnset: NewBidder;
/** 1:: Fixed(IncomingParachainFixed) */
readonly isFixed: boolean;
/** IncomingParachainFixed */
readonly asFixed: IncomingParachainFixed;
/** 2:: Deploy(IncomingParachainDeploy) */
readonly isDeploy: boolean;
/** IncomingParachainDeploy */
readonly asDeploy: IncomingParachainDeploy;
}
/** Struct */
/** @name IncomingParachainDeploy */
export interface IncomingParachainDeploy extends Struct {
/** Bytes */
readonly code: Bytes;
/** Bytes */
readonly initialHeadData: Bytes;
}
/** Struct */
/** @name IncomingParachainFixed */
export interface IncomingParachainFixed extends Struct {
/** Hash */
readonly codeHash: Hash;
/** Bytes */
readonly initialHeadData: Bytes;
}
/** BlockNumber */
/** @name LeasePeriod */
export interface LeasePeriod extends BlockNumber {}
/** LeasePeriod */
/** @name LeasePeriodOf */
export interface LeasePeriodOf extends LeasePeriod {}
/** Struct */
/** @name NewBidder */
export interface NewBidder extends Struct {
/** AccountId */
readonly who: AccountId;
/** SubId */
readonly sub: SubId;
}
/** Enum */
/** @name ParachainDispatchOrigin */
export interface ParachainDispatchOrigin extends Enum {
/** 0:: Signed */
readonly isSigned: boolean;
/** 1:: Parachain */
readonly isParachain: boolean;
}
/** u32 */
/** @name ParaId */
export interface ParaId extends u32 {}
/** ParaId */
/** @name ParaIdOf */
export interface ParaIdOf extends ParaId {}
/** Struct */
/** @name ParaInfo */
export interface ParaInfo extends Struct {
/** ParaScheduling */
readonly scheduling: ParaScheduling;
}
/** Enum */
/** @name ParaScheduling */
export interface ParaScheduling extends Enum {
/** 0:: Always */
readonly isAlways: boolean;
/** 1:: Dynamic */
readonly isDynamic: boolean;
}
/** Enum */
/** @name Retriable */
export interface Retriable extends Enum {
/** 0:: Never */
readonly isNever: boolean;
/** 1:: WithRetries(u32) */
readonly isWithRetries: boolean;
/** u32 */
readonly asWithRetries: u32;
}
/** Enum */
/** @name SlotRange */
export interface SlotRange extends Enum {
/** 0:: ZeroZero */
readonly isZeroZero: boolean;
/** 1:: ZeroOne */
readonly isZeroOne: boolean;
/** 2:: ZeroTwo */
readonly isZeroTwo: boolean;
/** 3:: ZeroThree */
readonly isZeroThree: boolean;
/** 4:: OneOne */
readonly isOneOne: boolean;
/** 5:: OneTwo */
readonly isOneTwo: boolean;
/** 6:: OneThree */
readonly isOneThree: boolean;
/** 7:: TwoTwo */
readonly isTwoTwo: boolean;
/** 8:: TwoThree */
readonly isTwoThree: boolean;
/** 9:: ThreeThree */
readonly isThreeThree: boolean;
}
/** u32 */
/** @name SubId */
export interface SubId extends u32 {}
/** Struct */
/** @name UpwardMessage */
export interface UpwardMessage extends Struct {
/** ParachainDispatchOrigin */
readonly origin: ParachainDispatchOrigin;
/** Bytes */
readonly data: Bytes;
}
/** u32 */
/** @name ValidatorIndex */
export interface ValidatorIndex extends u32 {}
/** Enum */
/** @name ValidityAttestation */
export interface ValidityAttestation extends Enum {
/** 0:: None */
readonly isNone: boolean;
/** 1:: Implicit(CollatorSignature) */
readonly isImplicit: boolean;
/** CollatorSignature */
readonly asImplicit: CollatorSignature;
/** 2:: Explicit(CollatorSignature) */
readonly isExplicit: boolean;
/** CollatorSignature */
readonly asExplicit: CollatorSignature;
}
/** ITuple<[ValidatorIndex, ValidityAttestation]> */
/** @name ValidityVote */
export interface ValidityVote extends ITuple<[ValidatorIndex, ValidityAttestation]> {}
/** Vec<WinningDataEntry> */
/** @name WinningData */
export interface WinningData extends Vec<WinningDataEntry> {}
/** ITuple<[AccountId, ParaIdOf, BalanceOf]> */
/** @name WinningDataEntry */
export interface WinningDataEntry extends ITuple<[AccountId, ParaIdOf, BalanceOf]> {}
@@ -5,24 +5,17 @@ import { Struct, Vec } from '@polkadot/types/codec';
import { u16 } from '@polkadot/types/primitive';
import { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name ActiveRecovery */
export interface ActiveRecovery extends Struct {
/** BlockNumber */
readonly created: BlockNumber;
/** Balance */
readonly deposit: Balance;
/** Vec<AccountId> */
readonly friends: Vec<AccountId>;
}
/** Struct */
/** @name RecoveryConfig */
export interface RecoveryConfig extends Struct {
/** BlockNumber */
readonly delayPeriod: BlockNumber;
/** Balance */
readonly deposit: Balance;
/** Vec<AccountId> */
readonly friends: Vec<AccountId>;
/** u16 */
readonly threshold: u16;
}
+14 -53
View File
@@ -6,132 +6,93 @@ import { Enum, Option, Struct, Vec } from '@polkadot/types/codec';
import { Bytes, StorageData, StorageKey, Text, bool, u32, u64, u8 } from '@polkadot/types/primitive';
import { Balance, BlockNumber, DispatchClass, Hash, Weight } from '@polkadot/types/interfaces/runtime';
/** Uint8Array, Codec */
/** @name ApiId */
export interface ApiId extends Uint8Array, Codec {}
/** Hash */
/** @name BlockHash */
export interface BlockHash extends Hash {}
/** Struct */
/** @name ChainProperties */
export interface ChainProperties extends Struct {
/** Option<u8> */
readonly ss58Format: Option<u8>;
/** Option<u32> */
readonly tokenDecimals: Option<u32>;
/** Option<Text> */
readonly tokenSymbol: Option<Text>;
}
/** Enum */
/** @name ExtrinsicOrHash */
export interface ExtrinsicOrHash extends Enum {
/** 0:: Hash(Hash) */
readonly isHash: boolean;
/** Hash */
readonly asHash: Hash;
/** 1:: Extrinsic(Bytes) */
readonly isExtrinsic: boolean;
/** Bytes */
readonly asExtrinsic: Bytes;
}
/** Enum */
/** @name ExtrinsicStatus */
export interface ExtrinsicStatus extends Enum {
/** 0:: Future */
readonly isFuture: boolean;
/** 1:: Ready */
readonly isReady: boolean;
/** 2:: Finalized(Hash) */
readonly isFinalized: boolean;
/** Hash */
readonly asFinalized: Hash;
/** 3:: Usurped(Hash) */
readonly isUsurped: boolean;
/** Hash */
readonly asUsurped: Hash;
/** 4:: Broadcast(Vec<Text>) */
readonly isBroadcast: boolean;
/** Vec<Text> */
readonly asBroadcast: Vec<Text>;
/** 5:: Dropped */
readonly isDropped: boolean;
/** 6:: Invalid */
readonly isInvalid: boolean;
}
/** Struct */
/** @name Health */
export interface Health extends Struct {
/** u64 */
readonly peers: u64;
/** bool */
readonly isSyncing: bool;
/** bool */
readonly shouldHavePeers: bool;
}
/** ITuple<[StorageKey, Option<StorageData>]> */
/** @name KeyValueOption */
export interface KeyValueOption extends ITuple<[StorageKey, Option<StorageData>]> {}
/** Struct */
/** @name NetworkState */
export interface NetworkState extends Struct {
/** Text */
readonly peerId: Text;
}
/** Struct */
/** @name PeerInfo */
export interface PeerInfo extends Struct {
/** Text */
readonly peerId: Text;
/** Text */
readonly roles: Text;
/** u32 */
readonly protocolVersion: u32;
/** Hash */
readonly bestHash: Hash;
/** BlockNumber */
readonly bestNumber: BlockNumber;
}
/** Struct */
/** @name RpcMethods */
export interface RpcMethods extends Struct {
/** u32 */
readonly version: u32;
/** Vec<Text> */
readonly methods: Vec<Text>;
}
/** Struct */
/** @name RuntimeDispatchInfo */
export interface RuntimeDispatchInfo extends Struct {
/** Weight */
readonly weight: Weight;
/** DispatchClass */
readonly class: DispatchClass;
/** Balance */
readonly partialFee: Balance;
}
/** Struct */
/** @name RuntimeVersion */
export interface RuntimeVersion extends Struct {
/** Text */
readonly specName: Text;
/** Text */
readonly implName: Text;
/** u32 */
readonly authoringVersion: u32;
/** u32 */
readonly specVersion: u32;
/** u32 */
readonly implVersion: u32;
/** Vec<RuntimeVersionApi> */
readonly apis: Vec<RuntimeVersionApi>;
}
/** ITuple<[ApiId, u32]> */
/** @name RuntimeVersionApi */
export interface RuntimeVersionApi extends ITuple<[ApiId, u32]> {}
/** Struct */
/** @name StorageChangeSet */
export interface StorageChangeSet extends Struct {
/** Hash */
readonly block: Hash;
/** Vec<KeyValueOption> */
readonly changes: Vec<KeyValueOption>;
}
+61 -83
View File
@@ -5,236 +5,214 @@ import { Codec, ITuple } from '@polkadot/types/types';
import { Compact, Enum, Struct } from '@polkadot/types/codec';
import { Bytes, Fixed64, GenericAccountId, GenericAccountIndex, GenericAddress, GenericBlock, GenericCall, GenericConsensusEngineId, GenericDigest, GenericDigestItem, GenericExtrinsic, GenericExtrinsicEra, GenericExtrinsicPayload, GenericExtrinsicPayloadUnknown, GenericExtrinsicPayloadV1, GenericExtrinsicPayloadV2, GenericExtrinsicPayloadV3, GenericExtrinsicPayloadV4, GenericExtrinsicUnknown, GenericExtrinsicV1, GenericExtrinsicV2, GenericExtrinsicV3, GenericExtrinsicV4, GenericImmortalEra, GenericMortalEra, GenericOrigin, GenericSignerPayload, H256, H512, Null, StorageData, StorageKey, bool, u128, u32, u64, u8 } from '@polkadot/types/primitive';
/** GenericAccountId */
/** @name AccountId */
export interface AccountId extends GenericAccountId {}
/** AccountId */
/** @name AccountIdOf */
export interface AccountIdOf extends AccountId {}
/** GenericAccountIndex */
/** @name AccountIndex */
export interface AccountIndex extends GenericAccountIndex {}
/** GenericAddress */
/** @name Address */
export interface Address extends GenericAddress {}
/** u32 */
/** @name AssetId */
export interface AssetId extends u32 {}
/** u128 */
/** @name Balance */
export interface Balance extends u128 {}
/** Balance */
/** @name BalanceOf */
export interface BalanceOf extends Balance {}
/** GenericBlock */
/** @name Block */
export interface Block extends GenericBlock {}
/** u32 */
/** @name BlockNumber */
export interface BlockNumber extends u32 {}
/** GenericCall */
/** @name Call */
export interface Call extends GenericCall {}
/** Struct */
/** @name ChangesTrieConfiguration */
export interface ChangesTrieConfiguration extends Struct {
/** u32 */
readonly digestInterval: u32;
/** u32 */
readonly digestLevels: u32;
}
/** ITuple<[ConsensusEngineId, Bytes]> */
/** @name Consensus */
export interface Consensus extends ITuple<[ConsensusEngineId, Bytes]> {}
/** GenericConsensusEngineId */
/** @name ConsensusEngineId */
export interface ConsensusEngineId extends GenericConsensusEngineId {}
/** GenericDigest */
/** @name Digest */
export interface Digest extends GenericDigest {}
/** GenericDigestItem */
/** @name DigestItem */
export interface DigestItem extends GenericDigestItem {}
/** Enum */
/** @name DispatchClass */
export interface DispatchClass extends Enum {
/** 0:: Normal */
readonly isNormal: boolean;
/** 1:: Operational */
readonly isOperational: boolean;
}
/** Struct */
/** @name DispatchInfo */
export interface DispatchInfo extends Struct {
/** Weight */
readonly weight: Weight;
/** DispatchClass */
readonly class: DispatchClass;
/** bool */
readonly paysFee: bool;
}
/** Struct */
/** @name DispatchInfoTo190 */
export interface DispatchInfoTo190 extends Struct {
/** Weight */
readonly weight: Weight;
/** DispatchClass */
readonly class: DispatchClass;
}
/** Uint8Array, Codec */
/** @name EcdsaSignature */
export interface EcdsaSignature extends Uint8Array, Codec {}
/** Signature */
/** @name Ed25519Signature */
export interface Ed25519Signature extends Signature {}
/** GenericExtrinsic */
/** @name Extrinsic */
export interface Extrinsic extends GenericExtrinsic {}
/** GenericExtrinsicEra */
/** @name ExtrinsicEra */
export interface ExtrinsicEra extends GenericExtrinsicEra {}
/** GenericExtrinsicPayload */
/** @name ExtrinsicPayload */
export interface ExtrinsicPayload extends GenericExtrinsicPayload {}
/** GenericExtrinsicPayloadUnknown */
/** @name ExtrinsicPayloadUnknown */
export interface ExtrinsicPayloadUnknown extends GenericExtrinsicPayloadUnknown {}
/** GenericExtrinsicPayloadV1 */
/** @name ExtrinsicPayloadV1 */
export interface ExtrinsicPayloadV1 extends GenericExtrinsicPayloadV1 {}
/** GenericExtrinsicPayloadV2 */
/** @name ExtrinsicPayloadV2 */
export interface ExtrinsicPayloadV2 extends GenericExtrinsicPayloadV2 {}
/** GenericExtrinsicPayloadV3 */
/** @name ExtrinsicPayloadV3 */
export interface ExtrinsicPayloadV3 extends GenericExtrinsicPayloadV3 {}
/** GenericExtrinsicPayloadV4 */
/** @name ExtrinsicPayloadV4 */
export interface ExtrinsicPayloadV4 extends GenericExtrinsicPayloadV4 {}
/** GenericExtrinsicUnknown */
/** @name ExtrinsicUnknown */
export interface ExtrinsicUnknown extends GenericExtrinsicUnknown {}
/** GenericExtrinsicV1 */
/** @name ExtrinsicV1 */
export interface ExtrinsicV1 extends GenericExtrinsicV1 {}
/** GenericExtrinsicV2 */
/** @name ExtrinsicV2 */
export interface ExtrinsicV2 extends GenericExtrinsicV2 {}
/** GenericExtrinsicV3 */
/** @name ExtrinsicV3 */
export interface ExtrinsicV3 extends GenericExtrinsicV3 {}
/** GenericExtrinsicV4 */
/** @name ExtrinsicV4 */
export interface ExtrinsicV4 extends GenericExtrinsicV4 {}
/** H256 */
/** @name Hash */
export interface Hash extends H256 {}
/** Struct */
/** @name Header */
export interface Header extends Struct {
/** Hash */
readonly parentHash: Hash;
/** Compact<BlockNumber> */
readonly number: Compact<BlockNumber>;
/** Hash */
readonly stateRoot: Hash;
/** Hash */
readonly extrinsicsRoot: Hash;
/** Digest */
readonly digest: Digest;
}
/** GenericImmortalEra */
/** @name ImmortalEra */
export interface ImmortalEra extends GenericImmortalEra {}
/** u32 */
/** @name Index */
export interface Index extends u32 {}
/** Bytes */
/** @name Justification */
export interface Justification extends Bytes {}
/** u32 */
/** @name KeyTypeId */
export interface KeyTypeId extends u32 {}
/** ITuple<[StorageKey, StorageData]> */
/** @name KeyValue */
export interface KeyValue extends ITuple<[StorageKey, StorageData]> {}
/** Uint8Array, Codec */
/** @name LockIdentifier */
export interface LockIdentifier extends Uint8Array, Codec {}
/** u64 */
/** @name Moment */
export interface Moment extends u64 {}
/** GenericMortalEra */
/** @name MortalEra */
export interface MortalEra extends GenericMortalEra {}
/** Enum */
/** @name MultiSignature */
export interface MultiSignature extends Enum {
/** 0:: Ed25519(Ed25519Signature) */
readonly isEd25519: boolean;
/** Ed25519Signature */
readonly asEd25519: Ed25519Signature;
/** 1:: Sr25519(Sr25519Signature) */
readonly isSr25519: boolean;
/** Sr25519Signature */
readonly asSr25519: Sr25519Signature;
/** 2:: Ecdsa(EcdsaSignature) */
readonly isEcdsa: boolean;
/** EcdsaSignature */
readonly asEcdsa: EcdsaSignature;
}
/** GenericOrigin */
/** @name Origin */
export interface Origin extends GenericOrigin {}
/** u32 */
/** @name Perbill */
export interface Perbill extends u32 {}
/** u8 */
/** @name Percent */
export interface Percent extends u8 {}
/** u32 */
/** @name Permill */
export interface Permill extends u32 {}
/** u64 */
/** @name Perquintill */
export interface Perquintill extends u64 {}
/** Null */
/** @name Phantom */
export interface Phantom extends Null {}
/** Null */
/** @name PhantomData */
export interface PhantomData extends Null {}
/** ITuple<[ConsensusEngineId, Bytes]> */
/** @name PreRuntime */
export interface PreRuntime extends ITuple<[ConsensusEngineId, Bytes]> {}
/** ITuple<[ConsensusEngineId, Bytes]> */
/** @name Seal */
export interface Seal extends ITuple<[ConsensusEngineId, Bytes]> {}
/** ITuple<[u64, Signature]> */
/** @name SealV0 */
export interface SealV0 extends ITuple<[u64, Signature]> {}
/** H512 */
/** @name Signature */
export interface Signature extends H512 {}
/** Struct */
/** @name SignedBlock */
export interface SignedBlock extends Struct {
/** Block */
readonly block: Block;
/** Justification */
readonly justification: Justification;
}
/** GenericSignerPayload */
/** @name SignerPayload */
export interface SignerPayload extends GenericSignerPayload {}
/** Signature */
/** @name Sr25519Signature */
export interface Sr25519Signature extends Signature {}
/** AccountId */
/** @name ValidatorId */
export interface ValidatorId extends AccountId {}
/** u32 */
/** @name Weight */
export interface Weight extends u32 {}
/** Fixed64 */
/** @name WeightMultiplier */
export interface WeightMultiplier extends Fixed64 {}
+10 -10
View File
@@ -6,32 +6,32 @@ import { u32 } from '@polkadot/types/primitive';
import { AccountId, ValidatorId } from '@polkadot/types/interfaces/runtime';
import { Exposure } from '@polkadot/types/interfaces/staking';
/** Exposure */
/** @name FullIdentification */
export interface FullIdentification extends Exposure {}
/** ITuple<[ValidatorId, FullIdentification]> */
/** @name IdentificationTuple */
export interface IdentificationTuple extends ITuple<[ValidatorId, FullIdentification]> {}
/** SessionKeys4 */
/** @name Keys */
export interface Keys extends SessionKeys4 {}
/** u32 */
/** @name SessionIndex */
export interface SessionIndex extends u32 {}
/** AccountId */
/** @name SessionKeys1 */
export interface SessionKeys1 extends AccountId {}
/** ITuple<[AccountId, AccountId]> */
/** @name SessionKeys2 */
export interface SessionKeys2 extends ITuple<[AccountId, AccountId]> {}
/** ITuple<[AccountId, AccountId, AccountId]> */
/** @name SessionKeys3 */
export interface SessionKeys3 extends ITuple<[AccountId, AccountId, AccountId]> {}
/** ITuple<[AccountId, AccountId, AccountId, AccountId]> */
/** @name SessionKeys4 */
export interface SessionKeys4 extends ITuple<[AccountId, AccountId, AccountId, AccountId]> {}
/** ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId]> */
/** @name SessionKeys5 */
export interface SessionKeys5 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId]> {}
/** ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> */
/** @name SessionKeys6 */
export interface SessionKeys6 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
+7 -22
View File
@@ -6,58 +6,43 @@ import { Enum, Struct } from '@polkadot/types/codec';
import { u32 } from '@polkadot/types/primitive';
import { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name Bid */
export interface Bid extends Struct {
/** AccountId */
readonly who: AccountId;
/** BidKind */
readonly kind: BidKind;
/** Balance */
readonly value: Balance;
}
/** Enum */
/** @name BidKind */
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]> */
/** @name BidKindVouch */
export interface BidKindVouch extends ITuple<[AccountId, Balance]> {}
/** Enum */
/** @name SocietyJudgement */
export interface SocietyJudgement extends Enum {
/** 0:: Rebid */
readonly isRebid: boolean;
/** 1:: Reject */
readonly isReject: boolean;
/** 2:: Approve */
readonly isApprove: boolean;
}
/** Enum */
/** @name SocietyVote */
export interface SocietyVote extends Enum {
/** 0:: Skeptic */
readonly isSkeptic: boolean;
/** 1:: Reject */
readonly isReject: boolean;
/** 2:: Approve */
readonly isApprove: boolean;
}
/** u32 */
/** @name StrikeCount */
export interface StrikeCount extends u32 {}
/** Enum */
/** @name VouchingStatus */
export interface VouchingStatus extends Enum {
/** 0:: Vouching */
readonly isVouching: boolean;
/** 1:: Banned */
readonly isBanned: boolean;
}
+22 -68
View File
@@ -6,177 +6,131 @@ import { Compact, Enum, Struct, Vec } from '@polkadot/types/codec';
import { bool, u32 } from '@polkadot/types/primitive';
import { AccountId, Balance, BlockNumber, Moment, Perbill } from '@polkadot/types/interfaces/runtime';
/** u32 */
/** @name EraIndex */
export interface EraIndex extends u32 {}
/** Struct */
/** @name EraPoints */
export interface EraPoints extends Struct {
/** Points */
readonly total: Points;
/** Vec<Points> */
readonly individual: Vec<Points>;
}
/** Struct */
/** @name EraRewards */
export interface EraRewards extends Struct {
/** u32 */
readonly total: u32;
/** Vec<u32> */
readonly rewards: Vec<u32>;
}
/** Struct */
/** @name Exposure */
export interface Exposure extends Struct {
/** Compact<Balance> */
readonly total: Compact<Balance>;
/** Compact<Balance> */
readonly own: Compact<Balance>;
/** Vec<IndividualExposure> */
readonly others: Vec<IndividualExposure>;
}
/** Enum */
/** @name Forcing */
export interface Forcing extends Enum {
/** 0:: NotForcing */
readonly isNotForcing: boolean;
/** 1:: ForceNew */
readonly isForceNew: boolean;
/** 2:: ForceNone */
readonly isForceNone: boolean;
/** 3:: ForceAlways */
readonly isForceAlways: boolean;
}
/** Struct */
/** @name IndividualExposure */
export interface IndividualExposure extends Struct {
/** AccountId */
readonly who: AccountId;
/** Compact<Balance> */
readonly value: Compact<Balance>;
}
/** Moment */
/** @name MomentOf */
export interface MomentOf extends Moment {}
/** Struct */
/** @name Nominations */
export interface Nominations extends Struct {
/** Vec<AccountId> */
readonly targets: Vec<AccountId>;
/** EraIndex */
readonly submittedIn: EraIndex;
/** bool */
readonly suppressed: bool;
}
/** u32 */
/** @name Points */
export interface Points extends u32 {}
/** Enum */
/** @name RewardDestination */
export interface RewardDestination extends Enum {
/** 0:: Staked */
readonly isStaked: boolean;
/** 1:: Stash */
readonly isStash: boolean;
/** 2:: Controller */
readonly isController: boolean;
}
/** Struct */
/** @name SlashingSpans */
export interface SlashingSpans extends Struct {
/** SpanIndex */
readonly spanIndex: SpanIndex;
/** EraIndex */
readonly lastStart: EraIndex;
/** EraIndex */
readonly lastNonzeroSlash: EraIndex;
/** Vec<EraIndex> */
readonly prior: Vec<EraIndex>;
}
/** Struct */
/** @name SlashingSpansTo204 */
export interface SlashingSpansTo204 extends Struct {
/** SpanIndex */
readonly spanIndex: SpanIndex;
/** EraIndex */
readonly lastStart: EraIndex;
/** Vec<EraIndex> */
readonly prior: Vec<EraIndex>;
}
/** Struct */
/** @name SlashJournalEntry */
export interface SlashJournalEntry extends Struct {
/** AccountId */
readonly who: AccountId;
/** Balance */
readonly amount: Balance;
/** Balance */
readonly ownSlash: Balance;
}
/** u32 */
/** @name SpanIndex */
export interface SpanIndex extends u32 {}
/** Struct */
/** @name SpanRecord */
export interface SpanRecord extends Struct {
/** Balance */
readonly slashed: Balance;
/** Balance */
readonly paidOut: Balance;
}
/** Struct */
/** @name StakingLedger */
export interface StakingLedger extends Struct {
/** AccountId */
readonly stash: AccountId;
/** Compact<Balance> */
readonly total: Compact<Balance>;
/** Compact<Balance> */
readonly active: Compact<Balance>;
/** Vec<UnlockChunk> */
readonly unlocking: Vec<UnlockChunk>;
}
/** Struct */
/** @name UnappliedSlash */
export interface UnappliedSlash extends Struct {
/** AccountId */
readonly validator: AccountId;
/** Balance */
readonly own: Balance;
/** Vec<UnappliedSlashOther> */
readonly others: Vec<UnappliedSlashOther>;
/** Vec<AccountId> */
readonly reporters: Vec<AccountId>;
/** Balance */
readonly payout: Balance;
}
/** ITuple<[AccountId, Balance]> */
/** @name UnappliedSlashOther */
export interface UnappliedSlashOther extends ITuple<[AccountId, Balance]> {}
/** Struct */
/** @name UnlockChunk */
export interface UnlockChunk extends Struct {
/** Compact<Balance> */
readonly value: Compact<Balance>;
/** Compact<BlockNumber> */
readonly era: Compact<BlockNumber>;
}
/** Struct */
/** @name ValidatorPrefs */
export interface ValidatorPrefs extends Struct {
/** Compact<Perbill> */
readonly commission: Compact<Perbill>;
}
/** Struct */
/** @name ValidatorPrefsTo145 */
export interface ValidatorPrefsTo145 extends Struct {
/** Compact<u32> */
readonly unstakeThreshold: Compact<u32>;
/** Compact<Balance> */
readonly validatorPayment: Compact<Balance>;
}
/** Struct */
/** @name ValidatorPrefsTo196 */
export interface ValidatorPrefsTo196 extends Struct {
/** Compact<Balance> */
readonly validatorPayment: Compact<Balance>;
}
+14 -39
View File
@@ -6,102 +6,77 @@ import { Enum, Option, Result, Struct, Vec } from '@polkadot/types/codec';
import { Bytes, GenericEvent, Text, u32, u8 } from '@polkadot/types/primitive';
import { Digest, Hash } from '@polkadot/types/interfaces/runtime';
/** Digest */
/** @name DigestOf */
export interface DigestOf extends Digest {}
/** Enum */
/** @name DispatchError */
export interface DispatchError extends Enum {
/** 0:: Other */
readonly isOther: boolean;
/** 1:: CannotLookup */
readonly isCannotLookup: boolean;
/** 2:: BadOrigin */
readonly isBadOrigin: boolean;
/** 3:: Module(DispatchErrorModule) */
readonly isModule: boolean;
/** DispatchErrorModule */
readonly asModule: DispatchErrorModule;
}
/** Struct */
/** @name DispatchErrorModule */
export interface DispatchErrorModule extends Struct {
/** u8 */
readonly index: u8;
/** u8 */
readonly error: u8;
}
/** Struct */
/** @name DispatchErrorTo198 */
export interface DispatchErrorTo198 extends Struct {
/** Option<u8> */
readonly module: Option<u8>;
/** u8 */
readonly error: u8;
}
/** Result<ITuple<[]>, DispatchError> */
/** @name DispatchResult */
export interface DispatchResult extends Result<ITuple<[]>, DispatchError> {
/** Error:: (DispatchError) */
readonly isError: boolean;
/** DispatchError */
readonly asError: DispatchError;
/** Ok:: (()) */
readonly isOk: boolean;
/** ITuple<[]> */
readonly asOk: ITuple<[]>;
}
/** DispatchResult */
/** @name DispatchResultOf */
export interface DispatchResultOf extends DispatchResult {}
/** Result<ITuple<[]>, Text> */
/** @name DispatchResultTo198 */
export interface DispatchResultTo198 extends Result<ITuple<[]>, Text> {
/** Error:: (Text) */
readonly isError: boolean;
/** Text */
readonly asError: Text;
/** Ok:: (()) */
readonly isOk: boolean;
/** ITuple<[]> */
readonly asOk: ITuple<[]>;
}
/** GenericEvent */
/** @name Event */
export interface Event extends GenericEvent {}
/** Uint8Array, Codec */
/** @name EventId */
export interface EventId extends Uint8Array, Codec {}
/** u32 */
/** @name EventIndex */
export interface EventIndex extends u32 {}
/** Struct */
/** @name EventRecord */
export interface EventRecord extends Struct {
/** Phase */
readonly phase: Phase;
/** Event */
readonly event: Event;
/** Vec<Hash> */
readonly topics: Vec<Hash>;
}
/** Struct */
/** @name EventRecordTo76 */
export interface EventRecordTo76 extends Struct {
/** Phase */
readonly phase: Phase;
/** Event */
readonly event: Event;
}
/** Bytes */
/** @name Key */
export interface Key extends Bytes {}
/** Enum */
/** @name Phase */
export interface Phase extends Enum {
/** 0:: ApplyExtrinsic(u32) */
readonly isApplyExtrinsic: boolean;
/** u32 */
readonly asApplyExtrinsic: u32;
/** 1:: Finalization */
readonly isFinalization: boolean;
}
@@ -5,34 +5,25 @@ import { ITuple } from '@polkadot/types/types';
import { Option, Struct, Vec } from '@polkadot/types/codec';
import { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name OpenTip */
export interface OpenTip extends Struct {
/** Hash */
readonly reason: Hash;
/** AccountId */
readonly who: AccountId;
/** Option<OpenTipFinder> */
readonly finder: Option<OpenTipFinder>;
/** Option<BlockNumber> */
readonly closes: Option<BlockNumber>;
/** Vec<OpenTipTip> */
readonly tips: Vec<OpenTipTip>;
}
/** ITuple<[AccountId, Balance]> */
/** @name OpenTipFinder */
export interface OpenTipFinder extends ITuple<[AccountId, Balance]> {}
/** ITuple<[AccountId, Balance]> */
/** @name OpenTipTip */
export interface OpenTipTip extends ITuple<[AccountId, Balance]> {}
/** Struct */
/** @name TreasuryProposal */
export interface TreasuryProposal extends Struct {
/** AccountId */
readonly proposer: AccountId;
/** Balance */
readonly value: Balance;
/** AccountId */
readonly beneficiary: AccountId;
/** Balance */
readonly bond: Balance;
}
@@ -3,5 +3,5 @@
import { Fixed64 } from '@polkadot/types/primitive';
/** Fixed64 */
/** @name Multiplier */
export interface Multiplier extends Fixed64 {}
@@ -5,22 +5,16 @@ import { Struct, Vec } from '@polkadot/types/codec';
import { u32 } from '@polkadot/types/primitive';
import { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
/** Struct */
/** @name Multisig */
export interface Multisig extends Struct {
/** Timepoint */
readonly when: Timepoint;
/** Balance */
readonly deposit: Balance;
/** AccountId */
readonly depositor: AccountId;
/** Vec<AccountId> */
readonly approvals: Vec<AccountId>;
}
/** Struct */
/** @name Timepoint */
export interface Timepoint extends Struct {
/** BlockNumber */
readonly height: BlockNumber;
/** u32 */
readonly index: u32;
}
@@ -18,10 +18,10 @@ interface Imports extends TypeImports {
// helper to generate a `readonly <Name>: <Type>;` getter
/** @internal */
export function createGetter (definitions: object, name = '', type: string, imports: TypeImports, doc?: string): string {
export function createGetter (definitions: object, name = '', type: string, imports: TypeImports): string {
setImports(definitions, imports, [type]);
return ` /** ${doc || type} */\n readonly ${name}: ${type};\n`;
return ` readonly ${name}: ${type};\n`;
}
/** @internal */
@@ -46,12 +46,12 @@ const tsTuple = tsExport;
function tsEnum (definitions: object, { name: enumName, sub }: TypeDef, imports: TypeImports): string {
setImports(definitions, imports, ['Enum']);
const keys = (sub as TypeDef[]).map(({ info, name = '', type }, index): string => {
const keys = (sub as TypeDef[]).map(({ info, name = '', type }): string => {
const getter = stringUpperFirst(stringCamelCase(name.replace(' ', '_')));
const [enumType, asGetter] = type === 'Null'
? ['', '']
: [`(${type})`, createGetter(definitions, `as${getter}`, type, imports)];
const isGetter = createGetter(definitions, `is${getter}`, 'boolean', imports, `${index}:: ${name}${enumType}`);
const asGetter = type === 'Null'
? ''
: createGetter(definitions, `as${getter}`, type, imports);
const isGetter = createGetter(definitions, `is${getter}`, 'boolean', imports);
switch (info) {
case TypeDefInfo.Plain:
@@ -68,11 +68,11 @@ function tsEnum (definitions: object, { name: enumName, sub }: TypeDef, imports:
/** @internal */
function tsResultGetter (definitions: object, resultName = '', getter: 'Ok' | 'Error', def: TypeDef, imports: TypeImports): string {
const { info, name = '', type } = def;
const [resultType, asGetter] = type === 'Null'
? ['', '']
: [`(${type})`, createGetter(definitions, `as${getter}`, info === TypeDefInfo.Tuple ? formatType(definitions, def, imports) : type, imports)];
const isGetter = createGetter(definitions, `is${getter}`, 'boolean', imports, `${getter}:: ${name}${resultType}`);
const { info, type } = def;
const asGetter = type === 'Null'
? ''
: createGetter(definitions, `as${getter}`, info === TypeDefInfo.Tuple ? formatType(definitions, def, imports) : type, imports);
const isGetter = createGetter(definitions, `is${getter}`, 'boolean', imports);
switch (info) {
case TypeDefInfo.Plain:
@@ -26,7 +26,10 @@ export function createImportCode (header: string, checks: { file: string; types:
// helper to generate a `export interface <Name> extends <Base> {<Body>}
/** @internal */
export function exportInterface (name = '', base: string, body = ''): string {
return `/** ${base} */\nexport interface ${name} extends ${base} {${body.length ? '\n' : ''}${body}}`;
// * @description extends [[${base}]]
const doc = `/** @name ${name} */\n`;
return `${doc}export interface ${name} extends ${base} {${body.length ? '\n' : ''}${body}}`;
}
// helper to create an `export type <Name> = <Base>`