Add polkadot attestations types (#1286)

* Add polkadot attestations types

* Config updates (misc, non-related)
This commit is contained in:
Jaco Greeff
2019-08-10 00:45:37 +02:00
committed by GitHub
parent 641445e9c0
commit 40cf70f415
55 changed files with 125 additions and 1 deletions
+11
View File
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Compact, Option, Vec } from './codec';
import { Bytes, Data, Fixed64, H160, H256, H512, Null, StorageData, StorageHasher, StorageKey, Text, Type, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from './primitive';
@@ -23,6 +24,7 @@ import { DigestOf, Event, EventId, EventIndex, EventRecord, EventRecord0to76, Ke
import { TreasuryProposal } from './interfaces/treasury';
import { EcdsaSignature, EthereumAddress } from './interfaces/claims';
import { AttestedCandidate, AuctionIndex, BalanceUpload, Bidder, CandidateReceipt, CollatorSignature, EgressQueueRoot, HeadData, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, LeasePeriod, LeasePeriodOf, NewBidder, ParaId, ParaIdOf, ParachainDispatchOrigin, SlotRange, SubId, UpwardMessage, ValidatorIndex, ValidityAttestation, ValidityVote, WinningData, WinningDataEntry } from './interfaces/parachains';
import { BlockAttestations, IncludedBlocks, MoreAttestations } from './interfaces/attestations';
import { ApiId, ChainProperties, ExtrinsicOrHash, ExtrinsicStatus, Health, KeyValueOption, NetworkState, PeerInfo, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from './interfaces/rpc';
export interface InterfaceRegistry {
@@ -601,6 +603,15 @@ export interface InterfaceRegistry {
WinningData: WinningData;
'Option<WinningData>': Option<WinningData>;
'Vec<WinningData>': Vec<WinningData>;
BlockAttestations: BlockAttestations;
'Option<BlockAttestations>': Option<BlockAttestations>;
'Vec<BlockAttestations>': Vec<BlockAttestations>;
IncludedBlocks: IncludedBlocks;
'Option<IncludedBlocks>': Option<IncludedBlocks>;
'Vec<IncludedBlocks>': Vec<IncludedBlocks>;
MoreAttestations: MoreAttestations;
'Option<MoreAttestations>': Option<MoreAttestations>;
'Vec<MoreAttestations>': Vec<MoreAttestations>;
ApiId: ApiId;
'Option<ApiId>': Option<ApiId>;
'Vec<ApiId>': Vec<ApiId>;
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Enum } from '../../codec';
import { RawAuraPreDigest } from '../aura';
@@ -0,0 +1,21 @@
// Copyright 2017-2019 @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: {
BlockAttestations: {
receipt: 'CandidateReceipt',
valid: 'Vec<AccountId>',
invalid: 'Vec<AccountId>'
},
IncludedBlocks: {
actualNumber: 'BlockNumber',
session: 'SessionIndex',
randomSeed: 'H256',
activeParachains: 'Vec<ParaId>',
paraBlocks: 'Vec<Hash>'
},
MoreAttestations: {}
}
};
@@ -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,35 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Struct, Vec } from '../../codec';
import { H256 } from '../../primitive';
import { AccountId, BlockNumber, Hash } from '../runtime';
import { SessionIndex } from '../session';
import { CandidateReceipt, ParaId } from '../parachains';
/** Struct */
export interface BlockAttestations extends Struct {
/** CandidateReceipt */
readonly receipt: CandidateReceipt;
/** Vec<AccountId> */
readonly valid: Vec<AccountId>;
/** Vec<AccountId> */
readonly invalid: Vec<AccountId>;
}
/** Struct */
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 */
export interface MoreAttestations extends Struct {}
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Struct } from '../../codec';
import { u64 } from '../../primitive';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Codec } from '../../types';
import { Enum, Option } from '../../codec';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Struct } from '../../codec';
import { H256, u32, u64 } from '../../primitive';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Set, Struct } from '../../codec';
import { Balance, BlockNumber, LockIdentifier } from '../runtime';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Codec } from '../../types';
import { H160 } from '../../primitive';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Struct, Vec } from '../../codec';
import { u32 } from '../../primitive';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { AccountId } from '../runtime';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Codec } from '../../types';
import { Compact, Enum, Option, Struct } from '../../codec';
@@ -42,6 +42,7 @@ export { default as treasury } from './treasury/definitions';
// polkadot-specific types
export { default as claims } from './claims/definitions';
export { default as parachains } from './parachains/definitions';
export { default as attestations } from './attestations/definitions';
// pull in rpc last, assuming that is uses info from above
export { default as rpc } from './rpc/definitions';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Enum, Struct } from '../../codec';
import { u32 } from '../../primitive';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Enum, Struct } from '../../codec';
import { Bytes, Null, i8, u32, u64 } from '../../primitive';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Enum, Struct } from '../../codec';
import { GenericVote, u32 } from '../../primitive';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Enum, Struct } from '../../codec';
import { AccountId, Balance } from '../runtime';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Codec } from '../../types';
import { Enum, Struct, Vec } from '../../codec';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Struct, Vec } from '../../codec';
import { Bytes, u32 } from '../../primitive';
+1
View File
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Codec } from '../../types';
import { Enum, Struct, Vec } from '../../codec';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Codec } from '../../types';
import { Enum, Option, Struct, Vec } from '../../codec';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Codec } from '../../types';
import { Compact, Struct } from '../../codec';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Codec } from '../../types';
import { u32 } from '../../primitive';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Compact, Enum, Struct, Vec } from '../../codec';
import { u32 } from '../../primitive';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Codec } from '../../types';
import { Enum, Struct, Vec } from '../../codec';
@@ -1,3 +1,4 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './types';
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Struct } from '../../codec';
import { AccountId, Balance } from '../runtime';
+2
View File
@@ -1,4 +1,5 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
export * from './runtime/types';
export * from './consensus/types';
@@ -21,4 +22,5 @@ export * from './system/types';
export * from './treasury/types';
export * from './claims/types';
export * from './parachains/types';
export * from './attestations/types';
export * from './rpc/types';
+1 -1
View File
@@ -33,7 +33,7 @@ interface TypeImports {
typesTypes: TypeExist; // `import {} from '@polkadot/types/types`
}
const HEADER = '// Auto-generated via `yarn build:interfaces`, do not edit\n\n';
const HEADER = '// Auto-generated via `yarn build:interfaces`, do not edit\n/* eslint-disable @typescript-eslint/no-empty-interface */\n\n';
const FOOTER = '\n';
// Maps the types as found to the source location. This is used to generate the