Compare commits

...
28 Commits
Author SHA1 Message Date
Github Actions 5b9f1544a3 [CI Skip] release/stable 6.3.1
skip-checks: true
2021-10-09 13:42:12 +00:00
Jaco 9943bda41f 6.3.1 (#4041)
* 6.3.1

* Set version
2021-10-09 16:26:33 +03:00
Github Actions b99e7a3cdb [CI Skip] release/beta 6.2.2-12
skip-checks: true
2021-10-09 13:08:09 +00:00
Jaco 1e491579c1 Adjust wildcard path matches (#4040) 2021-10-09 15:49:01 +03:00
Github Actions ef83cfbdc1 [CI Skip] release/beta 6.2.2-11
skip-checks: true
2021-10-08 07:49:23 +00:00
Jaco d10407a44f Bump deps (#4037)
* Bump deps

* Bump

* revamp comments

* Only use un-aliased primitives

* Revert "Only use un-aliased primitives"

This reverts commit 93d7e28f3a73351899789acc0914b75b421d4c11.
2021-10-08 10:31:11 +03:00
Github Actions 068af8b2ab [CI Skip] release/beta 6.2.2-10
skip-checks: true
2021-10-08 05:37:11 +00:00
Jaco d9f4d3e08b Adjust xcm Fungibility (#4035)
* Adjust xcm Fungibility

* V1 & V2

* Align with master
2021-10-08 08:17:49 +03:00
Github Actions fa79f35ec2 [CI Skip] release/beta 6.2.2-9
skip-checks: true
2021-10-07 13:50:37 +00:00
Jaco 8c2c2afc37 Swap Xcm to defaults instead of V0, Polkadot runtime 9100+ (#4033)
* Swap Xcm to V1 (defaults), Polkadot runtime 9100+

* V1/V2 (latest is V1 at 9100)

* Various versions

* formatting

* V1 <= 9105, V2 >= 9106
2021-10-07 16:29:18 +03:00
Github Actions 5157d8c3f0 [CI Skip] release/beta 6.2.2-8
skip-checks: true
2021-10-07 10:05:48 +00:00
Jaco bb303361e2 queryMulti via api.at (#4031)
* queryMulti via api.at

* checkTypes

* Kusama & Polkadot added

* Revert "Kusama & Polkadot added"

This reverts commit f7f2c30290d455bad50bb0b8bb1965d65b4d2ae2.
2021-10-07 12:49:43 +03:00
Github Actions ad587b0673 [CI Skip] release/beta 6.2.2-7
skip-checks: true
2021-10-07 08:32:37 +00:00
Jaco ae5cf270f0 Bump static metadata (#4030)
* Bump static metadata

* Rebuild

* Polkadot & Kusama added
2021-10-07 11:12:08 +03:00
Github Actions 9fc33ac53a [CI Skip] release/beta 6.2.2-6
skip-checks: true
2021-10-06 11:28:59 +00:00
Jaco 60d4da934a Single getMetadata on parallel same-hash queries (#4026) 2021-10-06 14:12:13 +03:00
Github Actions 550d17d349 [CI Skip] release/beta 6.2.2-5
skip-checks: true
2021-10-06 10:07:11 +00:00
Jaco ce8a2b5e4f Dedupe findCall/findError (#4028) 2021-10-06 12:46:28 +03:00
Github Actions 4c4994e63c [CI Skip] release/beta 6.2.2-4
skip-checks: true
2021-10-06 08:54:45 +00:00
Jaco df9b6959d1 Expose findCall/findError on api.at (#4027)
* Expose findCall/findError on api.at

* Move findError/findCall
2021-10-06 11:36:18 +03:00
Github Actions 6a583ee594 [CI Skip] release/beta 6.2.2-3
skip-checks: true
2021-10-06 06:13:47 +00:00
Jaco affa6ab1bd Mark api.query.<section>.<method>.at as deprecated (#4023)
* Use api.at internally for sizeAt/entriesAt/keysAt

* Remove debug logs

* Mark api.query.<section>.<method>.at as deprecated

* formatting

* @deprecated formatting

* commenting
2021-10-06 08:53:50 +03:00
Github Actions 407aca37c1 [CI Skip] release/beta 6.2.2-2
skip-checks: true
2021-10-05 07:57:23 +00:00
Jaco 246dfaf943 Use api.at internally for sizeAt/entriesAt/keysAt (#4022)
* Use api.at internally for sizeAt/entriesAt/keysAt

* Remove debug logs
2021-10-05 10:35:23 +03:00
Github Actions a05fff302f [CI Skip] release/beta 6.2.2-1
skip-checks: true
2021-10-05 06:16:34 +00:00
Jaco d45a9cfe58 Rework derives to ensure cached registries (#4021) 2021-10-05 08:57:30 +03:00
Github Actions 32881d73a0 [CI Skip] release/beta 6.2.2-0
skip-checks: true
2021-10-04 12:58:03 +00:00
Jaco e568ffe23f Static substrate bump (#4018) 2021-10-04 15:35:56 +03:00
64 changed files with 5321 additions and 4609 deletions
+18
View File
@@ -1,5 +1,23 @@
# CHANGELOG
## 6.3.1 Oct 9, 2021
Upgrade priority: Low. Recoemmended for Kusama & Polkadot runtime 9100+
Changes:
- Mark `api.query.*.*.at` as deprecated (use `api.at`)
- Expose `queryMulti`, `findError` and `findCall` on `api.at`
- Optimize parallel metadata retrieval/decoration
- Rework derive `.at` to ensure no additional metadata calls
- Adjust Xcm types for Kusama, Polkadot, Westend (V1 & V2 usage)
- Fix Xcm Fungibility type
- Add upgrade blocks for Westend
- Prepare for v14 metadata swap in Kusama/Polkadot (9110 runtime)
- Adjust metadata wilcard path matching (event extraction)
- Bump static metadata for latest Substrate, Polkadot & Kusama
## 6.2.1 Oct 4, 2021
Upgrade priority: Low. Maintenance updates.
+3 -3
View File
@@ -26,15 +26,15 @@
"test:watch": "polkadot-dev-run-test --watch"
},
"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/core": "^7.15.8",
"@babel/register": "^7.15.3",
"@babel/runtime": "^7.15.4",
"@polkadot/dev": "^0.62.68",
"@polkadot/dev": "^0.62.70",
"@polkadot/ts": "^0.4.8",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^27.0.2",
"copyfiles": "^2.4.1"
},
"version": "6.2.1",
"version": "6.3.1",
"packageManager": "yarn@3.0.1"
}
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "6.2.1",
"version": "6.3.1",
"type": "module",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
@@ -20,9 +20,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/api": "6.2.1",
"@polkadot/types": "6.2.1",
"@polkadot/api": "6.3.1",
"@polkadot/types": "6.3.1",
"@polkadot/util": "^7.4.1",
"rxjs": "^7.3.0"
"rxjs": "^7.4.0"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/api-contract', version: '6.2.1' };
export const packageInfo = { name: '@polkadot/api-contract', version: '6.3.1' };
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "6.2.1",
"version": "6.3.1",
"type": "module",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
@@ -20,15 +20,15 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/api": "6.2.1",
"@polkadot/rpc-core": "6.2.1",
"@polkadot/types": "6.2.1",
"@polkadot/api": "6.3.1",
"@polkadot/rpc-core": "6.3.1",
"@polkadot/types": "6.3.1",
"@polkadot/util": "^7.4.1",
"@polkadot/util-crypto": "^7.4.1",
"rxjs": "^7.3.0"
"rxjs": "^7.4.0"
},
"devDependencies": {
"@polkadot/keyring": "^7.4.1",
"@polkadot/rpc-provider": "6.2.1"
"@polkadot/rpc-provider": "6.3.1"
}
}
+13 -10
View File
@@ -5,7 +5,7 @@ import type { Observable } from 'rxjs';
import type { ApiInterfaceRx } from '@polkadot/api/types';
import type { SignedBlockExtended } from '../type/types';
import { catchError, combineLatest, map, of } from 'rxjs';
import { catchError, combineLatest, map, of, switchMap } from 'rxjs';
import { createSignedBlockExtended } from '../type';
import { memo } from '../util';
@@ -24,15 +24,18 @@ import { memo } from '../util';
* ```
*/
export function getBlock (instanceId: string, api: ApiInterfaceRx): (hash: Uint8Array | string) => Observable<SignedBlockExtended | undefined> {
return memo(instanceId, (hash: Uint8Array | string): Observable<SignedBlockExtended | undefined> =>
combineLatest([
api.rpc.chain.getBlock(hash),
api.query.system.events.at(hash),
api.query.session
? api.query.session.validators.at(hash)
: of([])
]).pipe(
map(([signedBlock, events, validators]): SignedBlockExtended =>
return memo(instanceId, (blockHash: Uint8Array | string): Observable<SignedBlockExtended | undefined> =>
api.queryAt(blockHash).pipe(
switchMap((queryAt) =>
combineLatest([
api.rpc.chain.getBlock(blockHash),
queryAt.system.events(),
queryAt.session
? queryAt.session.validators()
: of([])
])
),
map(([signedBlock, events, validators]) =>
createSignedBlockExtended(api.registry, signedBlock, events, validators)
),
catchError((): Observable<undefined> =>
+12 -8
View File
@@ -3,9 +3,10 @@
import type { Observable } from 'rxjs';
import type { ApiInterfaceRx } from '@polkadot/api/types';
import type { AccountId } from '@polkadot/types/interfaces';
import type { HeaderExtended } from '../type/types';
import { catchError, combineLatest, map, of } from 'rxjs';
import { catchError, combineLatest, map, of, switchMap } from 'rxjs';
import { createHeaderExtended } from '../type';
import { memo } from '../util';
@@ -26,13 +27,16 @@ import { memo } from '../util';
*/
export function getHeader (instanceId: string, api: ApiInterfaceRx): (hash: Uint8Array | string) => Observable<HeaderExtended | undefined> {
return memo(instanceId, (hash: Uint8Array | string): Observable<HeaderExtended | undefined> =>
combineLatest([
api.rpc.chain.getHeader(hash),
api.query.session
? api.query.session.validators.at(hash)
: of([])
]).pipe(
map(([header, validators]): HeaderExtended =>
api.queryAt(hash).pipe(
switchMap((queryAt) =>
combineLatest([
api.rpc.chain.getHeader(hash),
queryAt.session
? queryAt.session.validators()
: of([] as AccountId[])
])
),
map(([header, validators]) =>
createHeaderExtended(header.registry, header, validators)
),
catchError((): Observable<undefined> =>
@@ -3,9 +3,7 @@
import type { Observable } from 'rxjs';
import type { ApiInterfaceRx } from '@polkadot/api/types';
import type { Vec } from '@polkadot/types';
import type { EventRecord, SignedBlock } from '@polkadot/types/interfaces';
import type { HeaderExtended, SignedBlockExtended } from '../type/types';
import type { SignedBlockExtended } from '../type/types';
import { combineLatest, map, of, switchMap } from 'rxjs';
@@ -19,16 +17,21 @@ import { memo } from '../util';
export function subscribeNewBlocks (instanceId: string, api: ApiInterfaceRx): () => Observable<SignedBlockExtended> {
return memo(instanceId, (): Observable<SignedBlockExtended> =>
api.derive.chain.subscribeNewHeads().pipe(
switchMap((header): Observable<[SignedBlock, Vec<EventRecord>, HeaderExtended]> => {
switchMap((header) => {
const blockHash = header.createdAtHash || header.hash;
return combineLatest(
api.rpc.chain.getBlock(blockHash),
api.query.system.events.at(blockHash),
of(header)
// we get the block first, setting up the registry
return api.queryAt(blockHash).pipe(
switchMap((queryAt) =>
combineLatest([
of(header),
api.rpc.chain.getBlock(blockHash),
queryAt.system.events()
])
)
);
}),
map(([block, events, header]) =>
map(([header, block, events]) =>
createSignedBlockExtended(block.registry, block, events, header.validators)
)
)
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/api-derive', version: '6.2.1' };
export const packageInfo = { name: '@polkadot/api-derive', version: '6.3.1' };
+10 -10
View File
@@ -5,7 +5,7 @@ import type { Observable } from 'rxjs';
import type { ApiInterfaceRx } from '@polkadot/api/types';
import type { EventRecord, Hash, SignedBlock } from '@polkadot/types/interfaces';
import { combineLatest, map } from 'rxjs';
import { combineLatest, map, switchMap } from 'rxjs';
import { memo } from '../util';
@@ -15,15 +15,15 @@ interface Result {
}
export function events (instanceId: string, api: ApiInterfaceRx): (at: Hash) => Observable<Result> {
return memo(instanceId, (at: Hash): Observable<Result> =>
combineLatest([
api.query.system.events.at(at),
api.rpc.chain.getBlock(at)
]).pipe(
map(([events, block]) => ({
block,
events
}))
return memo(instanceId, (blockHash: Hash) =>
api.queryAt(blockHash).pipe(
switchMap((queryAt) =>
combineLatest([
api.rpc.chain.getBlock(blockHash),
queryAt.system.events()
])
),
map(([block, events]): Result => ({ block, events }))
)
);
}
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "6.2.1",
"version": "6.3.1",
"type": "module",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
@@ -20,15 +20,15 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/api-derive": "6.2.1",
"@polkadot/api-derive": "6.3.1",
"@polkadot/keyring": "^7.4.1",
"@polkadot/rpc-core": "6.2.1",
"@polkadot/rpc-provider": "6.2.1",
"@polkadot/types": "6.2.1",
"@polkadot/types-known": "6.2.1",
"@polkadot/rpc-core": "6.3.1",
"@polkadot/rpc-provider": "6.3.1",
"@polkadot/types": "6.3.1",
"@polkadot/types-known": "6.3.1",
"@polkadot/util": "^7.4.1",
"@polkadot/util-crypto": "^7.4.1",
"eventemitter3": "^4.0.7",
"rxjs": "^7.3.0"
"rxjs": "^7.4.0"
}
}
+25 -6
View File
@@ -2,7 +2,7 @@
/* eslint-disable */
import type { ApiTypes } from '@polkadot/api/types';
import type { U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types';
import type { U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
import type { Codec } from '@polkadot/types/types';
@@ -396,11 +396,6 @@ declare module '@polkadot/api/types/consts' {
* Must be no greater than `MaxQueueLen`.
**/
fifoQueueLen: u32 & AugmentedConst<ApiType>;
/**
* The issuance to ignore. This is subtracted from the `Currency`'s `total_issuance` to get
* the issuance by which we inflate or deflate the gilt.
**/
ignoredIssuance: u128 & AugmentedConst<ApiType>;
/**
* The number of blocks between consecutive attempts to issue more gilts in an effort to
* get to the target amount to be frozen.
@@ -796,6 +791,30 @@ declare module '@polkadot/api/types/consts' {
[key: string]: Codec;
};
transactionPayment: {
/**
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
* `priority`
*
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
* added to a tip component in regular `priority` calculations.
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
*
* ```rust,ignore
* // For `Normal`
* let priority = priority_calc(tip);
*
* // For `Operational`
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
* let priority = priority_calc(tip + virtual_tip);
* ```
*
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
* sent with the transaction. So, not only does the transaction get a priority bump based
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
* transactions.
**/
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
/**
* The fee to be paid for making a transaction; the per-byte portion.
**/
+16 -2
View File
@@ -604,7 +604,7 @@ declare module '@polkadot/api/types/storage' {
**/
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* For each session index, we keep a mapping of 'SessionIndex` and `AuthIndex` to
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to
* `WrapperOpaque<BoundedOpaqueNetworkState>`.
**/
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
@@ -787,7 +787,9 @@ declare module '@polkadot/api/types/storage' {
/**
* Indices of disabled validators.
*
* The set is cleared when `on_session_ending` returns a new set of identities.
* The vec is always kept sorted so that we can find whether a given validator is
* disabled using binary search. It gets cleared when `on_session_ending` returns
* a new set of identities.
**/
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -1055,6 +1057,18 @@ declare module '@polkadot/api/types/storage' {
* All slashing events on nominators, mapped by era to the highest slash value of the era.
**/
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Indices of validators that have offended in the active era and whether they are currently
* disabled.
*
* This value should be a superset of disabled validators since not all offences lead to the
* validator being disabled (if there was no slash). This is needed to track the percentage of
* validators that have offended in the current era, ensuring a new era is forced if
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
* whether a given validator has previously offended using binary search. It gets cleared when
* the era ends.
**/
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Where the reward payment should be made. Keyed by stash.
**/
+59 -21
View File
@@ -7,9 +7,9 @@ import type { Option, Raw, StorageKey, Text, u64 } from '@polkadot/types';
import type { Call, Hash, RuntimeVersion } from '@polkadot/types/interfaces';
import type { DecoratedMeta } from '@polkadot/types/metadata/decorate/types';
import type { StorageEntry } from '@polkadot/types/primitive/types';
import type { AnyFunction, AnyTuple, CallFunction, Codec, DefinitionRpc, DefinitionRpcSub, DetectCodec, IMethod, IStorageKey, Registry, RegistryTypes } from '@polkadot/types/types';
import type { AnyFunction, AnyTuple, CallFunction, Codec, DefinitionRpc, DefinitionRpcSub, DetectCodec, IMethod, IStorageKey, Registry, RegistryError, RegistryTypes } from '@polkadot/types/types';
import type { SubmittableExtrinsic } from '../submittable/types';
import type { ApiDecoration, ApiInterfaceRx, ApiOptions, ApiTypes, DecoratedErrors, DecoratedEvents, DecoratedRpc, DecoratedRpcSection, DecorateMethod, PaginationOptions, QueryableConsts, QueryableModuleStorage, QueryableModuleStorageAt, QueryableStorage, QueryableStorageAt, QueryableStorageEntry, QueryableStorageEntryAt, QueryableStorageMulti, QueryableStorageMultiArg, SubmittableExtrinsicFunction, SubmittableExtrinsics, SubmittableModuleExtrinsics } from '../types';
import type { ApiDecoration, ApiInterfaceRx, ApiOptions, ApiTypes, AugmentedQuery, DecoratedErrors, DecoratedEvents, DecoratedRpc, DecoratedRpcSection, DecorateMethod, GenericStorageEntryFunction, PaginationOptions, QueryableConsts, QueryableModuleStorage, QueryableModuleStorageAt, QueryableStorage, QueryableStorageAt, QueryableStorageEntry, QueryableStorageEntryAt, QueryableStorageMulti, QueryableStorageMultiArg, SubmittableExtrinsicFunction, SubmittableExtrinsics, SubmittableModuleExtrinsics } from '../types';
import type { VersionedRegistry } from './types';
import { BehaviorSubject, combineLatest, from, map, of, switchMap, tap, toArray } from 'rxjs';
@@ -25,6 +25,7 @@ import { augmentObject } from '../util/augmentObject';
import { decorateSections, DeriveAllSections } from '../util/decorate';
import { extractStorageArgs } from '../util/validate';
import { Events } from './Events';
import { findCall, findError } from './find';
interface MetaDecoration {
callIndex?: Uint8Array;
@@ -47,6 +48,12 @@ const l = logger('api/init');
let instanceCounter = 0;
function getAtQueryFn<ApiType extends ApiTypes> (api: ApiDecoration<ApiType>, { method, section }: StorageEntry): AugmentedQuery<'rxjs', GenericStorageEntryFunction, AnyTuple> {
assert(api.rx.query[section] && api.rx.query[section][method], () => `query.${section}.${method} is not available in this version of the metadata`);
return api.rx.query[section][method];
}
export abstract class Decorate<ApiType extends ApiTypes> extends Events {
readonly #instanceId: string;
@@ -138,6 +145,8 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
this.#instanceId = `${++instanceCounter}`;
this.#registry = options.source?.registry || options.registry || new TypeRegistry();
this._rx.queryAt = (blockHash: Uint8Array | string) =>
from(this.at(blockHash)).pipe(map((a) => a.rx.query));
this._rx.registry = this.#registry;
const thisProvider = options.source
@@ -224,6 +233,14 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
augmentObject('query', storage, decoratedApi.query, fromEmpty);
augmentObject('query', storageRx, decoratedApi.rx.query, fromEmpty);
decoratedApi.findCall = (callIndex: Uint8Array | string): CallFunction =>
findCall(registry.registry, callIndex);
decoratedApi.findError = (errorIndex: Uint8Array | string): RegistryError =>
findError(registry.registry, errorIndex);
decoratedApi.queryMulti = blockHash
? this._decorateMultiAt(decoratedApi, this._decorateMethod, blockHash)
: this._decorateMulti(this._decorateMethod);
return {
decoratedApi,
decoratedMeta: registry.decoratedMeta
@@ -381,6 +398,26 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
: [args.creator])));
}
protected _decorateMultiAt<ApiType extends ApiTypes> (atApi: ApiDecoration<ApiType>, decorateMethod: DecorateMethod<ApiType>, blockHash: Uint8Array | string): QueryableStorageMulti<ApiType> {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return decorateMethod((calls: QueryableStorageMultiArg<ApiType>[]): Observable<Codec[]> =>
this._rpcCore.state.queryStorageAt(
calls.map((args: QueryableStorageMultiArg<ApiType>) => {
if (Array.isArray(args)) {
const { creator } = getAtQueryFn(atApi, args[0].creator);
return creator.meta.type.isPlain
? [creator]
: creator.meta.type.asMap.hashers.length === 1
? [creator, args.slice(1)]
: [creator, ...args.slice(1)];
}
return [getAtQueryFn(atApi, args.creator).creator];
}),
blockHash));
}
protected _decorateExtrinsics<ApiType extends ApiTypes> ({ tx }: DecoratedMeta, decorateMethod: DecorateMethod<ApiType>): SubmittableExtrinsics<ApiType> {
const creator = createSubmittable(this._type, this._rx, decorateMethod);
@@ -432,8 +469,12 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
}
private _decorateStorageEntry<ApiType extends ApiTypes> (creator: StorageEntry, decorateMethod: DecorateMethod<ApiType>): QueryableStorageEntry<ApiType> {
// get the storage arguments, with DoubleMap as an array entry, otherwise spread
const getArgs = (args: unknown[]) => extractStorageArgs(this.#registry, creator, args);
const getArgs = (args: unknown[], registry?: Registry) =>
extractStorageArgs(registry || this.#registry, creator, args);
const getQueryAt = (blockHash: Hash | Uint8Array | string): Observable<AugmentedQuery<'rxjs', GenericStorageEntryFunction, AnyTuple>> =>
from(this.at(blockHash)).pipe(
map((api) => getAtQueryFn(api, creator)));
// Disable this where it occurs for each field we are decorating
/* eslint-disable @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment */
@@ -442,14 +483,9 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
decorated.creator = creator;
decorated.at = decorateMethod((hash: Hash, ...args: unknown[]): Observable<Codec> =>
from(this.at(hash)).pipe(
switchMap((api): Observable<Codec> => {
assert(api.rx.query[creator.section] && api.rx.query[creator.section][creator.method], () => `query.${creator.section}.${creator.method} is not available in this version of the metadata`);
return api.rx.query[creator.section][creator.method](...args);
})
));
decorated.at = decorateMethod((blockHash: Hash, ...args: unknown[]): Observable<Codec> =>
getQueryAt(blockHash).pipe(
switchMap((q) => q(...args))));
decorated.hash = decorateMethod((...args: unknown[]): Observable<Hash> =>
this._rpcCore.state.getStorageHash(getArgs(args)));
@@ -470,8 +506,10 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
decorated.size = decorateMethod((...args: unknown[]): Observable<u64> =>
this._rpcCore.state.getStorageSize(getArgs(args)));
decorated.sizeAt = decorateMethod((hash: Hash | Uint8Array | string, ...args: unknown[]): Observable<u64> =>
this._rpcCore.state.getStorageSize(getArgs(args), hash));
decorated.sizeAt = decorateMethod((blockHash: Hash | Uint8Array | string, ...args: unknown[]): Observable<u64> =>
getQueryAt(blockHash).pipe(
switchMap((q) =>
this._rpcCore.state.getStorageSize(getArgs(args, q.creator.meta.registry), blockHash))));
// .keys() & .entries() only available on map types
if (creator.iterKey && creator.meta.type.isMap) {
@@ -480,8 +518,9 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
this._retrieveMapEntries(creator, null, args)));
decorated.entriesAt = decorateMethod(
memo(this.#instanceId, (hash: Hash | Uint8Array | string, ...args: unknown[]): Observable<[StorageKey, Codec][]> =>
this._retrieveMapEntries(creator, hash, args)));
memo(this.#instanceId, (blockHash: Hash | Uint8Array | string, ...args: unknown[]): Observable<[StorageKey, Codec][]> =>
getQueryAt(blockHash).pipe(
switchMap((q) => this._retrieveMapEntries(q.creator, blockHash, args)))));
decorated.entriesPaged = decorateMethod(
memo(this.#instanceId, (opts: PaginationOptions): Observable<[StorageKey, Codec][]> =>
@@ -492,8 +531,9 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
this._retrieveMapKeys(creator, null, args)));
decorated.keysAt = decorateMethod(
memo(this.#instanceId, (hash: Hash | Uint8Array | string, ...args: unknown[]): Observable<StorageKey[]> =>
this._retrieveMapKeys(creator, hash, args)));
memo(this.#instanceId, (blockHash: Hash | Uint8Array | string, ...args: unknown[]): Observable<StorageKey[]> =>
getQueryAt(blockHash).pipe(
switchMap((q) => this._retrieveMapKeys(q.creator, blockHash, args)))));
decorated.keysPaged = decorateMethod(
memo(this.#instanceId, (opts: PaginationOptions): Observable<StorageKey[]> =>
@@ -515,7 +555,6 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
}
private _decorateStorageEntryAt<ApiType extends ApiTypes> (registry: Registry, creator: StorageEntry, decorateMethod: DecorateMethod<ApiType>, blockHash: Uint8Array): QueryableStorageEntryAt<ApiType> {
// get the storage arguments, with DoubleMap as an array entry, otherwise spread
const getArgs = (args: unknown[]): unknown[] => extractStorageArgs(registry, creator, args);
// Disable this where it occurs for each field we are decorating
@@ -546,7 +585,6 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
decorated.size = decorateMethod((...args: unknown[]): Observable<u64> =>
this._rpcCore.state.getStorageSize(getArgs(args), blockHash));
// FIXME NMap support
// .keys() & .entries() only available on map types
if (creator.iterKey && creator.meta.type.isMap) {
decorated.entries = decorateMethod(
@@ -678,7 +716,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
const specName = this._runtimeVersion?.specName.toString();
const derives = {
...this._options.derives,
...(this._options.typesBundle?.spec?.[specName ?? '']?.derives || {})
...(this._options.typesBundle?.spec?.[specName || '']?.derives || {})
};
// Pull in derive from api-derive
+16
View File
@@ -5,11 +5,13 @@ import type { RpcInterface } from '@polkadot/rpc-core/types';
import type { Text } from '@polkadot/types';
import type { Hash, RuntimeVersion } from '@polkadot/types/interfaces';
import type { Metadata } from '@polkadot/types/metadata';
import type { CallFunction, RegistryError } from '@polkadot/types/types';
import type { ApiDecoration, ApiInterfaceRx, ApiTypes, DecoratedErrors, DecoratedEvents, DecoratedRpc, QueryableConsts, QueryableStorage, QueryableStorageMulti, SubmittableExtrinsics } from '../types';
import { assertReturn } from '@polkadot/util';
import { packageInfo } from '../packageInfo';
import { findCall, findError } from './find';
import { Init } from './Init';
interface PkgJson {
@@ -210,4 +212,18 @@ export abstract class Getters<ApiType extends ApiTypes> extends Init<ApiType> im
public get tx (): SubmittableExtrinsics<ApiType> {
return assertResult(this._extrinsics);
}
/**
* @description Finds the definition for a specific [[CallFunction]] based on the index supplied
*/
public findCall (callIndex: Uint8Array | string): CallFunction {
return findCall(this.registry, callIndex);
}
/**
* @description Finds the definition for a specific [[RegistryError]] based on the index supplied
*/
public findError (errorIndex: Uint8Array | string): RegistryError {
return findError(this.registry, errorIndex);
}
}
+34 -16
View File
@@ -14,7 +14,7 @@ import { firstValueFrom, map, of, switchMap } from 'rxjs';
import { Metadata, TypeRegistry } from '@polkadot/types';
import { getSpecAlias, getSpecExtensions, getSpecHasher, getSpecRpc, getSpecTypes, getUpgradeVersion } from '@polkadot/types-known';
import { assert, BN_ZERO, logger, stringify, u8aEq, u8aToHex, u8aToU8a } from '@polkadot/util';
import { assert, BN_ZERO, isUndefined, logger, stringify, u8aEq, u8aToHex, u8aToU8a } from '@polkadot/util';
import { cryptoWaitReady } from '@polkadot/util-crypto';
import { detectedCapabilities } from './capabilities';
@@ -31,6 +31,8 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
#updateSub?: Subscription | null = null;
#waitingRegistries: Record<string, Promise<VersionedRegistry<ApiType>>> = {};
constructor (options: ApiOptions, type: ApiTypes, decorateMethod: DecorateMethod<ApiType>) {
super(options, type, decorateMethod);
@@ -118,18 +120,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
return this._createDecorated(registry, true, u8aHash).decoratedApi;
}
/**
* @description Sets up a registry based on the block hash defined
*/
public async getBlockRegistry (blockHash: Uint8Array): Promise<VersionedRegistry<ApiType>> {
const existingViaHash = this.#registries.find(({ lastBlockHash }) =>
lastBlockHash && u8aEq(lastBlockHash, blockHash)
);
if (existingViaHash) {
return existingViaHash;
}
private async _getBlockRegistry (blockHash: Uint8Array): Promise<VersionedRegistry<ApiType>> {
// ensure we have everything required
assert(this._genesisHash && this._runtimeVersion, 'Cannot retrieve data on an uninitialized chain');
@@ -177,12 +168,39 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
this.#registries.push(result);
// TODO This could be useful for historic, disabled due to cross-looping, i.e. .at queries
// this._detectCapabilities(registry, blockHash);
return result;
}
/**
* @description Sets up a registry based on the block hash defined
*/
public async getBlockRegistry (blockHash: Uint8Array): Promise<VersionedRegistry<ApiType>> {
const existingViaHash = this.#registries.find(({ lastBlockHash }) =>
lastBlockHash && u8aEq(lastBlockHash, blockHash)
);
if (existingViaHash) {
return existingViaHash;
}
const blockHashHex = u8aToHex(blockHash);
let waiting = this.#waitingRegistries[blockHashHex];
if (isUndefined(waiting)) {
waiting = this._getBlockRegistry(blockHash);
this.#waitingRegistries[blockHashHex] = waiting;
// when we have resolved, remove this from the waiting list
waiting
.then((): void => {
delete this.#waitingRegistries[blockHashHex];
})
.catch(() => undefined);
}
return waiting;
}
protected async _loadMeta (): Promise<boolean> {
// on re-connection to the same chain, we don't want to re-do everything from chain again
if (this._isReady) {
+14
View File
@@ -0,0 +1,14 @@
// Copyright 2017-2021 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { CallFunction, Registry, RegistryError } from '@polkadot/types/types';
import { u8aToU8a } from '@polkadot/util';
export function findCall (registry: Registry, callIndex: Uint8Array | string): CallFunction {
return registry.findMetaCall(u8aToU8a(callIndex));
}
export function findError (registry: Registry, errorIndex: Uint8Array | string): RegistryError {
return registry.findMetaError(u8aToU8a(errorIndex));
}
+1 -15
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2021 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { CallFunction, RegistryError, SignerPayloadRawBase } from '@polkadot/types/types';
import type { SignerPayloadRawBase } from '@polkadot/types/types';
import type { ApiOptions, ApiTypes, DecorateMethod, Signer } from '../types';
import { assert, isString, u8aToHex, u8aToU8a } from '@polkadot/util';
@@ -55,20 +55,6 @@ export abstract class ApiBase<ApiType extends ApiTypes> extends Getters<ApiType>
return this._rpcCore.disconnect();
}
/**
* @description Finds the definition for a specific [[CallFunction]] based on the index supplied
*/
public findCall (callIndex: Uint8Array | string): CallFunction {
return this.registry.findMetaCall(u8aToU8a(callIndex));
}
/**
* @description Finds the definition for a specific [[RegistryError]] based on the index supplied
*/
public findError (errorIndex: Uint8Array | string): RegistryError {
return this.registry.findMetaError(u8aToU8a(errorIndex));
}
/**
* @description Set an external signer which will be used to sign extrinsic when account passed in is not KeyringPair
*/
+14 -4
View File
@@ -80,11 +80,11 @@ async function query (api: ApiPromise, pairs: TestKeyringMap): Promise<void> {
const bal2 = await api.query.balances.totalIssuance('WRONG_ARG'); // bal2 is Codec (wrong args)
const override = await api.query.balances.totalIssuance<Header>(); // override is still available
const oldBal = await api.query.balances.totalIssuance.at('abcd');
// It's hard to correctly type .multi. Expected: `Balance[]`, actual: Codec[].
// In the meantime, we can case with `<Balance>` (this is not available on recent chains)
const multi = await api.query.balances.freeBalance.multi([pairs.alice.address, pairs.bob.address]);
// For older queries we can cast with `<Balance>` (newer chain have multi typed)
const multia = await api.query.balances.freeBalance.multi<Balance>([pairs.alice.address, pairs.bob.address]);
const multib = await api.query.system.account.multi([pairs.alice.address, pairs.bob.address]);
console.log('query types:', bar, bal, bal2, override, oldBal, multi);
console.log('query types:', bar, bal, bal2, override, oldBal, multia, multib);
// check multi for unsub
const multiUnsub = await api.queryMulti([
@@ -104,6 +104,16 @@ async function query (api: ApiPromise, pairs: TestKeyringMap): Promise<void> {
]);
console.log(multiRes);
// check multi, via at
const apiAt = await api.at('0x12345678');
const multiResAt = await apiAt.queryMulti([
api.query.timestamp.now,
[apiAt.query.staking.validators],
[apiAt.query.system.account, pairs.eve.address]
]);
console.log(multiResAt);
}
async function queryExtra (api: ApiPromise, pairs: TestKeyringMap): Promise<void> {
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/api', version: '6.2.1' };
export const packageInfo = { name: '@polkadot/api', version: '6.3.1' };
+7 -1
View File
@@ -4,13 +4,14 @@
// Augment the modules
import '@polkadot/api/augment';
import type { Observable } from 'rxjs';
import type { DeriveCustom, ExactDerive } from '@polkadot/api-derive';
import type { RpcInterface } from '@polkadot/rpc-core/types';
import type { ProviderInterface, ProviderInterfaceEmitted } from '@polkadot/rpc-provider/types';
import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types';
import type { Hash, RuntimeVersion } from '@polkadot/types/interfaces';
import type { Metadata } from '@polkadot/types/metadata';
import type { DefinitionRpc, DefinitionRpcSub, RegisteredTypes, Registry, SignatureOptions, Signer } from '@polkadot/types/types';
import type { CallFunction, DefinitionRpc, DefinitionRpcSub, RegisteredTypes, Registry, RegistryError, SignatureOptions, Signer } from '@polkadot/types/types';
import type { BN } from '@polkadot/util';
import type { ApiBase } from '../base';
import type { DeriveAllSections } from '../util/decorate';
@@ -94,6 +95,7 @@ export interface ApiInterfaceRx {
runtimeMetadata: Metadata;
runtimeVersion: RuntimeVersion;
query: QueryableStorage<'rxjs'>;
queryAt: (blockHash: Uint8Array | string) => Observable<QueryableStorage<'rxjs'>>;
queryMulti: QueryableStorageMulti<'rxjs'>;
rpc: DecoratedRpc<'rxjs', RpcInterface>;
tx: SubmittableExtrinsics<'rxjs'>;
@@ -116,4 +118,8 @@ export interface ApiDecoration<ApiType extends ApiTypes> {
rx: {
query: QueryableStorage<'rxjs'>;
}
findCall (callIndex: Uint8Array | string): CallFunction;
findError (errorIndex: Uint8Array | string): RegistryError;
queryMulti: QueryableStorageMulti<ApiType>;
}
+16 -2
View File
@@ -38,7 +38,7 @@ export interface StorageEntryPromiseOverloadsAt {
}
// This is the most generic typings we can have for a storage entry function
type GenericStorageEntryFunction = (...args: unknown[]) => Observable<Codec>
export type GenericStorageEntryFunction = (...args: unknown[]) => Observable<Codec>
export type QueryableStorageEntry<ApiType extends ApiTypes, A extends AnyTuple = AnyTuple> =
ApiType extends 'rxjs'
@@ -59,14 +59,28 @@ export interface QueryableStorageAt<ApiType extends ApiTypes> extends AugmentedQ
}
export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> extends StorageEntryBaseAt<ApiType, F, A> {
/**
* @deprecated Use api.at(<blockHash>)
*/
at: <T extends Codec | any = ReturnCodec<F>>(hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, T>;
creator: StorageEntry;
/**
* @deprecated Use api.at(<blockHash>)
*/
entriesAt: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
entriesPaged: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
/**
* @deprecated Use api.at(<blockHash>)
*/
keysAt: <K extends AnyTuple = A> (hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
keysPaged: <K extends AnyTuple = A> (opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
// @deprecated The underlying RPC this been marked unsafe and is generally not exposed
/**
* @deprecated The underlying RPC this been marked unsafe and is generally not exposed
*/
range: <T extends Codec | any = ReturnCodec<F>>([from, to]: [Hash | Uint8Array | string, Hash | Uint8Array | string | undefined] | [Hash | Uint8Array | string], ...args: Parameters<F>) => PromiseOrObs<ApiType, [Hash, T][]>;
/**
* @deprecated Use api.at(<blockHash>)
*/
sizeAt: (hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, u64>;
multi: ApiType extends 'rxjs'
? StorageEntryObservableMulti<ReturnCodec<F>>
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "6.2.1",
"version": "6.3.1",
"type": "module",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
@@ -20,10 +20,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/rpc-provider": "6.2.1",
"@polkadot/types": "6.2.1",
"@polkadot/rpc-provider": "6.3.1",
"@polkadot/types": "6.3.1",
"@polkadot/util": "^7.4.1",
"rxjs": "^7.3.0"
"rxjs": "^7.4.0"
},
"devDependencies": {
"@polkadot/keyring": "^7.4.1"
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/rpc-core', version: '6.2.1' };
export const packageInfo = { name: '@polkadot/rpc-core', version: '6.3.1' };
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "6.2.1",
"version": "6.3.1",
"type": "module",
"description": "Transport providers for the API",
"main": "index.js",
@@ -20,7 +20,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/types": "6.2.1",
"@polkadot/types": "6.3.1",
"@polkadot/util": "^7.4.1",
"@polkadot/util-crypto": "^7.4.1",
"@polkadot/x-fetch": "^7.4.1",
@@ -30,8 +30,8 @@
},
"devDependencies": {
"@polkadot/keyring": "^7.4.1",
"@polkadot/types": "6.2.1",
"mock-socket": "^9.0.3",
"@polkadot/types": "6.3.1",
"mock-socket": "^9.0.5",
"nock": "^13.1.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/rpc-provider', version: '6.2.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', version: '6.3.1' };
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "6.2.1",
"version": "6.3.1",
"type": "module",
"description": "Type generation scripts",
"main": "index.js",
@@ -26,13 +26,13 @@
"bugs": "https://github.com/polkadot-js/api/issues",
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
"dependencies": {
"@babel/core": "^7.15.5",
"@babel/core": "^7.15.8",
"@babel/register": "^7.15.3",
"@babel/runtime": "^7.15.4",
"@polkadot/api": "6.2.1",
"@polkadot/rpc-provider": "6.2.1",
"@polkadot/types": "6.2.1",
"@polkadot/types-support": "6.2.1",
"@polkadot/api": "6.3.1",
"@polkadot/rpc-provider": "6.3.1",
"@polkadot/types": "6.3.1",
"@polkadot/types-support": "6.3.1",
"@polkadot/util": "^7.4.1",
"handlebars": "^4.7.7",
"websocket": "^1.0.34",
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/typegen', version: '6.2.1' };
export const packageInfo = { name: '@polkadot/typegen', version: '6.3.1' };
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "6.2.1",
"version": "6.3.1",
"type": "module",
"description": "Known type definitions",
"main": "index.js",
@@ -21,7 +21,7 @@
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/networks": "^7.4.1",
"@polkadot/types": "6.2.1",
"@polkadot/types": "6.3.1",
"@polkadot/util": "^7.4.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/types-known', version: '6.2.1' };
export const packageInfo = { name: '@polkadot/types-known', version: '6.3.1' };
+19 -7
View File
@@ -5,6 +5,8 @@
import type { OverrideVersionedType } from '@polkadot/types/types';
import { mapXcm } from '@polkadot/types/interfaces/xcm/definitions';
const sharedTypes = {
CompactAssignments: 'CompactAssignmentsWith24',
RawSolution: 'RawSolutionWith24',
@@ -191,15 +193,25 @@ const versioned: OverrideVersionedType[] = [
}
},
{
minmax: [9010, undefined],
minmax: [9010, 9099],
types: {
...sharedTypes,
AssetInstance: 'AssetInstanceV0',
MultiAsset: 'MultiAssetV0',
MultiLocation: 'MultiLocationV0',
Response: 'ResponseV0',
Xcm: 'XcmV0',
XcmOrder: 'XcmOrderV0'
...mapXcm('V0')
}
},
{
// jump from 9100 to 9110, however align with Rococo
minmax: [9100, 9105],
types: {
...sharedTypes,
...mapXcm('V1')
}
},
{
// metadata v14
minmax: [9106, undefined],
types: {
...sharedTypes
}
}
];
+8 -1
View File
@@ -74,7 +74,14 @@ const versioned: OverrideVersionedType[] = [
}
},
{
minmax: [30, undefined],
minmax: [30, 9109],
types: {
...sharedTypes
}
},
{
// metadata v14
minmax: [9110, undefined],
types: {
...sharedTypes
}
+18 -7
View File
@@ -5,6 +5,8 @@
import type { OverrideVersionedType } from '@polkadot/types/types';
import { mapXcm } from '@polkadot/types/interfaces/xcm/definitions';
// structs need to be in order
/* eslint-disable sort-keys */
@@ -38,15 +40,24 @@ const versioned: OverrideVersionedType[] = [
}
},
{
minmax: [229, undefined],
minmax: [229, 9099],
types: {
...sharedTypes,
AssetInstance: 'AssetInstanceV0',
MultiAsset: 'MultiAssetV0',
MultiLocation: 'MultiLocationV0',
Response: 'ResponseV0',
Xcm: 'XcmV0',
XcmOrder: 'XcmOrderV0'
...mapXcm('V0')
}
},
{
minmax: [9100, 9105],
types: {
...sharedTypes,
...mapXcm('V1')
}
},
{
// metadata v14
minmax: [9106, undefined],
types: {
...sharedTypes
}
}
];
+18 -7
View File
@@ -5,6 +5,8 @@
import type { OverrideVersionedType } from '@polkadot/types/types';
import { mapXcm } from '@polkadot/types/interfaces/xcm/definitions';
const sharedTypes = {
// 16 validators
CompactAssignments: 'CompactAssignmentsWith16',
@@ -89,15 +91,24 @@ const versioned: OverrideVersionedType[] = [
}
},
{
minmax: [50, undefined],
minmax: [50, 9099],
types: {
...sharedTypes,
AssetInstance: 'AssetInstanceV0',
MultiAsset: 'MultiAssetV0',
MultiLocation: 'MultiLocationV0',
Response: 'ResponseV0',
Xcm: 'XcmV0',
XcmOrder: 'XcmOrderV0'
...mapXcm('V0')
}
},
{
minmax: [9100, 9105],
types: {
...sharedTypes,
...mapXcm('V1')
}
},
{
// metadata v14
minmax: [9106, undefined],
types: {
...sharedTypes
}
}
];
+1 -1
View File
@@ -11,7 +11,7 @@ const upgrades: ChainUpgradesRaw = [
[2549864, 45], [3925782, 46], [3925843, 47], [4207800, 48], [4627944, 49],
[5124076, 50], [5478664, 900], [5482450, 9000], [5584305, 9010], [5784566, 9030],
[5879822, 9031], [5896856, 9032], [5897316, 9033], [6117927, 9050], [6210274, 9070],
[6379314, 9080], [6979141, 9090]
[6379314, 9080], [6979141, 9090], [7568453, 9100]
];
export default upgrades;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-support",
"version": "6.2.1",
"version": "6.3.1",
"type": "module",
"description": "Supporting files for types, mostly for testing",
"main": "index.js",
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -888,6 +888,34 @@
" The fee to be paid for making a transaction; the per-byte portion."
]
},
{
"name": "OperationalFeeMultiplier",
"type": 2,
"value": "0x05",
"docs": [
" A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their",
" `priority`",
"",
" This value is multipled by the `final_fee` to obtain a \"virtual tip\" that is later",
" added to a tip component in regular `priority` calculations.",
" It means that a `Normal` transaction can front-run a similarly-sized `Operational`",
" extrinsic (with no tip), by including a tip value greater than the virtual tip.",
"",
" ```rust,ignore",
" // For `Normal`",
" let priority = priority_calc(tip);",
"",
" // For `Operational`",
" let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;",
" let priority = priority_calc(tip + virtual_tip);",
" ```",
"",
" Note that since we use `final_fee` the multiplier applies also to the regular `tip`",
" sent with the transaction. So, not only does the transaction get a priority bump based",
" on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`",
" transactions."
]
},
{
"name": "WeightToFee",
"type": 331,
@@ -1760,11 +1788,30 @@
]
},
{
"name": "StorageVersion",
"name": "OffendingValidators",
"modifier": "Default",
"type": {
"plain": 361
},
"fallback": "0x00",
"docs": [
" Indices of validators that have offended in the active era and whether they are currently",
" disabled.",
"",
" This value should be a superset of disabled validators since not all offences lead to the",
" validator being disabled (if there was no slash). This is needed to track the percentage of",
" validators that have offended in the current era, ensuring a new era is forced if",
" `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find",
" whether a given validator has previously offended using binary search. It gets cleared when",
" the era ends."
]
},
{
"name": "StorageVersion",
"modifier": "Default",
"type": {
"plain": 363
},
"fallback": "0x07",
"docs": [
" True if network has been upgraded to this version.",
@@ -1841,7 +1888,7 @@
}
],
"errors": {
"type": 362
"type": 364
},
"index": 9
},
@@ -1888,7 +1935,7 @@
"name": "QueuedKeys",
"modifier": "Default",
"type": {
"plain": 363
"plain": 365
},
"fallback": "0x00",
"docs": [
@@ -1906,7 +1953,9 @@
"docs": [
" Indices of disabled validators.",
"",
" The set is cleared when `on_session_ending` returns a new set of identities."
" The vec is always kept sorted so that we can find whether a given validator is",
" disabled using binary search. It gets cleared when `on_session_ending` returns",
" a new set of identities."
]
},
{
@@ -1934,7 +1983,7 @@
"hashers": [
"Twox64Concat"
],
"key": 365,
"key": 367,
"value": 0
}
},
@@ -1953,7 +2002,7 @@
},
"constants": [],
"errors": {
"type": 367
"type": 369
},
"index": 10
},
@@ -1977,7 +2026,7 @@
"name": "PublicProps",
"modifier": "Default",
"type": {
"plain": 368
"plain": 370
},
"fallback": "0x00",
"docs": [
@@ -1993,7 +2042,7 @@
"Twox64Concat"
],
"key": 4,
"value": 370
"value": 372
}
},
"fallback": "0x00",
@@ -2012,7 +2061,7 @@
"Identity"
],
"key": 9,
"value": 371
"value": 373
}
},
"fallback": "0x00",
@@ -2053,7 +2102,7 @@
"Twox64Concat"
],
"key": 4,
"value": 372
"value": 374
}
},
"fallback": "0x00",
@@ -2072,7 +2121,7 @@
"Twox64Concat"
],
"key": 0,
"value": 375
"value": 377
}
},
"fallback": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
@@ -2119,7 +2168,7 @@
"name": "NextExternal",
"modifier": "Optional",
"type": {
"plain": 380
"plain": 382
},
"fallback": "0x00",
"docs": [
@@ -2138,7 +2187,7 @@
"Identity"
],
"key": 9,
"value": 381
"value": 383
}
},
"fallback": "0x00",
@@ -2168,7 +2217,7 @@
"name": "StorageVersion",
"modifier": "Optional",
"type": {
"plain": 382
"plain": 384
},
"fallback": "0x00",
"docs": [
@@ -2288,7 +2337,7 @@
}
],
"errors": {
"type": 383
"type": 385
},
"index": 11
},
@@ -2301,7 +2350,7 @@
"name": "Proposals",
"modifier": "Default",
"type": {
"plain": 384
"plain": 386
},
"fallback": "0x00",
"docs": [
@@ -2334,7 +2383,7 @@
"Identity"
],
"key": 9,
"value": 385
"value": 387
}
},
"fallback": "0x00",
@@ -2385,7 +2434,7 @@
},
"constants": [],
"errors": {
"type": 386
"type": 388
},
"index": 12
},
@@ -2398,7 +2447,7 @@
"name": "Proposals",
"modifier": "Default",
"type": {
"plain": 387
"plain": 389
},
"fallback": "0x00",
"docs": [
@@ -2431,7 +2480,7 @@
"Identity"
],
"key": 9,
"value": 385
"value": 387
}
},
"fallback": "0x00",
@@ -2482,7 +2531,7 @@
},
"constants": [],
"errors": {
"type": 388
"type": 390
},
"index": 13
},
@@ -2495,7 +2544,7 @@
"name": "Members",
"modifier": "Default",
"type": {
"plain": 389
"plain": 391
},
"fallback": "0x00",
"docs": [
@@ -2508,7 +2557,7 @@
"name": "RunnersUp",
"modifier": "Default",
"type": {
"plain": 389
"plain": 391
},
"fallback": "0x00",
"docs": [
@@ -2554,7 +2603,7 @@
"Twox64Concat"
],
"key": 0,
"value": 391
"value": 393
}
},
"fallback": "0x000000000000000000000000000000000000000000000000000000000000000000",
@@ -2636,7 +2685,7 @@
}
],
"errors": {
"type": 392
"type": 394
},
"index": 14
},
@@ -2677,7 +2726,7 @@
},
"constants": [],
"errors": {
"type": 393
"type": 395
},
"index": 15
},
@@ -2690,7 +2739,7 @@
"name": "State",
"modifier": "Default",
"type": {
"plain": 394
"plain": 396
},
"fallback": "0x00",
"docs": [
@@ -2701,7 +2750,7 @@
"name": "PendingChange",
"modifier": "Optional",
"type": {
"plain": 395
"plain": 397
},
"fallback": "0x00",
"docs": [
@@ -2781,7 +2830,7 @@
}
],
"errors": {
"type": 397
"type": 399
},
"index": 16
},
@@ -2810,7 +2859,7 @@
"Twox64Concat"
],
"key": 4,
"value": 398
"value": 400
}
},
"fallback": "0x00",
@@ -2822,7 +2871,7 @@
"name": "Approvals",
"modifier": "Default",
"type": {
"plain": 399
"plain": 401
},
"fallback": "0x00",
"docs": [
@@ -2840,7 +2889,7 @@
"constants": [
{
"name": "ProposalBond",
"type": 400,
"type": 402,
"value": "0x50c30000",
"docs": [
" Fraction of a proposal's value that should be bonded in order to place the proposal.",
@@ -2865,7 +2914,7 @@
},
{
"name": "Burn",
"type": 400,
"type": 402,
"value": "0x20a10700",
"docs": [
" Percentage of spare funds (if any) that are burnt per spend period."
@@ -2873,7 +2922,7 @@
},
{
"name": "PalletId",
"type": 401,
"type": 403,
"value": "0x70792f7472737279",
"docs": [
" The treasury's pallet id, used for deriving its sovereign account ID."
@@ -2889,7 +2938,7 @@
}
],
"errors": {
"type": 402
"type": 404
},
"index": 17
},
@@ -2924,7 +2973,7 @@
"Identity"
],
"key": 9,
"value": 403
"value": 405
}
},
"fallback": "0x00",
@@ -2952,7 +3001,7 @@
"Twox64Concat"
],
"key": 0,
"value": 405
"value": 407
}
},
"fallback": "0x00",
@@ -2966,7 +3015,7 @@
"name": "DeletionQueue",
"modifier": "Default",
"type": {
"plain": 406
"plain": 408
},
"fallback": "0x00",
"docs": [
@@ -2987,7 +3036,7 @@
"constants": [
{
"name": "Schedule",
"type": 408,
"type": 410,
"value": "0x040000000002000000010000800000001000000000100000000100002000000020000000004000000000020002000000a4150000f03200004a3d0000280f0000ce220000f4150000180b0000521c00000000000046c10200a8030400c80f000000050000c0080000000000009a15000052170000241300009b684a028e1200008e1200008e1200007012000000000000000000002a120000a410000086100000640f00001e0f0000b00e00005e100000ae10000072100000fe100000d61000006810000004100000d20f0000a6270000be1e000072290000141e0000d61000000e1000005a0f0000320f0000ae100000500f0000140f0000dc0f0000f425130000000000de3113000000000068f81200000000001a1e360000000000be38130000000000d616130000000000043e1300000000005411130000000000281a13000000000040572c000000000018ad0800000000001a531000000000007301000000000000d8f563000000000068020000000000000072a4200000000038093c0000000000aa696900000000007e4ebd07000000005306000000000000d81c0b0000000000fc4b1b0600000000bf02000000000000001e180600000000faf6d001000000004704000000000000caeb080a000000007a612d1f000000005aced709000000006c02000000000000e0030000000000002ef30132000000006b02000000000000d703000000000000b1070000000000005e6a1400000000000b1300000000000040781500000000003c0d0000000000005855110000000000420600000000000012461100000000004206000000000000c22a500900000000",
"docs": [
" Cost schedule and limits."
@@ -3022,7 +3071,7 @@
}
],
"errors": {
"type": 412
"type": 414
},
"index": 18
},
@@ -3052,7 +3101,7 @@
},
"constants": [],
"errors": {
"type": 413
"type": 415
},
"index": 19
},
@@ -3086,7 +3135,7 @@
"name": "Keys",
"modifier": "Default",
"type": {
"plain": 414
"plain": 416
},
"fallback": "0x00",
"docs": [
@@ -3103,12 +3152,12 @@
"Twox64Concat"
],
"key": 73,
"value": 416
"value": 418
}
},
"fallback": "0x00",
"docs": [
" For each session index, we keep a mapping of 'SessionIndex` and `AuthIndex` to",
" For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to",
" `WrapperOpaque<BoundedOpaqueNetworkState>`."
]
},
@@ -3153,7 +3202,7 @@
}
],
"errors": {
"type": 421
"type": 423
},
"index": 20
},
@@ -3180,7 +3229,7 @@
"Twox64Concat"
],
"key": 9,
"value": 422
"value": 424
}
},
"fallback": "0x00",
@@ -3197,7 +3246,7 @@
"Twox64Concat",
"Twox64Concat"
],
"key": 423,
"key": 425,
"value": 95
}
},
@@ -3287,7 +3336,7 @@
"Twox64Concat"
],
"key": 0,
"value": 424
"value": 426
}
},
"fallback": "0x00",
@@ -3324,7 +3373,7 @@
"Twox64Concat"
],
"key": 0,
"value": 428
"value": 430
}
},
"fallback": "0x0000000000000000000000000000000000",
@@ -3340,7 +3389,7 @@
"name": "Registrars",
"modifier": "Default",
"type": {
"plain": 430
"plain": 432
},
"fallback": "0x00",
"docs": [
@@ -3413,7 +3462,7 @@
}
],
"errors": {
"type": 434
"type": 436
},
"index": 25
},
@@ -3449,7 +3498,7 @@
"name": "Candidates",
"modifier": "Default",
"type": {
"plain": 435
"plain": 437
},
"fallback": "0x00",
"docs": [
@@ -3465,7 +3514,7 @@
"Twox64Concat"
],
"key": 0,
"value": 438
"value": 440
}
},
"fallback": "0x00",
@@ -3527,7 +3576,7 @@
"name": "Bids",
"modifier": "Default",
"type": {
"plain": 435
"plain": 437
},
"fallback": "0x00",
"docs": [
@@ -3543,7 +3592,7 @@
"Twox64Concat"
],
"key": 0,
"value": 439
"value": 441
}
},
"fallback": "0x00",
@@ -3560,7 +3609,7 @@
"Twox64Concat"
],
"key": 0,
"value": 440
"value": 442
}
},
"fallback": "0x00",
@@ -3594,8 +3643,8 @@
"Twox64Concat",
"Twox64Concat"
],
"key": 442,
"value": 443
"key": 444,
"value": 445
}
},
"fallback": "0x00",
@@ -3623,7 +3672,7 @@
"Twox64Concat"
],
"key": 0,
"value": 443
"value": 445
}
},
"fallback": "0x00",
@@ -3653,7 +3702,7 @@
"constants": [
{
"name": "PalletId",
"type": 401,
"type": 403,
"value": "0x70792f736f636965",
"docs": [
" The societies's pallet id"
@@ -3727,7 +3776,7 @@
}
],
"errors": {
"type": 444
"type": 446
},
"index": 26
},
@@ -3745,7 +3794,7 @@
"Twox64Concat"
],
"key": 0,
"value": 445
"value": 447
}
},
"fallback": "0x00",
@@ -3762,8 +3811,8 @@
"Twox64Concat",
"Twox64Concat"
],
"key": 442,
"value": 446
"key": 444,
"value": 448
}
},
"fallback": "0x00",
@@ -3849,7 +3898,7 @@
}
],
"errors": {
"type": 447
"type": 449
},
"index": 27
},
@@ -3867,7 +3916,7 @@
"Blake2_128Concat"
],
"key": 0,
"value": 448
"value": 450
}
},
"fallback": "0x00",
@@ -3879,7 +3928,7 @@
"name": "StorageVersion",
"modifier": "Default",
"type": {
"plain": 450
"plain": 452
},
"fallback": "0x00",
"docs": [
@@ -3913,7 +3962,7 @@
}
],
"errors": {
"type": 451
"type": 453
},
"index": 28
},
@@ -3931,7 +3980,7 @@
"Twox64Concat"
],
"key": 4,
"value": 452
"value": 454
}
},
"fallback": "0x00",
@@ -3960,7 +4009,7 @@
"name": "StorageVersion",
"modifier": "Default",
"type": {
"plain": 460
"plain": 462
},
"fallback": "0x00",
"docs": [
@@ -3998,7 +4047,7 @@
}
],
"errors": {
"type": 461
"type": 463
},
"index": 29
},
@@ -4016,7 +4065,7 @@
"Twox64Concat"
],
"key": 0,
"value": 462
"value": 464
}
},
"fallback": "0x0000000000000000000000000000000000",
@@ -4034,7 +4083,7 @@
"Twox64Concat"
],
"key": 0,
"value": 466
"value": 468
}
},
"fallback": "0x0000000000000000000000000000000000",
@@ -4114,7 +4163,7 @@
}
],
"errors": {
"type": 470
"type": 472
},
"index": 30
},
@@ -4132,8 +4181,8 @@
"Twox64Concat",
"Blake2_128Concat"
],
"key": 471,
"value": 472
"key": 473,
"value": 474
}
},
"fallback": "0x00",
@@ -4150,7 +4199,7 @@
"Identity"
],
"key": 1,
"value": 473
"value": 475
}
},
"fallback": "0x00",
@@ -4198,7 +4247,7 @@
}
],
"errors": {
"type": 474
"type": 476
},
"index": 31
},
@@ -4227,7 +4276,7 @@
"Twox64Concat"
],
"key": 4,
"value": 475
"value": 477
}
},
"fallback": "0x00",
@@ -4298,7 +4347,7 @@
},
{
"name": "BountyCuratorDeposit",
"type": 400,
"type": 402,
"value": "0x20a10700",
"docs": [
" Percentage of the curator fee that will be reserved upfront as deposit for bounty",
@@ -4331,7 +4380,7 @@
}
],
"errors": {
"type": 477
"type": 479
},
"index": 32
},
@@ -4349,7 +4398,7 @@
"Twox64Concat"
],
"key": 9,
"value": 478
"value": 480
}
},
"fallback": "0x00",
@@ -4428,7 +4477,7 @@
}
],
"errors": {
"type": 479
"type": 481
},
"index": 33
},
@@ -4446,7 +4495,7 @@
"Blake2_128Concat"
],
"key": 4,
"value": 480
"value": 482
}
},
"fallback": "0x00",
@@ -4464,7 +4513,7 @@
"Blake2_128Concat"
],
"key": 350,
"value": 481
"value": 483
}
},
"fallback": "0x00000000000000000000",
@@ -4482,8 +4531,8 @@
"Blake2_128Concat",
"Blake2_128Concat"
],
"key": 482,
"value": 483
"key": 484,
"value": 485
}
},
"fallback": "0x00",
@@ -4502,7 +4551,7 @@
"Blake2_128Concat"
],
"key": 4,
"value": 484
"value": 486
}
},
"fallback": "0x0000000000000000000000000000000000000000",
@@ -4562,7 +4611,7 @@
}
],
"errors": {
"type": 485
"type": 487
},
"index": 34
},
@@ -4639,7 +4688,7 @@
"name": "Lottery",
"modifier": "Optional",
"type": {
"plain": 486
"plain": 488
},
"fallback": "0x00",
"docs": [
@@ -4655,7 +4704,7 @@
"Twox64Concat"
],
"key": 0,
"value": 487
"value": 489
}
},
"fallback": "0x0000000000",
@@ -4698,7 +4747,7 @@
"name": "CallIndices",
"modifier": "Default",
"type": {
"plain": 488
"plain": 490
},
"fallback": "0x00",
"docs": [
@@ -4717,7 +4766,7 @@
"constants": [
{
"name": "PalletId",
"type": 401,
"type": 403,
"value": "0x70792f6c6f74746f",
"docs": [
" The Lottery's pallet id"
@@ -4743,7 +4792,7 @@
}
],
"errors": {
"type": 489
"type": 491
},
"index": 36
},
@@ -4756,7 +4805,7 @@
"name": "QueueTotals",
"modifier": "Default",
"type": {
"plain": 440
"plain": 442
},
"fallback": "0x00",
"docs": [
@@ -4776,7 +4825,7 @@
"Blake2_128Concat"
],
"key": 4,
"value": 490
"value": 492
}
},
"fallback": "0x00",
@@ -4788,7 +4837,7 @@
"name": "ActiveTotal",
"modifier": "Default",
"type": {
"plain": 492
"plain": 494
},
"fallback": "0x000000000000000000000000000000000000000000000000000000000000000000000000",
"docs": [
@@ -4804,7 +4853,7 @@
"Blake2_128Concat"
],
"key": 4,
"value": 493
"value": 495
}
},
"fallback": "0x00",
@@ -4821,15 +4870,6 @@
"type": 85
},
"constants": [
{
"name": "IgnoredIssuance",
"type": 6,
"value": "0x00000000000000000000000000000000",
"docs": [
" The issuance to ignore. This is subtracted from the `Currency`'s `total_issuance` to get",
" the issuance by which we inflate or deflate the gilt."
]
},
{
"name": "QueueCount",
"type": 4,
@@ -4903,7 +4943,7 @@
}
],
"errors": {
"type": 494
"type": 496
},
"index": 37
},
@@ -4921,7 +4961,7 @@
"Blake2_128Concat"
],
"key": 4,
"value": 495
"value": 497
}
},
"fallback": "0x00",
@@ -4939,7 +4979,7 @@
"Blake2_128Concat",
"Blake2_128Concat"
],
"key": 496,
"key": 498,
"value": 42
}
},
@@ -4959,7 +4999,7 @@
"Blake2_128Concat"
],
"key": 73,
"value": 497
"value": 499
}
},
"fallback": "0x00",
@@ -4976,7 +5016,7 @@
"Blake2_128Concat"
],
"key": 4,
"value": 498
"value": 500
}
},
"fallback": "0x00",
@@ -4994,7 +5034,7 @@
"Blake2_128Concat"
],
"key": 73,
"value": 499
"value": 501
}
},
"fallback": "0x00",
@@ -5012,8 +5052,8 @@
"Blake2_128Concat",
"Blake2_128Concat"
],
"key": 500,
"value": 501
"key": 502,
"value": 503
}
},
"fallback": "0x00",
@@ -5097,7 +5137,7 @@
}
],
"errors": {
"type": 502
"type": 504
},
"index": 38
},
@@ -5115,7 +5155,7 @@
"Blake2_128Concat"
],
"key": 4,
"value": 503
"value": 505
}
},
"fallback": "0x00",
@@ -5200,7 +5240,7 @@
"name": "BlockTransactions",
"modifier": "Default",
"type": {
"plain": 503
"plain": 505
},
"fallback": "0x00",
"docs": []
@@ -5226,7 +5266,7 @@
},
"constants": [],
"errors": {
"type": 505
"type": 507
},
"index": 39
},
@@ -5255,7 +5295,7 @@
"Twox64Concat"
],
"key": 0,
"value": 506
"value": 508
}
},
"fallback": "0x00",
@@ -5274,7 +5314,7 @@
"Twox64Concat"
],
"key": 8,
"value": 507
"value": 509
}
},
"fallback": "0x00",
@@ -5295,7 +5335,7 @@
"constants": [
{
"name": "BagThresholds",
"type": 508,
"type": 510,
"value": "0x210300407a10f35a00006a70ccd4a96000009ef3397fbc660000a907ccd5306d00003d9a67fb0c740000a9bfa275577b0000a6fdf73217830000034f5d91538b0000132445651494000078081001629d00000302f63c45a70000392e6f7fc7b10000f59c23c6f2bc00004ae76aafd1c80000598a64846fd50000129fb243d8e200003f22e1ac18f1000033a4844c3e000100e2e51b895710010076a2c0b0732101006789b407a3330100793ed8d7f646010078131b81815b01000c1cf38a567101004437eeb68a8801009eb56d1434a10100335e9f156abb010067c3c7a545d701003218f340e1f40100de0b230d59140200699c11f5ca350200ad50a2c4565902009ae41c471e7f0200d0244e6745a70200f984ad51f2d10200ace7a7984dff0200a118325b822f0300ffa4c76dbe620300580bfd8532990300a9afce6812d30300109ad81b95100400d9caa519f551040038df488970970400bee1727949e10400cc73401fc62f0500b304f91831830500828bffb4d9db05001235383d143a0600a5b42a473a9e060036662d09ab080700f73aeab4cb790700b87e93d707f20700ffec23c0d1710800b84b0beca2f90800c9dcae7afc89090091752ba867230a0064f1cd4f76c60a003609be76c3730b0078655fdff32b0c00a407f5a5b6ef0c0052f61be7c5bf0d00da71bb70e79c0e000de9127eed870f001477987fb7811000ebee65ef328b11001269fe325ca5120033f8428b3fd113008ba57a13fa0f15001b2b60d0ba6216000d1d37d0c3ca17006c64fa5c6b4919002622c7411de01a00045bb9245c901c00233d83f6c25b1e00c8771c79064420003013fddef64a2200aa8b6e848172240082c096c4b2bc260016a3faebb72b29008296524ae1c12b00a636a865a4812e00d0e2d4509e6d31009c0a9a2796883400e4faafb27fd53700e6e64d367e573b000e4bd66de7113f0088b17db746084300b07def72603e470034de249635b84b00d48bd57b077a5000d0bd20ef5b885500b8f0467801e85a0010f88aee139e60003892925301b066009c95e4fc8e236d00b4126d10dffe730028b43e5976487b00a08a1c7a42078300b09ab083a0428b002846b2f463029400c861a42ade4e9d0050d23d4ae630a700805101a7e1b1b10038e501b2ccdbbc002016527844b9c800388924ba9055d50070ca35a4aebce200805fb1355cfbf0008035685d241f0001a0c3dcd96b361001d07862e87e50210160e852d09f7d330190662c5816cf460110274c3340575b01804be277a22971013082b92dfc5a880180d276075a01a101b0f511592b34bb014031745f580cd701802f6cee59a4f40140ff799b521814026075607d2986350260fde999a60d590200e5e71c91d07e02c0df2575cff2a602a07fd975899ad102a067009d4cf0fe0220dc29a1321f2f0320ff526b0a5562038088caa383c29803e05683fb5c9bd203401dd75d9516100400317e39a06e5104c0b071129de1960480b48c9192b1e00480e8124aad242f05c007ca7082858205007c13c45623db0540836fe869523906c0700f81466c9d0640f09c5017d00707c0e624b301e37807c0332ac78510f10780074ca1e4ca700800d5a9eb8c8bf80800a849588ed3880900804254142c220a80a25170e826c50a00e8d5fafc5e720b801df64e00792a0c80d4fe64f923ee0c006dd038ee19be0d001e90a494209b0e0010bf570e0a860f00da6a9db0b57f1000bf64afd810891100bb5b60cd17a31200f963f3aed6ce1300d5f004766a0d1500e099770202601600103d663bdfc71700de3e2d4158461900ecdbadb2d8dc1a0045c70007e38c1c00b8bde0fc11581e00ba5c2a211a402000407de46dcb462200dea55b03136e2400aaf1f3fcfcb7260014226f63b62629006492803e8fbc2b008486a6c7fc7b2e002cf05fc09b673100da63f7ed32823400f0b13fbdb5ce3700f291c41047503b00422a1a3c3c0a3f002c24212f20004300ac9342d4b6354700cc6ed7a400af4b00c4d022773e70500020017d89f57d5500f86387cef3dc5a008c4c7f7e54926000206207f284a36600cc1e05cb49166d00b42a7a70c4f07300d43a90e278397b0038f461ec53f78200a07264b9b1318b0048c9b3d464f09300007fe998bd3b9d0010058f17921ca70000dfaf7f469cb100e80c880bd6c4bc0058bdcb7ddca0c80038d18d37a03bd50030d55bf01ca1e200704ac01a0fdef0ffffffffffffffff",
"docs": [
" The list of thresholds separating the various bags.",
@@ -5349,42 +5389,42 @@
}
],
"extrinsic": {
"type": 509,
"type": 511,
"version": 4,
"signedExtensions": [
{
"identifier": "CheckSpecVersion",
"type": 514,
"type": 516,
"additionalSigned": 4
},
{
"identifier": "CheckTxVersion",
"type": 515,
"type": 517,
"additionalSigned": 4
},
{
"identifier": "CheckGenesis",
"type": 516,
"type": 518,
"additionalSigned": 9
},
{
"identifier": "CheckMortality",
"type": 517,
"type": 519,
"additionalSigned": 9
},
{
"identifier": "CheckNonce",
"type": 519,
"type": 521,
"additionalSigned": 42
},
{
"identifier": "CheckWeight",
"type": 520,
"type": 522,
"additionalSigned": 42
},
{
"identifier": "ChargeTransactionPayment",
"type": 521,
"type": 523,
"additionalSigned": 42
}
]
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/types-support', version: '6.2.1' };
export const packageInfo = { name: '@polkadot/types-support', version: '6.3.1' };
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "6.2.1",
"version": "6.3.1",
"type": "module",
"description": "Implementation of the Parity codec",
"main": "index.js",
@@ -22,11 +22,11 @@
"@babel/runtime": "^7.15.4",
"@polkadot/util": "^7.4.1",
"@polkadot/util-crypto": "^7.4.1",
"rxjs": "^7.3.0"
"rxjs": "^7.4.0"
},
"devDependencies": {
"@polkadot/keyring": "^7.4.1",
"@polkadot/types-support": "6.2.1",
"@polkadot/types-support": "6.3.1",
"@types/bn.js": "^4.11.6",
"bn.js": "^4.12.0"
}
+15 -15
View File
@@ -418,7 +418,7 @@ export default {
}
},
/**
* Lookup239: kusama_runtime::SessionKeys
* Lookup241: kusama_runtime::SessionKeys
**/
KusamaRuntimeSessionKeys: {
grandpa: 'SpFinalityGrandpaAppPublic',
@@ -429,7 +429,7 @@ export default {
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
},
/**
* Lookup369: kusama_runtime::NposCompactSolution24
* Lookup371: kusama_runtime::NposCompactSolution24
**/
KusamaRuntimeNposCompactSolution24: {
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
@@ -458,7 +458,7 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
},
/**
* Lookup502: xcm::VersionedXcm<Call>
* Lookup504: xcm::VersionedXcm<Call>
**/
XcmVersionedXcm: {
_enum: {
@@ -468,7 +468,7 @@ export default {
}
},
/**
* Lookup503: xcm::v0::Xcm<Call>
* Lookup505: xcm::v0::Xcm<Call>
**/
XcmV0Xcm: {
_enum: {
@@ -522,7 +522,7 @@ export default {
}
},
/**
* Lookup505: xcm::v0::order::Order<Call>
* Lookup507: xcm::v0::order::Order<Call>
**/
XcmV0Order: {
_enum: {
@@ -565,7 +565,7 @@ export default {
}
},
/**
* Lookup507: xcm::v0::Response
* Lookup509: xcm::v0::Response
**/
XcmV0Response: {
_enum: {
@@ -573,7 +573,7 @@ export default {
}
},
/**
* Lookup508: xcm::v1::Xcm<Call>
* Lookup510: xcm::v1::Xcm<Call>
**/
XcmV1Xcm: {
_enum: {
@@ -632,7 +632,7 @@ export default {
}
},
/**
* Lookup510: xcm::v1::order::Order<Call>
* Lookup512: xcm::v1::order::Order<Call>
**/
XcmV1Order: {
_enum: {
@@ -677,7 +677,7 @@ export default {
}
},
/**
* Lookup512: xcm::v1::Response
* Lookup514: xcm::v1::Response
**/
XcmV1Response: {
_enum: {
@@ -686,7 +686,7 @@ export default {
}
},
/**
* Lookup573: kusama_runtime::OriginCaller
* Lookup575: kusama_runtime::OriginCaller
**/
KusamaRuntimeOriginCaller: {
_enum: {
@@ -793,7 +793,7 @@ export default {
}
},
/**
* Lookup578: pallet_xcm::pallet::Origin
* Lookup580: pallet_xcm::pallet::Origin
**/
PalletXcmOrigin: {
_enum: {
@@ -802,7 +802,7 @@ export default {
}
},
/**
* Lookup682: pallet_xcm::pallet::QueryStatus<BlockNumber>
* Lookup689: pallet_xcm::pallet::QueryStatus<BlockNumber>
**/
PalletXcmQueryStatus: {
_enum: {
@@ -822,7 +822,7 @@ export default {
}
},
/**
* Lookup685: xcm::VersionedResponse
* Lookup692: xcm::VersionedResponse
**/
XcmVersionedResponse: {
_enum: {
@@ -832,7 +832,7 @@ export default {
}
},
/**
* Lookup691: pallet_xcm::pallet::VersionMigrationStage
* Lookup698: pallet_xcm::pallet::VersionMigrationStage
**/
PalletXcmVersionMigrationStage: {
_enum: {
@@ -843,7 +843,7 @@ export default {
}
},
/**
* Lookup703: kusama_runtime::Runtime
* Lookup710: kusama_runtime::Runtime
**/
KusamaRuntimeRuntime: 'Null'
} as DefinitionsTypes;
+35 -27
View File
@@ -328,7 +328,7 @@ export default {
}
},
/**
* Lookup506: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
* Lookup508: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
**/
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
maxCodeSize: 'u32',
@@ -373,14 +373,14 @@ export default {
umpMaxIndividualWeight: 'u64'
},
/**
* Lookup510: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
* Lookup512: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
**/
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
bitfield: 'BitVec',
submittedAt: 'u32'
},
/**
* Lookup511: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
* Lookup513: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
**/
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
_alias: {
@@ -396,32 +396,40 @@ export default {
backingGroup: 'u32'
},
/**
* Lookup515: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
* Lookup515: polkadot_primitives::v1::ScrapedOnChainVotes<primitive_types::H256>
**/
PolkadotPrimitivesV1ScrapedOnChainVotes: {
session: 'u32',
backingValidatorsPerCandidate: 'Vec<(PolkadotPrimitivesV1CandidateReceipt,Vec<(u32,PolkadotPrimitivesV0ValidityAttestation)>)>',
disputes: 'Vec<PolkadotPrimitivesV1DisputeStatementSet>'
},
/**
* Lookup522: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
**/
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
nextCoreOffset: 'u32'
},
/**
* Lookup517: polkadot_runtime_parachains::scheduler::QueuedParathread
* Lookup524: polkadot_runtime_parachains::scheduler::QueuedParathread
**/
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
claim: 'PolkadotPrimitivesV1ParathreadEntry',
coreOffset: 'u32'
},
/**
* Lookup518: polkadot_primitives::v1::ParathreadEntry
* Lookup525: polkadot_primitives::v1::ParathreadEntry
**/
PolkadotPrimitivesV1ParathreadEntry: {
claim: 'PolkadotPrimitivesV1ParathreadClaim',
retries: 'u32'
},
/**
* Lookup519: polkadot_primitives::v1::ParathreadClaim
* Lookup526: polkadot_primitives::v1::ParathreadClaim
**/
PolkadotPrimitivesV1ParathreadClaim: '(u32,PolkadotPrimitivesV0CollatorAppPublic)',
/**
* Lookup522: polkadot_primitives::v1::CoreOccupied
* Lookup529: polkadot_primitives::v1::CoreOccupied
**/
PolkadotPrimitivesV1CoreOccupied: {
_enum: {
@@ -430,7 +438,7 @@ export default {
}
},
/**
* Lookup525: polkadot_runtime_parachains::scheduler::CoreAssignment
* Lookup532: polkadot_runtime_parachains::scheduler::CoreAssignment
**/
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
core: 'u32',
@@ -439,7 +447,7 @@ export default {
groupIdx: 'u32'
},
/**
* Lookup526: polkadot_runtime_parachains::scheduler::AssignmentKind
* Lookup533: polkadot_runtime_parachains::scheduler::AssignmentKind
**/
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
_enum: {
@@ -448,39 +456,39 @@ export default {
}
},
/**
* Lookup527: polkadot_runtime_parachains::paras::ParaLifecycle
* Lookup534: polkadot_runtime_parachains::paras::ParaLifecycle
**/
PolkadotRuntimeParachainsParasParaLifecycle: {
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
},
/**
* Lookup529: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
* Lookup536: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
**/
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
lastPruned: 'Option<u32>'
},
/**
* Lookup531: polkadot_runtime_parachains::paras::ReplacementTimes<N>
* Lookup538: polkadot_runtime_parachains::paras::ReplacementTimes<N>
**/
PolkadotRuntimeParachainsParasReplacementTimes: {
expectedAt: 'u32',
activatedAt: 'u32'
},
/**
* Lookup533: polkadot_primitives::v1::UpgradeGoAhead
* Lookup540: polkadot_primitives::v1::UpgradeGoAhead
**/
PolkadotPrimitivesV1UpgradeGoAhead: {
_enum: ['Abort', 'GoAhead']
},
/**
* Lookup534: polkadot_primitives::v1::UpgradeRestriction
* Lookup541: polkadot_primitives::v1::UpgradeRestriction
**/
PolkadotPrimitivesV1UpgradeRestriction: {
_enum: ['Present']
},
/**
* Lookup535: polkadot_runtime_parachains::paras::ParaGenesisArgs
* Lookup542: polkadot_runtime_parachains::paras::ParaGenesisArgs
**/
PolkadotRuntimeParachainsParasParaGenesisArgs: {
genesisHead: 'Bytes',
@@ -488,7 +496,7 @@ export default {
parachain: 'bool'
},
/**
* Lookup538: polkadot_runtime_parachains::initializer::BufferedSessionChange
* Lookup545: polkadot_runtime_parachains::initializer::BufferedSessionChange
**/
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
@@ -496,14 +504,14 @@ export default {
sessionIndex: 'u32'
},
/**
* Lookup540: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
* Lookup547: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
**/
PolkadotCorePrimitivesInboundDownwardMessage: {
sentAt: 'u32',
msg: 'Bytes'
},
/**
* Lookup543: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
* Lookup550: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
**/
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
confirmed: 'bool',
@@ -514,7 +522,7 @@ export default {
maxTotalSize: 'u32'
},
/**
* Lookup545: polkadot_runtime_parachains::hrmp::HrmpChannel
* Lookup552: polkadot_runtime_parachains::hrmp::HrmpChannel
**/
PolkadotRuntimeParachainsHrmpHrmpChannel: {
maxCapacity: 'u32',
@@ -527,14 +535,14 @@ export default {
recipientDeposit: 'u128'
},
/**
* Lookup548: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
* Lookup555: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
**/
PolkadotCorePrimitivesInboundHrmpMessage: {
sentAt: 'u32',
data: 'Bytes'
},
/**
* Lookup553: polkadot_primitives::v1::SessionInfo
* Lookup560: polkadot_primitives::v1::SessionInfo
**/
PolkadotPrimitivesV1SessionInfo: {
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
@@ -549,7 +557,7 @@ export default {
neededApprovals: 'u32'
},
/**
* Lookup555: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
* Lookup562: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
**/
PolkadotRuntimeCommonParasRegistrarParaInfo: {
manager: 'AccountId32',
@@ -557,7 +565,7 @@ export default {
locked: 'bool'
},
/**
* Lookup565: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
* Lookup572: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
**/
PolkadotRuntimeCommonCrowdloanFundInfo: {
depositor: 'AccountId32',
@@ -572,7 +580,7 @@ export default {
trieIndex: 'u32'
},
/**
* Lookup566: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
* Lookup573: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
**/
PolkadotRuntimeCommonCrowdloanLastContribution: {
_enum: {
@@ -582,11 +590,11 @@ export default {
}
},
/**
* Lookup578: polkadot_runtime_common::claims::PrevalidateAttests<T>
* Lookup585: polkadot_runtime_common::claims::PrevalidateAttests<T>
**/
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
/**
* Lookup579: polkadot_runtime::Runtime
* Lookup586: polkadot_runtime::Runtime
**/
PolkadotRuntimeRuntime: 'Null'
} as DefinitionsTypes;
+71 -71
View File
@@ -755,17 +755,17 @@ export default {
paidOut: 'u128'
},
/**
* Lookup361: pallet_staking::Releases
* Lookup363: pallet_staking::Releases
**/
PalletStakingReleases: {
_enum: ['V1_0_0Ancient', 'V2_0_0', 'V3_0_0', 'V4_0_0', 'V5_0_0', 'V6_0_0', 'V7_0_0', 'V8_0_0']
},
/**
* Lookup366: sp_core::crypto::KeyTypeId
* Lookup368: sp_core::crypto::KeyTypeId
**/
SpCoreCryptoKeyTypeId: '[u8;4]',
/**
* Lookup371: pallet_democracy::PreimageStatus<sp_core::crypto::AccountId32, Balance, BlockNumber>
* Lookup373: pallet_democracy::PreimageStatus<sp_core::crypto::AccountId32, Balance, BlockNumber>
**/
PalletDemocracyPreimageStatus: {
_enum: {
@@ -780,7 +780,7 @@ export default {
}
},
/**
* Lookup372: pallet_democracy::types::ReferendumInfo<BlockNumber, primitive_types::H256, Balance>
* Lookup374: pallet_democracy::types::ReferendumInfo<BlockNumber, primitive_types::H256, Balance>
**/
PalletDemocracyReferendumInfo: {
_enum: {
@@ -792,7 +792,7 @@ export default {
}
},
/**
* Lookup373: pallet_democracy::types::ReferendumStatus<BlockNumber, primitive_types::H256, Balance>
* Lookup375: pallet_democracy::types::ReferendumStatus<BlockNumber, primitive_types::H256, Balance>
**/
PalletDemocracyReferendumStatus: {
end: 'u32',
@@ -802,7 +802,7 @@ export default {
tally: 'PalletDemocracyTally'
},
/**
* Lookup374: pallet_democracy::types::Tally<Balance>
* Lookup376: pallet_democracy::types::Tally<Balance>
**/
PalletDemocracyTally: {
ayes: 'u128',
@@ -810,7 +810,7 @@ export default {
turnout: 'u128'
},
/**
* Lookup375: pallet_democracy::vote::Voting<Balance, sp_core::crypto::AccountId32, BlockNumber>
* Lookup377: pallet_democracy::vote::Voting<Balance, sp_core::crypto::AccountId32, BlockNumber>
**/
PalletDemocracyVoteVoting: {
_enum: {
@@ -829,24 +829,24 @@ export default {
}
},
/**
* Lookup378: pallet_democracy::types::Delegations<Balance>
* Lookup380: pallet_democracy::types::Delegations<Balance>
**/
PalletDemocracyDelegations: {
votes: 'u128',
capital: 'u128'
},
/**
* Lookup379: pallet_democracy::vote::PriorLock<BlockNumber, Balance>
* Lookup381: pallet_democracy::vote::PriorLock<BlockNumber, Balance>
**/
PalletDemocracyVotePriorLock: '(u32,u128)',
/**
* Lookup382: pallet_democracy::Releases
* Lookup384: pallet_democracy::Releases
**/
PalletDemocracyReleases: {
_enum: ['V1']
},
/**
* Lookup385: pallet_collective::Votes<sp_core::crypto::AccountId32, BlockNumber>
* Lookup387: pallet_collective::Votes<sp_core::crypto::AccountId32, BlockNumber>
**/
PalletCollectiveVotes: {
index: 'u32',
@@ -856,7 +856,7 @@ export default {
end: 'u32'
},
/**
* Lookup390: pallet_elections_phragmen::SeatHolder<sp_core::crypto::AccountId32, Balance>
* Lookup392: pallet_elections_phragmen::SeatHolder<sp_core::crypto::AccountId32, Balance>
**/
PalletElectionsPhragmenSeatHolder: {
who: 'AccountId32',
@@ -864,7 +864,7 @@ export default {
deposit: 'u128'
},
/**
* Lookup391: pallet_elections_phragmen::Voter<sp_core::crypto::AccountId32, Balance>
* Lookup393: pallet_elections_phragmen::Voter<sp_core::crypto::AccountId32, Balance>
**/
PalletElectionsPhragmenVoter: {
votes: 'Vec<AccountId32>',
@@ -872,7 +872,7 @@ export default {
deposit: 'u128'
},
/**
* Lookup394: pallet_grandpa::StoredState<N>
* Lookup396: pallet_grandpa::StoredState<N>
**/
PalletGrandpaStoredState: {
_enum: {
@@ -889,7 +889,7 @@ export default {
}
},
/**
* Lookup395: pallet_grandpa::StoredPendingChange<N, Limit>
* Lookup397: pallet_grandpa::StoredPendingChange<N, Limit>
**/
PalletGrandpaStoredPendingChange: {
scheduledAt: 'u32',
@@ -898,7 +898,7 @@ export default {
forced: 'Option<u32>'
},
/**
* Lookup398: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
* Lookup400: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
**/
PalletTreasuryProposal: {
proposer: 'AccountId32',
@@ -907,11 +907,11 @@ export default {
bond: 'u128'
},
/**
* Lookup401: frame_support::PalletId
* Lookup403: frame_support::PalletId
**/
FrameSupportPalletId: '[u8;8]',
/**
* Lookup403: pallet_contracts::wasm::PrefabWasmModule<T>
* Lookup405: pallet_contracts::wasm::PrefabWasmModule<T>
**/
PalletContractsWasmPrefabWasmModule: {
instructionWeightsVersion: 'Compact<u32>',
@@ -923,7 +923,7 @@ export default {
originalCodeLen: 'u32'
},
/**
* Lookup405: pallet_contracts::storage::RawContractInfo<primitive_types::H256>
* Lookup407: pallet_contracts::storage::RawContractInfo<primitive_types::H256>
**/
PalletContractsStorageRawContractInfo: {
trieId: 'Bytes',
@@ -931,13 +931,13 @@ export default {
reserved: 'Option<Null>'
},
/**
* Lookup407: pallet_contracts::storage::DeletedContract
* Lookup409: pallet_contracts::storage::DeletedContract
**/
PalletContractsStorageDeletedContract: {
trieId: 'Bytes'
},
/**
* Lookup408: pallet_contracts::schedule::Schedule<T>
* Lookup410: pallet_contracts::schedule::Schedule<T>
**/
PalletContractsSchedule: {
limits: 'PalletContractsScheduleLimits',
@@ -945,7 +945,7 @@ export default {
hostFnWeights: 'PalletContractsScheduleHostFnWeights'
},
/**
* Lookup409: pallet_contracts::schedule::Limits
* Lookup411: pallet_contracts::schedule::Limits
**/
PalletContractsScheduleLimits: {
eventTopics: 'u32',
@@ -961,7 +961,7 @@ export default {
codeLen: 'u32'
},
/**
* Lookup410: pallet_contracts::schedule::InstructionWeights<T>
* Lookup412: pallet_contracts::schedule::InstructionWeights<T>
**/
PalletContractsScheduleInstructionWeights: {
_alias: {
@@ -1021,7 +1021,7 @@ export default {
i64Rotr: 'u32'
},
/**
* Lookup411: pallet_contracts::schedule::HostFnWeights<T>
* Lookup413: pallet_contracts::schedule::HostFnWeights<T>
**/
PalletContractsScheduleHostFnWeights: {
_alias: {
@@ -1073,21 +1073,21 @@ export default {
ecdsaRecover: 'u64'
},
/**
* Lookup417: pallet_im_online::BoundedOpaqueNetworkState<PeerIdEncodingLimit, MultiAddrEncodingLimit, AddressesLimit>
* Lookup419: pallet_im_online::BoundedOpaqueNetworkState<PeerIdEncodingLimit, MultiAddrEncodingLimit, AddressesLimit>
**/
PalletImOnlineBoundedOpaqueNetworkState: {
peerId: 'Bytes',
externalAddresses: 'Vec<Bytes>'
},
/**
* Lookup422: sp_staking::offence::OffenceDetails<sp_core::crypto::AccountId32, Offender>
* Lookup424: sp_staking::offence::OffenceDetails<sp_core::crypto::AccountId32, Offender>
**/
SpStakingOffenceOffenceDetails: {
offender: '(AccountId32,PalletStakingExposure)',
reporters: 'Vec<AccountId32>'
},
/**
* Lookup424: pallet_identity::types::Registration<Balance, MaxJudgements, MaxAdditionalFields>
* Lookup426: pallet_identity::types::Registration<Balance, MaxJudgements, MaxAdditionalFields>
**/
PalletIdentityRegistration: {
judgements: 'Vec<(u32,PalletIdentityJudgement)>',
@@ -1095,7 +1095,7 @@ export default {
info: 'PalletIdentityIdentityInfo'
},
/**
* Lookup432: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
* Lookup434: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
**/
PalletIdentityRegistrarInfo: {
account: 'AccountId32',
@@ -1103,7 +1103,7 @@ export default {
fields: 'PalletIdentityBitFlags'
},
/**
* Lookup436: pallet_society::Bid<sp_core::crypto::AccountId32, Balance>
* Lookup438: pallet_society::Bid<sp_core::crypto::AccountId32, Balance>
**/
PalletSocietyBid: {
who: 'AccountId32',
@@ -1111,7 +1111,7 @@ export default {
value: 'u128'
},
/**
* Lookup437: pallet_society::BidKind<sp_core::crypto::AccountId32, Balance>
* Lookup439: pallet_society::BidKind<sp_core::crypto::AccountId32, Balance>
**/
PalletSocietyBidKind: {
_enum: {
@@ -1120,19 +1120,19 @@ export default {
}
},
/**
* Lookup439: pallet_society::VouchingStatus
* Lookup441: pallet_society::VouchingStatus
**/
PalletSocietyVouchingStatus: {
_enum: ['Vouching', 'Banned']
},
/**
* Lookup443: pallet_society::Vote
* Lookup445: pallet_society::Vote
**/
PalletSocietyVote: {
_enum: ['Skeptic', 'Reject', 'Approve']
},
/**
* Lookup445: pallet_recovery::RecoveryConfig<BlockNumber, Balance, sp_core::crypto::AccountId32>
* Lookup447: pallet_recovery::RecoveryConfig<BlockNumber, Balance, sp_core::crypto::AccountId32>
**/
PalletRecoveryRecoveryConfig: {
delayPeriod: 'u32',
@@ -1141,7 +1141,7 @@ export default {
threshold: 'u16'
},
/**
* Lookup446: pallet_recovery::ActiveRecovery<BlockNumber, Balance, sp_core::crypto::AccountId32>
* Lookup448: pallet_recovery::ActiveRecovery<BlockNumber, Balance, sp_core::crypto::AccountId32>
**/
PalletRecoveryActiveRecovery: {
created: 'u32',
@@ -1149,13 +1149,13 @@ export default {
friends: 'Vec<AccountId32>'
},
/**
* Lookup450: pallet_vesting::Releases
* Lookup452: pallet_vesting::Releases
**/
PalletVestingReleases: {
_enum: ['V0', 'V1']
},
/**
* Lookup454: pallet_scheduler::ScheduledV2<node_runtime::Call, BlockNumber, node_runtime::OriginCaller, sp_core::crypto::AccountId32>
* Lookup456: pallet_scheduler::ScheduledV2<node_runtime::Call, BlockNumber, node_runtime::OriginCaller, sp_core::crypto::AccountId32>
**/
PalletSchedulerScheduledV2: {
maybeId: 'Option<Bytes>',
@@ -1165,7 +1165,7 @@ export default {
origin: 'NodeRuntimeOriginCaller'
},
/**
* Lookup455: node_runtime::OriginCaller
* Lookup457: node_runtime::OriginCaller
**/
NodeRuntimeOriginCaller: {
_enum: {
@@ -1186,7 +1186,7 @@ export default {
}
},
/**
* Lookup456: frame_system::RawOrigin<sp_core::crypto::AccountId32>
* Lookup458: frame_system::RawOrigin<sp_core::crypto::AccountId32>
**/
FrameSystemRawOrigin: {
_enum: {
@@ -1196,7 +1196,7 @@ export default {
}
},
/**
* Lookup457: pallet_collective::RawOrigin<sp_core::crypto::AccountId32, I>
* Lookup459: pallet_collective::RawOrigin<sp_core::crypto::AccountId32, I>
**/
PalletCollectiveRawOrigin: {
_enum: {
@@ -1206,17 +1206,17 @@ export default {
}
},
/**
* Lookup459: sp_core::Void
* Lookup461: sp_core::Void
**/
SpCoreVoid: 'Null',
/**
* Lookup460: pallet_scheduler::Releases
* Lookup462: pallet_scheduler::Releases
**/
PalletSchedulerReleases: {
_enum: ['V1', 'V2']
},
/**
* Lookup464: pallet_proxy::ProxyDefinition<sp_core::crypto::AccountId32, node_runtime::ProxyType, BlockNumber>
* Lookup466: pallet_proxy::ProxyDefinition<sp_core::crypto::AccountId32, node_runtime::ProxyType, BlockNumber>
**/
PalletProxyProxyDefinition: {
delegate: 'AccountId32',
@@ -1224,7 +1224,7 @@ export default {
delay: 'u32'
},
/**
* Lookup468: pallet_proxy::Announcement<sp_core::crypto::AccountId32, primitive_types::H256, BlockNumber>
* Lookup470: pallet_proxy::Announcement<sp_core::crypto::AccountId32, primitive_types::H256, BlockNumber>
**/
PalletProxyAnnouncement: {
real: 'AccountId32',
@@ -1232,7 +1232,7 @@ export default {
height: 'u32'
},
/**
* Lookup472: pallet_multisig::Multisig<BlockNumber, Balance, sp_core::crypto::AccountId32>
* Lookup474: pallet_multisig::Multisig<BlockNumber, Balance, sp_core::crypto::AccountId32>
**/
PalletMultisigMultisig: {
when: 'PalletMultisigTimepoint',
@@ -1241,7 +1241,7 @@ export default {
approvals: 'Vec<AccountId32>'
},
/**
* Lookup475: pallet_bounties::Bounty<sp_core::crypto::AccountId32, Balance, BlockNumber>
* Lookup477: pallet_bounties::Bounty<sp_core::crypto::AccountId32, Balance, BlockNumber>
**/
PalletBountiesBounty: {
proposer: 'AccountId32',
@@ -1252,7 +1252,7 @@ export default {
status: 'PalletBountiesBountyStatus'
},
/**
* Lookup476: pallet_bounties::BountyStatus<sp_core::crypto::AccountId32, BlockNumber>
* Lookup478: pallet_bounties::BountyStatus<sp_core::crypto::AccountId32, BlockNumber>
**/
PalletBountiesBountyStatus: {
_enum: {
@@ -1274,7 +1274,7 @@ export default {
}
},
/**
* Lookup478: pallet_tips::OpenTip<sp_core::crypto::AccountId32, Balance, BlockNumber, primitive_types::H256>
* Lookup480: pallet_tips::OpenTip<sp_core::crypto::AccountId32, Balance, BlockNumber, primitive_types::H256>
**/
PalletTipsOpenTip: {
reason: 'H256',
@@ -1286,7 +1286,7 @@ export default {
findersFee: 'bool'
},
/**
* Lookup480: pallet_assets::types::AssetDetails<Balance, sp_core::crypto::AccountId32, DepositBalance>
* Lookup482: pallet_assets::types::AssetDetails<Balance, sp_core::crypto::AccountId32, DepositBalance>
**/
PalletAssetsAssetDetails: {
owner: 'AccountId32',
@@ -1303,7 +1303,7 @@ export default {
isFrozen: 'bool'
},
/**
* Lookup481: pallet_assets::types::AssetBalance<Balance, Extra>
* Lookup483: pallet_assets::types::AssetBalance<Balance, Extra>
**/
PalletAssetsAssetBalance: {
balance: 'u64',
@@ -1312,14 +1312,14 @@ export default {
extra: 'Null'
},
/**
* Lookup483: pallet_assets::types::Approval<Balance, DepositBalance>
* Lookup485: pallet_assets::types::Approval<Balance, DepositBalance>
**/
PalletAssetsApproval: {
amount: 'u64',
deposit: 'u128'
},
/**
* Lookup484: pallet_assets::types::AssetMetadata<DepositBalance, frame_support::storage::bounded_vec::BoundedVec<T, S>>
* Lookup486: pallet_assets::types::AssetMetadata<DepositBalance, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
PalletAssetsAssetMetadata: {
deposit: 'u128',
@@ -1329,7 +1329,7 @@ export default {
isFrozen: 'bool'
},
/**
* Lookup486: pallet_lottery::LotteryConfig<BlockNumber, Balance>
* Lookup488: pallet_lottery::LotteryConfig<BlockNumber, Balance>
**/
PalletLotteryLotteryConfig: {
price: 'u128',
@@ -1339,14 +1339,14 @@ export default {
repeat: 'bool'
},
/**
* Lookup491: pallet_gilt::pallet::GiltBid<Balance, sp_core::crypto::AccountId32>
* Lookup493: pallet_gilt::pallet::GiltBid<Balance, sp_core::crypto::AccountId32>
**/
PalletGiltGiltBid: {
amount: 'u128',
who: 'AccountId32'
},
/**
* Lookup492: pallet_gilt::pallet::ActiveGiltsTotal<Balance>
* Lookup494: pallet_gilt::pallet::ActiveGiltsTotal<Balance>
**/
PalletGiltActiveGiltsTotal: {
frozen: 'u128',
@@ -1355,7 +1355,7 @@ export default {
target: 'Perquintill'
},
/**
* Lookup493: pallet_gilt::pallet::ActiveGilt<Balance, sp_core::crypto::AccountId32, BlockNumber>
* Lookup495: pallet_gilt::pallet::ActiveGilt<Balance, sp_core::crypto::AccountId32, BlockNumber>
**/
PalletGiltActiveGilt: {
proportion: 'Perquintill',
@@ -1364,7 +1364,7 @@ export default {
expiry: 'u32'
},
/**
* Lookup495: pallet_uniques::types::ClassDetails<sp_core::crypto::AccountId32, DepositBalance>
* Lookup497: pallet_uniques::types::ClassDetails<sp_core::crypto::AccountId32, DepositBalance>
**/
PalletUniquesClassDetails: {
owner: 'AccountId32',
@@ -1379,7 +1379,7 @@ export default {
isFrozen: 'bool'
},
/**
* Lookup497: pallet_uniques::types::InstanceDetails<sp_core::crypto::AccountId32, DepositBalance>
* Lookup499: pallet_uniques::types::InstanceDetails<sp_core::crypto::AccountId32, DepositBalance>
**/
PalletUniquesInstanceDetails: {
owner: 'AccountId32',
@@ -1388,7 +1388,7 @@ export default {
deposit: 'u128'
},
/**
* Lookup498: pallet_uniques::types::ClassMetadata<DepositBalance, StringLimit>
* Lookup500: pallet_uniques::types::ClassMetadata<DepositBalance, StringLimit>
**/
PalletUniquesClassMetadata: {
deposit: 'u128',
@@ -1396,7 +1396,7 @@ export default {
isFrozen: 'bool'
},
/**
* Lookup499: pallet_uniques::types::InstanceMetadata<DepositBalance, StringLimit>
* Lookup501: pallet_uniques::types::InstanceMetadata<DepositBalance, StringLimit>
**/
PalletUniquesInstanceMetadata: {
deposit: 'u128',
@@ -1404,7 +1404,7 @@ export default {
isFrozen: 'bool'
},
/**
* Lookup504: pallet_transaction_storage::TransactionInfo
* Lookup506: pallet_transaction_storage::TransactionInfo
**/
PalletTransactionStorageTransactionInfo: {
_alias: {
@@ -1416,7 +1416,7 @@ export default {
blockChunks: 'u32'
},
/**
* Lookup506: pallet_bags_list::list::Node<T>
* Lookup508: pallet_bags_list::list::Node<T>
**/
PalletBagsListListNode: {
id: 'AccountId32',
@@ -1425,14 +1425,14 @@ export default {
bagUpper: 'u64'
},
/**
* Lookup507: pallet_bags_list::list::Bag<T>
* Lookup509: pallet_bags_list::list::Bag<T>
**/
PalletBagsListListBag: {
head: 'Option<AccountId32>',
tail: 'Option<AccountId32>'
},
/**
* Lookup510: sp_runtime::MultiSignature
* Lookup512: sp_runtime::MultiSignature
**/
SpRuntimeMultiSignature: {
_enum: {
@@ -1442,35 +1442,35 @@ export default {
}
},
/**
* Lookup511: sp_core::ecdsa::Signature
* Lookup513: sp_core::ecdsa::Signature
**/
SpCoreEcdsaSignature: '[u8;65]',
/**
* Lookup514: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
* Lookup516: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
* Lookup515: frame_system::extensions::check_tx_version::CheckTxVersion<T>
* Lookup517: frame_system::extensions::check_tx_version::CheckTxVersion<T>
**/
FrameSystemExtensionsCheckTxVersion: 'Null',
/**
* Lookup516: frame_system::extensions::check_genesis::CheckGenesis<T>
* Lookup518: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
* Lookup519: frame_system::extensions::check_nonce::CheckNonce<T>
* Lookup521: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
* Lookup520: frame_system::extensions::check_weight::CheckWeight<T>
* Lookup522: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
* Lookup521: pallet_transaction_payment::ChargeTransactionPayment<T>
* Lookup523: pallet_transaction_payment::ChargeTransactionPayment<T>
**/
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
* Lookup522: node_runtime::Runtime
* Lookup524: node_runtime::Runtime
**/
NodeRuntimeRuntime: 'Null'
} as DefinitionsTypes;
@@ -454,7 +454,7 @@ declare module '@polkadot/types/lookup' {
readonly asV1: XcmV1MultiLocation;
}
/** @name KusamaRuntimeSessionKeys (239) */
/** @name KusamaRuntimeSessionKeys (241) */
export interface KusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
@@ -464,7 +464,7 @@ declare module '@polkadot/types/lookup' {
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
}
/** @name KusamaRuntimeNposCompactSolution24 (369) */
/** @name KusamaRuntimeNposCompactSolution24 (371) */
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
@@ -492,7 +492,7 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
}
/** @name XcmVersionedXcm (502) */
/** @name XcmVersionedXcm (504) */
export interface XcmVersionedXcm extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0Xcm;
@@ -502,7 +502,7 @@ declare module '@polkadot/types/lookup' {
readonly asV2: XcmV2Xcm;
}
/** @name XcmV0Xcm (503) */
/** @name XcmV0Xcm (505) */
export interface XcmV0Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: {
@@ -564,7 +564,7 @@ declare module '@polkadot/types/lookup' {
} & Struct;
}
/** @name XcmV0Order (505) */
/** @name XcmV0Order (507) */
export interface XcmV0Order extends Enum {
readonly isNull: boolean;
readonly isDepositAsset: boolean;
@@ -611,13 +611,13 @@ declare module '@polkadot/types/lookup' {
} & Struct;
}
/** @name XcmV0Response (507) */
/** @name XcmV0Response (509) */
export interface XcmV0Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: Vec<XcmV0MultiAsset>;
}
/** @name XcmV1Xcm (508) */
/** @name XcmV1Xcm (510) */
export interface XcmV1Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: {
@@ -685,7 +685,7 @@ declare module '@polkadot/types/lookup' {
readonly isUnsubscribeVersion: boolean;
}
/** @name XcmV1Order (510) */
/** @name XcmV1Order (512) */
export interface XcmV1Order extends Enum {
readonly isNoop: boolean;
readonly isDepositAsset: boolean;
@@ -734,7 +734,7 @@ declare module '@polkadot/types/lookup' {
} & Struct;
}
/** @name XcmV1Response (512) */
/** @name XcmV1Response (514) */
export interface XcmV1Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: XcmV1MultiassetMultiAssets;
@@ -742,7 +742,7 @@ declare module '@polkadot/types/lookup' {
readonly asVersion: u32;
}
/** @name KusamaRuntimeOriginCaller (573) */
/** @name KusamaRuntimeOriginCaller (575) */
export interface KusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSystemRawOrigin;
@@ -851,7 +851,7 @@ declare module '@polkadot/types/lookup' {
readonly asXcmPallet: PalletXcmOrigin;
}
/** @name PalletXcmOrigin (578) */
/** @name PalletXcmOrigin (580) */
export interface PalletXcmOrigin extends Enum {
readonly isXcm: boolean;
readonly asXcm: XcmV1MultiLocation;
@@ -859,7 +859,7 @@ declare module '@polkadot/types/lookup' {
readonly asResponse: XcmV1MultiLocation;
}
/** @name PalletXcmQueryStatus (682) */
/** @name PalletXcmQueryStatus (689) */
export interface PalletXcmQueryStatus extends Enum {
readonly isPending: boolean;
readonly asPending: {
@@ -879,7 +879,7 @@ declare module '@polkadot/types/lookup' {
} & Struct;
}
/** @name XcmVersionedResponse (685) */
/** @name XcmVersionedResponse (692) */
export interface XcmVersionedResponse extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0Response;
@@ -889,7 +889,7 @@ declare module '@polkadot/types/lookup' {
readonly asV2: XcmV2Response;
}
/** @name PalletXcmVersionMigrationStage (691) */
/** @name PalletXcmVersionMigrationStage (698) */
export interface PalletXcmVersionMigrationStage extends Enum {
readonly isMigrateSupportedVersion: boolean;
readonly isMigrateVersionNotifiers: boolean;
@@ -898,7 +898,7 @@ declare module '@polkadot/types/lookup' {
readonly isMigrateAndNotifyOldTargets: boolean;
}
/** @name KusamaRuntimeRuntime (703) */
/** @name KusamaRuntimeRuntime (710) */
export type KusamaRuntimeRuntime = Null;
}
@@ -307,7 +307,7 @@ declare module '@polkadot/types/lookup' {
readonly asParachain: u32;
}
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (506) */
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (508) */
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
readonly maxCodeSize: u32;
readonly maxHeadDataSize: u32;
@@ -351,13 +351,13 @@ declare module '@polkadot/types/lookup' {
readonly umpMaxIndividualWeight: u64;
}
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (510) */
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (512) */
export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
readonly bitfield: BitVec;
readonly submittedAt: u32;
}
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (511) */
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (513) */
export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
readonly core: u32;
readonly hash_: H256;
@@ -369,35 +369,42 @@ declare module '@polkadot/types/lookup' {
readonly backingGroup: u32;
}
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (515) */
/** @name PolkadotPrimitivesV1ScrapedOnChainVotes (515) */
export interface PolkadotPrimitivesV1ScrapedOnChainVotes extends Struct {
readonly session: u32;
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV1CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV0ValidityAttestation]>>]>>;
readonly disputes: Vec<PolkadotPrimitivesV1DisputeStatementSet>;
}
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (522) */
export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
readonly nextCoreOffset: u32;
}
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (517) */
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (524) */
export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
readonly claim: PolkadotPrimitivesV1ParathreadEntry;
readonly coreOffset: u32;
}
/** @name PolkadotPrimitivesV1ParathreadEntry (518) */
/** @name PolkadotPrimitivesV1ParathreadEntry (525) */
export interface PolkadotPrimitivesV1ParathreadEntry extends Struct {
readonly claim: PolkadotPrimitivesV1ParathreadClaim;
readonly retries: u32;
}
/** @name PolkadotPrimitivesV1ParathreadClaim (519) */
/** @name PolkadotPrimitivesV1ParathreadClaim (526) */
export interface PolkadotPrimitivesV1ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV0CollatorAppPublic]> {}
/** @name PolkadotPrimitivesV1CoreOccupied (522) */
/** @name PolkadotPrimitivesV1CoreOccupied (529) */
export interface PolkadotPrimitivesV1CoreOccupied extends Enum {
readonly isParathread: boolean;
readonly asParathread: PolkadotPrimitivesV1ParathreadEntry;
readonly isParachain: boolean;
}
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (525) */
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (532) */
export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
readonly core: u32;
readonly paraId: u32;
@@ -405,14 +412,14 @@ declare module '@polkadot/types/lookup' {
readonly groupIdx: u32;
}
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (526) */
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (533) */
export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
readonly isParachain: boolean;
readonly isParathread: boolean;
readonly asParathread: ITuple<[PolkadotPrimitivesV0CollatorAppPublic, u32]>;
}
/** @name PolkadotRuntimeParachainsParasParaLifecycle (527) */
/** @name PolkadotRuntimeParachainsParasParaLifecycle (534) */
export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
readonly isOnboarding: boolean;
readonly isParathread: boolean;
@@ -423,50 +430,50 @@ declare module '@polkadot/types/lookup' {
readonly isOffboardingParachain: boolean;
}
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (529) */
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (536) */
export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
readonly lastPruned: Option<u32>;
}
/** @name PolkadotRuntimeParachainsParasReplacementTimes (531) */
/** @name PolkadotRuntimeParachainsParasReplacementTimes (538) */
export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
readonly expectedAt: u32;
readonly activatedAt: u32;
}
/** @name PolkadotPrimitivesV1UpgradeGoAhead (533) */
/** @name PolkadotPrimitivesV1UpgradeGoAhead (540) */
export interface PolkadotPrimitivesV1UpgradeGoAhead extends Enum {
readonly isAbort: boolean;
readonly isGoAhead: boolean;
}
/** @name PolkadotPrimitivesV1UpgradeRestriction (534) */
/** @name PolkadotPrimitivesV1UpgradeRestriction (541) */
export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {
readonly isPresent: boolean;
}
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (535) */
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (542) */
export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
readonly genesisHead: Bytes;
readonly validationCode: Bytes;
readonly parachain: bool;
}
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (538) */
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (545) */
export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
readonly queued: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
readonly sessionIndex: u32;
}
/** @name PolkadotCorePrimitivesInboundDownwardMessage (540) */
/** @name PolkadotCorePrimitivesInboundDownwardMessage (547) */
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
readonly sentAt: u32;
readonly msg: Bytes;
}
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (543) */
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (550) */
export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
readonly confirmed: bool;
readonly age: u32;
@@ -476,7 +483,7 @@ declare module '@polkadot/types/lookup' {
readonly maxTotalSize: u32;
}
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (545) */
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (552) */
export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
readonly maxCapacity: u32;
readonly maxTotalSize: u32;
@@ -488,13 +495,13 @@ declare module '@polkadot/types/lookup' {
readonly recipientDeposit: u128;
}
/** @name PolkadotCorePrimitivesInboundHrmpMessage (548) */
/** @name PolkadotCorePrimitivesInboundHrmpMessage (555) */
export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
readonly sentAt: u32;
readonly data: Bytes;
}
/** @name PolkadotPrimitivesV1SessionInfo (553) */
/** @name PolkadotPrimitivesV1SessionInfo (560) */
export interface PolkadotPrimitivesV1SessionInfo extends Struct {
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
readonly discoveryKeys: Vec<SpAuthorityDiscoveryAppPublic>;
@@ -508,14 +515,14 @@ declare module '@polkadot/types/lookup' {
readonly neededApprovals: u32;
}
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (555) */
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (562) */
export interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
readonly manager: AccountId32;
readonly deposit: u128;
readonly locked: bool;
}
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (565) */
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (572) */
export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
readonly depositor: AccountId32;
readonly verifier: Option<SpRuntimeMultiSigner>;
@@ -529,7 +536,7 @@ declare module '@polkadot/types/lookup' {
readonly trieIndex: u32;
}
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (566) */
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (573) */
export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
readonly isNever: boolean;
readonly isPreEnding: boolean;
@@ -538,10 +545,10 @@ declare module '@polkadot/types/lookup' {
readonly asEnding: u32;
}
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (578) */
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (585) */
export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
/** @name PolkadotRuntimeRuntime (579) */
/** @name PolkadotRuntimeRuntime (586) */
export type PolkadotRuntimeRuntime = Null;
}
@@ -826,7 +826,7 @@ declare module '@polkadot/types/lookup' {
readonly paidOut: u128;
}
/** @name PalletStakingReleases (361) */
/** @name PalletStakingReleases (363) */
export interface PalletStakingReleases extends Enum {
readonly isV100Ancient: boolean;
readonly isV200: boolean;
@@ -838,10 +838,10 @@ declare module '@polkadot/types/lookup' {
readonly isV800: boolean;
}
/** @name SpCoreCryptoKeyTypeId (366) */
/** @name SpCoreCryptoKeyTypeId (368) */
export interface SpCoreCryptoKeyTypeId extends U8aFixed {}
/** @name PalletDemocracyPreimageStatus (371) */
/** @name PalletDemocracyPreimageStatus (373) */
export interface PalletDemocracyPreimageStatus extends Enum {
readonly isMissing: boolean;
readonly asMissing: u32;
@@ -855,7 +855,7 @@ declare module '@polkadot/types/lookup' {
} & Struct;
}
/** @name PalletDemocracyReferendumInfo (372) */
/** @name PalletDemocracyReferendumInfo (374) */
export interface PalletDemocracyReferendumInfo extends Enum {
readonly isOngoing: boolean;
readonly asOngoing: PalletDemocracyReferendumStatus;
@@ -866,7 +866,7 @@ declare module '@polkadot/types/lookup' {
} & Struct;
}
/** @name PalletDemocracyReferendumStatus (373) */
/** @name PalletDemocracyReferendumStatus (375) */
export interface PalletDemocracyReferendumStatus extends Struct {
readonly end: u32;
readonly proposalHash: H256;
@@ -875,14 +875,14 @@ declare module '@polkadot/types/lookup' {
readonly tally: PalletDemocracyTally;
}
/** @name PalletDemocracyTally (374) */
/** @name PalletDemocracyTally (376) */
export interface PalletDemocracyTally extends Struct {
readonly ayes: u128;
readonly nays: u128;
readonly turnout: u128;
}
/** @name PalletDemocracyVoteVoting (375) */
/** @name PalletDemocracyVoteVoting (377) */
export interface PalletDemocracyVoteVoting extends Enum {
readonly isDirect: boolean;
readonly asDirect: {
@@ -900,21 +900,21 @@ declare module '@polkadot/types/lookup' {
} & Struct;
}
/** @name PalletDemocracyDelegations (378) */
/** @name PalletDemocracyDelegations (380) */
export interface PalletDemocracyDelegations extends Struct {
readonly votes: u128;
readonly capital: u128;
}
/** @name PalletDemocracyVotePriorLock (379) */
/** @name PalletDemocracyVotePriorLock (381) */
export interface PalletDemocracyVotePriorLock extends ITuple<[u32, u128]> {}
/** @name PalletDemocracyReleases (382) */
/** @name PalletDemocracyReleases (384) */
export interface PalletDemocracyReleases extends Enum {
readonly isV1: boolean;
}
/** @name PalletCollectiveVotes (385) */
/** @name PalletCollectiveVotes (387) */
export interface PalletCollectiveVotes extends Struct {
readonly index: u32;
readonly threshold: u32;
@@ -923,21 +923,21 @@ declare module '@polkadot/types/lookup' {
readonly end: u32;
}
/** @name PalletElectionsPhragmenSeatHolder (390) */
/** @name PalletElectionsPhragmenSeatHolder (392) */
export interface PalletElectionsPhragmenSeatHolder extends Struct {
readonly who: AccountId32;
readonly stake: u128;
readonly deposit: u128;
}
/** @name PalletElectionsPhragmenVoter (391) */
/** @name PalletElectionsPhragmenVoter (393) */
export interface PalletElectionsPhragmenVoter extends Struct {
readonly votes: Vec<AccountId32>;
readonly stake: u128;
readonly deposit: u128;
}
/** @name PalletGrandpaStoredState (394) */
/** @name PalletGrandpaStoredState (396) */
export interface PalletGrandpaStoredState extends Enum {
readonly isLive: boolean;
readonly isPendingPause: boolean;
@@ -953,7 +953,7 @@ declare module '@polkadot/types/lookup' {
} & Struct;
}
/** @name PalletGrandpaStoredPendingChange (395) */
/** @name PalletGrandpaStoredPendingChange (397) */
export interface PalletGrandpaStoredPendingChange extends Struct {
readonly scheduledAt: u32;
readonly delay: u32;
@@ -961,7 +961,7 @@ declare module '@polkadot/types/lookup' {
readonly forced: Option<u32>;
}
/** @name PalletTreasuryProposal (398) */
/** @name PalletTreasuryProposal (400) */
export interface PalletTreasuryProposal extends Struct {
readonly proposer: AccountId32;
readonly value: u128;
@@ -969,10 +969,10 @@ declare module '@polkadot/types/lookup' {
readonly bond: u128;
}
/** @name FrameSupportPalletId (401) */
/** @name FrameSupportPalletId (403) */
export interface FrameSupportPalletId extends U8aFixed {}
/** @name PalletContractsWasmPrefabWasmModule (403) */
/** @name PalletContractsWasmPrefabWasmModule (405) */
export interface PalletContractsWasmPrefabWasmModule extends Struct {
readonly instructionWeightsVersion: Compact<u32>;
readonly initial: Compact<u32>;
@@ -983,26 +983,26 @@ declare module '@polkadot/types/lookup' {
readonly originalCodeLen: u32;
}
/** @name PalletContractsStorageRawContractInfo (405) */
/** @name PalletContractsStorageRawContractInfo (407) */
export interface PalletContractsStorageRawContractInfo extends Struct {
readonly trieId: Bytes;
readonly codeHash: H256;
readonly reserved: Option<Null>;
}
/** @name PalletContractsStorageDeletedContract (407) */
/** @name PalletContractsStorageDeletedContract (409) */
export interface PalletContractsStorageDeletedContract extends Struct {
readonly trieId: Bytes;
}
/** @name PalletContractsSchedule (408) */
/** @name PalletContractsSchedule (410) */
export interface PalletContractsSchedule extends Struct {
readonly limits: PalletContractsScheduleLimits;
readonly instructionWeights: PalletContractsScheduleInstructionWeights;
readonly hostFnWeights: PalletContractsScheduleHostFnWeights;
}
/** @name PalletContractsScheduleLimits (409) */
/** @name PalletContractsScheduleLimits (411) */
export interface PalletContractsScheduleLimits extends Struct {
readonly eventTopics: u32;
readonly stackHeight: u32;
@@ -1017,7 +1017,7 @@ declare module '@polkadot/types/lookup' {
readonly codeLen: u32;
}
/** @name PalletContractsScheduleInstructionWeights (410) */
/** @name PalletContractsScheduleInstructionWeights (412) */
export interface PalletContractsScheduleInstructionWeights extends Struct {
readonly version: u32;
readonly i64Const: u32;
@@ -1073,7 +1073,7 @@ declare module '@polkadot/types/lookup' {
readonly i64Rotr: u32;
}
/** @name PalletContractsScheduleHostFnWeights (411) */
/** @name PalletContractsScheduleHostFnWeights (413) */
export interface PalletContractsScheduleHostFnWeights extends Struct {
readonly caller: u64;
readonly address: u64;
@@ -1121,40 +1121,40 @@ declare module '@polkadot/types/lookup' {
readonly ecdsaRecover: u64;
}
/** @name PalletImOnlineBoundedOpaqueNetworkState (417) */
/** @name PalletImOnlineBoundedOpaqueNetworkState (419) */
export interface PalletImOnlineBoundedOpaqueNetworkState extends Struct {
readonly peerId: Bytes;
readonly externalAddresses: Vec<Bytes>;
}
/** @name SpStakingOffenceOffenceDetails (422) */
/** @name SpStakingOffenceOffenceDetails (424) */
export interface SpStakingOffenceOffenceDetails extends Struct {
readonly offender: ITuple<[AccountId32, PalletStakingExposure]>;
readonly reporters: Vec<AccountId32>;
}
/** @name PalletIdentityRegistration (424) */
/** @name PalletIdentityRegistration (426) */
export interface PalletIdentityRegistration extends Struct {
readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;
readonly deposit: u128;
readonly info: PalletIdentityIdentityInfo;
}
/** @name PalletIdentityRegistrarInfo (432) */
/** @name PalletIdentityRegistrarInfo (434) */
export interface PalletIdentityRegistrarInfo extends Struct {
readonly account: AccountId32;
readonly fee: u128;
readonly fields: PalletIdentityBitFlags;
}
/** @name PalletSocietyBid (436) */
/** @name PalletSocietyBid (438) */
export interface PalletSocietyBid extends Struct {
readonly who: AccountId32;
readonly kind: PalletSocietyBidKind;
readonly value: u128;
}
/** @name PalletSocietyBidKind (437) */
/** @name PalletSocietyBidKind (439) */
export interface PalletSocietyBidKind extends Enum {
readonly isDeposit: boolean;
readonly asDeposit: u128;
@@ -1162,20 +1162,20 @@ declare module '@polkadot/types/lookup' {
readonly asVouch: ITuple<[AccountId32, u128]>;
}
/** @name PalletSocietyVouchingStatus (439) */
/** @name PalletSocietyVouchingStatus (441) */
export interface PalletSocietyVouchingStatus extends Enum {
readonly isVouching: boolean;
readonly isBanned: boolean;
}
/** @name PalletSocietyVote (443) */
/** @name PalletSocietyVote (445) */
export interface PalletSocietyVote extends Enum {
readonly isSkeptic: boolean;
readonly isReject: boolean;
readonly isApprove: boolean;
}
/** @name PalletRecoveryRecoveryConfig (445) */
/** @name PalletRecoveryRecoveryConfig (447) */
export interface PalletRecoveryRecoveryConfig extends Struct {
readonly delayPeriod: u32;
readonly deposit: u128;
@@ -1183,20 +1183,20 @@ declare module '@polkadot/types/lookup' {
readonly threshold: u16;
}
/** @name PalletRecoveryActiveRecovery (446) */
/** @name PalletRecoveryActiveRecovery (448) */
export interface PalletRecoveryActiveRecovery extends Struct {
readonly created: u32;
readonly deposit: u128;
readonly friends: Vec<AccountId32>;
}
/** @name PalletVestingReleases (450) */
/** @name PalletVestingReleases (452) */
export interface PalletVestingReleases extends Enum {
readonly isV0: boolean;
readonly isV1: boolean;
}
/** @name PalletSchedulerScheduledV2 (454) */
/** @name PalletSchedulerScheduledV2 (456) */
export interface PalletSchedulerScheduledV2 extends Struct {
readonly maybeId: Option<Bytes>;
readonly priority: u8;
@@ -1205,7 +1205,7 @@ declare module '@polkadot/types/lookup' {
readonly origin: NodeRuntimeOriginCaller;
}
/** @name NodeRuntimeOriginCaller (455) */
/** @name NodeRuntimeOriginCaller (457) */
export interface NodeRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSystemRawOrigin;
@@ -1226,7 +1226,7 @@ declare module '@polkadot/types/lookup' {
readonly asTechnicalCommittee: PalletCollectiveRawOrigin;
}
/** @name FrameSystemRawOrigin (456) */
/** @name FrameSystemRawOrigin (458) */
export interface FrameSystemRawOrigin extends Enum {
readonly isRoot: boolean;
readonly isSigned: boolean;
@@ -1234,7 +1234,7 @@ declare module '@polkadot/types/lookup' {
readonly isNone: boolean;
}
/** @name PalletCollectiveRawOrigin (457) */
/** @name PalletCollectiveRawOrigin (459) */
export interface PalletCollectiveRawOrigin extends Enum {
readonly isMembers: boolean;
readonly asMembers: ITuple<[u32, u32]>;
@@ -1243,30 +1243,30 @@ declare module '@polkadot/types/lookup' {
readonly isPhantom: boolean;
}
/** @name SpCoreVoid (459) */
/** @name SpCoreVoid (461) */
export type SpCoreVoid = Null;
/** @name PalletSchedulerReleases (460) */
/** @name PalletSchedulerReleases (462) */
export interface PalletSchedulerReleases extends Enum {
readonly isV1: boolean;
readonly isV2: boolean;
}
/** @name PalletProxyProxyDefinition (464) */
/** @name PalletProxyProxyDefinition (466) */
export interface PalletProxyProxyDefinition extends Struct {
readonly delegate: AccountId32;
readonly proxyType: NodeRuntimeProxyType;
readonly delay: u32;
}
/** @name PalletProxyAnnouncement (468) */
/** @name PalletProxyAnnouncement (470) */
export interface PalletProxyAnnouncement extends Struct {
readonly real: AccountId32;
readonly callHash: H256;
readonly height: u32;
}
/** @name PalletMultisigMultisig (472) */
/** @name PalletMultisigMultisig (474) */
export interface PalletMultisigMultisig extends Struct {
readonly when: PalletMultisigTimepoint;
readonly deposit: u128;
@@ -1274,7 +1274,7 @@ declare module '@polkadot/types/lookup' {
readonly approvals: Vec<AccountId32>;
}
/** @name PalletBountiesBounty (475) */
/** @name PalletBountiesBounty (477) */
export interface PalletBountiesBounty extends Struct {
readonly proposer: AccountId32;
readonly value: u128;
@@ -1284,7 +1284,7 @@ declare module '@polkadot/types/lookup' {
readonly status: PalletBountiesBountyStatus;
}
/** @name PalletBountiesBountyStatus (476) */
/** @name PalletBountiesBountyStatus (478) */
export interface PalletBountiesBountyStatus extends Enum {
readonly isProposed: boolean;
readonly isApproved: boolean;
@@ -1306,7 +1306,7 @@ declare module '@polkadot/types/lookup' {
} & Struct;
}
/** @name PalletTipsOpenTip (478) */
/** @name PalletTipsOpenTip (480) */
export interface PalletTipsOpenTip extends Struct {
readonly reason: H256;
readonly who: AccountId32;
@@ -1317,7 +1317,7 @@ declare module '@polkadot/types/lookup' {
readonly findersFee: bool;
}
/** @name PalletAssetsAssetDetails (480) */
/** @name PalletAssetsAssetDetails (482) */
export interface PalletAssetsAssetDetails extends Struct {
readonly owner: AccountId32;
readonly issuer: AccountId32;
@@ -1333,7 +1333,7 @@ declare module '@polkadot/types/lookup' {
readonly isFrozen: bool;
}
/** @name PalletAssetsAssetBalance (481) */
/** @name PalletAssetsAssetBalance (483) */
export interface PalletAssetsAssetBalance extends Struct {
readonly balance: u64;
readonly isFrozen: bool;
@@ -1341,13 +1341,13 @@ declare module '@polkadot/types/lookup' {
readonly extra: Null;
}
/** @name PalletAssetsApproval (483) */
/** @name PalletAssetsApproval (485) */
export interface PalletAssetsApproval extends Struct {
readonly amount: u64;
readonly deposit: u128;
}
/** @name PalletAssetsAssetMetadata (484) */
/** @name PalletAssetsAssetMetadata (486) */
export interface PalletAssetsAssetMetadata extends Struct {
readonly deposit: u128;
readonly name: Bytes;
@@ -1356,7 +1356,7 @@ declare module '@polkadot/types/lookup' {
readonly isFrozen: bool;
}
/** @name PalletLotteryLotteryConfig (486) */
/** @name PalletLotteryLotteryConfig (488) */
export interface PalletLotteryLotteryConfig extends Struct {
readonly price: u128;
readonly start: u32;
@@ -1365,13 +1365,13 @@ declare module '@polkadot/types/lookup' {
readonly repeat: bool;
}
/** @name PalletGiltGiltBid (491) */
/** @name PalletGiltGiltBid (493) */
export interface PalletGiltGiltBid extends Struct {
readonly amount: u128;
readonly who: AccountId32;
}
/** @name PalletGiltActiveGiltsTotal (492) */
/** @name PalletGiltActiveGiltsTotal (494) */
export interface PalletGiltActiveGiltsTotal extends Struct {
readonly frozen: u128;
readonly proportion: Perquintill;
@@ -1379,7 +1379,7 @@ declare module '@polkadot/types/lookup' {
readonly target: Perquintill;
}
/** @name PalletGiltActiveGilt (493) */
/** @name PalletGiltActiveGilt (495) */
export interface PalletGiltActiveGilt extends Struct {
readonly proportion: Perquintill;
readonly amount: u128;
@@ -1387,7 +1387,7 @@ declare module '@polkadot/types/lookup' {
readonly expiry: u32;
}
/** @name PalletUniquesClassDetails (495) */
/** @name PalletUniquesClassDetails (497) */
export interface PalletUniquesClassDetails extends Struct {
readonly owner: AccountId32;
readonly issuer: AccountId32;
@@ -1401,7 +1401,7 @@ declare module '@polkadot/types/lookup' {
readonly isFrozen: bool;
}
/** @name PalletUniquesInstanceDetails (497) */
/** @name PalletUniquesInstanceDetails (499) */
export interface PalletUniquesInstanceDetails extends Struct {
readonly owner: AccountId32;
readonly approved: Option<AccountId32>;
@@ -1409,21 +1409,21 @@ declare module '@polkadot/types/lookup' {
readonly deposit: u128;
}
/** @name PalletUniquesClassMetadata (498) */
/** @name PalletUniquesClassMetadata (500) */
export interface PalletUniquesClassMetadata extends Struct {
readonly deposit: u128;
readonly data: Bytes;
readonly isFrozen: bool;
}
/** @name PalletUniquesInstanceMetadata (499) */
/** @name PalletUniquesInstanceMetadata (501) */
export interface PalletUniquesInstanceMetadata extends Struct {
readonly deposit: u128;
readonly data: Bytes;
readonly isFrozen: bool;
}
/** @name PalletTransactionStorageTransactionInfo (504) */
/** @name PalletTransactionStorageTransactionInfo (506) */
export interface PalletTransactionStorageTransactionInfo extends Struct {
readonly chunkRoot: H256;
readonly contentHash: H256;
@@ -1431,7 +1431,7 @@ declare module '@polkadot/types/lookup' {
readonly blockChunks: u32;
}
/** @name PalletBagsListListNode (506) */
/** @name PalletBagsListListNode (508) */
export interface PalletBagsListListNode extends Struct {
readonly id: AccountId32;
readonly prev: Option<AccountId32>;
@@ -1439,13 +1439,13 @@ declare module '@polkadot/types/lookup' {
readonly bagUpper: u64;
}
/** @name PalletBagsListListBag (507) */
/** @name PalletBagsListListBag (509) */
export interface PalletBagsListListBag extends Struct {
readonly head: Option<AccountId32>;
readonly tail: Option<AccountId32>;
}
/** @name SpRuntimeMultiSignature (510) */
/** @name SpRuntimeMultiSignature (512) */
export interface SpRuntimeMultiSignature extends Enum {
readonly isEd25519: boolean;
readonly asEd25519: SpCoreEd25519Signature;
@@ -1455,28 +1455,28 @@ declare module '@polkadot/types/lookup' {
readonly asEcdsa: SpCoreEcdsaSignature;
}
/** @name SpCoreEcdsaSignature (511) */
/** @name SpCoreEcdsaSignature (513) */
export interface SpCoreEcdsaSignature extends U8aFixed {}
/** @name FrameSystemExtensionsCheckSpecVersion (514) */
/** @name FrameSystemExtensionsCheckSpecVersion (516) */
export type FrameSystemExtensionsCheckSpecVersion = Null;
/** @name FrameSystemExtensionsCheckTxVersion (515) */
/** @name FrameSystemExtensionsCheckTxVersion (517) */
export type FrameSystemExtensionsCheckTxVersion = Null;
/** @name FrameSystemExtensionsCheckGenesis (516) */
/** @name FrameSystemExtensionsCheckGenesis (518) */
export type FrameSystemExtensionsCheckGenesis = Null;
/** @name FrameSystemExtensionsCheckNonce (519) */
/** @name FrameSystemExtensionsCheckNonce (521) */
export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
/** @name FrameSystemExtensionsCheckWeight (520) */
/** @name FrameSystemExtensionsCheckWeight (522) */
export type FrameSystemExtensionsCheckWeight = Null;
/** @name PalletTransactionPaymentChargeTransactionPayment (521) */
/** @name PalletTransactionPaymentChargeTransactionPayment (523) */
export interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
/** @name NodeRuntimeRuntime (522) */
/** @name NodeRuntimeRuntime (524) */
export type NodeRuntimeRuntime = Null;
}
+10 -1
View File
@@ -57,7 +57,7 @@ import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, BodyId, BodyPart, DoubleEncodedCall, Fungibility, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildMultiAsset, WildMultiAssetV1, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
declare module '@polkadot/types/types/registry' {
export interface InterfaceTypes {
@@ -104,6 +104,7 @@ declare module '@polkadot/types/types/registry' {
AssetInstance: AssetInstance;
AssetInstanceV0: AssetInstanceV0;
AssetInstanceV1: AssetInstanceV1;
AssetInstanceV2: AssetInstanceV2;
AssetMetadata: AssetMetadata;
AssetOptions: AssetOptions;
AssignmentId: AssignmentId;
@@ -406,6 +407,9 @@ declare module '@polkadot/types/types/registry' {
FundIndex: FundIndex;
FundInfo: FundInfo;
Fungibility: Fungibility;
FungibilityV0: FungibilityV0;
FungibilityV1: FungibilityV1;
FungibilityV2: FungibilityV2;
Gas: Gas;
GiltBid: GiltBid;
GlobalValidationData: GlobalValidationData;
@@ -1020,8 +1024,12 @@ declare module '@polkadot/types/types/registry' {
WeightPerClass: WeightPerClass;
WeightToFeeCoefficient: WeightToFeeCoefficient;
WildFungibility: WildFungibility;
WildFungibilityV0: WildFungibilityV0;
WildFungibilityV1: WildFungibilityV1;
WildFungibilityV2: WildFungibilityV2;
WildMultiAsset: WildMultiAsset;
WildMultiAssetV1: WildMultiAssetV1;
WildMultiAssetV2: WildMultiAssetV2;
WinnersData: WinnersData;
WinnersDataTuple: WinnersDataTuple;
WinningData: WinningData;
@@ -1036,6 +1044,7 @@ declare module '@polkadot/types/types/registry' {
XcmOrder: XcmOrder;
XcmOrderV0: XcmOrderV0;
XcmOrderV1: XcmOrderV1;
XcmOrderV2: XcmOrderV2;
XcmOrigin: XcmOrigin;
XcmOriginKind: XcmOriginKind;
XcmpMessageFormat: XcmpMessageFormat;
+10 -3
View File
@@ -327,10 +327,17 @@ export class TypeRegistry implements Registry {
}
public getClassName (Type: Constructor): string | undefined {
const entry = [...this.#classes.entries()].find(([, Clazz]) => Type === Clazz);
// we cannot rely on export order (anymore, since babel/core 7.15.8), so in the case of
// items such as u32 & U32, we get the lowercase versions here... not quite as optimal
// (previously this used to be a simple find & return)
const names = [...this.#classes.entries()]
.filter(([, Clazz]) => Type === Clazz)
.map(([name]) => name)
.sort()
.reverse();
return entry
? entry[0]
return names.length
? names[0]
: undefined;
}
@@ -57,12 +57,25 @@ function matchParts (first: string[], second: (string | Text)[]): boolean {
return first.length === second.length && first.every((a, index) => {
const b = second[index].toString();
return (a === '*') || (a === b) || (
a.includes('*') &&
a.includes('_') &&
b.includes('_') &&
matchParts(a.split('_'), b.split('_'))
);
if ((a === '*') || (a === b)) {
return true;
}
if (a.includes('*') && a.includes('_') && b.includes('_')) {
const suba = a.split('_');
const subb = b.split('_');
if (suba[0] === '*') {
// the first parts where the length is greater is always a match
while (suba.length < subb.length) {
subb.shift();
}
}
return matchParts(suba, subb);
}
return false;
});
}
+21 -21
View File
@@ -1,19 +1,28 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
export * from './runtime/types';
export * from './assets/types';
export * from './authorship/types';
export * from './attestations/types';
export * from './aura/types';
export * from './author/types';
export * from './authorship/types';
export * from './babe/types';
export * from './balances/types';
export * from './beefy/types';
export * from './bridges/types';
export * from './chain/types';
export * from './childstate/types';
export * from './claims/types';
export * from './collective/types';
export * from './consensus/types';
export * from './contracts/types';
export * from './contractsAbi/types';
export * from './crowdloan/types';
export * from './cumulus/types';
export * from './democracy/types';
export * from './elections/types';
export * from './engine/types';
export * from './eth/types';
export * from './evm/types';
export * from './extrinsics/types';
export * from './genericAsset/types';
@@ -22,14 +31,24 @@ export * from './grandpa/types';
export * from './identity/types';
export * from './imOnline/types';
export * from './lottery/types';
export * from './metadata/types';
export * from './mmr/types';
export * from './offchain/types';
export * from './offences/types';
export * from './parachains/types';
export * from './payment/types';
export * from './poll/types';
export * from './proxy/types';
export * from './purchase/types';
export * from './recovery/types';
export * from './rpc/types';
export * from './runtime/types';
export * from './scaleInfo/types';
export * from './scheduler/types';
export * from './session/types';
export * from './society/types';
export * from './staking/types';
export * from './state/types';
export * from './support/types';
export * from './syncstate/types';
export * from './system/types';
@@ -38,23 +57,4 @@ export * from './txpayment/types';
export * from './uniques/types';
export * from './utility/types';
export * from './vesting/types';
export * from './attestations/types';
export * from './bridges/types';
export * from './claims/types';
export * from './crowdloan/types';
export * from './cumulus/types';
export * from './parachains/types';
export * from './poll/types';
export * from './purchase/types';
export * from './xcm/types';
export * from './contractsAbi/types';
export * from './scaleInfo/types';
export * from './eth/types';
export * from './metadata/types';
export * from './rpc/types';
export * from './author/types';
export * from './chain/types';
export * from './childstate/types';
export * from './offchain/types';
export * from './payment/types';
export * from './state/types';
@@ -10,44 +10,39 @@ import { v0 } from './v0';
import { v1 } from './v1';
import { v2 } from './v2';
export const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
const XCM_LATEST = 'V2';
export function mapXcm (version: 'V0' | 'V1' | 'V2'): Record<string, string> {
return XCM_MAPPINGS.reduce<Record<string, string>>((all, key) => ({
...all,
[key]: `${key}${version}`
}), {});
}
const xcm = {
XcmOrigin: {
_enum: {
Xcm: 'MultiLocation'
}
},
Xcm: 'XcmV1',
XcmpMessageFormat: {
_enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
},
XcmError: 'XcmErrorV1',
XcmOrder: 'XcmOrderV1',
XcmAssetId: {
_enum: {
Concrete: 'MultiLocation',
Abstract: 'Bytes'
}
},
AssetInstance: 'AssetInstanceV1',
Fungibility: {
_enum: {
Fungible: 'u128',
NonFungible: 'AssetInstance'
}
},
InboundStatus: {
_enum: ['Ok', 'Suspended']
},
OutboundStatus: {
_enum: ['Ok', 'Suspended']
},
MultiAssetFilter: 'MultiAssetFilterV1',
MultiAsset: 'MultiAssetV1',
MultiAssets: 'Vec<MultiAsset>',
WildFungibility: {
_enum: ['Fungible', 'NonFungible']
},
WildMultiAsset: 'WildMultiAssetV1'
MultiAssets: 'Vec<MultiAsset>'
};
const location = {
@@ -81,9 +76,6 @@ const location = {
}
},
InteriorMultiLocation: 'Junctions',
Junction: 'JunctionV1',
Junctions: 'JunctionsV1',
MultiLocation: 'MultiLocationV1',
NetworkId: {
_enum: {
Any: 'Null',
@@ -102,13 +94,13 @@ export default {
...v0,
...v1,
...v2,
...mapXcm(XCM_LATEST),
DoubleEncodedCall: {
encoded: 'Vec<u8>'
},
XcmOriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
},
Response: 'ResponseV1',
Outcome: {
_enum: {
Complete: 'Weight',
+44 -17
View File
@@ -6,7 +6,7 @@ import type { AccountId, BlockNumber, Weight } from '@polkadot/types/interfaces/
import type { ITuple } from '@polkadot/types/types';
/** @name AssetInstance */
export interface AssetInstance extends AssetInstanceV1 {}
export interface AssetInstance extends AssetInstanceV2 {}
/** @name AssetInstanceV0 */
export interface AssetInstanceV0 extends Enum {
@@ -50,6 +50,9 @@ export interface AssetInstanceV1 extends Enum {
readonly asBlob: Bytes;
}
/** @name AssetInstanceV2 */
export interface AssetInstanceV2 extends AssetInstanceV1 {}
/** @name BodyId */
export interface BodyId extends Enum {
readonly isUnit: boolean;
@@ -91,13 +94,22 @@ export interface DoubleEncodedCall extends Struct {
}
/** @name Fungibility */
export interface Fungibility extends Enum {
export interface Fungibility extends FungibilityV2 {}
/** @name FungibilityV0 */
export interface FungibilityV0 extends FungibilityV1 {}
/** @name FungibilityV1 */
export interface FungibilityV1 extends Enum {
readonly isFungible: boolean;
readonly asFungible: u128;
readonly asFungible: Compact<u128>;
readonly isNonFungible: boolean;
readonly asNonFungible: AssetInstance;
readonly asNonFungible: AssetInstanceV1;
}
/** @name FungibilityV2 */
export interface FungibilityV2 extends FungibilityV1 {}
/** @name InboundStatus */
export interface InboundStatus extends Enum {
readonly isOk: boolean;
@@ -221,10 +233,10 @@ export interface InstructionV2 extends Enum {
export interface InteriorMultiLocation extends Junctions {}
/** @name Junction */
export interface Junction extends JunctionV1 {}
export interface Junction extends JunctionV2 {}
/** @name Junctions */
export interface Junctions extends JunctionsV1 {}
export interface Junctions extends JunctionsV2 {}
/** @name JunctionsV1 */
export interface JunctionsV1 extends Enum {
@@ -321,10 +333,10 @@ export interface JunctionV1 extends Enum {
export interface JunctionV2 extends JunctionV1 {}
/** @name MultiAsset */
export interface MultiAsset extends MultiAssetV1 {}
export interface MultiAsset extends MultiAssetV2 {}
/** @name MultiAssetFilter */
export interface MultiAssetFilter extends MultiAssetFilterV1 {}
export interface MultiAssetFilter extends MultiAssetFilterV2 {}
/** @name MultiAssetFilterV1 */
export interface MultiAssetFilterV1 extends Enum {
@@ -385,14 +397,14 @@ export interface MultiAssetV0 extends Enum {
/** @name MultiAssetV1 */
export interface MultiAssetV1 extends Struct {
readonly id: XcmAssetId;
readonly fungibility: Fungibility;
readonly fungibility: FungibilityV1;
}
/** @name MultiAssetV2 */
export interface MultiAssetV2 extends MultiAssetV1 {}
/** @name MultiLocation */
export interface MultiLocation extends MultiLocationV1 {}
export interface MultiLocation extends MultiLocationV2 {}
/** @name MultiLocationV0 */
export interface MultiLocationV0 extends Enum {
@@ -491,7 +503,7 @@ export interface QueueConfigData extends Struct {
}
/** @name Response */
export interface Response extends ResponseV1 {}
export interface Response extends ResponseV2 {}
/** @name ResponseV0 */
export interface ResponseV0 extends Enum {
@@ -592,13 +604,22 @@ export interface WeightLimitV2 extends Enum {
}
/** @name WildFungibility */
export interface WildFungibility extends Enum {
export interface WildFungibility extends WildFungibilityV2 {}
/** @name WildFungibilityV0 */
export interface WildFungibilityV0 extends WildFungibilityV1 {}
/** @name WildFungibilityV1 */
export interface WildFungibilityV1 extends Enum {
readonly isFungible: boolean;
readonly isNonFungible: boolean;
}
/** @name WildFungibilityV2 */
export interface WildFungibilityV2 extends WildFungibilityV1 {}
/** @name WildMultiAsset */
export interface WildMultiAsset extends WildMultiAssetV1 {}
export interface WildMultiAsset extends WildMultiAssetV2 {}
/** @name WildMultiAssetV1 */
export interface WildMultiAssetV1 extends Enum {
@@ -606,12 +627,15 @@ export interface WildMultiAssetV1 extends Enum {
readonly isAllOf: boolean;
readonly asAllOf: {
readonly id: XcmAssetId;
readonly fungibility: WildFungibility;
readonly fungibility: WildFungibilityV1;
} & Struct;
}
/** @name WildMultiAssetV2 */
export interface WildMultiAssetV2 extends WildMultiAssetV1 {}
/** @name Xcm */
export interface Xcm extends XcmV1 {}
export interface Xcm extends XcmV2 {}
/** @name XcmAssetId */
export interface XcmAssetId extends Enum {
@@ -622,7 +646,7 @@ export interface XcmAssetId extends Enum {
}
/** @name XcmError */
export interface XcmError extends XcmErrorV1 {}
export interface XcmError extends XcmErrorV2 {}
/** @name XcmErrorV0 */
export interface XcmErrorV0 extends Enum {
@@ -734,7 +758,7 @@ export interface XcmErrorV2 extends Enum {
}
/** @name XcmOrder */
export interface XcmOrder extends XcmOrderV1 {}
export interface XcmOrder extends XcmOrderV2 {}
/** @name XcmOrderV0 */
export interface XcmOrderV0 extends Enum {
@@ -833,6 +857,9 @@ export interface XcmOrderV1 extends Enum {
} & Struct;
}
/** @name XcmOrderV2 */
export interface XcmOrderV2 extends XcmOrderV1 {}
/** @name XcmOrigin */
export interface XcmOrigin extends Enum {
readonly isXcm: boolean;
+2
View File
@@ -7,6 +7,8 @@
import type { DefinitionsTypes } from '../../types';
export const v0: DefinitionsTypes = {
FungibilityV0: 'FungibilityV1',
WildFungibilityV0: 'WildFungibilityV1',
AssetInstanceV0: {
_enum: {
Undefined: 'Null',
+11 -2
View File
@@ -18,6 +18,12 @@ export const v1: DefinitionsTypes = {
Blob: 'Bytes'
}
},
FungibilityV1: {
_enum: {
Fungible: 'Compact<u128>',
NonFungible: 'AssetInstanceV1'
}
},
JunctionV1: {
_enum: {
Parachain: 'Compact<u32>',
@@ -59,7 +65,7 @@ export const v1: DefinitionsTypes = {
MultiAssetsV1: 'Vec<MultiAssetV1>',
MultiAssetV1: {
id: 'XcmAssetId',
fungibility: 'Fungibility'
fungibility: 'FungibilityV1'
},
MultiAssetFilterV1: {
_enum: {
@@ -77,12 +83,15 @@ export const v1: DefinitionsTypes = {
Assets: 'MultiAssetsV1'
}
},
WildFungibilityV1: {
_enum: ['Fungible', 'NonFungible']
},
WildMultiAssetV1: {
_enum: {
All: 'Null',
AllOf: {
id: 'XcmAssetId',
fungibility: 'WildFungibility'
fungibility: 'WildFungibilityV1'
}
}
},
+6 -1
View File
@@ -7,6 +7,8 @@
import type { DefinitionsTypes } from '../../types';
export const v2: DefinitionsTypes = {
AssetInstanceV2: 'AssetInstanceV1',
FungibilityV2: 'FungibilityV1',
JunctionV2: 'JunctionV1',
JunctionsV2: 'JunctionsV1',
MultiAssetsV2: 'MultiAssetsV1',
@@ -14,6 +16,7 @@ export const v2: DefinitionsTypes = {
MultiAssetFilterV2: 'MultiAssetFilterV1',
MultiLocationV2: 'MultiLocationV1',
OriginKindV2: 'OriginKindV1',
WildFungibilityV2: 'WildFungibilityV1',
ResponseV2: {
_enum: {
Null: 'Null',
@@ -119,6 +122,7 @@ export const v2: DefinitionsTypes = {
Trap: 'u64'
}
},
WildMultiAssetV2: 'WildMultiAssetV1',
XcmV2: 'Vec<InstructionV2>',
XcmErrorV2: {
_enum: {
@@ -157,5 +161,6 @@ export const v2: DefinitionsTypes = {
UnknownClaim: 'Null',
InvalidLocation: 'Null'
}
}
},
XcmOrderV2: 'XcmOrderV1'
};
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/types', version: '6.2.1' };
export const packageInfo = { name: '@polkadot/types', version: '6.3.1' };
+538 -547
View File
File diff suppressed because it is too large Load Diff