Add metadata v10/11, blake2_128concat hasher (#1691)
* v11, blake2_128concat * MetadataAll * Add storage hasher v4 and v10 * Make lint pass * Add correct interfaces * Fix lint * Update metadata definitions * Update v10 metadata * Update packages/types/src/interfaces/utility/definitions.ts * Update v11 * Add HACK * Skip v9 tests (part of HACK) * Correct function names Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
This commit is contained in:
committed by
Amaury Martiny
co-authored by
Amaury Martiny
parent
131055c1d5
commit
82828d8e09
@@ -2,7 +2,7 @@
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
|
||||
import { Compact, Option, Raw, Vec } from '@polkadot/types/codec';
|
||||
import { Bytes, Data, Fixed64, H160, H256, H512, IdentityFields, Null, StorageData, StorageHasher, StorageKey, Text, Type, U256, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types/primitive';
|
||||
import { Bytes, Data, Fixed64, H160, H256, H512, IdentityFields, Null, StorageData, StorageHasherV10, StorageHasherV4, StorageKey, Text, Type, U256, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types/primitive';
|
||||
import { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, Consensus, ConsensusEngineId, Digest, DigestItem, DispatchClass, DispatchInfo, EcdsaSignature, Ed25519Signature, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV1, ExtrinsicPayloadV2, ExtrinsicPayloadV3, ExtrinsicPayloadV4, ExtrinsicUnknown, ExtrinsicV1, ExtrinsicV2, ExtrinsicV3, ExtrinsicV4, Hash, Header, ImmortalEra, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, Moment, MortalEra, MultiSignature, Origin, Perbill, Permill, Phantom, PhantomData, PreRuntime, Seal, SealV0, Signature, SignedBlock, SignerPayload, Sr25519Signature, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||
import { InclusionHeight, Uncle, UncleEntryItem } from '@polkadot/types/interfaces/authorship';
|
||||
import { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';
|
||||
@@ -24,10 +24,11 @@ import { EraIndex, EraPoints, EraRewards, Exposure, Forcing, IndividualExposure,
|
||||
import { DigestOf, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, EventRecordTo76, Key, Phase } from '@polkadot/types/interfaces/system';
|
||||
import { TreasuryProposal } from '@polkadot/types/interfaces/treasury';
|
||||
import { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
||||
import { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
||||
import { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';
|
||||
import { EthereumAddress } from '@polkadot/types/interfaces/claims';
|
||||
import { AttestedCandidate, AuctionIndex, BalanceUpload, Bidder, CandidateReceipt, CollatorId, CollatorSignature, EgressQueueRoot, HeadData, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, LeasePeriod, LeasePeriodOf, NewBidder, ParaId, ParaIdOf, ParaInfo, ParaScheduling, ParachainDispatchOrigin, Retriable, SlotRange, SubId, UpwardMessage, ValidatorIndex, ValidityAttestation, ValidityVote, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||
import { CallMetadataV0, DoubleMapTypeV10, DoubleMapTypeV3, DoubleMapTypeV4, DoubleMapTypeV5, DoubleMapTypeV6, DoubleMapTypeV7, DoubleMapTypeV8, DoubleMapTypeV9, ErrorMetadataV10, ErrorMetadataV8, ErrorMetadataV9, EventMetadataLatest, EventMetadataV0, EventMetadataV1, EventMetadataV10, EventMetadataV2, EventMetadataV3, EventMetadataV4, EventMetadataV5, EventMetadataV6, EventMetadataV7, EventMetadataV8, EventMetadataV9, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV0, FunctionArgumentMetadataV1, FunctionArgumentMetadataV10, FunctionArgumentMetadataV2, FunctionArgumentMetadataV3, FunctionArgumentMetadataV4, FunctionArgumentMetadataV5, FunctionArgumentMetadataV6, FunctionArgumentMetadataV7, FunctionArgumentMetadataV8, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV0, FunctionMetadataV1, FunctionMetadataV10, FunctionMetadataV2, FunctionMetadataV3, FunctionMetadataV4, FunctionMetadataV5, FunctionMetadataV6, FunctionMetadataV7, FunctionMetadataV8, FunctionMetadataV9, MapKindV10, MapTypeV0, MapTypeV10, MapTypeV2, MapTypeV3, MapTypeV4, MapTypeV5, MapTypeV6, MapTypeV7, MapTypeV8, MapTypeV9, MetadataAll, MetadataLatest, MetadataV0, MetadataV1, MetadataV10, MetadataV2, MetadataV3, MetadataV4, MetadataV5, MetadataV6, MetadataV7, MetadataV8, MetadataV9, ModuleConstantMetadataLatest, ModuleConstantMetadataV10, ModuleConstantMetadataV6, ModuleConstantMetadataV7, ModuleConstantMetadataV8, ModuleConstantMetadataV9, ModuleMetadataLatest, ModuleMetadataV0, ModuleMetadataV1, ModuleMetadataV10, ModuleMetadataV2, ModuleMetadataV3, ModuleMetadataV4, ModuleMetadataV5, ModuleMetadataV6, ModuleMetadataV7, ModuleMetadataV8, ModuleMetadataV9, OuterDispatchCallV0, OuterDispatchMetadataV0, OuterEventEventMetadataEventsV0, OuterEventEventMetadataV0, OuterEventMetadataV0, PlainTypeLatest, PlainTypeV0, PlainTypeV10, PlainTypeV2, PlainTypeV3, PlainTypeV4, PlainTypeV5, PlainTypeV6, PlainTypeV7, PlainTypeV8, PlainTypeV9, RuntimeModuleMetadataV0, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV6, StorageEntryMetadataV7, StorageEntryMetadataV8, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV6, StorageEntryModifierV7, StorageEntryModifierV8, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV6, StorageEntryTypeV7, StorageEntryTypeV8, StorageEntryTypeV9, StorageFunctionMetadataV0, StorageFunctionMetadataV1, StorageFunctionMetadataV2, StorageFunctionMetadataV3, StorageFunctionMetadataV4, StorageFunctionMetadataV5, StorageFunctionModifierV0, StorageFunctionModifierV1, StorageFunctionModifierV2, StorageFunctionModifierV3, StorageFunctionModifierV4, StorageFunctionModifierV5, StorageFunctionTypeV0, StorageFunctionTypeV1, StorageFunctionTypeV2, StorageFunctionTypeV3, StorageFunctionTypeV4, StorageFunctionTypeV5, StorageMetadataV0, StorageMetadataV10, StorageMetadataV7, StorageMetadataV8, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
||||
import { CallMetadataV0, DoubleMapTypeV10, DoubleMapTypeV11, DoubleMapTypeV3, DoubleMapTypeV4, DoubleMapTypeV5, DoubleMapTypeV6, DoubleMapTypeV7, DoubleMapTypeV8, DoubleMapTypeV9, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV8, ErrorMetadataV9, EventMetadataLatest, EventMetadataV0, EventMetadataV1, EventMetadataV10, EventMetadataV11, EventMetadataV2, EventMetadataV3, EventMetadataV4, EventMetadataV5, EventMetadataV6, EventMetadataV7, EventMetadataV8, EventMetadataV9, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV0, FunctionArgumentMetadataV1, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV2, FunctionArgumentMetadataV3, FunctionArgumentMetadataV4, FunctionArgumentMetadataV5, FunctionArgumentMetadataV6, FunctionArgumentMetadataV7, FunctionArgumentMetadataV8, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV0, FunctionMetadataV1, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV2, FunctionMetadataV3, FunctionMetadataV4, FunctionMetadataV5, FunctionMetadataV6, FunctionMetadataV7, FunctionMetadataV8, FunctionMetadataV9, MapKindV11, MapTypeV0, MapTypeV10, MapTypeV11, MapTypeV2, MapTypeV3, MapTypeV4, MapTypeV5, MapTypeV6, MapTypeV7, MapTypeV8, MapTypeV9, MetadataAll, MetadataLatest, MetadataV0, MetadataV1, MetadataV10, MetadataV11, MetadataV2, MetadataV3, MetadataV4, MetadataV5, MetadataV6, MetadataV7, MetadataV8, MetadataV9, ModuleConstantMetadataLatest, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV6, ModuleConstantMetadataV7, ModuleConstantMetadataV8, ModuleConstantMetadataV9, ModuleMetadataLatest, ModuleMetadataV0, ModuleMetadataV1, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV2, ModuleMetadataV3, ModuleMetadataV4, ModuleMetadataV5, ModuleMetadataV6, ModuleMetadataV7, ModuleMetadataV8, ModuleMetadataV9, OuterDispatchCallV0, OuterDispatchMetadataV0, OuterEventEventMetadataEventsV0, OuterEventEventMetadataV0, OuterEventMetadataV0, PlainTypeLatest, PlainTypeV0, PlainTypeV10, PlainTypeV11, PlainTypeV2, PlainTypeV3, PlainTypeV4, PlainTypeV5, PlainTypeV6, PlainTypeV7, PlainTypeV8, PlainTypeV9, RuntimeModuleMetadataV0, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV6, StorageEntryMetadataV7, StorageEntryMetadataV8, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV6, StorageEntryModifierV7, StorageEntryModifierV8, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV6, StorageEntryTypeV7, StorageEntryTypeV8, StorageEntryTypeV9, StorageFunctionMetadataV0, StorageFunctionMetadataV1, StorageFunctionMetadataV2, StorageFunctionMetadataV3, StorageFunctionMetadataV4, StorageFunctionMetadataV5, StorageFunctionModifierV0, StorageFunctionModifierV1, StorageFunctionModifierV2, StorageFunctionModifierV3, StorageFunctionModifierV4, StorageFunctionModifierV5, StorageFunctionTypeV0, StorageFunctionTypeV1, StorageFunctionTypeV2, StorageFunctionTypeV3, StorageFunctionTypeV4, StorageFunctionTypeV5, StorageHasher, StorageHasherV11, StorageHasherV5, StorageHasherV6, StorageHasherV7, StorageHasherV8, StorageHasherV9, StorageMetadataV0, StorageMetadataV10, StorageMetadataV11, StorageMetadataV7, StorageMetadataV8, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
||||
import { ApiId, BlockHash, ChainProperties, ExtrinsicOrHash, ExtrinsicStatus, Health, KeyValueOption, NetworkState, PeerInfo, RpcMethods, RuntimeDispatchInfo, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/rpc';
|
||||
|
||||
export interface InterfaceRegistry {
|
||||
@@ -79,9 +80,12 @@ export interface InterfaceRegistry {
|
||||
StorageData: StorageData;
|
||||
'Option<StorageData>': Option<StorageData>;
|
||||
'Vec<StorageData>': Vec<StorageData>;
|
||||
StorageHasher: StorageHasher;
|
||||
'Option<StorageHasher>': Option<StorageHasher>;
|
||||
'Vec<StorageHasher>': Vec<StorageHasher>;
|
||||
StorageHasherV10: StorageHasherV10;
|
||||
'Option<StorageHasherV10>': Option<StorageHasherV10>;
|
||||
'Vec<StorageHasherV10>': Vec<StorageHasherV10>;
|
||||
StorageHasherV4: StorageHasherV4;
|
||||
'Option<StorageHasherV4>': Option<StorageHasherV4>;
|
||||
'Vec<StorageHasherV4>': Vec<StorageHasherV4>;
|
||||
StorageKey: StorageKey;
|
||||
'Option<StorageKey>': Option<StorageKey>;
|
||||
'Vec<StorageKey>': Vec<StorageKey>;
|
||||
@@ -745,6 +749,12 @@ export interface InterfaceRegistry {
|
||||
Multiplier: Multiplier;
|
||||
'Option<Multiplier>': Option<Multiplier>;
|
||||
'Vec<Multiplier>': Vec<Multiplier>;
|
||||
Timepoint: Timepoint;
|
||||
'Option<Timepoint>': Option<Timepoint>;
|
||||
'Vec<Timepoint>': Vec<Timepoint>;
|
||||
Multisig: Multisig;
|
||||
'Option<Multisig>': Option<Multisig>;
|
||||
'Vec<Multisig>': Vec<Multisig>;
|
||||
BlockAttestations: BlockAttestations;
|
||||
'Option<BlockAttestations>': Option<BlockAttestations>;
|
||||
'Vec<BlockAttestations>': Vec<BlockAttestations>;
|
||||
@@ -1055,6 +1065,9 @@ export interface InterfaceRegistry {
|
||||
StorageFunctionTypeV5: StorageFunctionTypeV5;
|
||||
'Option<StorageFunctionTypeV5>': Option<StorageFunctionTypeV5>;
|
||||
'Vec<StorageFunctionTypeV5>': Vec<StorageFunctionTypeV5>;
|
||||
StorageHasherV5: StorageHasherV5;
|
||||
'Option<StorageHasherV5>': Option<StorageHasherV5>;
|
||||
'Vec<StorageHasherV5>': Vec<StorageHasherV5>;
|
||||
DoubleMapTypeV6: DoubleMapTypeV6;
|
||||
'Option<DoubleMapTypeV6>': Option<DoubleMapTypeV6>;
|
||||
'Vec<DoubleMapTypeV6>': Vec<DoubleMapTypeV6>;
|
||||
@@ -1091,6 +1104,9 @@ export interface InterfaceRegistry {
|
||||
StorageEntryTypeV6: StorageEntryTypeV6;
|
||||
'Option<StorageEntryTypeV6>': Option<StorageEntryTypeV6>;
|
||||
'Vec<StorageEntryTypeV6>': Vec<StorageEntryTypeV6>;
|
||||
StorageHasherV6: StorageHasherV6;
|
||||
'Option<StorageHasherV6>': Option<StorageHasherV6>;
|
||||
'Vec<StorageHasherV6>': Vec<StorageHasherV6>;
|
||||
DoubleMapTypeV7: DoubleMapTypeV7;
|
||||
'Option<DoubleMapTypeV7>': Option<DoubleMapTypeV7>;
|
||||
'Vec<DoubleMapTypeV7>': Vec<DoubleMapTypeV7>;
|
||||
@@ -1127,6 +1143,9 @@ export interface InterfaceRegistry {
|
||||
StorageEntryTypeV7: StorageEntryTypeV7;
|
||||
'Option<StorageEntryTypeV7>': Option<StorageEntryTypeV7>;
|
||||
'Vec<StorageEntryTypeV7>': Vec<StorageEntryTypeV7>;
|
||||
StorageHasherV7: StorageHasherV7;
|
||||
'Option<StorageHasherV7>': Option<StorageHasherV7>;
|
||||
'Vec<StorageHasherV7>': Vec<StorageHasherV7>;
|
||||
StorageMetadataV7: StorageMetadataV7;
|
||||
'Option<StorageMetadataV7>': Option<StorageMetadataV7>;
|
||||
'Vec<StorageMetadataV7>': Vec<StorageMetadataV7>;
|
||||
@@ -1169,6 +1188,9 @@ export interface InterfaceRegistry {
|
||||
StorageEntryTypeV8: StorageEntryTypeV8;
|
||||
'Option<StorageEntryTypeV8>': Option<StorageEntryTypeV8>;
|
||||
'Vec<StorageEntryTypeV8>': Vec<StorageEntryTypeV8>;
|
||||
StorageHasherV8: StorageHasherV8;
|
||||
'Option<StorageHasherV8>': Option<StorageHasherV8>;
|
||||
'Vec<StorageHasherV8>': Vec<StorageHasherV8>;
|
||||
StorageMetadataV8: StorageMetadataV8;
|
||||
'Option<StorageMetadataV8>': Option<StorageMetadataV8>;
|
||||
'Vec<StorageMetadataV8>': Vec<StorageMetadataV8>;
|
||||
@@ -1211,6 +1233,9 @@ export interface InterfaceRegistry {
|
||||
StorageEntryTypeV9: StorageEntryTypeV9;
|
||||
'Option<StorageEntryTypeV9>': Option<StorageEntryTypeV9>;
|
||||
'Vec<StorageEntryTypeV9>': Vec<StorageEntryTypeV9>;
|
||||
StorageHasherV9: StorageHasherV9;
|
||||
'Option<StorageHasherV9>': Option<StorageHasherV9>;
|
||||
'Vec<StorageHasherV9>': Vec<StorageHasherV9>;
|
||||
StorageMetadataV9: StorageMetadataV9;
|
||||
'Option<StorageMetadataV9>': Option<StorageMetadataV9>;
|
||||
'Vec<StorageMetadataV9>': Vec<StorageMetadataV9>;
|
||||
@@ -1229,9 +1254,6 @@ export interface InterfaceRegistry {
|
||||
FunctionMetadataV10: FunctionMetadataV10;
|
||||
'Option<FunctionMetadataV10>': Option<FunctionMetadataV10>;
|
||||
'Vec<FunctionMetadataV10>': Vec<FunctionMetadataV10>;
|
||||
MapKindV10: MapKindV10;
|
||||
'Option<MapKindV10>': Option<MapKindV10>;
|
||||
'Vec<MapKindV10>': Vec<MapKindV10>;
|
||||
MapTypeV10: MapTypeV10;
|
||||
'Option<MapTypeV10>': Option<MapTypeV10>;
|
||||
'Vec<MapTypeV10>': Vec<MapTypeV10>;
|
||||
@@ -1259,6 +1281,54 @@ export interface InterfaceRegistry {
|
||||
StorageMetadataV10: StorageMetadataV10;
|
||||
'Option<StorageMetadataV10>': Option<StorageMetadataV10>;
|
||||
'Vec<StorageMetadataV10>': Vec<StorageMetadataV10>;
|
||||
DoubleMapTypeV11: DoubleMapTypeV11;
|
||||
'Option<DoubleMapTypeV11>': Option<DoubleMapTypeV11>;
|
||||
'Vec<DoubleMapTypeV11>': Vec<DoubleMapTypeV11>;
|
||||
ErrorMetadataV11: ErrorMetadataV11;
|
||||
'Option<ErrorMetadataV11>': Option<ErrorMetadataV11>;
|
||||
'Vec<ErrorMetadataV11>': Vec<ErrorMetadataV11>;
|
||||
EventMetadataV11: EventMetadataV11;
|
||||
'Option<EventMetadataV11>': Option<EventMetadataV11>;
|
||||
'Vec<EventMetadataV11>': Vec<EventMetadataV11>;
|
||||
FunctionArgumentMetadataV11: FunctionArgumentMetadataV11;
|
||||
'Option<FunctionArgumentMetadataV11>': Option<FunctionArgumentMetadataV11>;
|
||||
'Vec<FunctionArgumentMetadataV11>': Vec<FunctionArgumentMetadataV11>;
|
||||
FunctionMetadataV11: FunctionMetadataV11;
|
||||
'Option<FunctionMetadataV11>': Option<FunctionMetadataV11>;
|
||||
'Vec<FunctionMetadataV11>': Vec<FunctionMetadataV11>;
|
||||
MapKindV11: MapKindV11;
|
||||
'Option<MapKindV11>': Option<MapKindV11>;
|
||||
'Vec<MapKindV11>': Vec<MapKindV11>;
|
||||
MapTypeV11: MapTypeV11;
|
||||
'Option<MapTypeV11>': Option<MapTypeV11>;
|
||||
'Vec<MapTypeV11>': Vec<MapTypeV11>;
|
||||
MetadataV11: MetadataV11;
|
||||
'Option<MetadataV11>': Option<MetadataV11>;
|
||||
'Vec<MetadataV11>': Vec<MetadataV11>;
|
||||
ModuleConstantMetadataV11: ModuleConstantMetadataV11;
|
||||
'Option<ModuleConstantMetadataV11>': Option<ModuleConstantMetadataV11>;
|
||||
'Vec<ModuleConstantMetadataV11>': Vec<ModuleConstantMetadataV11>;
|
||||
ModuleMetadataV11: ModuleMetadataV11;
|
||||
'Option<ModuleMetadataV11>': Option<ModuleMetadataV11>;
|
||||
'Vec<ModuleMetadataV11>': Vec<ModuleMetadataV11>;
|
||||
PlainTypeV11: PlainTypeV11;
|
||||
'Option<PlainTypeV11>': Option<PlainTypeV11>;
|
||||
'Vec<PlainTypeV11>': Vec<PlainTypeV11>;
|
||||
StorageEntryModifierV11: StorageEntryModifierV11;
|
||||
'Option<StorageEntryModifierV11>': Option<StorageEntryModifierV11>;
|
||||
'Vec<StorageEntryModifierV11>': Vec<StorageEntryModifierV11>;
|
||||
StorageEntryMetadataV11: StorageEntryMetadataV11;
|
||||
'Option<StorageEntryMetadataV11>': Option<StorageEntryMetadataV11>;
|
||||
'Vec<StorageEntryMetadataV11>': Vec<StorageEntryMetadataV11>;
|
||||
StorageEntryTypeV11: StorageEntryTypeV11;
|
||||
'Option<StorageEntryTypeV11>': Option<StorageEntryTypeV11>;
|
||||
'Vec<StorageEntryTypeV11>': Vec<StorageEntryTypeV11>;
|
||||
StorageHasherV11: StorageHasherV11;
|
||||
'Option<StorageHasherV11>': Option<StorageHasherV11>;
|
||||
'Vec<StorageHasherV11>': Vec<StorageHasherV11>;
|
||||
StorageMetadataV11: StorageMetadataV11;
|
||||
'Option<StorageMetadataV11>': Option<StorageMetadataV11>;
|
||||
'Vec<StorageMetadataV11>': Vec<StorageMetadataV11>;
|
||||
EventMetadataLatest: EventMetadataLatest;
|
||||
'Option<EventMetadataLatest>': Option<EventMetadataLatest>;
|
||||
'Vec<EventMetadataLatest>': Vec<EventMetadataLatest>;
|
||||
@@ -1289,6 +1359,9 @@ export interface InterfaceRegistry {
|
||||
StorageEntryTypeLatest: StorageEntryTypeLatest;
|
||||
'Option<StorageEntryTypeLatest>': Option<StorageEntryTypeLatest>;
|
||||
'Vec<StorageEntryTypeLatest>': Vec<StorageEntryTypeLatest>;
|
||||
StorageHasher: StorageHasher;
|
||||
'Option<StorageHasher>': Option<StorageHasher>;
|
||||
'Vec<StorageHasher>': Vec<StorageHasher>;
|
||||
MetadataAll: MetadataAll;
|
||||
'Option<MetadataAll>': Option<MetadataAll>;
|
||||
'Vec<MetadataAll>': Vec<MetadataAll>;
|
||||
|
||||
@@ -26,6 +26,7 @@ export { default as staking } from './staking/definitions';
|
||||
export { default as system } from './system/definitions';
|
||||
export { default as treasury } from './treasury/definitions';
|
||||
export { default as txpayment } from './txpayment/definitions';
|
||||
export { default as utility } from './utility/definitions';
|
||||
|
||||
// polkadot-specific types
|
||||
export { default as attestations } from './attestations/definitions';
|
||||
|
||||
@@ -176,7 +176,7 @@ export default {
|
||||
|
||||
// v4
|
||||
DoubleMapTypeV4: {
|
||||
hasher: 'StorageHasher',
|
||||
hasher: 'StorageHasherV4',
|
||||
key1: 'Type',
|
||||
key2: 'Type',
|
||||
value: 'Type',
|
||||
@@ -186,7 +186,7 @@ export default {
|
||||
FunctionArgumentMetadataV4: 'FunctionArgumentMetadataV3',
|
||||
FunctionMetadataV4: 'FunctionMetadataV3',
|
||||
MapTypeV4: {
|
||||
hasher: 'StorageHasher',
|
||||
hasher: 'StorageHasherV4',
|
||||
key: 'Type',
|
||||
value: 'Type',
|
||||
linked: 'bool'
|
||||
@@ -220,11 +220,11 @@ export default {
|
||||
|
||||
// v5
|
||||
DoubleMapTypeV5: {
|
||||
hasher: 'StorageHasher',
|
||||
hasher: 'StorageHasherV5',
|
||||
key1: 'Type',
|
||||
key2: 'Type',
|
||||
value: 'Type',
|
||||
key2Hasher: 'StorageHasher'
|
||||
key2Hasher: 'StorageHasherV5'
|
||||
},
|
||||
EventMetadataV5: 'EventMetadataV4',
|
||||
FunctionArgumentMetadataV5: 'FunctionArgumentMetadataV4',
|
||||
@@ -256,6 +256,7 @@ export default {
|
||||
DoubleMap: 'DoubleMapTypeV5'
|
||||
}
|
||||
},
|
||||
StorageHasherV5: 'StorageHasherV4',
|
||||
|
||||
// v6
|
||||
DoubleMapTypeV6: 'DoubleMapTypeV5',
|
||||
@@ -284,6 +285,7 @@ export default {
|
||||
StorageEntryModifierV6: 'StorageFunctionModifierV5',
|
||||
StorageEntryMetadataV6: 'StorageFunctionMetadataV5',
|
||||
StorageEntryTypeV6: 'StorageFunctionTypeV5',
|
||||
StorageHasherV6: 'StorageHasherV5',
|
||||
|
||||
// v7
|
||||
DoubleMapTypeV7: 'DoubleMapTypeV6',
|
||||
@@ -306,6 +308,7 @@ export default {
|
||||
StorageEntryModifierV7: 'StorageEntryModifierV6',
|
||||
StorageEntryMetadataV7: 'StorageEntryMetadataV6',
|
||||
StorageEntryTypeV7: 'StorageEntryTypeV6',
|
||||
StorageHasherV7: 'StorageHasherV6',
|
||||
StorageMetadataV7: {
|
||||
prefix: 'Text',
|
||||
items: 'Vec<StorageEntryMetadataV7>'
|
||||
@@ -337,6 +340,7 @@ export default {
|
||||
StorageEntryModifierV8: 'StorageEntryModifierV7',
|
||||
StorageEntryMetadataV8: 'StorageEntryMetadataV7',
|
||||
StorageEntryTypeV8: 'StorageEntryTypeV7',
|
||||
StorageHasherV8: 'StorageHasherV7',
|
||||
StorageMetadataV8: 'StorageMetadataV7',
|
||||
|
||||
// v9
|
||||
@@ -353,22 +357,26 @@ export default {
|
||||
StorageEntryModifierV9: 'StorageEntryModifierV8',
|
||||
StorageEntryMetadataV9: 'StorageEntryMetadataV8',
|
||||
StorageEntryTypeV9: 'StorageEntryTypeV8',
|
||||
StorageHasherV9: 'StorageHasherV8',
|
||||
StorageMetadataV9: 'StorageMetadataV8',
|
||||
|
||||
// v10
|
||||
DoubleMapTypeV10: 'DoubleMapTypeV9',
|
||||
DoubleMapTypeV10: {
|
||||
hasher: 'StorageHasherV10',
|
||||
key1: 'Type',
|
||||
key2: 'Type',
|
||||
value: 'Type',
|
||||
key2Hasher: 'StorageHasherV10'
|
||||
},
|
||||
ErrorMetadataV10: 'ErrorMetadataV9',
|
||||
EventMetadataV10: 'EventMetadataV9',
|
||||
FunctionArgumentMetadataV10: 'FunctionArgumentMetadataV9',
|
||||
FunctionMetadataV10: 'FunctionMetadataV9',
|
||||
MapKindV10: {
|
||||
_enum: ['Map', 'LinkedMap', 'PrefixedMap']
|
||||
},
|
||||
MapTypeV10: {
|
||||
hasher: 'StorageHasher',
|
||||
hasher: 'StorageHasherV10',
|
||||
key: 'Type',
|
||||
value: 'Type',
|
||||
kind: 'MapKindV10'
|
||||
linked: 'bool'
|
||||
},
|
||||
MetadataV10: {
|
||||
modules: 'Vec<ModuleMetadataV10>'
|
||||
@@ -403,17 +411,67 @@ export default {
|
||||
items: 'Vec<StorageEntryMetadataV10>'
|
||||
},
|
||||
|
||||
// v11
|
||||
DoubleMapTypeV11: 'DoubleMapTypeV10',
|
||||
ErrorMetadataV11: 'ErrorMetadataV10',
|
||||
EventMetadataV11: 'EventMetadataV10',
|
||||
FunctionArgumentMetadataV11: 'FunctionArgumentMetadataV10',
|
||||
FunctionMetadataV11: 'FunctionMetadataV10',
|
||||
MapKindV11: {
|
||||
_enum: ['Map', 'LinkedMap', 'PrefixedMap']
|
||||
},
|
||||
MapTypeV11: {
|
||||
hasher: 'StorageHasherV11',
|
||||
key: 'Type',
|
||||
value: 'Type',
|
||||
kind: 'MapKindV11'
|
||||
},
|
||||
MetadataV11: {
|
||||
modules: 'Vec<ModuleMetadataV11>'
|
||||
},
|
||||
ModuleConstantMetadataV11: 'ModuleConstantMetadataV10',
|
||||
ModuleMetadataV11: {
|
||||
name: 'Text',
|
||||
storage: 'Option<StorageMetadataV11>',
|
||||
calls: 'Option<Vec<FunctionMetadataV11>>',
|
||||
events: 'Option<Vec<EventMetadataV11>>',
|
||||
constants: 'Vec<ModuleConstantMetadataV11>',
|
||||
errors: 'Vec<ErrorMetadataV11>'
|
||||
},
|
||||
PlainTypeV11: 'Type',
|
||||
StorageEntryModifierV11: 'StorageEntryModifierV10',
|
||||
StorageEntryMetadataV11: {
|
||||
name: 'Text',
|
||||
modifier: 'StorageEntryModifierV11',
|
||||
type: 'StorageEntryTypeV11',
|
||||
fallback: 'Bytes',
|
||||
documentation: 'Vec<Text>'
|
||||
},
|
||||
StorageEntryTypeV11: {
|
||||
_enum: {
|
||||
Plain: 'PlainTypeV11',
|
||||
Map: 'MapTypeV11',
|
||||
DoubleMap: 'DoubleMapTypeV11'
|
||||
}
|
||||
},
|
||||
StorageHasherV11: 'StorageHasherV10',
|
||||
StorageMetadataV11: {
|
||||
prefix: 'Text',
|
||||
items: 'Vec<StorageEntryMetadataV11>'
|
||||
},
|
||||
|
||||
// This always maps to the latest
|
||||
EventMetadataLatest: 'EventMetadataV10',
|
||||
FunctionArgumentMetadataLatest: 'FunctionArgumentMetadataV10',
|
||||
FunctionMetadataLatest: 'FunctionMetadataV10',
|
||||
MetadataLatest: 'MetadataV10',
|
||||
ModuleConstantMetadataLatest: 'ModuleConstantMetadataV10',
|
||||
ModuleMetadataLatest: 'ModuleMetadataV10',
|
||||
PlainTypeLatest: 'PlainTypeV10',
|
||||
StorageEntryMetadataLatest: 'StorageEntryMetadataV10',
|
||||
StorageEntryModifierLatest: 'StorageEntryModifierV10',
|
||||
StorageEntryTypeLatest: 'StorageEntryTypeV10',
|
||||
EventMetadataLatest: 'EventMetadataV11',
|
||||
FunctionArgumentMetadataLatest: 'FunctionArgumentMetadataV11',
|
||||
FunctionMetadataLatest: 'FunctionMetadataV11',
|
||||
MetadataLatest: 'MetadataV11',
|
||||
ModuleConstantMetadataLatest: 'ModuleConstantMetadataV11',
|
||||
ModuleMetadataLatest: 'ModuleMetadataV11',
|
||||
PlainTypeLatest: 'PlainTypeV11',
|
||||
StorageEntryMetadataLatest: 'StorageEntryMetadataV11',
|
||||
StorageEntryModifierLatest: 'StorageEntryModifierV11',
|
||||
StorageEntryTypeLatest: 'StorageEntryTypeV11',
|
||||
StorageHasher: 'StorageHasherV11',
|
||||
|
||||
// the enum containing all the mappings
|
||||
MetadataAll: {
|
||||
@@ -428,7 +486,8 @@ export default {
|
||||
V7: 'MetadataV7',
|
||||
V8: 'MetadataV8',
|
||||
V9: 'MetadataV9',
|
||||
V10: 'MetadataV10'
|
||||
V10: 'MetadataV10',
|
||||
V11: 'MetadataV11'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import { ITuple } from '@polkadot/types/types';
|
||||
import { Enum, Option, Struct, Vec } from '@polkadot/types/codec';
|
||||
import { Bytes, StorageHasher, Text, Type, bool, u16 } from '@polkadot/types/primitive';
|
||||
import { Bytes, StorageHasherV10, StorageHasherV4, Text, Type, bool, u16 } from '@polkadot/types/primitive';
|
||||
|
||||
/** Struct */
|
||||
export interface CallMetadataV0 extends Struct {
|
||||
@@ -13,8 +13,22 @@ export interface CallMetadataV0 extends Struct {
|
||||
readonly functions: Vec<FunctionMetadataV0>;
|
||||
}
|
||||
|
||||
/** DoubleMapTypeV9 */
|
||||
export interface DoubleMapTypeV10 extends DoubleMapTypeV9 {}
|
||||
/** Struct */
|
||||
export interface DoubleMapTypeV10 extends Struct {
|
||||
/** StorageHasherV10 */
|
||||
readonly hasher: StorageHasherV10;
|
||||
/** Type */
|
||||
readonly key1: Type;
|
||||
/** Type */
|
||||
readonly key2: Type;
|
||||
/** Type */
|
||||
readonly value: Type;
|
||||
/** StorageHasherV10 */
|
||||
readonly key2Hasher: StorageHasherV10;
|
||||
}
|
||||
|
||||
/** DoubleMapTypeV10 */
|
||||
export interface DoubleMapTypeV11 extends DoubleMapTypeV10 {}
|
||||
|
||||
/** Struct */
|
||||
export interface DoubleMapTypeV3 extends Struct {
|
||||
@@ -30,8 +44,8 @@ export interface DoubleMapTypeV3 extends Struct {
|
||||
|
||||
/** Struct */
|
||||
export interface DoubleMapTypeV4 extends Struct {
|
||||
/** StorageHasher */
|
||||
readonly hasher: StorageHasher;
|
||||
/** StorageHasherV4 */
|
||||
readonly hasher: StorageHasherV4;
|
||||
/** Type */
|
||||
readonly key1: Type;
|
||||
/** Type */
|
||||
@@ -44,16 +58,16 @@ export interface DoubleMapTypeV4 extends Struct {
|
||||
|
||||
/** Struct */
|
||||
export interface DoubleMapTypeV5 extends Struct {
|
||||
/** StorageHasher */
|
||||
readonly hasher: StorageHasher;
|
||||
/** StorageHasherV5 */
|
||||
readonly hasher: StorageHasherV5;
|
||||
/** Type */
|
||||
readonly key1: Type;
|
||||
/** Type */
|
||||
readonly key2: Type;
|
||||
/** Type */
|
||||
readonly value: Type;
|
||||
/** StorageHasher */
|
||||
readonly key2Hasher: StorageHasher;
|
||||
/** StorageHasherV5 */
|
||||
readonly key2Hasher: StorageHasherV5;
|
||||
}
|
||||
|
||||
/** DoubleMapTypeV5 */
|
||||
@@ -71,6 +85,9 @@ export interface DoubleMapTypeV9 extends DoubleMapTypeV8 {}
|
||||
/** ErrorMetadataV9 */
|
||||
export interface ErrorMetadataV10 extends ErrorMetadataV9 {}
|
||||
|
||||
/** ErrorMetadataV10 */
|
||||
export interface ErrorMetadataV11 extends ErrorMetadataV10 {}
|
||||
|
||||
/** Struct */
|
||||
export interface ErrorMetadataV8 extends Struct {
|
||||
/** Text */
|
||||
@@ -82,8 +99,8 @@ export interface ErrorMetadataV8 extends Struct {
|
||||
/** ErrorMetadataV8 */
|
||||
export interface ErrorMetadataV9 extends ErrorMetadataV8 {}
|
||||
|
||||
/** EventMetadataV10 */
|
||||
export interface EventMetadataLatest extends EventMetadataV10 {}
|
||||
/** EventMetadataV11 */
|
||||
export interface EventMetadataLatest extends EventMetadataV11 {}
|
||||
|
||||
/** Struct */
|
||||
export interface EventMetadataV0 extends Struct {
|
||||
@@ -101,6 +118,9 @@ export interface EventMetadataV1 extends EventMetadataV0 {}
|
||||
/** EventMetadataV9 */
|
||||
export interface EventMetadataV10 extends EventMetadataV9 {}
|
||||
|
||||
/** EventMetadataV10 */
|
||||
export interface EventMetadataV11 extends EventMetadataV10 {}
|
||||
|
||||
/** EventMetadataV1 */
|
||||
export interface EventMetadataV2 extends EventMetadataV1 {}
|
||||
|
||||
@@ -125,8 +145,8 @@ export interface EventMetadataV8 extends EventMetadataV7 {}
|
||||
/** EventMetadataV8 */
|
||||
export interface EventMetadataV9 extends EventMetadataV8 {}
|
||||
|
||||
/** FunctionArgumentMetadataV10 */
|
||||
export interface FunctionArgumentMetadataLatest extends FunctionArgumentMetadataV10 {}
|
||||
/** FunctionArgumentMetadataV11 */
|
||||
export interface FunctionArgumentMetadataLatest extends FunctionArgumentMetadataV11 {}
|
||||
|
||||
/** Struct */
|
||||
export interface FunctionArgumentMetadataV0 extends Struct {
|
||||
@@ -142,6 +162,9 @@ export interface FunctionArgumentMetadataV1 extends FunctionArgumentMetadataV0 {
|
||||
/** FunctionArgumentMetadataV9 */
|
||||
export interface FunctionArgumentMetadataV10 extends FunctionArgumentMetadataV9 {}
|
||||
|
||||
/** FunctionArgumentMetadataV10 */
|
||||
export interface FunctionArgumentMetadataV11 extends FunctionArgumentMetadataV10 {}
|
||||
|
||||
/** FunctionArgumentMetadataV1 */
|
||||
export interface FunctionArgumentMetadataV2 extends FunctionArgumentMetadataV1 {}
|
||||
|
||||
@@ -166,8 +189,8 @@ export interface FunctionArgumentMetadataV8 extends FunctionArgumentMetadataV7 {
|
||||
/** FunctionArgumentMetadataV8 */
|
||||
export interface FunctionArgumentMetadataV9 extends FunctionArgumentMetadataV8 {}
|
||||
|
||||
/** FunctionMetadataV10 */
|
||||
export interface FunctionMetadataLatest extends FunctionMetadataV10 {}
|
||||
/** FunctionMetadataV11 */
|
||||
export interface FunctionMetadataLatest extends FunctionMetadataV11 {}
|
||||
|
||||
/** Struct */
|
||||
export interface FunctionMetadataV0 extends Struct {
|
||||
@@ -194,6 +217,9 @@ export interface FunctionMetadataV1 extends Struct {
|
||||
/** FunctionMetadataV9 */
|
||||
export interface FunctionMetadataV10 extends FunctionMetadataV9 {}
|
||||
|
||||
/** FunctionMetadataV10 */
|
||||
export interface FunctionMetadataV11 extends FunctionMetadataV10 {}
|
||||
|
||||
/** FunctionMetadataV1 */
|
||||
export interface FunctionMetadataV2 extends FunctionMetadataV1 {}
|
||||
|
||||
@@ -219,7 +245,7 @@ export interface FunctionMetadataV8 extends FunctionMetadataV7 {}
|
||||
export interface FunctionMetadataV9 extends FunctionMetadataV8 {}
|
||||
|
||||
/** Enum */
|
||||
export interface MapKindV10 extends Enum {
|
||||
export interface MapKindV11 extends Enum {
|
||||
/** 0:: Map */
|
||||
readonly isMap: boolean;
|
||||
/** 1:: LinkedMap */
|
||||
@@ -238,14 +264,26 @@ export interface MapTypeV0 extends Struct {
|
||||
|
||||
/** Struct */
|
||||
export interface MapTypeV10 extends Struct {
|
||||
/** StorageHasher */
|
||||
readonly hasher: StorageHasher;
|
||||
/** StorageHasherV10 */
|
||||
readonly hasher: StorageHasherV10;
|
||||
/** Type */
|
||||
readonly key: Type;
|
||||
/** Type */
|
||||
readonly value: Type;
|
||||
/** MapKindV10 */
|
||||
readonly kind: MapKindV10;
|
||||
/** bool */
|
||||
readonly linked: bool;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface MapTypeV11 extends Struct {
|
||||
/** StorageHasherV11 */
|
||||
readonly hasher: StorageHasherV11;
|
||||
/** Type */
|
||||
readonly key: Type;
|
||||
/** Type */
|
||||
readonly value: Type;
|
||||
/** MapKindV11 */
|
||||
readonly kind: MapKindV11;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
@@ -263,8 +301,8 @@ export interface MapTypeV3 extends MapTypeV2 {}
|
||||
|
||||
/** Struct */
|
||||
export interface MapTypeV4 extends Struct {
|
||||
/** StorageHasher */
|
||||
readonly hasher: StorageHasher;
|
||||
/** StorageHasherV4 */
|
||||
readonly hasher: StorageHasherV4;
|
||||
/** Type */
|
||||
readonly key: Type;
|
||||
/** Type */
|
||||
@@ -334,10 +372,14 @@ export interface MetadataAll extends Enum {
|
||||
readonly isV10: boolean;
|
||||
/** MetadataV10 */
|
||||
readonly asV10: MetadataV10;
|
||||
/** 11:: V11(MetadataV11) */
|
||||
readonly isV11: boolean;
|
||||
/** MetadataV11 */
|
||||
readonly asV11: MetadataV11;
|
||||
}
|
||||
|
||||
/** MetadataV10 */
|
||||
export interface MetadataLatest extends MetadataV10 {}
|
||||
/** MetadataV11 */
|
||||
export interface MetadataLatest extends MetadataV11 {}
|
||||
|
||||
/** Struct */
|
||||
export interface MetadataV0 extends Struct {
|
||||
@@ -361,6 +403,12 @@ export interface MetadataV10 extends Struct {
|
||||
readonly modules: Vec<ModuleMetadataV10>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface MetadataV11 extends Struct {
|
||||
/** Vec<ModuleMetadataV11> */
|
||||
readonly modules: Vec<ModuleMetadataV11>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface MetadataV2 extends Struct {
|
||||
/** Vec<ModuleMetadataV2> */
|
||||
@@ -406,12 +454,15 @@ export interface MetadataV8 extends Struct {
|
||||
/** MetadataV8 */
|
||||
export interface MetadataV9 extends MetadataV8 {}
|
||||
|
||||
/** ModuleConstantMetadataV10 */
|
||||
export interface ModuleConstantMetadataLatest extends ModuleConstantMetadataV10 {}
|
||||
/** ModuleConstantMetadataV11 */
|
||||
export interface ModuleConstantMetadataLatest extends ModuleConstantMetadataV11 {}
|
||||
|
||||
/** ModuleConstantMetadataV9 */
|
||||
export interface ModuleConstantMetadataV10 extends ModuleConstantMetadataV9 {}
|
||||
|
||||
/** ModuleConstantMetadataV10 */
|
||||
export interface ModuleConstantMetadataV11 extends ModuleConstantMetadataV10 {}
|
||||
|
||||
/** Struct */
|
||||
export interface ModuleConstantMetadataV6 extends Struct {
|
||||
/** Text */
|
||||
@@ -433,8 +484,8 @@ export interface ModuleConstantMetadataV8 extends ModuleConstantMetadataV7 {}
|
||||
/** ModuleConstantMetadataV8 */
|
||||
export interface ModuleConstantMetadataV9 extends ModuleConstantMetadataV8 {}
|
||||
|
||||
/** ModuleMetadataV10 */
|
||||
export interface ModuleMetadataLatest extends ModuleMetadataV10 {}
|
||||
/** ModuleMetadataV11 */
|
||||
export interface ModuleMetadataLatest extends ModuleMetadataV11 {}
|
||||
|
||||
/** Struct */
|
||||
export interface ModuleMetadataV0 extends Struct {
|
||||
@@ -474,6 +525,22 @@ export interface ModuleMetadataV10 extends Struct {
|
||||
readonly errors: Vec<ErrorMetadataV10>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface ModuleMetadataV11 extends Struct {
|
||||
/** Text */
|
||||
readonly name: Text;
|
||||
/** Option<StorageMetadataV11> */
|
||||
readonly storage: Option<StorageMetadataV11>;
|
||||
/** Option<Vec<FunctionMetadataV11>> */
|
||||
readonly calls: Option<Vec<FunctionMetadataV11>>;
|
||||
/** Option<Vec<EventMetadataV11>> */
|
||||
readonly events: Option<Vec<EventMetadataV11>>;
|
||||
/** Vec<ModuleConstantMetadataV11> */
|
||||
readonly constants: Vec<ModuleConstantMetadataV11>;
|
||||
/** Vec<ErrorMetadataV11> */
|
||||
readonly errors: Vec<ErrorMetadataV11>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface ModuleMetadataV2 extends Struct {
|
||||
/** Text */
|
||||
@@ -611,8 +678,8 @@ export interface OuterEventMetadataV0 extends Struct {
|
||||
readonly events: Vec<OuterEventEventMetadataV0>;
|
||||
}
|
||||
|
||||
/** PlainTypeV10 */
|
||||
export interface PlainTypeLatest extends PlainTypeV10 {}
|
||||
/** PlainTypeV11 */
|
||||
export interface PlainTypeLatest extends PlainTypeV11 {}
|
||||
|
||||
/** Type */
|
||||
export interface PlainTypeV0 extends Type {}
|
||||
@@ -620,6 +687,9 @@ export interface PlainTypeV0 extends Type {}
|
||||
/** Type */
|
||||
export interface PlainTypeV10 extends Type {}
|
||||
|
||||
/** Type */
|
||||
export interface PlainTypeV11 extends Type {}
|
||||
|
||||
/** Type */
|
||||
export interface PlainTypeV2 extends Type {}
|
||||
|
||||
@@ -654,8 +724,8 @@ export interface RuntimeModuleMetadataV0 extends Struct {
|
||||
readonly storage: Option<StorageMetadataV0>;
|
||||
}
|
||||
|
||||
/** StorageEntryMetadataV10 */
|
||||
export interface StorageEntryMetadataLatest extends StorageEntryMetadataV10 {}
|
||||
/** StorageEntryMetadataV11 */
|
||||
export interface StorageEntryMetadataLatest extends StorageEntryMetadataV11 {}
|
||||
|
||||
/** Struct */
|
||||
export interface StorageEntryMetadataV10 extends Struct {
|
||||
@@ -671,6 +741,20 @@ export interface StorageEntryMetadataV10 extends Struct {
|
||||
readonly documentation: Vec<Text>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface StorageEntryMetadataV11 extends Struct {
|
||||
/** Text */
|
||||
readonly name: Text;
|
||||
/** StorageEntryModifierV11 */
|
||||
readonly modifier: StorageEntryModifierV11;
|
||||
/** StorageEntryTypeV11 */
|
||||
readonly type: StorageEntryTypeV11;
|
||||
/** Bytes */
|
||||
readonly fallback: Bytes;
|
||||
/** Vec<Text> */
|
||||
readonly documentation: Vec<Text>;
|
||||
}
|
||||
|
||||
/** StorageFunctionMetadataV5 */
|
||||
export interface StorageEntryMetadataV6 extends StorageFunctionMetadataV5 {}
|
||||
|
||||
@@ -683,12 +767,15 @@ export interface StorageEntryMetadataV8 extends StorageEntryMetadataV7 {}
|
||||
/** StorageEntryMetadataV8 */
|
||||
export interface StorageEntryMetadataV9 extends StorageEntryMetadataV8 {}
|
||||
|
||||
/** StorageEntryModifierV10 */
|
||||
export interface StorageEntryModifierLatest extends StorageEntryModifierV10 {}
|
||||
/** StorageEntryModifierV11 */
|
||||
export interface StorageEntryModifierLatest extends StorageEntryModifierV11 {}
|
||||
|
||||
/** StorageEntryModifierV9 */
|
||||
export interface StorageEntryModifierV10 extends StorageEntryModifierV9 {}
|
||||
|
||||
/** StorageEntryModifierV10 */
|
||||
export interface StorageEntryModifierV11 extends StorageEntryModifierV10 {}
|
||||
|
||||
/** StorageFunctionModifierV5 */
|
||||
export interface StorageEntryModifierV6 extends StorageFunctionModifierV5 {}
|
||||
|
||||
@@ -701,8 +788,8 @@ export interface StorageEntryModifierV8 extends StorageEntryModifierV7 {}
|
||||
/** StorageEntryModifierV8 */
|
||||
export interface StorageEntryModifierV9 extends StorageEntryModifierV8 {}
|
||||
|
||||
/** StorageEntryTypeV10 */
|
||||
export interface StorageEntryTypeLatest extends StorageEntryTypeV10 {}
|
||||
/** StorageEntryTypeV11 */
|
||||
export interface StorageEntryTypeLatest extends StorageEntryTypeV11 {}
|
||||
|
||||
/** Enum */
|
||||
export interface StorageEntryTypeV10 extends Enum {
|
||||
@@ -720,6 +807,22 @@ export interface StorageEntryTypeV10 extends Enum {
|
||||
readonly asDoubleMap: DoubleMapTypeV10;
|
||||
}
|
||||
|
||||
/** Enum */
|
||||
export interface StorageEntryTypeV11 extends Enum {
|
||||
/** 0:: Plain(PlainTypeV11) */
|
||||
readonly isPlain: boolean;
|
||||
/** PlainTypeV11 */
|
||||
readonly asPlain: PlainTypeV11;
|
||||
/** 1:: Map(MapTypeV11) */
|
||||
readonly isMap: boolean;
|
||||
/** MapTypeV11 */
|
||||
readonly asMap: MapTypeV11;
|
||||
/** 2:: DoubleMap(DoubleMapTypeV11) */
|
||||
readonly isDoubleMap: boolean;
|
||||
/** DoubleMapTypeV11 */
|
||||
readonly asDoubleMap: DoubleMapTypeV11;
|
||||
}
|
||||
|
||||
/** StorageFunctionTypeV5 */
|
||||
export interface StorageEntryTypeV6 extends StorageFunctionTypeV5 {}
|
||||
|
||||
@@ -905,6 +1008,27 @@ export interface StorageFunctionTypeV5 extends Enum {
|
||||
readonly asDoubleMap: DoubleMapTypeV5;
|
||||
}
|
||||
|
||||
/** StorageHasherV11 */
|
||||
export interface StorageHasher extends StorageHasherV11 {}
|
||||
|
||||
/** StorageHasherV10 */
|
||||
export interface StorageHasherV11 extends StorageHasherV10 {}
|
||||
|
||||
/** StorageHasherV4 */
|
||||
export interface StorageHasherV5 extends StorageHasherV4 {}
|
||||
|
||||
/** StorageHasherV5 */
|
||||
export interface StorageHasherV6 extends StorageHasherV5 {}
|
||||
|
||||
/** StorageHasherV6 */
|
||||
export interface StorageHasherV7 extends StorageHasherV6 {}
|
||||
|
||||
/** StorageHasherV7 */
|
||||
export interface StorageHasherV8 extends StorageHasherV7 {}
|
||||
|
||||
/** StorageHasherV8 */
|
||||
export interface StorageHasherV9 extends StorageHasherV8 {}
|
||||
|
||||
/** Struct */
|
||||
export interface StorageMetadataV0 extends Struct {
|
||||
/** Text */
|
||||
@@ -921,6 +1045,14 @@ export interface StorageMetadataV10 extends Struct {
|
||||
readonly items: Vec<StorageEntryMetadataV10>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface StorageMetadataV11 extends Struct {
|
||||
/** Text */
|
||||
readonly prefix: Text;
|
||||
/** Vec<StorageEntryMetadataV11> */
|
||||
readonly items: Vec<StorageEntryMetadataV11>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface StorageMetadataV7 extends Struct {
|
||||
/** Text */
|
||||
|
||||
@@ -22,6 +22,7 @@ export * from './staking/types';
|
||||
export * from './system/types';
|
||||
export * from './treasury/types';
|
||||
export * from './txpayment/types';
|
||||
export * from './utility/types';
|
||||
export * from './attestations/types';
|
||||
export * from './claims/types';
|
||||
export * from './parachains/types';
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// 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: {
|
||||
Timepoint: {
|
||||
height: 'BlockNumber',
|
||||
index: 'u32'
|
||||
},
|
||||
Multisig: {
|
||||
when: 'Timepoint',
|
||||
deposit: 'Balance',
|
||||
depositor: 'AccountId',
|
||||
approvals: 'Vec<AccountId>'
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -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,26 @@
|
||||
// Auto-generated via `yarn build:interfaces`, do not edit
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
|
||||
import { Struct, Vec } from '@polkadot/types/codec';
|
||||
import { u32 } from '@polkadot/types/primitive';
|
||||
import { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
/** Struct */
|
||||
export interface Multisig extends Struct {
|
||||
/** Timepoint */
|
||||
readonly when: Timepoint;
|
||||
/** Balance */
|
||||
readonly deposit: Balance;
|
||||
/** AccountId */
|
||||
readonly depositor: AccountId;
|
||||
/** Vec<AccountId> */
|
||||
readonly approvals: Vec<AccountId>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface Timepoint extends Struct {
|
||||
/** BlockNumber */
|
||||
readonly height: BlockNumber;
|
||||
/** u32 */
|
||||
readonly index: u32;
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import { Registry } from '../types';
|
||||
|
||||
import Enum from '../codec/Enum';
|
||||
|
||||
export default class StorageHasher extends Enum {
|
||||
export class StorageHasherV4 extends Enum {
|
||||
constructor (registry: Registry, value?: any) {
|
||||
super(registry, [
|
||||
'Blake2_128',
|
||||
@@ -57,3 +57,63 @@ export default class StorageHasher extends Enum {
|
||||
return this.toString();
|
||||
}
|
||||
}
|
||||
|
||||
export class StorageHasherV10 extends Enum {
|
||||
constructor (registry: Registry, value?: any) {
|
||||
super(registry, [
|
||||
'Blake2_128',
|
||||
'Blake2_256',
|
||||
'Blake2_128Concat',
|
||||
'Twox128',
|
||||
'Twox256',
|
||||
'Twox64Concat'
|
||||
], value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Is the enum Blake2_128?
|
||||
*/
|
||||
public get isBlake2128 (): boolean {
|
||||
return this.toNumber() === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Is the enum Blake2_256?
|
||||
*/
|
||||
public get isBlake2256 (): boolean {
|
||||
return this.toNumber() === 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Is the enum Blake2_128Concat?
|
||||
*/
|
||||
public get isBlake2128Concat (): boolean {
|
||||
return this.toNumber() === 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Is the enum Twox128?
|
||||
*/
|
||||
public get isTwox128 (): boolean {
|
||||
return this.toNumber() === 3;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Is the enum Twox256?
|
||||
*/
|
||||
public get isTwox256 (): boolean {
|
||||
return this.toNumber() === 4;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Is the enum isTwox64Concat?
|
||||
*/
|
||||
public get isTwox64Concat (): boolean {
|
||||
return this.toNumber() === 5;
|
||||
}
|
||||
|
||||
public toJSON (): string {
|
||||
// This looks prettier in the generated JSON
|
||||
return this.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export { default as i128 } from './I128';
|
||||
export { default as i256 } from './I256';
|
||||
export { default as Null } from './Null';
|
||||
export { default as StorageData } from './StorageData';
|
||||
export { default as StorageHasher } from './StorageHasher';
|
||||
export { StorageHasherV10, StorageHasherV4 } from './StorageHasher';
|
||||
export { default as StorageKey } from './StorageKey';
|
||||
export { default as Text } from './Text';
|
||||
export { default as Type } from './Type';
|
||||
|
||||
Reference in New Issue
Block a user