Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
282b39d27a | ||
|
|
f21e3d317a | ||
|
|
c2af7cf8f2 | ||
|
|
0958a4c693 | ||
|
|
c687181130 | ||
|
|
685f1ec0b6 | ||
|
|
e0069b6f7d | ||
|
|
cf48762ff2 | ||
|
|
31a7545a19 | ||
|
|
5cd8e8fb97 | ||
|
|
96e4090174 | ||
|
|
0bbebab90b | ||
|
|
57dac0ef47 | ||
|
|
6c3d24551b | ||
|
|
e7dc6d7a5a | ||
|
|
a63b7f611e | ||
|
|
82e15dc36d | ||
|
|
6f96037cb5 | ||
|
|
b6da84b8b2 | ||
|
|
41209f074c | ||
|
|
c47964c942 | ||
|
|
5f13a634e5 | ||
|
|
40af520fe7 | ||
|
|
1e506e0f8c | ||
|
|
96ea5803d4 | ||
|
|
7d99459f50 | ||
|
|
8fa090f435 | ||
|
|
d3c60d197c | ||
|
|
ad8550f7f5 | ||
|
|
a899aa439d | ||
|
|
e0e075b350 | ||
|
|
34ff14547e | ||
|
|
681a80d456 | ||
|
|
ed5f2673ce | ||
|
|
43e87603e2 | ||
|
|
d056416b47 | ||
|
|
1bcf94131d | ||
|
|
17b607b6c3 | ||
|
|
5a16d1dd8b | ||
|
|
144b74306a | ||
|
|
16b9fa956d | ||
|
|
b6af4b9877 | ||
|
|
3f368e721d | ||
|
|
22b4257636 | ||
|
|
ca7a631032 | ||
|
|
da5bbd17af | ||
|
|
b58f3f5c3e | ||
|
|
8c30194f59 | ||
|
|
dc9ec37490 | ||
|
|
5175e77eec | ||
|
|
9553c5467c | ||
|
|
a1f07e3274 | ||
|
|
58deb2eb14 | ||
|
|
83caad7f1b | ||
|
|
26c3cc9126 | ||
|
|
1a231dfb0d | ||
|
|
712d0425d0 | ||
|
|
eaa5db517f | ||
|
|
88c3850d1b | ||
|
|
943df72ae9 | ||
|
|
67ab11a036 |
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
27
|
29
|
||||||
1.4.2
|
1.4.2
|
||||||
1.6.2
|
1.6.2
|
||||||
1.11.2
|
1.11.2
|
||||||
|
|||||||
@@ -1,5 +1,62 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 4.6.1 Apr 19, 2021
|
||||||
|
|
||||||
|
Upgrade priority: Low. Recommended if used in a Node.js 15.x environment.
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Assert keypair validity in signing operations
|
||||||
|
- Expose `internalError` on submittable results (e.g. event decoding errors)
|
||||||
|
- Simplify session derives for old/new
|
||||||
|
- Add statemint to known types
|
||||||
|
- Add support for `rpc.beefy.subscribeJustifications`
|
||||||
|
- Update Xcm types
|
||||||
|
- Explicitly handle `isReadyOrError` with `Api.create`
|
||||||
|
- Add Kusama upgrade block for 2030
|
||||||
|
|
||||||
|
|
||||||
|
## 4.5.1 Apr 12, 2021
|
||||||
|
|
||||||
|
Upgrade priority: Low. Recommended with usage with the Rococo testnet.
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update parachain types as per latest Polkadot
|
||||||
|
- Cater for `Keys` with `BEEFY` session keys
|
||||||
|
- Update `Keys` injection to allow for on-chain type detection
|
||||||
|
- Add `Westend` known upgrade block for runtime 50
|
||||||
|
- Align types with latest Substrate master
|
||||||
|
- Adjust keepalive `system_health` timer
|
||||||
|
|
||||||
|
|
||||||
|
## 4.4.1 Apr 5, 2021
|
||||||
|
|
||||||
|
Upgrade priority: Low. Recommended with usage with the Rococo testnet.
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Add `ServiceQuality` type for Cumulus
|
||||||
|
- Adjust XCM MultiLocation type (X5 to X8 junctions)
|
||||||
|
- Add Polkadot 29 upgrade block
|
||||||
|
|
||||||
|
|
||||||
|
## 4.3.1 Mar 29, 2021
|
||||||
|
|
||||||
|
Upgrade priority: Low.
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Fix documentation on ABI parameters (Thanks to https://github.com/vminkov)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Warn on usage of deprecated contract interfaces
|
||||||
|
- Update `ParaInfo` type
|
||||||
|
- Council should be optional in treasury derives
|
||||||
|
- Allow extraction of session derives indexes with no staking
|
||||||
|
|
||||||
|
|
||||||
## 4.2.1 Mar 22, 2021
|
## 4.2.1 Mar 22, 2021
|
||||||
|
|
||||||
Upgrade priority: Low. Recommended when tracking the latest updates from Substrate.
|
Upgrade priority: Low. Recommended when tracking the latest updates from Substrate.
|
||||||
|
|||||||
+6
-6
@@ -8,7 +8,7 @@
|
|||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^4.2.3"
|
"typescript": "^4.2.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
||||||
@@ -25,14 +25,14 @@
|
|||||||
"test:watch": "polkadot-dev-run-test --watch"
|
"test:watch": "polkadot-dev-run-test --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.13.10",
|
"@babel/core": "^7.13.15",
|
||||||
"@babel/register": "^7.13.8",
|
"@babel/register": "^7.13.14",
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/dev": "^0.62.6",
|
"@polkadot/dev": "^0.62.8",
|
||||||
"@polkadot/ts": "^0.3.62",
|
"@polkadot/ts": "^0.3.62",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^26.0.21",
|
"@types/jest": "^26.0.22",
|
||||||
"copyfiles": "^2.4.1"
|
"copyfiles": "^2.4.1"
|
||||||
},
|
},
|
||||||
"version": "4.2.1"
|
"version": "4.6.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { Abi } from '@polkadot/api-contract';
|
|||||||
|
|
||||||
const wsProvider = new WsProvider(<...Node Url...>);
|
const wsProvider = new WsProvider(<...Node Url...>);
|
||||||
const api = await ApiPromise.create({ provider: wsProvider });
|
const api = await ApiPromise.create({ provider: wsProvider });
|
||||||
const abi = new Abi(api.registry, <...JSON ABI...>);
|
const abi = new Abi(<...JSON ABI...>, api.registry.getChainProperties());
|
||||||
|
|
||||||
api.tx.contracts
|
api.tx.contracts
|
||||||
.call(<contract addr>, <value>, <max gas>, abi.messages.<method name>(<...params...>))
|
.call(<contract addr>, <value>, <max gas>, abi.messages.<method name>(<...params...>))
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/api-contract",
|
"name": "@polkadot/api-contract",
|
||||||
"version": "4.2.1",
|
"version": "4.6.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -17,10 +17,10 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/api": "4.2.1",
|
"@polkadot/api": "4.6.1",
|
||||||
"@polkadot/types": "4.2.1",
|
"@polkadot/types": "4.6.1",
|
||||||
"@polkadot/util": "^6.0.5",
|
"@polkadot/util": "^6.2.1",
|
||||||
"@polkadot/x-rxjs": "^6.0.5",
|
"@polkadot/x-rxjs": "^6.2.1",
|
||||||
"bn.js": "^4.11.9"
|
"bn.js": "^4.11.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { MapConstructorExec } from './types';
|
|||||||
|
|
||||||
import { SubmittableResult } from '@polkadot/api';
|
import { SubmittableResult } from '@polkadot/api';
|
||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { assert, compactAddLength, isFunction, isUndefined, isWasm, stringCamelCase, u8aToU8a } from '@polkadot/util';
|
import { assert, compactAddLength, isFunction, isUndefined, isWasm, logger, stringCamelCase, u8aToU8a } from '@polkadot/util';
|
||||||
import { blake2AsU8a } from '@polkadot/util-crypto';
|
import { blake2AsU8a } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi';
|
||||||
@@ -20,6 +20,8 @@ import { Blueprint } from './Blueprint';
|
|||||||
import { Contract } from './Contract';
|
import { Contract } from './Contract';
|
||||||
import { createBluePrintTx, EMPTY_SALT, encodeSalt } from './util';
|
import { createBluePrintTx, EMPTY_SALT, encodeSalt } from './util';
|
||||||
|
|
||||||
|
const l = logger('Code');
|
||||||
|
|
||||||
export class CodeSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
export class CodeSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
||||||
public readonly blueprint?: Blueprint<ApiType>;
|
public readonly blueprint?: Blueprint<ApiType>;
|
||||||
public readonly contract?: Contract<ApiType>;
|
public readonly contract?: Contract<ApiType>;
|
||||||
@@ -64,22 +66,26 @@ export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
* @deprecated Use the `code.tx.<constructor>(...) format to put code and deploy
|
* @deprecated Use the `code.tx.<constructor>(...) format to put code and deploy
|
||||||
*/
|
*/
|
||||||
public createContract (constructorOrId: AbiConstructor | string | number, options: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> {
|
public createContract (constructorOrId: AbiConstructor | string | number, options: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> {
|
||||||
|
l.warn('.createContract is deprecated, use code.tx.<constructorName>(...) instead (where code refers to this instance)');
|
||||||
|
|
||||||
return this.#instantiate(constructorOrId, options, params);
|
return this.#instantiate(constructorOrId, options, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
#instantiate = (constructorOrId: AbiConstructor | string | number, options: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
#instantiate = (constructorOrId: AbiConstructor | string | number, options: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
||||||
return isFunction(this.api.tx.contracts.instantiateWithCode)
|
return isFunction(this.api.tx.contracts.instantiateWithCode)
|
||||||
? this.#instantiateSingle(constructorOrId, options, params)
|
? this.#instantiateCurrent(constructorOrId, options, params)
|
||||||
: this.#instantiateBatch(constructorOrId, options, params);
|
: this.#instantiatePrev(constructorOrId, options, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
#instantiateSingle = (constructorOrId: AbiConstructor | string | number, { gasLimit = 0, salt, value = 0 }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
#instantiateCurrent = (constructorOrId: AbiConstructor | string | number, { gasLimit = 0, salt, value = 0 }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
||||||
return this.api.tx.contracts
|
return this.api.tx.contracts
|
||||||
.instantiateWithCode(value, gasLimit, compactAddLength(this.code), this.abi.findConstructor(constructorOrId).toU8a(params), encodeSalt(salt))
|
.instantiateWithCode(value, gasLimit, compactAddLength(this.code), this.abi.findConstructor(constructorOrId).toU8a(params), encodeSalt(salt))
|
||||||
.withResultTransform(this.#transformEvents);
|
.withResultTransform(this.#transformEvents);
|
||||||
}
|
}
|
||||||
|
|
||||||
#instantiateBatch = (constructorOrId: AbiConstructor | string | number, { gasLimit = 0, salt, value = 0 }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
#instantiatePrev = (constructorOrId: AbiConstructor | string | number, { gasLimit = 0, salt, value = 0 }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
||||||
|
assert(isFunction(this.api.tx.utility?.batch), 'Your chain does not include the utility pallet, for contracts v2 deployment, this is required');
|
||||||
|
|
||||||
const encodedSalt = encodeSalt(salt);
|
const encodedSalt = encodeSalt(salt);
|
||||||
const withSalt = this.api.tx.contracts.instantiate.meta.args.length === 5;
|
const withSalt = this.api.tx.contracts.instantiate.meta.args.length === 5;
|
||||||
const encoded = this.abi.findConstructor(constructorOrId).toU8a(params, withSalt ? EMPTY_SALT : encodedSalt);
|
const encoded = this.abi.findConstructor(constructorOrId).toU8a(params, withSalt ? EMPTY_SALT : encodedSalt);
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import { Base } from './Base';
|
|||||||
// As per Rust, 5 * GAS_PER_SEC
|
// As per Rust, 5 * GAS_PER_SEC
|
||||||
const MAX_CALL_GAS = new BN(5_000_000_000_000).subn(1);
|
const MAX_CALL_GAS = new BN(5_000_000_000_000).subn(1);
|
||||||
const ERROR_NO_CALL = 'Your node does not expose the contracts.call RPC. This is most probably due to a runtime configuration.';
|
const ERROR_NO_CALL = 'Your node does not expose the contracts.call RPC. This is most probably due to a runtime configuration.';
|
||||||
|
|
||||||
const l = logger('Contract');
|
const l = logger('Contract');
|
||||||
|
|
||||||
function createQuery <ApiType extends ApiTypes> (fn: (origin: string | AccountId | Uint8Array, options: ContractOptions, params: CodecArg[]) => ContractCallResult<ApiType, ContractCallOutcome>): ContractQuery<ApiType> {
|
function createQuery <ApiType extends ApiTypes> (fn: (origin: string | AccountId | Uint8Array, options: ContractOptions, params: CodecArg[]) => ContractCallResult<ApiType, ContractCallOutcome>): ContractQuery<ApiType> {
|
||||||
@@ -39,11 +40,14 @@ function createTx <ApiType extends ApiTypes> (fn: (options: ContractOptions, par
|
|||||||
: fn(...extractOptions(options, params));
|
: fn(...extractOptions(options, params));
|
||||||
}
|
}
|
||||||
|
|
||||||
function createWithId <T> (fn: (messageOrId: AbiMessage | string | number, options: ContractOptions, params: CodecArg[]) => T): ContractGeneric<ContractOptions, T> {
|
function createWithId <T> (fn: (messageOrId: AbiMessage | string | number, options: ContractOptions, params: CodecArg[]) => T, warn?: string): ContractGeneric<ContractOptions, T> {
|
||||||
return (messageOrId: AbiMessage | string | number, options: BigInt | string | number | BN | ContractOptions, ...params: CodecArg[]): T =>
|
return (messageOrId: AbiMessage | string | number, options: BigInt | string | number | BN | ContractOptions, ...params: CodecArg[]): T => {
|
||||||
isOptions(options)
|
warn && l.warn(warn);
|
||||||
|
|
||||||
|
return isOptions(options)
|
||||||
? fn(messageOrId, options, params)
|
? fn(messageOrId, options, params)
|
||||||
: fn(messageOrId, ...extractOptions(options, params));
|
: fn(messageOrId, ...extractOptions(options, params));
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ContractSubmittableResult extends SubmittableResult {
|
export class ContractSubmittableResult extends SubmittableResult {
|
||||||
@@ -109,8 +113,8 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
super(api, abi, decorateMethod);
|
super(api, abi, decorateMethod);
|
||||||
|
|
||||||
this.address = this.registry.createType('AccountId', address);
|
this.address = this.registry.createType('AccountId', address);
|
||||||
this.exec = createWithId(this.#exec);
|
this.exec = createWithId(this.#exec, '.exec is deprecated, use contract.tx.<messageName>(...) instead (where contract refers to this instance)');
|
||||||
this.read = createWithId(this.#read);
|
this.read = createWithId(this.#read, '.read is deprecated, use contract.query.<messageName>(...) instead (where contract refers to this instance)');
|
||||||
|
|
||||||
this.abi.messages.forEach((m): void => {
|
this.abi.messages.forEach((m): void => {
|
||||||
const messageName = stringCamelCase(m.identifier);
|
const messageName = stringCamelCase(m.identifier);
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', version: '4.2.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', version: '4.6.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/api-derive",
|
"name": "@polkadot/api-derive",
|
||||||
"version": "4.2.1",
|
"version": "4.6.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -17,16 +17,16 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/api": "4.2.1",
|
"@polkadot/api": "4.6.1",
|
||||||
"@polkadot/rpc-core": "4.2.1",
|
"@polkadot/rpc-core": "4.6.1",
|
||||||
"@polkadot/types": "4.2.1",
|
"@polkadot/types": "4.6.1",
|
||||||
"@polkadot/util": "^6.0.5",
|
"@polkadot/util": "^6.2.1",
|
||||||
"@polkadot/util-crypto": "^6.0.5",
|
"@polkadot/util-crypto": "^6.2.1",
|
||||||
"@polkadot/x-rxjs": "^6.0.5",
|
"@polkadot/x-rxjs": "^6.2.1",
|
||||||
"bn.js": "^4.11.9"
|
"bn.js": "^4.11.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^6.0.5",
|
"@polkadot/keyring": "^6.2.1",
|
||||||
"@polkadot/rpc-provider": "4.2.1"
|
"@polkadot/rpc-provider": "4.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,12 +37,16 @@ export function bounties (instanceId: string, api: ApiInterfaceRx): () => Observ
|
|||||||
return memo(instanceId, (): Observable<DeriveBounties> =>
|
return memo(instanceId, (): Observable<DeriveBounties> =>
|
||||||
combineLatest([
|
combineLatest([
|
||||||
bountyBase.bountyCount<BountyIndex>(),
|
bountyBase.bountyCount<BountyIndex>(),
|
||||||
api.query.council ? api.query.council.proposalCount<ProposalIndex>() : of(0)
|
api.query.council
|
||||||
|
? api.query.council.proposalCount<ProposalIndex>()
|
||||||
|
: of(0)
|
||||||
]).pipe(
|
]).pipe(
|
||||||
switchMap(() =>
|
switchMap(() =>
|
||||||
combineLatest([
|
combineLatest([
|
||||||
bountyBase.bounties.keys<[BountyIndex]>(),
|
bountyBase.bounties.keys<[BountyIndex]>(),
|
||||||
api.derive.council ? api.derive.council.proposals() : of([])
|
api.derive.council
|
||||||
|
? api.derive.council.proposals()
|
||||||
|
: of([])
|
||||||
])
|
])
|
||||||
),
|
),
|
||||||
switchMap(([keys, proposals]): Observable<Result> => {
|
switchMap(([keys, proposals]): Observable<Result> => {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-derive', version: '4.2.1' };
|
export const packageInfo = { name: '@polkadot/api-derive', version: '4.6.1' };
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { map } from '@polkadot/x-rxjs/operators';
|
|||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
// parse into Indexes
|
// parse into Indexes
|
||||||
function parse ([activeEra, activeEraStart, currentEra, currentIndex, validatorCount]: [EraIndex, Option<Moment>, EraIndex, SessionIndex, u32]): DeriveSessionIndexes {
|
function parse ([currentIndex, activeEra, activeEraStart, currentEra, validatorCount]: [SessionIndex, EraIndex, Option<Moment>, EraIndex, u32]): DeriveSessionIndexes {
|
||||||
return {
|
return {
|
||||||
activeEra,
|
activeEra,
|
||||||
activeEraStart,
|
activeEraStart,
|
||||||
@@ -24,42 +24,57 @@ function parse ([activeEra, activeEraStart, currentEra, currentIndex, validatorC
|
|||||||
}
|
}
|
||||||
|
|
||||||
// query based on latest
|
// query based on latest
|
||||||
function query (api: ApiInterfaceRx): Observable<DeriveSessionIndexes> {
|
function queryStaking (api: ApiInterfaceRx): Observable<DeriveSessionIndexes> {
|
||||||
return api.queryMulti<[Option<ActiveEraInfo>, Option<EraIndex>, SessionIndex, u32]>([
|
return api.queryMulti<[SessionIndex, Option<ActiveEraInfo>, Option<EraIndex>, u32]>([
|
||||||
|
api.query.session.currentIndex,
|
||||||
api.query.staking.activeEra,
|
api.query.staking.activeEra,
|
||||||
api.query.staking.currentEra,
|
api.query.staking.currentEra,
|
||||||
api.query.session.currentIndex,
|
|
||||||
api.query.staking.validatorCount
|
api.query.staking.validatorCount
|
||||||
]).pipe(
|
]).pipe(
|
||||||
map(([activeOpt, currentEra, currentIndex, validatorCount]): DeriveSessionIndexes => {
|
map(([currentIndex, activeOpt, currentEra, validatorCount]): DeriveSessionIndexes => {
|
||||||
const { index, start } = activeOpt.unwrapOrDefault();
|
const { index, start } = activeOpt.unwrapOrDefault();
|
||||||
|
|
||||||
return parse([
|
return parse([
|
||||||
|
currentIndex,
|
||||||
index,
|
index,
|
||||||
start,
|
start,
|
||||||
currentEra.unwrapOrDefault(),
|
currentEra.unwrapOrDefault(),
|
||||||
currentIndex,
|
|
||||||
validatorCount
|
validatorCount
|
||||||
]);
|
]);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// query based on latest
|
||||||
|
function querySession (api: ApiInterfaceRx): Observable<DeriveSessionIndexes> {
|
||||||
|
return api.query.session.currentIndex().pipe(
|
||||||
|
map((currentIndex): DeriveSessionIndexes => parse([
|
||||||
|
currentIndex,
|
||||||
|
api.registry.createType('EraIndex'),
|
||||||
|
api.registry.createType('Option<Moment>'),
|
||||||
|
api.registry.createType('EraIndex'),
|
||||||
|
api.registry.createType('u32')
|
||||||
|
]))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// empty set when none is available
|
// empty set when none is available
|
||||||
function empty (api: ApiInterfaceRx): Observable<DeriveSessionIndexes> {
|
function empty (api: ApiInterfaceRx): Observable<DeriveSessionIndexes> {
|
||||||
return of(parse([
|
return of(parse([
|
||||||
|
api.registry.createType('SessionIndex', 1),
|
||||||
api.registry.createType('EraIndex'),
|
api.registry.createType('EraIndex'),
|
||||||
api.registry.createType('Option<Moment>'),
|
api.registry.createType('Option<Moment>'),
|
||||||
api.registry.createType('EraIndex'),
|
api.registry.createType('EraIndex'),
|
||||||
api.registry.createType('SessionIndex', 1),
|
|
||||||
api.registry.createType('u32')
|
api.registry.createType('u32')
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function indexes (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveSessionIndexes> {
|
export function indexes (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveSessionIndexes> {
|
||||||
return memo(instanceId, (): Observable<DeriveSessionIndexes> =>
|
return memo(instanceId, (): Observable<DeriveSessionIndexes> =>
|
||||||
api.query.session && api.query.staking
|
api.query.session
|
||||||
? query(api)
|
? api.query.staking
|
||||||
|
? queryStaking(api)
|
||||||
|
: querySession(api)
|
||||||
: empty(api)
|
: empty(api)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,71 +2,31 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { u64 } from '@polkadot/types';
|
|
||||||
import type { SessionIndex } from '@polkadot/types/interfaces';
|
|
||||||
import type { Observable } from '@polkadot/x-rxjs';
|
import type { Observable } from '@polkadot/x-rxjs';
|
||||||
import type { DeriveSessionIndexes, DeriveSessionInfo } from '../types';
|
import type { DeriveSessionInfo } from '../types';
|
||||||
|
|
||||||
import { map } from '@polkadot/x-rxjs/operators';
|
import { map } from '@polkadot/x-rxjs/operators';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
type ResultType = [boolean, u64, SessionIndex];
|
|
||||||
type Result = [ResultType, DeriveSessionIndexes];
|
|
||||||
|
|
||||||
function createDerive (api: ApiInterfaceRx, [[hasBabe, epochDuration, sessionsPerEra], { activeEra, activeEraStart, currentEra, currentIndex, validatorCount }]: Result): DeriveSessionInfo {
|
|
||||||
return {
|
|
||||||
activeEra,
|
|
||||||
activeEraStart,
|
|
||||||
currentEra,
|
|
||||||
currentIndex,
|
|
||||||
eraLength: api.registry.createType('BlockNumber', sessionsPerEra.mul(epochDuration)),
|
|
||||||
isEpoch: hasBabe,
|
|
||||||
sessionLength: epochDuration,
|
|
||||||
sessionsPerEra,
|
|
||||||
validatorCount
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function queryAura (api: ApiInterfaceRx): Observable<DeriveSessionInfo> {
|
|
||||||
return api.derive.session.indexes().pipe(
|
|
||||||
map((indexes): DeriveSessionInfo =>
|
|
||||||
createDerive(api, [
|
|
||||||
[
|
|
||||||
false,
|
|
||||||
api.registry.createType('u64', 1),
|
|
||||||
// we may have aura without staking (permissioned)
|
|
||||||
api.consts.staking?.sessionsPerEra || api.registry.createType('SessionIndex', 1)
|
|
||||||
],
|
|
||||||
indexes
|
|
||||||
])
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function queryBabe (api: ApiInterfaceRx): Observable<DeriveSessionInfo> {
|
|
||||||
return api.derive.session.indexes().pipe(
|
|
||||||
map((indexes) =>
|
|
||||||
createDerive(api, [
|
|
||||||
[
|
|
||||||
true,
|
|
||||||
api.consts.babe.epochDuration,
|
|
||||||
// we may have babe without staking (permissioned)
|
|
||||||
api.consts.staking?.sessionsPerEra || api.registry.createType('SessionIndex', 1)
|
|
||||||
],
|
|
||||||
indexes
|
|
||||||
])
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description Retrieves all the session and era query and calculates specific values on it as the length of the session and eras
|
* @description Retrieves all the session and era query and calculates specific values on it as the length of the session and eras
|
||||||
*/
|
*/
|
||||||
export function info (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveSessionInfo> {
|
export function info (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveSessionInfo> {
|
||||||
return memo(instanceId, (): Observable<DeriveSessionInfo> =>
|
return memo(instanceId, (): Observable<DeriveSessionInfo> =>
|
||||||
api.consts.babe
|
api.derive.session.indexes().pipe(
|
||||||
? queryBabe(api)
|
map((indexes) => {
|
||||||
: queryAura(api)
|
const sessionLength = api.consts?.babe?.epochDuration || api.registry.createType('u64', 1);
|
||||||
|
const sessionsPerEra = api.consts?.staking?.sessionsPerEra || api.registry.createType('SessionIndex', 1);
|
||||||
|
|
||||||
|
return {
|
||||||
|
...indexes,
|
||||||
|
eraLength: api.registry.createType('BlockNumber', sessionsPerEra.mul(sessionLength)),
|
||||||
|
isEpoch: !!api.query.babe,
|
||||||
|
sessionLength,
|
||||||
|
sessionsPerEra
|
||||||
|
};
|
||||||
|
})
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ function queryBabe (api: ApiInterfaceRx): Observable<[DeriveSessionInfo, ResultS
|
|||||||
combineLatest([
|
combineLatest([
|
||||||
of(info),
|
of(info),
|
||||||
// we may have no staking, but have babe (permissioned)
|
// we may have no staking, but have babe (permissioned)
|
||||||
api.query.staking
|
api.query.staking?.erasStartSessionIndex
|
||||||
? api.queryMulti<ResultSlots>([
|
? api.queryMulti<ResultSlots>([
|
||||||
api.query.babe.currentSlot,
|
api.query.babe.currentSlot,
|
||||||
api.query.babe.epochIndex,
|
api.query.babe.epochIndex,
|
||||||
@@ -69,7 +69,7 @@ function queryBabe (api: ApiInterfaceRx): Observable<[DeriveSessionInfo, ResultS
|
|||||||
*/
|
*/
|
||||||
export function progress (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveSessionProgress> {
|
export function progress (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveSessionProgress> {
|
||||||
return memo(instanceId, (): Observable<DeriveSessionProgress> =>
|
return memo(instanceId, (): Observable<DeriveSessionProgress> =>
|
||||||
api.consts.babe
|
api.query.babe
|
||||||
? queryBabe(api).pipe(
|
? queryBabe(api).pipe(
|
||||||
map(([info, slots]: [DeriveSessionInfo, ResultSlotsFlat]): DeriveSessionProgress =>
|
map(([info, slots]: [DeriveSessionInfo, ResultSlotsFlat]): DeriveSessionProgress =>
|
||||||
createDerive(api, info, slots)
|
createDerive(api, info, slots)
|
||||||
|
|||||||
@@ -61,7 +61,9 @@ function retrieveProposals (api: ApiInterfaceRx, proposalCount: ProposalIndex, a
|
|||||||
|
|
||||||
return combineLatest([
|
return combineLatest([
|
||||||
api.query.treasury.proposals.multi<Option<TreasuryProposal>>(allIds),
|
api.query.treasury.proposals.multi<Option<TreasuryProposal>>(allIds),
|
||||||
api.derive.council.proposals()
|
api.derive.council
|
||||||
|
? api.derive.council.proposals()
|
||||||
|
: of([] as DeriveCollectiveProposal[])
|
||||||
]).pipe(
|
]).pipe(
|
||||||
map(([allProposals, councilProposals]: [Option<TreasuryProposal>[], DeriveCollectiveProposal[]]): DeriveTreasuryProposals =>
|
map(([allProposals, councilProposals]: [Option<TreasuryProposal>[], DeriveCollectiveProposal[]]): DeriveTreasuryProposals =>
|
||||||
parseResult(api, { allIds, allProposals, approvalIds, councilProposals, proposalCount })
|
parseResult(api, { allIds, allProposals, approvalIds, councilProposals, proposalCount })
|
||||||
|
|||||||
+11
-11
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/api",
|
"name": "@polkadot/api",
|
||||||
"version": "4.2.1",
|
"version": "4.6.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -17,16 +17,16 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/api-derive": "4.2.1",
|
"@polkadot/api-derive": "4.6.1",
|
||||||
"@polkadot/keyring": "^6.0.5",
|
"@polkadot/keyring": "^6.2.1",
|
||||||
"@polkadot/metadata": "4.2.1",
|
"@polkadot/metadata": "4.6.1",
|
||||||
"@polkadot/rpc-core": "4.2.1",
|
"@polkadot/rpc-core": "4.6.1",
|
||||||
"@polkadot/rpc-provider": "4.2.1",
|
"@polkadot/rpc-provider": "4.6.1",
|
||||||
"@polkadot/types": "4.2.1",
|
"@polkadot/types": "4.6.1",
|
||||||
"@polkadot/types-known": "4.2.1",
|
"@polkadot/types-known": "4.6.1",
|
||||||
"@polkadot/util": "^6.0.5",
|
"@polkadot/util": "^6.2.1",
|
||||||
"@polkadot/util-crypto": "^6.0.5",
|
"@polkadot/util-crypto": "^6.2.1",
|
||||||
"@polkadot/x-rxjs": "^6.0.5",
|
"@polkadot/x-rxjs": "^6.2.1",
|
||||||
"bn.js": "^4.11.9",
|
"bn.js": "^4.11.9",
|
||||||
"eventemitter3": "^4.0.7"
|
"eventemitter3": "^4.0.7"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { Vec, u16, u32, u64, u8 } from '@polkadot/types';
|
import type { Vec, u16, u32, u64, u8 } from '@polkadot/types';
|
||||||
import type { Codec } from '@polkadot/types/types';
|
import type { Codec } from '@polkadot/types/types';
|
||||||
import type { Balance, BalanceOf, BlockNumber, LockIdentifier, ModuleId, Moment, Perbill, Percent, Permill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { Balance, BalanceOf, BlockNumber, LockIdentifier, Moment, PalletId, Perbill, Percent, Permill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
import type { EraIndex } from '@polkadot/types/interfaces/staking';
|
import type { EraIndex } from '@polkadot/types/interfaces/staking';
|
||||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||||
@@ -203,7 +203,7 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
candidacyBond: BalanceOf & AugmentedConst<ApiType>;
|
candidacyBond: BalanceOf & AugmentedConst<ApiType>;
|
||||||
desiredMembers: u32 & AugmentedConst<ApiType>;
|
desiredMembers: u32 & AugmentedConst<ApiType>;
|
||||||
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
||||||
moduleId: LockIdentifier & AugmentedConst<ApiType>;
|
palletId: LockIdentifier & AugmentedConst<ApiType>;
|
||||||
termDuration: BlockNumber & AugmentedConst<ApiType>;
|
termDuration: BlockNumber & AugmentedConst<ApiType>;
|
||||||
votingBondBase: BalanceOf & AugmentedConst<ApiType>;
|
votingBondBase: BalanceOf & AugmentedConst<ApiType>;
|
||||||
votingBondFactor: BalanceOf & AugmentedConst<ApiType>;
|
votingBondFactor: BalanceOf & AugmentedConst<ApiType>;
|
||||||
@@ -295,7 +295,7 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
lottery: {
|
lottery: {
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
maxCalls: u32 & AugmentedConst<ApiType>;
|
maxCalls: u32 & AugmentedConst<ApiType>;
|
||||||
moduleId: ModuleId & AugmentedConst<ApiType>;
|
palletId: PalletId & AugmentedConst<ApiType>;
|
||||||
};
|
};
|
||||||
multisig: {
|
multisig: {
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
@@ -381,6 +381,10 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
* The number of blocks between membership challenges.
|
* The number of blocks between membership challenges.
|
||||||
**/
|
**/
|
||||||
challengePeriod: BlockNumber & AugmentedConst<ApiType>;
|
challengePeriod: BlockNumber & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Maximum candidate intake per round.
|
||||||
|
**/
|
||||||
|
maxCandidateIntake: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The number of times a member may vote the wrong way (or not at all, when they are a skeptic)
|
* The number of times a member may vote the wrong way (or not at all, when they are a skeptic)
|
||||||
* before they become suspended.
|
* before they become suspended.
|
||||||
@@ -389,7 +393,7 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The societies's module id
|
* The societies's module id
|
||||||
**/
|
**/
|
||||||
moduleId: ModuleId & AugmentedConst<ApiType>;
|
palletId: PalletId & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The amount of incentive paid within each period. Doesn't include VoterTip.
|
* The amount of incentive paid within each period. Doesn't include VoterTip.
|
||||||
**/
|
**/
|
||||||
@@ -410,6 +414,10 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
* Number of eras that staked funds must remain bonded for.
|
* Number of eras that staked funds must remain bonded for.
|
||||||
**/
|
**/
|
||||||
bondingDuration: EraIndex & AugmentedConst<ApiType>;
|
bondingDuration: EraIndex & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Maximum number of nominations per nominator.
|
||||||
|
**/
|
||||||
|
maxNominations: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of nominators rewarded for each validator.
|
* The maximum number of nominators rewarded for each validator.
|
||||||
*
|
*
|
||||||
@@ -514,7 +522,7 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The treasury's module id, used for deriving its sovereign account ID.
|
* The treasury's module id, used for deriving its sovereign account ID.
|
||||||
**/
|
**/
|
||||||
moduleId: ModuleId & AugmentedConst<ApiType>;
|
palletId: PalletId & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
||||||
* An accepted proposal gets these back. A rejected proposal does not.
|
* An accepted proposal gets these back. A rejected proposal does not.
|
||||||
@@ -532,7 +540,7 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
vesting: {
|
vesting: {
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
/**
|
/**
|
||||||
* The minimum amount to be transferred to create a new vesting schedule.
|
* The minimum amount transferred to call `vested_transfer`.
|
||||||
**/
|
**/
|
||||||
minVestedTransfer: BalanceOf & AugmentedConst<ApiType>;
|
minVestedTransfer: BalanceOf & AugmentedConst<ApiType>;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -743,6 +743,64 @@ declare module '@polkadot/api/types/errors' {
|
|||||||
**/
|
**/
|
||||||
InvalidKey: AugmentedError<ApiType>;
|
InvalidKey: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
indices: {
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The index was not available.
|
||||||
|
**/
|
||||||
|
InUse: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The index was not already assigned.
|
||||||
|
**/
|
||||||
|
NotAssigned: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The index is assigned to another account.
|
||||||
|
**/
|
||||||
|
NotOwner: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The source and destination accounts are identical.
|
||||||
|
**/
|
||||||
|
NotTransfer: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The index is permanent and may not be freed/changed.
|
||||||
|
**/
|
||||||
|
Permanent: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
|
lottery: {
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A lottery has already ended.
|
||||||
|
**/
|
||||||
|
AlreadyEnded: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* You are already participating in the lottery with this call.
|
||||||
|
**/
|
||||||
|
AlreadyParticipating: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Failed to encode calls
|
||||||
|
**/
|
||||||
|
EncodingFailed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A lottery is already in progress.
|
||||||
|
**/
|
||||||
|
InProgress: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The call is not valid for an open lottery.
|
||||||
|
**/
|
||||||
|
InvalidCall: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A lottery has not been configured.
|
||||||
|
**/
|
||||||
|
NotConfigured: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* An overflow has occurred.
|
||||||
|
**/
|
||||||
|
Overflow: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Too many calls for a single lottery.
|
||||||
|
**/
|
||||||
|
TooManyCalls: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
multisig: {
|
multisig: {
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -1185,6 +1243,17 @@ declare module '@polkadot/api/types/errors' {
|
|||||||
**/
|
**/
|
||||||
WrongProposalWeight: AugmentedError<ApiType>;
|
WrongProposalWeight: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
technicalMembership: {
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Already a member.
|
||||||
|
**/
|
||||||
|
AlreadyMember: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Not a member.
|
||||||
|
**/
|
||||||
|
NotMember: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
tips: {
|
tips: {
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import type { Bytes, HashMap, Json, Null, Option, StorageKey, Text, U256, U64, V
|
|||||||
import type { AnyNumber, Codec, IExtrinsic, Observable } from '@polkadot/types/types';
|
import type { AnyNumber, Codec, IExtrinsic, Observable } from '@polkadot/types/types';
|
||||||
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
||||||
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
||||||
|
import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
@@ -64,6 +65,12 @@ declare module '@polkadot/rpc-core/types.jsonrpc' {
|
|||||||
**/
|
**/
|
||||||
epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
|
epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
|
||||||
};
|
};
|
||||||
|
beefy: {
|
||||||
|
/**
|
||||||
|
* Returns the block most recently finalized by BEEFY, alongside side its justification.
|
||||||
|
**/
|
||||||
|
subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>;
|
||||||
|
};
|
||||||
chain: {
|
chain: {
|
||||||
/**
|
/**
|
||||||
* Get header and body of a relay chain block
|
* Get header and body of a relay chain block
|
||||||
|
|||||||
@@ -108,8 +108,7 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The origin must be Signed and the sender must have sufficient funds free.
|
* The origin must be Signed and the sender must have sufficient funds free.
|
||||||
*
|
*
|
||||||
* Funds of sender are reserved according to the formula:
|
* Funds of sender are reserved by `AssetDeposit`.
|
||||||
* `AssetDepositBase + AssetDepositPerZombie * max_zombies`.
|
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
||||||
@@ -713,7 +712,7 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
||||||
* * `code`: The contract code to deploy in raw bytes.
|
* * `code`: The contract code to deploy in raw bytes.
|
||||||
* * `data`: The input data to pass to the contract constructor.
|
* * `data`: The input data to pass to the contract constructor.
|
||||||
* * `salt`: Used for the address derivation. See [`Self::contract_address`].
|
* * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
|
||||||
*
|
*
|
||||||
* Instantiation is executed as follows:
|
* Instantiation is executed as follows:
|
||||||
*
|
*
|
||||||
@@ -3875,7 +3874,7 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
* Unlock any vested funds of the sender account.
|
* Unlock any vested funds of the sender account.
|
||||||
*
|
*
|
||||||
* The dispatch origin for this call must be _Signed_ and the sender must have funds still
|
* The dispatch origin for this call must be _Signed_ and the sender must have funds still
|
||||||
* locked under this module.
|
* locked under this pallet.
|
||||||
*
|
*
|
||||||
* Emits either `VestingCompleted` or `VestingUpdated`.
|
* Emits either `VestingCompleted` or `VestingUpdated`.
|
||||||
*
|
*
|
||||||
@@ -3893,7 +3892,7 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
* The dispatch origin for this call must be _Signed_.
|
* The dispatch origin for this call must be _Signed_.
|
||||||
*
|
*
|
||||||
* - `target`: The account whose vested funds should be unlocked. Must have funds still
|
* - `target`: The account whose vested funds should be unlocked. Must have funds still
|
||||||
* locked under this module.
|
* locked under this pallet.
|
||||||
*
|
*
|
||||||
* Emits either `VestingCompleted` or `VestingUpdated`.
|
* Emits either `VestingCompleted` or `VestingUpdated`.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ import { cryptoWaitReady } from '@polkadot/util-crypto';
|
|||||||
import { of } from '@polkadot/x-rxjs';
|
import { of } from '@polkadot/x-rxjs';
|
||||||
import { map, switchMap } from '@polkadot/x-rxjs/operators';
|
import { map, switchMap } from '@polkadot/x-rxjs/operators';
|
||||||
|
|
||||||
|
import { detectedCapabilities } from './capabilities';
|
||||||
import { Decorate } from './Decorate';
|
import { Decorate } from './Decorate';
|
||||||
import { detectedCapabilities } from './util';
|
|
||||||
|
|
||||||
const KEEPALIVE_INTERVAL = 15000;
|
const KEEPALIVE_INTERVAL = 10000;
|
||||||
const DEFAULT_BLOCKNUMBER = { unwrap: () => BN_ZERO };
|
const DEFAULT_BLOCKNUMBER = { unwrap: () => BN_ZERO };
|
||||||
|
|
||||||
const l = logger('api/init');
|
const l = logger('api/init');
|
||||||
@@ -321,7 +321,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.#healthTimer = setInterval((): void => {
|
this.#healthTimer = setInterval((): void => {
|
||||||
this._rpcCore.system.health().toPromise().catch(() => null);
|
this._rpcCore.system.health().toPromise().catch((error) => l.warn(`Health keepalive check failed: ${(error as Error).message}`));
|
||||||
}, KEEPALIVE_INTERVAL);
|
}, KEEPALIVE_INTERVAL);
|
||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
const error = new Error(`FATAL: Unable to initialize the API: ${(_error as Error).message}`);
|
const error = new Error(`FATAL: Unable to initialize the API: ${(_error as Error).message}`);
|
||||||
|
|||||||
@@ -0,0 +1,181 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
|
import type { bool, Raw, u32 } from '@polkadot/types';
|
||||||
|
import type { Releases } from '@polkadot/types/interfaces';
|
||||||
|
import type { InterfaceTypes } from '@polkadot/types/types';
|
||||||
|
|
||||||
|
import { assert, compactFromU8a } from '@polkadot/util';
|
||||||
|
import { combineLatest, Observable, of } from '@polkadot/x-rxjs';
|
||||||
|
import { map, take } from '@polkadot/x-rxjs/operators';
|
||||||
|
|
||||||
|
// the order and types needs to map with the all array setup below
|
||||||
|
type ExtractedQ = [bool | null, bool | null, bool | null, Releases | null];
|
||||||
|
|
||||||
|
type ExtractedR = [Raw | null];
|
||||||
|
|
||||||
|
type ExtractedC = [u32 | null, u32 | null];
|
||||||
|
|
||||||
|
type DetectedKeys = keyof Pick<InterfaceTypes, 'AccountInfo' | 'ValidatorPrefs'>;
|
||||||
|
|
||||||
|
type DetectedValues = keyof InterfaceTypes;
|
||||||
|
|
||||||
|
interface DetectedTypes extends Record<DetectedKeys, DetectedValues> {
|
||||||
|
AccountInfo: 'AccountInfoWithRefCount' | 'AccountInfoWithDualRefCount' | 'AccountInfoWithTripleRefCount',
|
||||||
|
Keys: 'SessionKeys1' | 'SessionKeys2' | 'SessionKeys3' | 'SessionKeys4' | 'SessionKeys5' | 'SessionKeys6' | 'SessionKeys7' | 'SessionKeys8' | 'SessionKeys9' | 'SessionKeys10';
|
||||||
|
RefCount: 'u8' | 'u32',
|
||||||
|
SlotRange: Record<string, unknown>;
|
||||||
|
ValidatorPrefs: 'ValidatorPrefsWithBlocked' | 'ValidatorPrefsWithCommission';
|
||||||
|
WinningData: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AvailableMap<T> {
|
||||||
|
filtered: T[];
|
||||||
|
included: boolean[];
|
||||||
|
original: T[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Constants {
|
||||||
|
accountIdLength: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
const NumberMap = ['Zero', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten'];
|
||||||
|
|
||||||
|
function mapCapabilities ({ accountIdLength }: Constants, [leasePeriodsPerSlot, slotRangeCount]: ExtractedC, [systemRefcount32, systemRefcountDual, systemRefcountTriple, stakingVersion]: ExtractedQ, [keys]: ExtractedR): Partial<DetectedTypes> {
|
||||||
|
const types: Partial<DetectedTypes> = {};
|
||||||
|
|
||||||
|
// AccountInfo
|
||||||
|
if (systemRefcountTriple && systemRefcountTriple.isTrue) {
|
||||||
|
types.AccountInfo = 'AccountInfoWithTripleRefCount';
|
||||||
|
} else if (systemRefcountDual && systemRefcountDual.isTrue) {
|
||||||
|
types.AccountInfo = 'AccountInfoWithDualRefCount';
|
||||||
|
} else {
|
||||||
|
types.AccountInfo = 'AccountInfoWithRefCount';
|
||||||
|
|
||||||
|
if (!systemRefcount32 || systemRefcount32.isFalse) {
|
||||||
|
types.RefCount = 'u8';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ValidatorPrefs
|
||||||
|
if (stakingVersion) {
|
||||||
|
if (stakingVersion.index >= 4) { // v1 = index 0, V5 = index 4
|
||||||
|
types.ValidatorPrefs = 'ValidatorPrefsWithBlocked';
|
||||||
|
} else {
|
||||||
|
types.ValidatorPrefs = 'ValidatorPrefsWithCommission';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keys
|
||||||
|
if (keys) {
|
||||||
|
try {
|
||||||
|
const [offset, numItems] = compactFromU8a(keys);
|
||||||
|
const tupleLength = (keys.length - offset) / numItems.toNumber();
|
||||||
|
const numIds = tupleLength / accountIdLength;
|
||||||
|
const numIdsRound = Math.floor(numIds);
|
||||||
|
|
||||||
|
assert(numIds >= 2 && numIds <= 11, `Detected ${numIds} in Keys, should be >= 2 and <= 11`);
|
||||||
|
|
||||||
|
if (numIdsRound !== numIds) {
|
||||||
|
// Beefy?
|
||||||
|
if ((((numIdsRound - 1) * accountIdLength) + 33) === tupleLength) {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
|
types.Keys = `SessionKeys${numIdsRound - 1}B`;
|
||||||
|
} else {
|
||||||
|
assert(false, `Expected integer number of keys, found ${numIds.toFixed(2)}`);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
|
types.Keys = `SessionKeys${numIds - 1}`;
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// auctions
|
||||||
|
if (leasePeriodsPerSlot && slotRangeCount) {
|
||||||
|
const _enum: string[] = [];
|
||||||
|
|
||||||
|
for (let i = 0; leasePeriodsPerSlot.gtn(i); i++) {
|
||||||
|
for (let j = i; leasePeriodsPerSlot.gtn(j); j++) {
|
||||||
|
_enum.push(`${NumberMap[i]}${NumberMap[j]}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
types.SlotRange = { _enum };
|
||||||
|
types.WinningData = `[WinningDataEntry; ${slotRangeCount.toNumber()}]`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return types;
|
||||||
|
}
|
||||||
|
|
||||||
|
function filterEntries <T> (original: T[]): AvailableMap<T> {
|
||||||
|
const included = original.map((c) => !!c);
|
||||||
|
const filtered = original.filter((_, index) => included[index]);
|
||||||
|
|
||||||
|
return { filtered, included, original };
|
||||||
|
}
|
||||||
|
|
||||||
|
function extractResults <R, T = unknown> (results: unknown[], map: AvailableMap<T>): R {
|
||||||
|
let offset = -1;
|
||||||
|
|
||||||
|
return map.included.map((isIncluded) =>
|
||||||
|
isIncluded
|
||||||
|
? results[++offset]
|
||||||
|
: null
|
||||||
|
) as unknown as R;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Query the chain for the specific capabilities
|
||||||
|
*/
|
||||||
|
export function detectedCapabilities (api: ApiInterfaceRx, blockHash?: Uint8Array | string | undefined): Observable<Partial<DetectedTypes>> {
|
||||||
|
const consts = filterEntries([
|
||||||
|
api.consts.auctions?.leasePeriodsPerSlot,
|
||||||
|
api.consts.auctions?.slotRangeCount
|
||||||
|
]);
|
||||||
|
const queries = filterEntries([
|
||||||
|
api.query.system?.upgradedToU32RefCount,
|
||||||
|
api.query.system?.upgradedToDualRefCount,
|
||||||
|
api.query.system?.upgradedToTripleRefCount,
|
||||||
|
api.query.staking?.storageVersion
|
||||||
|
]);
|
||||||
|
const raws = filterEntries([
|
||||||
|
api.query.session?.queuedKeys
|
||||||
|
]);
|
||||||
|
|
||||||
|
return combineLatest([
|
||||||
|
consts.filtered.length
|
||||||
|
? blockHash
|
||||||
|
// FIXME consts don't have .at as of yet...
|
||||||
|
? of([])
|
||||||
|
: of(consts.filtered)
|
||||||
|
: of([]),
|
||||||
|
queries.filtered.length
|
||||||
|
? blockHash
|
||||||
|
? combineLatest(queries.filtered.map((c) => c.at(blockHash)))
|
||||||
|
: api.queryMulti(queries.filtered)
|
||||||
|
: of([]),
|
||||||
|
raws.filtered.length
|
||||||
|
? blockHash
|
||||||
|
? combineLatest(raws.filtered.map((k) => api.rpc.state.getStorage.raw(k.key(), blockHash)))
|
||||||
|
: combineLatest(raws.filtered.map((k) => api.rpc.state.getStorage.raw(k.key())))
|
||||||
|
: of([])
|
||||||
|
]).pipe(
|
||||||
|
map(([cResults, qResults, rResults]): Partial<DetectedTypes> =>
|
||||||
|
mapCapabilities(
|
||||||
|
{
|
||||||
|
accountIdLength: api.registry.createType('AccountId').encodedLength
|
||||||
|
},
|
||||||
|
extractResults<ExtractedC>(cResults, consts),
|
||||||
|
extractResults<ExtractedQ>(qResults, queries),
|
||||||
|
extractResults<ExtractedR>(rResults, raws)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
take(1)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
|
||||||
import type { bool } from '@polkadot/types';
|
|
||||||
import type { Releases } from '@polkadot/types/interfaces';
|
|
||||||
import type { InterfaceTypes } from '@polkadot/types/types';
|
|
||||||
|
|
||||||
import { combineLatest, Observable, of } from '@polkadot/x-rxjs';
|
|
||||||
import { map, take } from '@polkadot/x-rxjs/operators';
|
|
||||||
|
|
||||||
// the order and types needs to map with the all array setup below
|
|
||||||
type Extracted = [bool | null, bool | null, bool | null, Releases | null];
|
|
||||||
|
|
||||||
type DetectedKeys = keyof Pick<InterfaceTypes, 'AccountInfo' | 'ValidatorPrefs'>;
|
|
||||||
|
|
||||||
type DetectedValues = keyof InterfaceTypes;
|
|
||||||
|
|
||||||
interface DetectedTypes extends Record<DetectedKeys, DetectedValues> {
|
|
||||||
AccountInfo: 'AccountInfoWithRefCount' | 'AccountInfoWithDualRefCount' | 'AccountInfoWithTripleRefCount',
|
|
||||||
RefCount: 'u8' | 'u32',
|
|
||||||
ValidatorPrefs: 'ValidatorPrefsWithBlocked' | 'ValidatorPrefsWithCommission';
|
|
||||||
}
|
|
||||||
|
|
||||||
function mapCapabilities ([systemRefcount32, systemRefcountDual, systemRefcountTriple, stakingVersion]: Extracted): Partial<DetectedTypes> {
|
|
||||||
const types: Partial<DetectedTypes> = {};
|
|
||||||
|
|
||||||
// AccountInfo
|
|
||||||
if (systemRefcountTriple && systemRefcountTriple.isTrue) {
|
|
||||||
types.AccountInfo = 'AccountInfoWithTripleRefCount';
|
|
||||||
} else if (systemRefcountDual && systemRefcountDual.isTrue) {
|
|
||||||
types.AccountInfo = 'AccountInfoWithDualRefCount';
|
|
||||||
} else {
|
|
||||||
types.AccountInfo = 'AccountInfoWithRefCount';
|
|
||||||
|
|
||||||
if (!systemRefcount32 || systemRefcount32.isFalse) {
|
|
||||||
types.RefCount = 'u8';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ValidatorPrefs
|
|
||||||
if (stakingVersion) {
|
|
||||||
if (stakingVersion.index >= 4) { // v1 = index 0, V5 = index 4
|
|
||||||
types.ValidatorPrefs = 'ValidatorPrefsWithBlocked';
|
|
||||||
} else {
|
|
||||||
types.ValidatorPrefs = 'ValidatorPrefsWithCommission';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return types;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @description Query the chain for the specific capabilities
|
|
||||||
*/
|
|
||||||
export function detectedCapabilities (api: ApiInterfaceRx, blockHash?: Uint8Array | string | undefined): Observable<Partial<DetectedTypes>> {
|
|
||||||
const all = [
|
|
||||||
api.query.system?.upgradedToU32RefCount,
|
|
||||||
api.query.system?.upgradedToDualRefCount,
|
|
||||||
api.query.system?.upgradedToTripleRefCount,
|
|
||||||
api.query.staking?.storageVersion
|
|
||||||
];
|
|
||||||
const included = all.map((c) => !!c);
|
|
||||||
const filtered = all.filter((_, index) => included[index]);
|
|
||||||
|
|
||||||
return (
|
|
||||||
filtered.length
|
|
||||||
? blockHash
|
|
||||||
? combineLatest(filtered.map((c) => c.at(blockHash)))
|
|
||||||
: api.queryMulti(filtered)
|
|
||||||
: of([])
|
|
||||||
).pipe(
|
|
||||||
map((results): Partial<DetectedTypes> => {
|
|
||||||
let offset = -1;
|
|
||||||
|
|
||||||
return mapCapabilities(
|
|
||||||
included.map((isIncluded) => isIncluded ? results[++offset] : null) as Extracted
|
|
||||||
);
|
|
||||||
}),
|
|
||||||
take(1)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api', version: '4.2.1' };
|
export const packageInfo = { name: '@polkadot/api', version: '4.6.1' };
|
||||||
|
|||||||
@@ -211,7 +211,19 @@ export class ApiPromise extends ApiBase<'promise'> {
|
|||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
public static create (options?: ApiOptions): Promise<ApiPromise> {
|
public static create (options?: ApiOptions): Promise<ApiPromise> {
|
||||||
return new ApiPromise(options).isReady;
|
const instance = new ApiPromise(options);
|
||||||
|
|
||||||
|
if (options && options.throwOnConnect) {
|
||||||
|
return instance.isReadyOrError;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Swallow any rejections on isReadyOrError
|
||||||
|
// (in Node 15.x this creates issues, when not being looked at)
|
||||||
|
instance.isReadyOrError.catch(() => {
|
||||||
|
// ignore
|
||||||
|
});
|
||||||
|
|
||||||
|
return instance.isReady;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -235,18 +247,14 @@ export class ApiPromise extends ApiBase<'promise'> {
|
|||||||
super(options, 'promise', decorateMethod);
|
super(options, 'promise', decorateMethod);
|
||||||
|
|
||||||
this.#isReadyPromise = new Promise((resolve): void => {
|
this.#isReadyPromise = new Promise((resolve): void => {
|
||||||
super.once('ready', (): void => {
|
super.once('ready', () => resolve(this));
|
||||||
resolve(this);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.#isReadyOrErrorPromise = new Promise((resolve, reject): void => {
|
this.#isReadyOrErrorPromise = new Promise((resolve, reject): void => {
|
||||||
super.once('ready', (): void => {
|
const tracker = promiseTracker(resolve, reject);
|
||||||
resolve(this);
|
|
||||||
});
|
super.once('ready', () => tracker.resolve(this));
|
||||||
super.once('error', (e): void => {
|
super.once('error', (e) => tracker.reject(e));
|
||||||
reject(e);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,14 +32,17 @@ export class SubmittableResult implements ISubmittableResult {
|
|||||||
|
|
||||||
public readonly dispatchInfo?: DispatchInfo;
|
public readonly dispatchInfo?: DispatchInfo;
|
||||||
|
|
||||||
|
public readonly internalError?: Error;
|
||||||
|
|
||||||
public readonly events: EventRecord[];
|
public readonly events: EventRecord[];
|
||||||
|
|
||||||
public readonly status: ExtrinsicStatus;
|
public readonly status: ExtrinsicStatus;
|
||||||
|
|
||||||
constructor ({ dispatchError, dispatchInfo, events, status }: SubmittableResultValue) {
|
constructor ({ dispatchError, dispatchInfo, events, internalError, status }: SubmittableResultValue) {
|
||||||
this.dispatchError = dispatchError || extractError(events);
|
this.dispatchError = dispatchError || extractError(events);
|
||||||
this.dispatchInfo = dispatchInfo || extractInfo(events);
|
this.dispatchInfo = dispatchInfo || extractInfo(events);
|
||||||
this.events = events || [];
|
this.events = events || [];
|
||||||
|
this.internalError = internalError;
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,6 +88,7 @@ export class SubmittableResult implements ISubmittableResult {
|
|||||||
dispatchError: this.dispatchError?.toHuman(),
|
dispatchError: this.dispatchError?.toHuman(),
|
||||||
dispatchInfo: this.dispatchInfo?.toHuman(),
|
dispatchInfo: this.dispatchInfo?.toHuman(),
|
||||||
events: this.events.map((event) => event.toHuman(isExtended)),
|
events: this.events.map((event) => event.toHuman(isExtended)),
|
||||||
|
internalError: this.internalError?.message.toString(),
|
||||||
status: this.status.toHuman(isExtended)
|
status: this.status.toHuman(isExtended)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, Submittable
|
|||||||
|
|
||||||
import { assert, isBn, isFunction, isNumber, isString, isU8a } from '@polkadot/util';
|
import { assert, isBn, isFunction, isNumber, isString, isU8a } from '@polkadot/util';
|
||||||
import { of } from '@polkadot/x-rxjs';
|
import { of } from '@polkadot/x-rxjs';
|
||||||
import { first, map, mapTo, mergeMap, switchMap, tap } from '@polkadot/x-rxjs/operators';
|
import { catchError, first, map, mapTo, mergeMap, switchMap, tap } from '@polkadot/x-rxjs/operators';
|
||||||
|
|
||||||
import { ApiBase } from '../base';
|
import { ApiBase } from '../base';
|
||||||
import { filterEvents, isKeyringPair } from '../util';
|
import { filterEvents, isKeyringPair } from '../util';
|
||||||
@@ -242,6 +242,9 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
|
|||||||
events: filterEvents(hash, block, events, status),
|
events: filterEvents(hash, block, events, status),
|
||||||
status
|
status
|
||||||
}))
|
}))
|
||||||
|
),
|
||||||
|
catchError((internalError: Error) =>
|
||||||
|
of(this.#transformResult(new SubmittableResult({ internalError, status })))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export interface SubmittableResultValue {
|
|||||||
dispatchError?: DispatchError;
|
dispatchError?: DispatchError;
|
||||||
dispatchInfo?: DispatchInfo;
|
dispatchInfo?: DispatchInfo;
|
||||||
events?: EventRecord[];
|
events?: EventRecord[];
|
||||||
|
internalError?: Error;
|
||||||
status: ExtrinsicStatus;
|
status: ExtrinsicStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,6 +69,10 @@ export interface ApiOptions extends RegisteredTypes {
|
|||||||
* @description The source object to use for runtime information (only used when cloning)
|
* @description The source object to use for runtime information (only used when cloning)
|
||||||
*/
|
*/
|
||||||
source?: ApiBase<any>;
|
source?: ApiBase<any>;
|
||||||
|
/**
|
||||||
|
* @description Throws an error when the initial connection fails (same as isReadyOrError)
|
||||||
|
*/
|
||||||
|
throwOnConnect?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
// A smaller interface of ApiRx, used in derive and in SubmittableExtrinsic
|
// A smaller interface of ApiRx, used in derive and in SubmittableExtrinsic
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/metadata",
|
"name": "@polkadot/metadata",
|
||||||
"version": "4.2.1",
|
"version": "4.6.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Helpers to extract information from runtime metadata",
|
"description": "Helpers to extract information from runtime metadata",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -17,13 +17,13 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/types": "4.2.1",
|
"@polkadot/types": "4.6.1",
|
||||||
"@polkadot/types-known": "4.2.1",
|
"@polkadot/types-known": "4.6.1",
|
||||||
"@polkadot/util": "^6.0.5",
|
"@polkadot/util": "^6.2.1",
|
||||||
"@polkadot/util-crypto": "^6.0.5",
|
"@polkadot/util-crypto": "^6.2.1",
|
||||||
"bn.js": "^4.11.9"
|
"bn.js": "^4.11.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^6.0.5"
|
"@polkadot/keyring": "^6.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/metadata', version: '4.2.1' };
|
export const packageInfo = { name: '@polkadot/metadata', version: '4.6.1' };
|
||||||
|
|||||||
@@ -499,7 +499,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Version",
|
"name": "Version",
|
||||||
"type": "RuntimeVersion",
|
"type": "RuntimeVersion",
|
||||||
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000090100000000000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
|
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000090100000100000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
|
||||||
"documentation": [
|
"documentation": [
|
||||||
" Get the chain's current version."
|
" Get the chain's current version."
|
||||||
]
|
]
|
||||||
@@ -947,7 +947,7 @@
|
|||||||
{
|
{
|
||||||
"name": "EpochDuration",
|
"name": "EpochDuration",
|
||||||
"type": "u64",
|
"type": "u64",
|
||||||
"value": "0x1400000000000000",
|
"value": "0xc800000000000000",
|
||||||
"documentation": [
|
"documentation": [
|
||||||
" The amount of time, in slots, that each epoch should last.",
|
" The amount of time, in slots, that each epoch should last.",
|
||||||
" NOTE: Currently it is not possible to change the epoch duration after",
|
" NOTE: Currently it is not possible to change the epoch duration after",
|
||||||
@@ -1392,7 +1392,38 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"errors": [],
|
"errors": [
|
||||||
|
{
|
||||||
|
"name": "NotAssigned",
|
||||||
|
"documentation": [
|
||||||
|
" The index was not already assigned."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "NotOwner",
|
||||||
|
"documentation": [
|
||||||
|
" The index is assigned to another account."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "InUse",
|
||||||
|
"documentation": [
|
||||||
|
" The index was not available."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "NotTransfer",
|
||||||
|
"documentation": [
|
||||||
|
" The source and destination accounts are identical."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Permanent",
|
||||||
|
"documentation": [
|
||||||
|
" The index is permanent and may not be freed/changed."
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"index": 5
|
"index": 5
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1971,7 +2002,7 @@
|
|||||||
{
|
{
|
||||||
"name": "UnsignedPhase",
|
"name": "UnsignedPhase",
|
||||||
"type": "BlockNumber",
|
"type": "BlockNumber",
|
||||||
"value": "0x05000000",
|
"value": "0x32000000",
|
||||||
"documentation": [
|
"documentation": [
|
||||||
" Duration of the unsigned phase."
|
" Duration of the unsigned phase."
|
||||||
]
|
]
|
||||||
@@ -1979,7 +2010,7 @@
|
|||||||
{
|
{
|
||||||
"name": "SignedPhase",
|
"name": "SignedPhase",
|
||||||
"type": "BlockNumber",
|
"type": "BlockNumber",
|
||||||
"value": "0x05000000",
|
"value": "0x32000000",
|
||||||
"documentation": [
|
"documentation": [
|
||||||
" Duration of the signed phase."
|
" Duration of the signed phase."
|
||||||
]
|
]
|
||||||
@@ -3257,6 +3288,14 @@
|
|||||||
" For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim",
|
" For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim",
|
||||||
" their reward. This used to limit the i/o cost for the nominator payout."
|
" their reward. This used to limit the i/o cost for the nominator payout."
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "MaxNominations",
|
||||||
|
"type": "u32",
|
||||||
|
"value": "0x10000000",
|
||||||
|
"documentation": [
|
||||||
|
" Maximum number of nominations per nominator."
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"errors": [
|
"errors": [
|
||||||
@@ -6091,7 +6130,7 @@
|
|||||||
"documentation": []
|
"documentation": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ModuleId",
|
"name": "PalletId",
|
||||||
"type": "LockIdentifier",
|
"type": "LockIdentifier",
|
||||||
"value": "0x706872656c656374",
|
"value": "0x706872656c656374",
|
||||||
"documentation": []
|
"documentation": []
|
||||||
@@ -6383,7 +6422,20 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"constants": [],
|
"constants": [],
|
||||||
"errors": [],
|
"errors": [
|
||||||
|
{
|
||||||
|
"name": "AlreadyMember",
|
||||||
|
"documentation": [
|
||||||
|
" Already a member."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "NotMember",
|
||||||
|
"documentation": [
|
||||||
|
" Not a member."
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"index": 15
|
"index": 15
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -6825,8 +6877,8 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ModuleId",
|
"name": "PalletId",
|
||||||
"type": "ModuleId",
|
"type": "PalletId",
|
||||||
"value": "0x70792f7472737279",
|
"value": "0x70792f7472737279",
|
||||||
"documentation": [
|
"documentation": [
|
||||||
" The treasury's module id, used for deriving its sovereign account ID."
|
" The treasury's module id, used for deriving its sovereign account ID."
|
||||||
@@ -7026,7 +7078,7 @@
|
|||||||
" * `gas_limit`: The gas limit enforced when executing the constructor.",
|
" * `gas_limit`: The gas limit enforced when executing the constructor.",
|
||||||
" * `code`: The contract code to deploy in raw bytes.",
|
" * `code`: The contract code to deploy in raw bytes.",
|
||||||
" * `data`: The input data to pass to the contract constructor.",
|
" * `data`: The input data to pass to the contract constructor.",
|
||||||
" * `salt`: Used for the address derivation. See [`Self::contract_address`].",
|
" * `salt`: Used for the address derivation. See [`Pallet::contract_address`].",
|
||||||
"",
|
"",
|
||||||
" Instantiation is executed as follows:",
|
" Instantiation is executed as follows:",
|
||||||
"",
|
"",
|
||||||
@@ -9569,12 +9621,20 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ModuleId",
|
"name": "PalletId",
|
||||||
"type": "ModuleId",
|
"type": "PalletId",
|
||||||
"value": "0x70792f736f636965",
|
"value": "0x70792f736f636965",
|
||||||
"documentation": [
|
"documentation": [
|
||||||
" The societies's module id"
|
" The societies's module id"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "MaxCandidateIntake",
|
||||||
|
"type": "u32",
|
||||||
|
"value": "0x0a000000",
|
||||||
|
"documentation": [
|
||||||
|
" Maximum candidate intake per round."
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"errors": [
|
"errors": [
|
||||||
@@ -10274,7 +10334,7 @@
|
|||||||
" Unlock any vested funds of the sender account.",
|
" Unlock any vested funds of the sender account.",
|
||||||
"",
|
"",
|
||||||
" The dispatch origin for this call must be _Signed_ and the sender must have funds still",
|
" The dispatch origin for this call must be _Signed_ and the sender must have funds still",
|
||||||
" locked under this module.",
|
" locked under this pallet.",
|
||||||
"",
|
"",
|
||||||
" Emits either `VestingCompleted` or `VestingUpdated`.",
|
" Emits either `VestingCompleted` or `VestingUpdated`.",
|
||||||
"",
|
"",
|
||||||
@@ -10300,7 +10360,7 @@
|
|||||||
" The dispatch origin for this call must be _Signed_.",
|
" The dispatch origin for this call must be _Signed_.",
|
||||||
"",
|
"",
|
||||||
" - `target`: The account whose vested funds should be unlocked. Must have funds still",
|
" - `target`: The account whose vested funds should be unlocked. Must have funds still",
|
||||||
" locked under this module.",
|
" locked under this pallet.",
|
||||||
"",
|
"",
|
||||||
" Emits either `VestingCompleted` or `VestingUpdated`.",
|
" Emits either `VestingCompleted` or `VestingUpdated`.",
|
||||||
"",
|
"",
|
||||||
@@ -10409,7 +10469,7 @@
|
|||||||
"type": "BalanceOf",
|
"type": "BalanceOf",
|
||||||
"value": "0x0000c16ff28623000000000000000000",
|
"value": "0x0000c16ff28623000000000000000000",
|
||||||
"documentation": [
|
"documentation": [
|
||||||
" The minimum amount to be transferred to create a new vesting schedule."
|
" The minimum amount transferred to call `vested_transfer`."
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -12614,8 +12674,7 @@
|
|||||||
"",
|
"",
|
||||||
" The origin must be Signed and the sender must have sufficient funds free.",
|
" The origin must be Signed and the sender must have sufficient funds free.",
|
||||||
"",
|
"",
|
||||||
" Funds of sender are reserved according to the formula:",
|
" Funds of sender are reserved by `AssetDeposit`.",
|
||||||
" `AssetDepositBase + AssetDepositPerZombie * max_zombies`.",
|
|
||||||
"",
|
"",
|
||||||
" Parameters:",
|
" Parameters:",
|
||||||
" - `id`: The identifier of the new asset. This must not be currently in use to identify",
|
" - `id`: The identifier of the new asset. This must not be currently in use to identify",
|
||||||
@@ -13902,8 +13961,8 @@
|
|||||||
],
|
],
|
||||||
"constants": [
|
"constants": [
|
||||||
{
|
{
|
||||||
"name": "ModuleId",
|
"name": "PalletId",
|
||||||
"type": "ModuleId",
|
"type": "PalletId",
|
||||||
"value": "0x70792f6c6f74746f",
|
"value": "0x70792f6c6f74746f",
|
||||||
"documentation": []
|
"documentation": []
|
||||||
},
|
},
|
||||||
@@ -13914,7 +13973,56 @@
|
|||||||
"documentation": []
|
"documentation": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"errors": [],
|
"errors": [
|
||||||
|
{
|
||||||
|
"name": "Overflow",
|
||||||
|
"documentation": [
|
||||||
|
" An overflow has occurred."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "NotConfigured",
|
||||||
|
"documentation": [
|
||||||
|
" A lottery has not been configured."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "InProgress",
|
||||||
|
"documentation": [
|
||||||
|
" A lottery is already in progress."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "AlreadyEnded",
|
||||||
|
"documentation": [
|
||||||
|
" A lottery has already ended."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "InvalidCall",
|
||||||
|
"documentation": [
|
||||||
|
" The call is not valid for an open lottery."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "AlreadyParticipating",
|
||||||
|
"documentation": [
|
||||||
|
" You are already participating in the lottery with this call."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "TooManyCalls",
|
||||||
|
"documentation": [
|
||||||
|
" Too many calls for a single lottery."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "EncodingFailed",
|
||||||
|
"documentation": [
|
||||||
|
" Failed to encode calls"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"index": 36
|
"index": 36
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/rpc-core",
|
"name": "@polkadot/rpc-core",
|
||||||
"version": "4.2.1",
|
"version": "4.6.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -17,13 +17,13 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/metadata": "4.2.1",
|
"@polkadot/metadata": "4.6.1",
|
||||||
"@polkadot/rpc-provider": "4.2.1",
|
"@polkadot/rpc-provider": "4.6.1",
|
||||||
"@polkadot/types": "4.2.1",
|
"@polkadot/types": "4.6.1",
|
||||||
"@polkadot/util": "^6.0.5",
|
"@polkadot/util": "^6.2.1",
|
||||||
"@polkadot/x-rxjs": "^6.0.5"
|
"@polkadot/x-rxjs": "^6.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^6.0.5"
|
"@polkadot/keyring": "^6.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-core', version: '4.2.1' };
|
export const packageInfo = { name: '@polkadot/rpc-core', version: '4.6.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/rpc-provider",
|
"name": "@polkadot/rpc-provider",
|
||||||
"version": "4.2.1",
|
"version": "4.6.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Transport providers for the API",
|
"description": "Transport providers for the API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -17,18 +17,18 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/types": "4.2.1",
|
"@polkadot/types": "4.6.1",
|
||||||
"@polkadot/util": "^6.0.5",
|
"@polkadot/util": "^6.2.1",
|
||||||
"@polkadot/util-crypto": "^6.0.5",
|
"@polkadot/util-crypto": "^6.2.1",
|
||||||
"@polkadot/x-fetch": "^6.0.5",
|
"@polkadot/x-fetch": "^6.2.1",
|
||||||
"@polkadot/x-global": "^6.0.5",
|
"@polkadot/x-global": "^6.2.1",
|
||||||
"@polkadot/x-ws": "^6.0.5",
|
"@polkadot/x-ws": "^6.2.1",
|
||||||
"bn.js": "^4.11.9",
|
"bn.js": "^4.11.9",
|
||||||
"eventemitter3": "^4.0.7"
|
"eventemitter3": "^4.0.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^6.0.5",
|
"@polkadot/keyring": "^6.2.1",
|
||||||
"@polkadot/metadata": "4.2.1",
|
"@polkadot/metadata": "4.6.1",
|
||||||
"mock-socket": "^9.0.3",
|
"mock-socket": "^9.0.3",
|
||||||
"nock": "^13.0.11"
|
"nock": "^13.0.11"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-provider', version: '4.2.1' };
|
export const packageInfo = { name: '@polkadot/rpc-provider', version: '4.6.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/typegen",
|
"name": "@polkadot/typegen",
|
||||||
"version": "4.2.1",
|
"version": "4.6.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Type generation scripts",
|
"description": "Type generation scripts",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -23,20 +23,20 @@
|
|||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.13.10",
|
"@babel/core": "^7.13.15",
|
||||||
"@babel/register": "^7.13.8",
|
"@babel/register": "^7.13.14",
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/api": "4.2.1",
|
"@polkadot/api": "4.6.1",
|
||||||
"@polkadot/metadata": "4.2.1",
|
"@polkadot/metadata": "4.6.1",
|
||||||
"@polkadot/rpc-provider": "4.2.1",
|
"@polkadot/rpc-provider": "4.6.1",
|
||||||
"@polkadot/types": "4.2.1",
|
"@polkadot/types": "4.6.1",
|
||||||
"@polkadot/util": "^6.0.5",
|
"@polkadot/util": "^6.2.1",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"websocket": "^1.0.33",
|
"websocket": "^1.0.34",
|
||||||
"yargs": "^16.2.0"
|
"yargs": "^16.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/websocket": "^1.0.2",
|
"@types/websocket": "^1.0.2",
|
||||||
"@types/yargs": "^16.0.0"
|
"@types/yargs": "^16.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/typegen', version: '4.2.1' };
|
export const packageInfo = { name: '@polkadot/typegen', version: '4.6.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/types-known",
|
"name": "@polkadot/types-known",
|
||||||
"version": "4.2.1",
|
"version": "4.6.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -17,9 +17,9 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/networks": "^6.0.5",
|
"@polkadot/networks": "^6.2.1",
|
||||||
"@polkadot/types": "4.2.1",
|
"@polkadot/types": "4.6.1",
|
||||||
"@polkadot/util": "^6.0.5",
|
"@polkadot/util": "^6.2.1",
|
||||||
"bn.js": "^4.11.9"
|
"bn.js": "^4.11.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -72,6 +72,12 @@ const typesModules: Record<string, OverrideModuleType> = {
|
|||||||
},
|
},
|
||||||
treasury: {
|
treasury: {
|
||||||
Proposal: 'TreasuryProposal'
|
Proposal: 'TreasuryProposal'
|
||||||
|
},
|
||||||
|
xcm: {
|
||||||
|
Outcome: 'XcmOutcome'
|
||||||
|
},
|
||||||
|
xcmPallet: {
|
||||||
|
Outcome: 'XcmOutcome'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-known', version: '4.2.1' };
|
export const packageInfo = { name: '@polkadot/types-known', version: '4.6.1' };
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import node from './node';
|
|||||||
import nodeTemplate from './node-template';
|
import nodeTemplate from './node-template';
|
||||||
import polkadot from './polkadot';
|
import polkadot from './polkadot';
|
||||||
import rococo from './rococo';
|
import rococo from './rococo';
|
||||||
|
import statemint from './statemint';
|
||||||
import westend from './westend';
|
import westend from './westend';
|
||||||
|
|
||||||
// Type overrides for specific spec types & versions as given in runtimeVersion
|
// Type overrides for specific spec types & versions as given in runtimeVersion
|
||||||
@@ -19,6 +20,7 @@ const typesSpec: Record<string, OverrideVersionedType[]> = {
|
|||||||
'node-template': nodeTemplate,
|
'node-template': nodeTemplate,
|
||||||
polkadot,
|
polkadot,
|
||||||
rococo,
|
rococo,
|
||||||
|
statemint,
|
||||||
westend
|
westend
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import type { OverrideVersionedType } from '@polkadot/types/types';
|
|||||||
const sharedTypes = {
|
const sharedTypes = {
|
||||||
AccountInfo: 'AccountInfoWithDualRefCount',
|
AccountInfo: 'AccountInfoWithDualRefCount',
|
||||||
Address: 'MultiAddress',
|
Address: 'MultiAddress',
|
||||||
Keys: 'SessionKeys6',
|
Keys: 'SessionKeys7B',
|
||||||
LookupSource: 'MultiAddress',
|
LookupSource: 'MultiAddress',
|
||||||
ProxyType: {
|
ProxyType: {
|
||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy']
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy']
|
||||||
@@ -165,7 +165,14 @@ const versioned: OverrideVersionedType[] = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
minmax: [2028, undefined],
|
minmax: [2028, 2029],
|
||||||
|
types: {
|
||||||
|
...sharedTypes,
|
||||||
|
Keys: 'SessionKeys6'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
minmax: [2030, undefined],
|
||||||
types: {
|
types: {
|
||||||
...sharedTypes
|
...sharedTypes
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import type { OverrideVersionedType } from '@polkadot/types/types';
|
|||||||
const sharedTypes = {
|
const sharedTypes = {
|
||||||
AccountInfo: 'AccountInfoWithDualRefCount',
|
AccountInfo: 'AccountInfoWithDualRefCount',
|
||||||
Address: 'MultiAddress',
|
Address: 'MultiAddress',
|
||||||
Keys: 'SessionKeys6',
|
Keys: 'SessionKeys7B',
|
||||||
LookupSource: 'MultiAddress',
|
LookupSource: 'MultiAddress',
|
||||||
ProxyType: {
|
ProxyType: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -69,7 +69,14 @@ const versioned: OverrideVersionedType[] = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
minmax: [28, undefined],
|
minmax: [28, 29],
|
||||||
|
types: {
|
||||||
|
...sharedTypes,
|
||||||
|
Keys: 'SessionKeys6'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
minmax: [30, undefined],
|
||||||
types: {
|
types: {
|
||||||
...sharedTypes
|
...sharedTypes
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { OverrideVersionedType } from '@polkadot/types/types';
|
|||||||
|
|
||||||
const sharedTypes = {
|
const sharedTypes = {
|
||||||
FullIdentification: '()', // No staking, only session (as per config)
|
FullIdentification: '()', // No staking, only session (as per config)
|
||||||
Keys: 'SessionKeys6'
|
Keys: 'SessionKeys7B'
|
||||||
};
|
};
|
||||||
|
|
||||||
const versioned: OverrideVersionedType[] = [
|
const versioned: OverrideVersionedType[] = [
|
||||||
@@ -31,7 +31,14 @@ const versioned: OverrideVersionedType[] = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
minmax: [215, undefined],
|
minmax: [215, 228],
|
||||||
|
types: {
|
||||||
|
...sharedTypes,
|
||||||
|
Keys: 'SessionKeys6'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
minmax: [229, undefined],
|
||||||
types: {
|
types: {
|
||||||
...sharedTypes
|
...sharedTypes
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
|
||||||
|
import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||||
|
|
||||||
|
// these are override types for Polkadot
|
||||||
|
const versioned: OverrideVersionedType[] = [
|
||||||
|
{
|
||||||
|
minmax: [0, undefined],
|
||||||
|
types: {
|
||||||
|
TAssetBalance: 'u128',
|
||||||
|
ProxyType: {
|
||||||
|
_enum: {
|
||||||
|
Any: 0,
|
||||||
|
NonTransfer: 1,
|
||||||
|
CancelProxy: 2,
|
||||||
|
Assets: 3,
|
||||||
|
AssetOwner: 4,
|
||||||
|
AssetManager: 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
export default versioned;
|
||||||
@@ -6,15 +6,10 @@
|
|||||||
import type { OverrideVersionedType } from '@polkadot/types/types';
|
import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||||
|
|
||||||
const sharedTypes = {
|
const sharedTypes = {
|
||||||
AccountInfo: 'AccountInfoWithDualRefCount',
|
Keys: 'SessionKeys7B',
|
||||||
Address: 'MultiAddress',
|
|
||||||
Keys: 'SessionKeys6',
|
|
||||||
LookupSource: 'MultiAddress',
|
|
||||||
ProxyType: {
|
ProxyType: {
|
||||||
_enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement', 'CancelProxy'
|
_enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement', 'CancelProxy']
|
||||||
]
|
}
|
||||||
},
|
|
||||||
ValidatorPrefs: 'ValidatorPrefsWithBlocked'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const addrAccountIdTypes = {
|
const addrAccountIdTypes = {
|
||||||
@@ -73,7 +68,23 @@ const versioned: OverrideVersionedType[] = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
minmax: [48, undefined],
|
minmax: [48, 49],
|
||||||
|
types: {
|
||||||
|
...sharedTypes,
|
||||||
|
AccountInfo: 'AccountInfoWithDualRefCount',
|
||||||
|
Keys: 'SessionKeys6'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// 50 was supposed to have Beefy, didn't
|
||||||
|
minmax: [50, 50],
|
||||||
|
types: {
|
||||||
|
...sharedTypes,
|
||||||
|
Keys: 'SessionKeys6'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
minmax: [51, undefined],
|
||||||
types: {
|
types: {
|
||||||
...sharedTypes
|
...sharedTypes
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const upgrades: ChainUpgradesRaw = [
|
|||||||
[2201991, 1062], [2671528, 2005], [2704202, 2007], [2728002, 2008], [2832534, 2011],
|
[2201991, 1062], [2671528, 2005], [2704202, 2007], [2728002, 2008], [2832534, 2011],
|
||||||
[2962294, 2012], [3240000, 2013], [3274408, 2015], [3323565, 2019], [3534175, 2022],
|
[2962294, 2012], [3240000, 2013], [3274408, 2015], [3323565, 2019], [3534175, 2022],
|
||||||
[3860281, 2023], [4143129, 2024], [4401242, 2025], [4841367, 2026], [5961600, 2027],
|
[3860281, 2023], [4143129, 2024], [4401242, 2025], [4841367, 2026], [5961600, 2027],
|
||||||
[6137912, 2028], [6561855, 2029]
|
[6137912, 2028], [6561855, 2029], [7100891, 2030]
|
||||||
];
|
];
|
||||||
|
|
||||||
export default upgrades;
|
export default upgrades;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const upgrades: ChainUpgradesRaw = [
|
|||||||
[244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12],
|
[244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12],
|
||||||
[528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17],
|
[528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17],
|
||||||
[1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
|
[1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
|
||||||
[3613564, 27], [3899547, 28]
|
[3613564, 27], [3899547, 28], [4345767, 29]
|
||||||
];
|
];
|
||||||
|
|
||||||
export default upgrades;
|
export default upgrades;
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ const upgrades: ChainUpgradesRaw = [
|
|||||||
[879238, 25], [889472, 26], [902937, 27], [932751, 28], [991142, 29],
|
[879238, 25], [889472, 26], [902937, 27], [932751, 28], [991142, 29],
|
||||||
[1030162, 31], [1119657, 32], [1199282, 33], [1342534, 34], [1392263, 35],
|
[1030162, 31], [1119657, 32], [1199282, 33], [1342534, 34], [1392263, 35],
|
||||||
[1431703, 36], [1433369, 37], [1490972, 41], [2087397, 43], [2316688, 44],
|
[1431703, 36], [1433369, 37], [1490972, 41], [2087397, 43], [2316688, 44],
|
||||||
[2549864, 45], [3925782, 46], [3925843, 47], [4207800, 48], [4627944, 49]
|
[2549864, 45], [3925782, 46], [3925843, 47], [4207800, 48], [4627944, 49],
|
||||||
|
[5124076, 50]
|
||||||
];
|
];
|
||||||
|
|
||||||
export default upgrades;
|
export default upgrades;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/types",
|
"name": "@polkadot/types",
|
||||||
"version": "4.2.1",
|
"version": "4.6.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Implementation of the Parity codec",
|
"description": "Implementation of the Parity codec",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -17,14 +17,14 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@babel/runtime": "^7.13.10",
|
||||||
"@polkadot/metadata": "4.2.1",
|
"@polkadot/metadata": "4.6.1",
|
||||||
"@polkadot/util": "^6.0.5",
|
"@polkadot/util": "^6.2.1",
|
||||||
"@polkadot/util-crypto": "^6.0.5",
|
"@polkadot/util-crypto": "^6.2.1",
|
||||||
"@polkadot/x-rxjs": "^6.0.5",
|
"@polkadot/x-rxjs": "^6.2.1",
|
||||||
"@types/bn.js": "^4.11.6",
|
"@types/bn.js": "^4.11.6",
|
||||||
"bn.js": "^4.11.9"
|
"bn.js": "^4.11.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^6.0.5"
|
"@polkadot/keyring": "^6.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interface
|
|||||||
import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
|
import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
|
||||||
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
|
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
|
||||||
|
import type { BeefyCommitment, BeefyNextAuthoritySet, BeefyPayload, BeefySignedCommitment, MmrRootHash, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
||||||
import type { EthereumAddress, StatementKind } from '@polkadot/types/interfaces/claims';
|
import type { EthereumAddress, StatementKind } from '@polkadot/types/interfaces/claims';
|
||||||
@@ -33,17 +34,17 @@ import type { DoubleMapTypeLatest, DoubleMapTypeV10, DoubleMapTypeV11, DoubleMap
|
|||||||
import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';
|
import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';
|
||||||
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||||
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
||||||
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AbstractFungible, AbstractNonFungible, AccountId32Junction, AccountIndex64Junction, AccountKey20Junction, AssetInstance, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Balances, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, ConcreteFungible, ConcreteNonFungible, CoreAssignment, CoreIndex, CoreOccupied, DepositAsset, DepositReserveAsset, DoubleVoteReport, DownwardMessage, ExchangeAsset, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InitiateReserveWithdraw, InitiateTeleport, Junction, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiAsset, MultiLocation, NetworkId, NewBidder, Order, OriginKind, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueryHolding, QueuedParathread, RegisteredParachainInfo, RelayChainBlockNumber, RelayChainHash, RelayTo, RelayedFrom, Remark, ReserveAssetDeposit, Retriable, Scheduling, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, Statement, SubId, SystemInherentData, TeleportAsset, Transact, TransientValidationData, UpwardMessage, ValidationCode, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, VersionedMultiAsset, VersionedMultiLocation, VersionedXcm, WinnersData, WinnersDataTuple, WinningData, WinningDataEntry, WithdrawAsset, Xcm, XcmError, XcmResult } from '@polkadot/types/interfaces/parachains';
|
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayChainBlockNumber, RelayChainHash, Remark, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, Statement, SubId, SystemInherentData, TransientValidationData, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersDataTuple, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||||
import type { FeeDetails, InclusionFee, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, InclusionFee, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||||
import type { Approvals } from '@polkadot/types/interfaces/poll';
|
import type { Approvals } from '@polkadot/types/interfaces/poll';
|
||||||
import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
|
import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
|
||||||
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
||||||
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
||||||
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||||
import type { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, CallHash, CallHashOf, ChangesTrieConfiguration, CodecHash, Consensus, ConsensusEngineId, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H512, H64, Hash, Header, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, StorageData, StorageProof, TransactionPriority, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, CallHash, CallHashOf, ChangesTrieConfiguration, CodecHash, Consensus, ConsensusEngineId, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H512, H64, Hash, Header, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, StorageData, StorageProof, TransactionPriority, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
|
import type { SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
|
||||||
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||||
import type { FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys7, SessionKeys8, SessionKeys9, ValidatorCount } from '@polkadot/types/interfaces/session';
|
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||||
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||||
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
|
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
|
||||||
import type { ApiId, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/state';
|
import type { ApiId, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/state';
|
||||||
@@ -53,6 +54,7 @@ import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatu
|
|||||||
import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
||||||
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
||||||
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
|
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
|
||||||
|
import type { AccountId32Junction, AccountIndex64Junction, AccountKey20Junction, AssetInstance, DoubleEncodedCall, Junction, MultiAsset, MultiAssetAbstractFungible, MultiAssetAbstractNonFungible, MultiAssetConcreteFungible, MultiAssetConcreteNonFungible, MultiLocation, NetworkId, VersionedMultiAsset, VersionedMultiLocation, VersionedXcm, Xcm, XcmAssetEffects, XcmError, XcmHrmpChannelAccepted, XcmHrmpChannelClosing, XcmHrmpNewChannelOpenRequest, XcmOrder, XcmOrderBuyExecution, XcmOrderDepositAsset, XcmOrderDepositReserveAsset, XcmOrderExchangeAsset, XcmOrderInitiateReserveWithdraw, XcmOrderInitiateTeleport, XcmOrderQueryHolding, XcmOriginKind, XcmOutcome, XcmQueryResponse, XcmRelayedFrom, XcmReserveAssetDeposit, XcmResponse, XcmTeleportAsset, XcmTransact, XcmTransferAsset, XcmTransferReserveAsset, XcmWithdrawAsset } from '@polkadot/types/interfaces/xcm';
|
||||||
|
|
||||||
declare module '@polkadot/types/types/registry' {
|
declare module '@polkadot/types/types/registry' {
|
||||||
export interface InterfaceTypes {
|
export interface InterfaceTypes {
|
||||||
@@ -139,14 +141,13 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Compact<USize>': Compact<USize>;
|
'Compact<USize>': Compact<USize>;
|
||||||
'Compact<ValidatorCount>': Compact<ValidatorCount>;
|
'Compact<ValidatorCount>': Compact<ValidatorCount>;
|
||||||
'Compact<ValidatorIndex>': Compact<ValidatorIndex>;
|
'Compact<ValidatorIndex>': Compact<ValidatorIndex>;
|
||||||
|
'Compact<ValidatorSetId>': Compact<ValidatorSetId>;
|
||||||
'Compact<VoteIndex>': Compact<VoteIndex>;
|
'Compact<VoteIndex>': Compact<VoteIndex>;
|
||||||
'Compact<VoteWeight>': Compact<VoteWeight>;
|
'Compact<VoteWeight>': Compact<VoteWeight>;
|
||||||
'Compact<Weight>': Compact<Weight>;
|
'Compact<Weight>': Compact<Weight>;
|
||||||
'Option<AbridgedCandidateReceipt>': Option<AbridgedCandidateReceipt>;
|
'Option<AbridgedCandidateReceipt>': Option<AbridgedCandidateReceipt>;
|
||||||
'Option<AbridgedHostConfiguration>': Option<AbridgedHostConfiguration>;
|
'Option<AbridgedHostConfiguration>': Option<AbridgedHostConfiguration>;
|
||||||
'Option<AbridgedHrmpChannel>': Option<AbridgedHrmpChannel>;
|
'Option<AbridgedHrmpChannel>': Option<AbridgedHrmpChannel>;
|
||||||
'Option<AbstractFungible>': Option<AbstractFungible>;
|
|
||||||
'Option<AbstractNonFungible>': Option<AbstractNonFungible>;
|
|
||||||
'Option<AccountData>': Option<AccountData>;
|
'Option<AccountData>': Option<AccountData>;
|
||||||
'Option<AccountId>': Option<AccountId>;
|
'Option<AccountId>': Option<AccountId>;
|
||||||
'Option<AccountId32Junction>': Option<AccountId32Junction>;
|
'Option<AccountId32Junction>': Option<AccountId32Junction>;
|
||||||
@@ -209,8 +210,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<BalanceLock>': Option<BalanceLock>;
|
'Option<BalanceLock>': Option<BalanceLock>;
|
||||||
'Option<BalanceLockTo212>': Option<BalanceLockTo212>;
|
'Option<BalanceLockTo212>': Option<BalanceLockTo212>;
|
||||||
'Option<BalanceOf>': Option<BalanceOf>;
|
'Option<BalanceOf>': Option<BalanceOf>;
|
||||||
'Option<Balances>': Option<Balances>;
|
|
||||||
'Option<BalanceStatus>': Option<BalanceStatus>;
|
'Option<BalanceStatus>': Option<BalanceStatus>;
|
||||||
|
'Option<BeefyCommitment>': Option<BeefyCommitment>;
|
||||||
|
'Option<BeefyKey>': Option<BeefyKey>;
|
||||||
|
'Option<BeefyNextAuthoritySet>': Option<BeefyNextAuthoritySet>;
|
||||||
|
'Option<BeefyPayload>': Option<BeefyPayload>;
|
||||||
|
'Option<BeefySignedCommitment>': Option<BeefySignedCommitment>;
|
||||||
'Option<Bid>': Option<Bid>;
|
'Option<Bid>': Option<Bid>;
|
||||||
'Option<Bidder>': Option<Bidder>;
|
'Option<Bidder>': Option<Bidder>;
|
||||||
'Option<BidKind>': Option<BidKind>;
|
'Option<BidKind>': Option<BidKind>;
|
||||||
@@ -253,8 +258,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<CompactAssignmentsTo257>': Option<CompactAssignmentsTo257>;
|
'Option<CompactAssignmentsTo257>': Option<CompactAssignmentsTo257>;
|
||||||
'Option<CompactScore>': Option<CompactScore>;
|
'Option<CompactScore>': Option<CompactScore>;
|
||||||
'Option<CompactScoreCompact>': Option<CompactScoreCompact>;
|
'Option<CompactScoreCompact>': Option<CompactScoreCompact>;
|
||||||
'Option<ConcreteFungible>': Option<ConcreteFungible>;
|
|
||||||
'Option<ConcreteNonFungible>': Option<ConcreteNonFungible>;
|
|
||||||
'Option<Consensus>': Option<Consensus>;
|
'Option<Consensus>': Option<Consensus>;
|
||||||
'Option<ConsensusEngineId>': Option<ConsensusEngineId>;
|
'Option<ConsensusEngineId>': Option<ConsensusEngineId>;
|
||||||
'Option<ConsumedWeight>': Option<ConsumedWeight>;
|
'Option<ConsumedWeight>': Option<ConsumedWeight>;
|
||||||
@@ -303,8 +306,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<DefunctVoter>': Option<DefunctVoter>;
|
'Option<DefunctVoter>': Option<DefunctVoter>;
|
||||||
'Option<Delegations>': Option<Delegations>;
|
'Option<Delegations>': Option<Delegations>;
|
||||||
'Option<DeletedContract>': Option<DeletedContract>;
|
'Option<DeletedContract>': Option<DeletedContract>;
|
||||||
'Option<DepositAsset>': Option<DepositAsset>;
|
|
||||||
'Option<DepositReserveAsset>': Option<DepositReserveAsset>;
|
|
||||||
'Option<Digest>': Option<Digest>;
|
'Option<Digest>': Option<Digest>;
|
||||||
'Option<DigestItem>': Option<DigestItem>;
|
'Option<DigestItem>': Option<DigestItem>;
|
||||||
'Option<DigestOf>': Option<DigestOf>;
|
'Option<DigestOf>': Option<DigestOf>;
|
||||||
@@ -319,7 +320,10 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<DispatchResult>': Option<DispatchResult>;
|
'Option<DispatchResult>': Option<DispatchResult>;
|
||||||
'Option<DispatchResultOf>': Option<DispatchResultOf>;
|
'Option<DispatchResultOf>': Option<DispatchResultOf>;
|
||||||
'Option<DispatchResultTo198>': Option<DispatchResultTo198>;
|
'Option<DispatchResultTo198>': Option<DispatchResultTo198>;
|
||||||
|
'Option<DisputeStatement>': Option<DisputeStatement>;
|
||||||
|
'Option<DisputeStatementSet>': Option<DisputeStatementSet>;
|
||||||
'Option<DoNotConstruct>': Option<DoNotConstruct>;
|
'Option<DoNotConstruct>': Option<DoNotConstruct>;
|
||||||
|
'Option<DoubleEncodedCall>': Option<DoubleEncodedCall>;
|
||||||
'Option<DoubleMapTypeLatest>': Option<DoubleMapTypeLatest>;
|
'Option<DoubleMapTypeLatest>': Option<DoubleMapTypeLatest>;
|
||||||
'Option<DoubleMapTypeV10>': Option<DoubleMapTypeV10>;
|
'Option<DoubleMapTypeV10>': Option<DoubleMapTypeV10>;
|
||||||
'Option<DoubleMapTypeV11>': Option<DoubleMapTypeV11>;
|
'Option<DoubleMapTypeV11>': Option<DoubleMapTypeV11>;
|
||||||
@@ -390,12 +394,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<EvmAccount>': Option<EvmAccount>;
|
'Option<EvmAccount>': Option<EvmAccount>;
|
||||||
'Option<EvmLog>': Option<EvmLog>;
|
'Option<EvmLog>': Option<EvmLog>;
|
||||||
'Option<EvmVicinity>': Option<EvmVicinity>;
|
'Option<EvmVicinity>': Option<EvmVicinity>;
|
||||||
'Option<ExchangeAsset>': Option<ExchangeAsset>;
|
|
||||||
'Option<ExitError>': Option<ExitError>;
|
'Option<ExitError>': Option<ExitError>;
|
||||||
'Option<ExitFatal>': Option<ExitFatal>;
|
'Option<ExitFatal>': Option<ExitFatal>;
|
||||||
'Option<ExitReason>': Option<ExitReason>;
|
'Option<ExitReason>': Option<ExitReason>;
|
||||||
'Option<ExitRevert>': Option<ExitRevert>;
|
'Option<ExitRevert>': Option<ExitRevert>;
|
||||||
'Option<ExitSucceed>': Option<ExitSucceed>;
|
'Option<ExitSucceed>': Option<ExitSucceed>;
|
||||||
|
'Option<ExplicitDisputeStatement>': Option<ExplicitDisputeStatement>;
|
||||||
'Option<Exposure>': Option<Exposure>;
|
'Option<Exposure>': Option<Exposure>;
|
||||||
'Option<ExtendedBalance>': Option<ExtendedBalance>;
|
'Option<ExtendedBalance>': Option<ExtendedBalance>;
|
||||||
'Option<Extrinsic>': Option<Extrinsic>;
|
'Option<Extrinsic>': Option<Extrinsic>;
|
||||||
@@ -436,6 +440,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<FundInfo>': Option<FundInfo>;
|
'Option<FundInfo>': Option<FundInfo>;
|
||||||
'Option<Gas>': Option<Gas>;
|
'Option<Gas>': Option<Gas>;
|
||||||
'Option<GiltBid>': Option<GiltBid>;
|
'Option<GiltBid>': Option<GiltBid>;
|
||||||
|
'Option<GlobalValidationData>': Option<GlobalValidationData>;
|
||||||
'Option<GlobalValidationSchedule>': Option<GlobalValidationSchedule>;
|
'Option<GlobalValidationSchedule>': Option<GlobalValidationSchedule>;
|
||||||
'Option<GrandpaEquivocation>': Option<GrandpaEquivocation>;
|
'Option<GrandpaEquivocation>': Option<GrandpaEquivocation>;
|
||||||
'Option<GrandpaEquivocationProof>': Option<GrandpaEquivocationProof>;
|
'Option<GrandpaEquivocationProof>': Option<GrandpaEquivocationProof>;
|
||||||
@@ -492,9 +497,8 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<Index>': Option<Index>;
|
'Option<Index>': Option<Index>;
|
||||||
'Option<IndicesLookupSource>': Option<IndicesLookupSource>;
|
'Option<IndicesLookupSource>': Option<IndicesLookupSource>;
|
||||||
'Option<IndividualExposure>': Option<IndividualExposure>;
|
'Option<IndividualExposure>': Option<IndividualExposure>;
|
||||||
'Option<InitiateReserveWithdraw>': Option<InitiateReserveWithdraw>;
|
|
||||||
'Option<InitiateTeleport>': Option<InitiateTeleport>;
|
|
||||||
'Option<InstructionWeights>': Option<InstructionWeights>;
|
'Option<InstructionWeights>': Option<InstructionWeights>;
|
||||||
|
'Option<InvalidDisputeStatementKind>': Option<InvalidDisputeStatementKind>;
|
||||||
'Option<InvalidTransaction>': Option<InvalidTransaction>;
|
'Option<InvalidTransaction>': Option<InvalidTransaction>;
|
||||||
'Option<Json>': Option<Json>;
|
'Option<Json>': Option<Json>;
|
||||||
'Option<Junction>': Option<Junction>;
|
'Option<Junction>': Option<Junction>;
|
||||||
@@ -540,6 +544,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<MetadataV12>': Option<MetadataV12>;
|
'Option<MetadataV12>': Option<MetadataV12>;
|
||||||
'Option<MetadataV9>': Option<MetadataV9>;
|
'Option<MetadataV9>': Option<MetadataV9>;
|
||||||
'Option<MmrLeafProof>': Option<MmrLeafProof>;
|
'Option<MmrLeafProof>': Option<MmrLeafProof>;
|
||||||
|
'Option<MmrRootHash>': Option<MmrRootHash>;
|
||||||
'Option<ModuleConstantMetadataLatest>': Option<ModuleConstantMetadataLatest>;
|
'Option<ModuleConstantMetadataLatest>': Option<ModuleConstantMetadataLatest>;
|
||||||
'Option<ModuleConstantMetadataV10>': Option<ModuleConstantMetadataV10>;
|
'Option<ModuleConstantMetadataV10>': Option<ModuleConstantMetadataV10>;
|
||||||
'Option<ModuleConstantMetadataV11>': Option<ModuleConstantMetadataV11>;
|
'Option<ModuleConstantMetadataV11>': Option<ModuleConstantMetadataV11>;
|
||||||
@@ -557,6 +562,11 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<MortalEra>': Option<MortalEra>;
|
'Option<MortalEra>': Option<MortalEra>;
|
||||||
'Option<MultiAddress>': Option<MultiAddress>;
|
'Option<MultiAddress>': Option<MultiAddress>;
|
||||||
'Option<MultiAsset>': Option<MultiAsset>;
|
'Option<MultiAsset>': Option<MultiAsset>;
|
||||||
|
'Option<MultiAssetAbstractFungible>': Option<MultiAssetAbstractFungible>;
|
||||||
|
'Option<MultiAssetAbstractNonFungible>': Option<MultiAssetAbstractNonFungible>;
|
||||||
|
'Option<MultiAssetConcreteFungible>': Option<MultiAssetConcreteFungible>;
|
||||||
|
'Option<MultiAssetConcreteNonFungible>': Option<MultiAssetConcreteNonFungible>;
|
||||||
|
'Option<MultiDisputeStatementSet>': Option<MultiDisputeStatementSet>;
|
||||||
'Option<MultiLocation>': Option<MultiLocation>;
|
'Option<MultiLocation>': Option<MultiLocation>;
|
||||||
'Option<Multiplier>': Option<Multiplier>;
|
'Option<Multiplier>': Option<Multiplier>;
|
||||||
'Option<Multisig>': Option<Multisig>;
|
'Option<Multisig>': Option<Multisig>;
|
||||||
@@ -589,17 +599,17 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<OpenTipFinderTo225>': Option<OpenTipFinderTo225>;
|
'Option<OpenTipFinderTo225>': Option<OpenTipFinderTo225>;
|
||||||
'Option<OpenTipTip>': Option<OpenTipTip>;
|
'Option<OpenTipTip>': Option<OpenTipTip>;
|
||||||
'Option<OpenTipTo225>': Option<OpenTipTo225>;
|
'Option<OpenTipTo225>': Option<OpenTipTo225>;
|
||||||
'Option<Order>': Option<Order>;
|
|
||||||
'Option<Origin>': Option<Origin>;
|
'Option<Origin>': Option<Origin>;
|
||||||
'Option<OriginCaller>': Option<OriginCaller>;
|
'Option<OriginCaller>': Option<OriginCaller>;
|
||||||
'Option<OriginKind>': Option<OriginKind>;
|
|
||||||
'Option<OutboundHrmpMessage>': Option<OutboundHrmpMessage>;
|
'Option<OutboundHrmpMessage>': Option<OutboundHrmpMessage>;
|
||||||
'Option<Owner>': Option<Owner>;
|
'Option<Owner>': Option<Owner>;
|
||||||
|
'Option<PalletId>': Option<PalletId>;
|
||||||
'Option<PalletsOrigin>': Option<PalletsOrigin>;
|
'Option<PalletsOrigin>': Option<PalletsOrigin>;
|
||||||
'Option<PalletVersion>': Option<PalletVersion>;
|
'Option<PalletVersion>': Option<PalletVersion>;
|
||||||
'Option<ParachainDispatchOrigin>': Option<ParachainDispatchOrigin>;
|
'Option<ParachainDispatchOrigin>': Option<ParachainDispatchOrigin>;
|
||||||
'Option<ParachainInherentData>': Option<ParachainInherentData>;
|
'Option<ParachainInherentData>': Option<ParachainInherentData>;
|
||||||
'Option<ParachainProposal>': Option<ParachainProposal>;
|
'Option<ParachainProposal>': Option<ParachainProposal>;
|
||||||
|
'Option<ParachainsInherentData>': Option<ParachainsInherentData>;
|
||||||
'Option<ParaGenesisArgs>': Option<ParaGenesisArgs>;
|
'Option<ParaGenesisArgs>': Option<ParaGenesisArgs>;
|
||||||
'Option<ParaId>': Option<ParaId>;
|
'Option<ParaId>': Option<ParaId>;
|
||||||
'Option<ParaInfo>': Option<ParaInfo>;
|
'Option<ParaInfo>': Option<ParaInfo>;
|
||||||
@@ -652,7 +662,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<ProxyDefinition>': Option<ProxyDefinition>;
|
'Option<ProxyDefinition>': Option<ProxyDefinition>;
|
||||||
'Option<ProxyState>': Option<ProxyState>;
|
'Option<ProxyState>': Option<ProxyState>;
|
||||||
'Option<ProxyType>': Option<ProxyType>;
|
'Option<ProxyType>': Option<ProxyType>;
|
||||||
'Option<QueryHolding>': Option<QueryHolding>;
|
|
||||||
'Option<QueuedParathread>': Option<QueuedParathread>;
|
'Option<QueuedParathread>': Option<QueuedParathread>;
|
||||||
'Option<Randomness>': Option<Randomness>;
|
'Option<Randomness>': Option<Randomness>;
|
||||||
'Option<Raw>': Option<Raw>;
|
'Option<Raw>': Option<Raw>;
|
||||||
@@ -686,15 +695,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<RegistrationJudgement>': Option<RegistrationJudgement>;
|
'Option<RegistrationJudgement>': Option<RegistrationJudgement>;
|
||||||
'Option<RelayChainBlockNumber>': Option<RelayChainBlockNumber>;
|
'Option<RelayChainBlockNumber>': Option<RelayChainBlockNumber>;
|
||||||
'Option<RelayChainHash>': Option<RelayChainHash>;
|
'Option<RelayChainHash>': Option<RelayChainHash>;
|
||||||
'Option<RelayedFrom>': Option<RelayedFrom>;
|
|
||||||
'Option<RelayTo>': Option<RelayTo>;
|
|
||||||
'Option<Releases>': Option<Releases>;
|
'Option<Releases>': Option<Releases>;
|
||||||
'Option<Remark>': Option<Remark>;
|
'Option<Remark>': Option<Remark>;
|
||||||
'Option<Renouncing>': Option<Renouncing>;
|
'Option<Renouncing>': Option<Renouncing>;
|
||||||
'Option<ReportedRoundStates>': Option<ReportedRoundStates>;
|
'Option<ReportedRoundStates>': Option<ReportedRoundStates>;
|
||||||
'Option<Reporter>': Option<Reporter>;
|
'Option<Reporter>': Option<Reporter>;
|
||||||
'Option<ReportIdOf>': Option<ReportIdOf>;
|
'Option<ReportIdOf>': Option<ReportIdOf>;
|
||||||
'Option<ReserveAssetDeposit>': Option<ReserveAssetDeposit>;
|
|
||||||
'Option<Retriable>': Option<Retriable>;
|
'Option<Retriable>': Option<Retriable>;
|
||||||
'Option<RewardDestination>': Option<RewardDestination>;
|
'Option<RewardDestination>': Option<RewardDestination>;
|
||||||
'Option<RewardPoint>': Option<RewardPoint>;
|
'Option<RewardPoint>': Option<RewardPoint>;
|
||||||
@@ -718,18 +724,25 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<SealV0>': Option<SealV0>;
|
'Option<SealV0>': Option<SealV0>;
|
||||||
'Option<SeatHolder>': Option<SeatHolder>;
|
'Option<SeatHolder>': Option<SeatHolder>;
|
||||||
'Option<SeedOf>': Option<SeedOf>;
|
'Option<SeedOf>': Option<SeedOf>;
|
||||||
|
'Option<ServiceQuality>': Option<ServiceQuality>;
|
||||||
'Option<SessionIndex>': Option<SessionIndex>;
|
'Option<SessionIndex>': Option<SessionIndex>;
|
||||||
'Option<SessionInfo>': Option<SessionInfo>;
|
'Option<SessionInfo>': Option<SessionInfo>;
|
||||||
'Option<SessionInfoValidatorGroup>': Option<SessionInfoValidatorGroup>;
|
'Option<SessionInfoValidatorGroup>': Option<SessionInfoValidatorGroup>;
|
||||||
'Option<SessionKeys1>': Option<SessionKeys1>;
|
'Option<SessionKeys1>': Option<SessionKeys1>;
|
||||||
|
'Option<SessionKeys10>': Option<SessionKeys10>;
|
||||||
|
'Option<SessionKeys10B>': Option<SessionKeys10B>;
|
||||||
'Option<SessionKeys2>': Option<SessionKeys2>;
|
'Option<SessionKeys2>': Option<SessionKeys2>;
|
||||||
'Option<SessionKeys3>': Option<SessionKeys3>;
|
'Option<SessionKeys3>': Option<SessionKeys3>;
|
||||||
'Option<SessionKeys4>': Option<SessionKeys4>;
|
'Option<SessionKeys4>': Option<SessionKeys4>;
|
||||||
'Option<SessionKeys5>': Option<SessionKeys5>;
|
'Option<SessionKeys5>': Option<SessionKeys5>;
|
||||||
'Option<SessionKeys6>': Option<SessionKeys6>;
|
'Option<SessionKeys6>': Option<SessionKeys6>;
|
||||||
|
'Option<SessionKeys6B>': Option<SessionKeys6B>;
|
||||||
'Option<SessionKeys7>': Option<SessionKeys7>;
|
'Option<SessionKeys7>': Option<SessionKeys7>;
|
||||||
|
'Option<SessionKeys7B>': Option<SessionKeys7B>;
|
||||||
'Option<SessionKeys8>': Option<SessionKeys8>;
|
'Option<SessionKeys8>': Option<SessionKeys8>;
|
||||||
|
'Option<SessionKeys8B>': Option<SessionKeys8B>;
|
||||||
'Option<SessionKeys9>': Option<SessionKeys9>;
|
'Option<SessionKeys9>': Option<SessionKeys9>;
|
||||||
|
'Option<SessionKeys9B>': Option<SessionKeys9B>;
|
||||||
'Option<SetId>': Option<SetId>;
|
'Option<SetId>': Option<SetId>;
|
||||||
'Option<SetIndex>': Option<SetIndex>;
|
'Option<SetIndex>': Option<SetIndex>;
|
||||||
'Option<SiField>': Option<SiField>;
|
'Option<SiField>': Option<SiField>;
|
||||||
@@ -812,11 +825,9 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<TaskAddress>': Option<TaskAddress>;
|
'Option<TaskAddress>': Option<TaskAddress>;
|
||||||
'Option<TAssetBalance>': Option<TAssetBalance>;
|
'Option<TAssetBalance>': Option<TAssetBalance>;
|
||||||
'Option<TAssetDepositBalance>': Option<TAssetDepositBalance>;
|
'Option<TAssetDepositBalance>': Option<TAssetDepositBalance>;
|
||||||
'Option<TeleportAsset>': Option<TeleportAsset>;
|
|
||||||
'Option<Text>': Option<Text>;
|
'Option<Text>': Option<Text>;
|
||||||
'Option<Timepoint>': Option<Timepoint>;
|
'Option<Timepoint>': Option<Timepoint>;
|
||||||
'Option<TombstoneContractInfo>': Option<TombstoneContractInfo>;
|
'Option<TombstoneContractInfo>': Option<TombstoneContractInfo>;
|
||||||
'Option<Transact>': Option<Transact>;
|
|
||||||
'Option<TransactionPriority>': Option<TransactionPriority>;
|
'Option<TransactionPriority>': Option<TransactionPriority>;
|
||||||
'Option<TransactionValidityError>': Option<TransactionValidityError>;
|
'Option<TransactionValidityError>': Option<TransactionValidityError>;
|
||||||
'Option<TransientValidationData>': Option<TransientValidationData>;
|
'Option<TransientValidationData>': Option<TransientValidationData>;
|
||||||
@@ -859,7 +870,9 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<ValidatorPrefsTo196>': Option<ValidatorPrefsTo196>;
|
'Option<ValidatorPrefsTo196>': Option<ValidatorPrefsTo196>;
|
||||||
'Option<ValidatorPrefsWithBlocked>': Option<ValidatorPrefsWithBlocked>;
|
'Option<ValidatorPrefsWithBlocked>': Option<ValidatorPrefsWithBlocked>;
|
||||||
'Option<ValidatorPrefsWithCommission>': Option<ValidatorPrefsWithCommission>;
|
'Option<ValidatorPrefsWithCommission>': Option<ValidatorPrefsWithCommission>;
|
||||||
|
'Option<ValidatorSetId>': Option<ValidatorSetId>;
|
||||||
'Option<ValidatorSignature>': Option<ValidatorSignature>;
|
'Option<ValidatorSignature>': Option<ValidatorSignature>;
|
||||||
|
'Option<ValidDisputeStatementKind>': Option<ValidDisputeStatementKind>;
|
||||||
'Option<ValidityAttestation>': Option<ValidityAttestation>;
|
'Option<ValidityAttestation>': Option<ValidityAttestation>;
|
||||||
'Option<VecInboundHrmpMessage>': Option<VecInboundHrmpMessage>;
|
'Option<VecInboundHrmpMessage>': Option<VecInboundHrmpMessage>;
|
||||||
'Option<VersionedMultiAsset>': Option<VersionedMultiAsset>;
|
'Option<VersionedMultiAsset>': Option<VersionedMultiAsset>;
|
||||||
@@ -891,16 +904,35 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Option<WinnersDataTuple>': Option<WinnersDataTuple>;
|
'Option<WinnersDataTuple>': Option<WinnersDataTuple>;
|
||||||
'Option<WinningData>': Option<WinningData>;
|
'Option<WinningData>': Option<WinningData>;
|
||||||
'Option<WinningDataEntry>': Option<WinningDataEntry>;
|
'Option<WinningDataEntry>': Option<WinningDataEntry>;
|
||||||
'Option<WithdrawAsset>': Option<WithdrawAsset>;
|
|
||||||
'Option<WithdrawReasons>': Option<WithdrawReasons>;
|
'Option<WithdrawReasons>': Option<WithdrawReasons>;
|
||||||
'Option<Xcm>': Option<Xcm>;
|
'Option<Xcm>': Option<Xcm>;
|
||||||
|
'Option<XcmAssetEffects>': Option<XcmAssetEffects>;
|
||||||
'Option<XcmError>': Option<XcmError>;
|
'Option<XcmError>': Option<XcmError>;
|
||||||
'Option<XcmResult>': Option<XcmResult>;
|
'Option<XcmHrmpChannelAccepted>': Option<XcmHrmpChannelAccepted>;
|
||||||
|
'Option<XcmHrmpChannelClosing>': Option<XcmHrmpChannelClosing>;
|
||||||
|
'Option<XcmHrmpNewChannelOpenRequest>': Option<XcmHrmpNewChannelOpenRequest>;
|
||||||
|
'Option<XcmOrder>': Option<XcmOrder>;
|
||||||
|
'Option<XcmOrderBuyExecution>': Option<XcmOrderBuyExecution>;
|
||||||
|
'Option<XcmOrderDepositAsset>': Option<XcmOrderDepositAsset>;
|
||||||
|
'Option<XcmOrderDepositReserveAsset>': Option<XcmOrderDepositReserveAsset>;
|
||||||
|
'Option<XcmOrderExchangeAsset>': Option<XcmOrderExchangeAsset>;
|
||||||
|
'Option<XcmOrderInitiateReserveWithdraw>': Option<XcmOrderInitiateReserveWithdraw>;
|
||||||
|
'Option<XcmOrderInitiateTeleport>': Option<XcmOrderInitiateTeleport>;
|
||||||
|
'Option<XcmOrderQueryHolding>': Option<XcmOrderQueryHolding>;
|
||||||
|
'Option<XcmOriginKind>': Option<XcmOriginKind>;
|
||||||
|
'Option<XcmOutcome>': Option<XcmOutcome>;
|
||||||
|
'Option<XcmQueryResponse>': Option<XcmQueryResponse>;
|
||||||
|
'Option<XcmRelayedFrom>': Option<XcmRelayedFrom>;
|
||||||
|
'Option<XcmReserveAssetDeposit>': Option<XcmReserveAssetDeposit>;
|
||||||
|
'Option<XcmResponse>': Option<XcmResponse>;
|
||||||
|
'Option<XcmTeleportAsset>': Option<XcmTeleportAsset>;
|
||||||
|
'Option<XcmTransact>': Option<XcmTransact>;
|
||||||
|
'Option<XcmTransferAsset>': Option<XcmTransferAsset>;
|
||||||
|
'Option<XcmTransferReserveAsset>': Option<XcmTransferReserveAsset>;
|
||||||
|
'Option<XcmWithdrawAsset>': Option<XcmWithdrawAsset>;
|
||||||
'Vec<AbridgedCandidateReceipt>': Vec<AbridgedCandidateReceipt>;
|
'Vec<AbridgedCandidateReceipt>': Vec<AbridgedCandidateReceipt>;
|
||||||
'Vec<AbridgedHostConfiguration>': Vec<AbridgedHostConfiguration>;
|
'Vec<AbridgedHostConfiguration>': Vec<AbridgedHostConfiguration>;
|
||||||
'Vec<AbridgedHrmpChannel>': Vec<AbridgedHrmpChannel>;
|
'Vec<AbridgedHrmpChannel>': Vec<AbridgedHrmpChannel>;
|
||||||
'Vec<AbstractFungible>': Vec<AbstractFungible>;
|
|
||||||
'Vec<AbstractNonFungible>': Vec<AbstractNonFungible>;
|
|
||||||
'Vec<AccountData>': Vec<AccountData>;
|
'Vec<AccountData>': Vec<AccountData>;
|
||||||
'Vec<AccountId>': Vec<AccountId>;
|
'Vec<AccountId>': Vec<AccountId>;
|
||||||
'Vec<AccountId32Junction>': Vec<AccountId32Junction>;
|
'Vec<AccountId32Junction>': Vec<AccountId32Junction>;
|
||||||
@@ -963,8 +995,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<BalanceLock>': Vec<BalanceLock>;
|
'Vec<BalanceLock>': Vec<BalanceLock>;
|
||||||
'Vec<BalanceLockTo212>': Vec<BalanceLockTo212>;
|
'Vec<BalanceLockTo212>': Vec<BalanceLockTo212>;
|
||||||
'Vec<BalanceOf>': Vec<BalanceOf>;
|
'Vec<BalanceOf>': Vec<BalanceOf>;
|
||||||
'Vec<Balances>': Vec<Balances>;
|
|
||||||
'Vec<BalanceStatus>': Vec<BalanceStatus>;
|
'Vec<BalanceStatus>': Vec<BalanceStatus>;
|
||||||
|
'Vec<BeefyCommitment>': Vec<BeefyCommitment>;
|
||||||
|
'Vec<BeefyKey>': Vec<BeefyKey>;
|
||||||
|
'Vec<BeefyNextAuthoritySet>': Vec<BeefyNextAuthoritySet>;
|
||||||
|
'Vec<BeefyPayload>': Vec<BeefyPayload>;
|
||||||
|
'Vec<BeefySignedCommitment>': Vec<BeefySignedCommitment>;
|
||||||
'Vec<Bid>': Vec<Bid>;
|
'Vec<Bid>': Vec<Bid>;
|
||||||
'Vec<Bidder>': Vec<Bidder>;
|
'Vec<Bidder>': Vec<Bidder>;
|
||||||
'Vec<BidKind>': Vec<BidKind>;
|
'Vec<BidKind>': Vec<BidKind>;
|
||||||
@@ -1007,8 +1043,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<CompactAssignmentsTo257>': Vec<CompactAssignmentsTo257>;
|
'Vec<CompactAssignmentsTo257>': Vec<CompactAssignmentsTo257>;
|
||||||
'Vec<CompactScore>': Vec<CompactScore>;
|
'Vec<CompactScore>': Vec<CompactScore>;
|
||||||
'Vec<CompactScoreCompact>': Vec<CompactScoreCompact>;
|
'Vec<CompactScoreCompact>': Vec<CompactScoreCompact>;
|
||||||
'Vec<ConcreteFungible>': Vec<ConcreteFungible>;
|
|
||||||
'Vec<ConcreteNonFungible>': Vec<ConcreteNonFungible>;
|
|
||||||
'Vec<Consensus>': Vec<Consensus>;
|
'Vec<Consensus>': Vec<Consensus>;
|
||||||
'Vec<ConsensusEngineId>': Vec<ConsensusEngineId>;
|
'Vec<ConsensusEngineId>': Vec<ConsensusEngineId>;
|
||||||
'Vec<ConsumedWeight>': Vec<ConsumedWeight>;
|
'Vec<ConsumedWeight>': Vec<ConsumedWeight>;
|
||||||
@@ -1057,8 +1091,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<DefunctVoter>': Vec<DefunctVoter>;
|
'Vec<DefunctVoter>': Vec<DefunctVoter>;
|
||||||
'Vec<Delegations>': Vec<Delegations>;
|
'Vec<Delegations>': Vec<Delegations>;
|
||||||
'Vec<DeletedContract>': Vec<DeletedContract>;
|
'Vec<DeletedContract>': Vec<DeletedContract>;
|
||||||
'Vec<DepositAsset>': Vec<DepositAsset>;
|
|
||||||
'Vec<DepositReserveAsset>': Vec<DepositReserveAsset>;
|
|
||||||
'Vec<Digest>': Vec<Digest>;
|
'Vec<Digest>': Vec<Digest>;
|
||||||
'Vec<DigestItem>': Vec<DigestItem>;
|
'Vec<DigestItem>': Vec<DigestItem>;
|
||||||
'Vec<DigestOf>': Vec<DigestOf>;
|
'Vec<DigestOf>': Vec<DigestOf>;
|
||||||
@@ -1073,7 +1105,10 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<DispatchResult>': Vec<DispatchResult>;
|
'Vec<DispatchResult>': Vec<DispatchResult>;
|
||||||
'Vec<DispatchResultOf>': Vec<DispatchResultOf>;
|
'Vec<DispatchResultOf>': Vec<DispatchResultOf>;
|
||||||
'Vec<DispatchResultTo198>': Vec<DispatchResultTo198>;
|
'Vec<DispatchResultTo198>': Vec<DispatchResultTo198>;
|
||||||
|
'Vec<DisputeStatement>': Vec<DisputeStatement>;
|
||||||
|
'Vec<DisputeStatementSet>': Vec<DisputeStatementSet>;
|
||||||
'Vec<DoNotConstruct>': Vec<DoNotConstruct>;
|
'Vec<DoNotConstruct>': Vec<DoNotConstruct>;
|
||||||
|
'Vec<DoubleEncodedCall>': Vec<DoubleEncodedCall>;
|
||||||
'Vec<DoubleMapTypeLatest>': Vec<DoubleMapTypeLatest>;
|
'Vec<DoubleMapTypeLatest>': Vec<DoubleMapTypeLatest>;
|
||||||
'Vec<DoubleMapTypeV10>': Vec<DoubleMapTypeV10>;
|
'Vec<DoubleMapTypeV10>': Vec<DoubleMapTypeV10>;
|
||||||
'Vec<DoubleMapTypeV11>': Vec<DoubleMapTypeV11>;
|
'Vec<DoubleMapTypeV11>': Vec<DoubleMapTypeV11>;
|
||||||
@@ -1144,12 +1179,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<EvmAccount>': Vec<EvmAccount>;
|
'Vec<EvmAccount>': Vec<EvmAccount>;
|
||||||
'Vec<EvmLog>': Vec<EvmLog>;
|
'Vec<EvmLog>': Vec<EvmLog>;
|
||||||
'Vec<EvmVicinity>': Vec<EvmVicinity>;
|
'Vec<EvmVicinity>': Vec<EvmVicinity>;
|
||||||
'Vec<ExchangeAsset>': Vec<ExchangeAsset>;
|
|
||||||
'Vec<ExitError>': Vec<ExitError>;
|
'Vec<ExitError>': Vec<ExitError>;
|
||||||
'Vec<ExitFatal>': Vec<ExitFatal>;
|
'Vec<ExitFatal>': Vec<ExitFatal>;
|
||||||
'Vec<ExitReason>': Vec<ExitReason>;
|
'Vec<ExitReason>': Vec<ExitReason>;
|
||||||
'Vec<ExitRevert>': Vec<ExitRevert>;
|
'Vec<ExitRevert>': Vec<ExitRevert>;
|
||||||
'Vec<ExitSucceed>': Vec<ExitSucceed>;
|
'Vec<ExitSucceed>': Vec<ExitSucceed>;
|
||||||
|
'Vec<ExplicitDisputeStatement>': Vec<ExplicitDisputeStatement>;
|
||||||
'Vec<Exposure>': Vec<Exposure>;
|
'Vec<Exposure>': Vec<Exposure>;
|
||||||
'Vec<ExtendedBalance>': Vec<ExtendedBalance>;
|
'Vec<ExtendedBalance>': Vec<ExtendedBalance>;
|
||||||
'Vec<Extrinsic>': Vec<Extrinsic>;
|
'Vec<Extrinsic>': Vec<Extrinsic>;
|
||||||
@@ -1190,6 +1225,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<FundInfo>': Vec<FundInfo>;
|
'Vec<FundInfo>': Vec<FundInfo>;
|
||||||
'Vec<Gas>': Vec<Gas>;
|
'Vec<Gas>': Vec<Gas>;
|
||||||
'Vec<GiltBid>': Vec<GiltBid>;
|
'Vec<GiltBid>': Vec<GiltBid>;
|
||||||
|
'Vec<GlobalValidationData>': Vec<GlobalValidationData>;
|
||||||
'Vec<GlobalValidationSchedule>': Vec<GlobalValidationSchedule>;
|
'Vec<GlobalValidationSchedule>': Vec<GlobalValidationSchedule>;
|
||||||
'Vec<GrandpaEquivocation>': Vec<GrandpaEquivocation>;
|
'Vec<GrandpaEquivocation>': Vec<GrandpaEquivocation>;
|
||||||
'Vec<GrandpaEquivocationProof>': Vec<GrandpaEquivocationProof>;
|
'Vec<GrandpaEquivocationProof>': Vec<GrandpaEquivocationProof>;
|
||||||
@@ -1246,9 +1282,8 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<Index>': Vec<Index>;
|
'Vec<Index>': Vec<Index>;
|
||||||
'Vec<IndicesLookupSource>': Vec<IndicesLookupSource>;
|
'Vec<IndicesLookupSource>': Vec<IndicesLookupSource>;
|
||||||
'Vec<IndividualExposure>': Vec<IndividualExposure>;
|
'Vec<IndividualExposure>': Vec<IndividualExposure>;
|
||||||
'Vec<InitiateReserveWithdraw>': Vec<InitiateReserveWithdraw>;
|
|
||||||
'Vec<InitiateTeleport>': Vec<InitiateTeleport>;
|
|
||||||
'Vec<InstructionWeights>': Vec<InstructionWeights>;
|
'Vec<InstructionWeights>': Vec<InstructionWeights>;
|
||||||
|
'Vec<InvalidDisputeStatementKind>': Vec<InvalidDisputeStatementKind>;
|
||||||
'Vec<InvalidTransaction>': Vec<InvalidTransaction>;
|
'Vec<InvalidTransaction>': Vec<InvalidTransaction>;
|
||||||
'Vec<Json>': Vec<Json>;
|
'Vec<Json>': Vec<Json>;
|
||||||
'Vec<Junction>': Vec<Junction>;
|
'Vec<Junction>': Vec<Junction>;
|
||||||
@@ -1294,6 +1329,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<MetadataV12>': Vec<MetadataV12>;
|
'Vec<MetadataV12>': Vec<MetadataV12>;
|
||||||
'Vec<MetadataV9>': Vec<MetadataV9>;
|
'Vec<MetadataV9>': Vec<MetadataV9>;
|
||||||
'Vec<MmrLeafProof>': Vec<MmrLeafProof>;
|
'Vec<MmrLeafProof>': Vec<MmrLeafProof>;
|
||||||
|
'Vec<MmrRootHash>': Vec<MmrRootHash>;
|
||||||
'Vec<ModuleConstantMetadataLatest>': Vec<ModuleConstantMetadataLatest>;
|
'Vec<ModuleConstantMetadataLatest>': Vec<ModuleConstantMetadataLatest>;
|
||||||
'Vec<ModuleConstantMetadataV10>': Vec<ModuleConstantMetadataV10>;
|
'Vec<ModuleConstantMetadataV10>': Vec<ModuleConstantMetadataV10>;
|
||||||
'Vec<ModuleConstantMetadataV11>': Vec<ModuleConstantMetadataV11>;
|
'Vec<ModuleConstantMetadataV11>': Vec<ModuleConstantMetadataV11>;
|
||||||
@@ -1311,6 +1347,11 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<MortalEra>': Vec<MortalEra>;
|
'Vec<MortalEra>': Vec<MortalEra>;
|
||||||
'Vec<MultiAddress>': Vec<MultiAddress>;
|
'Vec<MultiAddress>': Vec<MultiAddress>;
|
||||||
'Vec<MultiAsset>': Vec<MultiAsset>;
|
'Vec<MultiAsset>': Vec<MultiAsset>;
|
||||||
|
'Vec<MultiAssetAbstractFungible>': Vec<MultiAssetAbstractFungible>;
|
||||||
|
'Vec<MultiAssetAbstractNonFungible>': Vec<MultiAssetAbstractNonFungible>;
|
||||||
|
'Vec<MultiAssetConcreteFungible>': Vec<MultiAssetConcreteFungible>;
|
||||||
|
'Vec<MultiAssetConcreteNonFungible>': Vec<MultiAssetConcreteNonFungible>;
|
||||||
|
'Vec<MultiDisputeStatementSet>': Vec<MultiDisputeStatementSet>;
|
||||||
'Vec<MultiLocation>': Vec<MultiLocation>;
|
'Vec<MultiLocation>': Vec<MultiLocation>;
|
||||||
'Vec<Multiplier>': Vec<Multiplier>;
|
'Vec<Multiplier>': Vec<Multiplier>;
|
||||||
'Vec<Multisig>': Vec<Multisig>;
|
'Vec<Multisig>': Vec<Multisig>;
|
||||||
@@ -1343,17 +1384,17 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<OpenTipFinderTo225>': Vec<OpenTipFinderTo225>;
|
'Vec<OpenTipFinderTo225>': Vec<OpenTipFinderTo225>;
|
||||||
'Vec<OpenTipTip>': Vec<OpenTipTip>;
|
'Vec<OpenTipTip>': Vec<OpenTipTip>;
|
||||||
'Vec<OpenTipTo225>': Vec<OpenTipTo225>;
|
'Vec<OpenTipTo225>': Vec<OpenTipTo225>;
|
||||||
'Vec<Order>': Vec<Order>;
|
|
||||||
'Vec<Origin>': Vec<Origin>;
|
'Vec<Origin>': Vec<Origin>;
|
||||||
'Vec<OriginCaller>': Vec<OriginCaller>;
|
'Vec<OriginCaller>': Vec<OriginCaller>;
|
||||||
'Vec<OriginKind>': Vec<OriginKind>;
|
|
||||||
'Vec<OutboundHrmpMessage>': Vec<OutboundHrmpMessage>;
|
'Vec<OutboundHrmpMessage>': Vec<OutboundHrmpMessage>;
|
||||||
'Vec<Owner>': Vec<Owner>;
|
'Vec<Owner>': Vec<Owner>;
|
||||||
|
'Vec<PalletId>': Vec<PalletId>;
|
||||||
'Vec<PalletsOrigin>': Vec<PalletsOrigin>;
|
'Vec<PalletsOrigin>': Vec<PalletsOrigin>;
|
||||||
'Vec<PalletVersion>': Vec<PalletVersion>;
|
'Vec<PalletVersion>': Vec<PalletVersion>;
|
||||||
'Vec<ParachainDispatchOrigin>': Vec<ParachainDispatchOrigin>;
|
'Vec<ParachainDispatchOrigin>': Vec<ParachainDispatchOrigin>;
|
||||||
'Vec<ParachainInherentData>': Vec<ParachainInherentData>;
|
'Vec<ParachainInherentData>': Vec<ParachainInherentData>;
|
||||||
'Vec<ParachainProposal>': Vec<ParachainProposal>;
|
'Vec<ParachainProposal>': Vec<ParachainProposal>;
|
||||||
|
'Vec<ParachainsInherentData>': Vec<ParachainsInherentData>;
|
||||||
'Vec<ParaGenesisArgs>': Vec<ParaGenesisArgs>;
|
'Vec<ParaGenesisArgs>': Vec<ParaGenesisArgs>;
|
||||||
'Vec<ParaId>': Vec<ParaId>;
|
'Vec<ParaId>': Vec<ParaId>;
|
||||||
'Vec<ParaInfo>': Vec<ParaInfo>;
|
'Vec<ParaInfo>': Vec<ParaInfo>;
|
||||||
@@ -1406,7 +1447,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<ProxyDefinition>': Vec<ProxyDefinition>;
|
'Vec<ProxyDefinition>': Vec<ProxyDefinition>;
|
||||||
'Vec<ProxyState>': Vec<ProxyState>;
|
'Vec<ProxyState>': Vec<ProxyState>;
|
||||||
'Vec<ProxyType>': Vec<ProxyType>;
|
'Vec<ProxyType>': Vec<ProxyType>;
|
||||||
'Vec<QueryHolding>': Vec<QueryHolding>;
|
|
||||||
'Vec<QueuedParathread>': Vec<QueuedParathread>;
|
'Vec<QueuedParathread>': Vec<QueuedParathread>;
|
||||||
'Vec<Randomness>': Vec<Randomness>;
|
'Vec<Randomness>': Vec<Randomness>;
|
||||||
'Vec<Raw>': Vec<Raw>;
|
'Vec<Raw>': Vec<Raw>;
|
||||||
@@ -1440,15 +1480,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<RegistrationJudgement>': Vec<RegistrationJudgement>;
|
'Vec<RegistrationJudgement>': Vec<RegistrationJudgement>;
|
||||||
'Vec<RelayChainBlockNumber>': Vec<RelayChainBlockNumber>;
|
'Vec<RelayChainBlockNumber>': Vec<RelayChainBlockNumber>;
|
||||||
'Vec<RelayChainHash>': Vec<RelayChainHash>;
|
'Vec<RelayChainHash>': Vec<RelayChainHash>;
|
||||||
'Vec<RelayedFrom>': Vec<RelayedFrom>;
|
|
||||||
'Vec<RelayTo>': Vec<RelayTo>;
|
|
||||||
'Vec<Releases>': Vec<Releases>;
|
'Vec<Releases>': Vec<Releases>;
|
||||||
'Vec<Remark>': Vec<Remark>;
|
'Vec<Remark>': Vec<Remark>;
|
||||||
'Vec<Renouncing>': Vec<Renouncing>;
|
'Vec<Renouncing>': Vec<Renouncing>;
|
||||||
'Vec<ReportedRoundStates>': Vec<ReportedRoundStates>;
|
'Vec<ReportedRoundStates>': Vec<ReportedRoundStates>;
|
||||||
'Vec<Reporter>': Vec<Reporter>;
|
'Vec<Reporter>': Vec<Reporter>;
|
||||||
'Vec<ReportIdOf>': Vec<ReportIdOf>;
|
'Vec<ReportIdOf>': Vec<ReportIdOf>;
|
||||||
'Vec<ReserveAssetDeposit>': Vec<ReserveAssetDeposit>;
|
|
||||||
'Vec<Retriable>': Vec<Retriable>;
|
'Vec<Retriable>': Vec<Retriable>;
|
||||||
'Vec<RewardDestination>': Vec<RewardDestination>;
|
'Vec<RewardDestination>': Vec<RewardDestination>;
|
||||||
'Vec<RewardPoint>': Vec<RewardPoint>;
|
'Vec<RewardPoint>': Vec<RewardPoint>;
|
||||||
@@ -1472,18 +1509,25 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<SealV0>': Vec<SealV0>;
|
'Vec<SealV0>': Vec<SealV0>;
|
||||||
'Vec<SeatHolder>': Vec<SeatHolder>;
|
'Vec<SeatHolder>': Vec<SeatHolder>;
|
||||||
'Vec<SeedOf>': Vec<SeedOf>;
|
'Vec<SeedOf>': Vec<SeedOf>;
|
||||||
|
'Vec<ServiceQuality>': Vec<ServiceQuality>;
|
||||||
'Vec<SessionIndex>': Vec<SessionIndex>;
|
'Vec<SessionIndex>': Vec<SessionIndex>;
|
||||||
'Vec<SessionInfo>': Vec<SessionInfo>;
|
'Vec<SessionInfo>': Vec<SessionInfo>;
|
||||||
'Vec<SessionInfoValidatorGroup>': Vec<SessionInfoValidatorGroup>;
|
'Vec<SessionInfoValidatorGroup>': Vec<SessionInfoValidatorGroup>;
|
||||||
'Vec<SessionKeys1>': Vec<SessionKeys1>;
|
'Vec<SessionKeys1>': Vec<SessionKeys1>;
|
||||||
|
'Vec<SessionKeys10>': Vec<SessionKeys10>;
|
||||||
|
'Vec<SessionKeys10B>': Vec<SessionKeys10B>;
|
||||||
'Vec<SessionKeys2>': Vec<SessionKeys2>;
|
'Vec<SessionKeys2>': Vec<SessionKeys2>;
|
||||||
'Vec<SessionKeys3>': Vec<SessionKeys3>;
|
'Vec<SessionKeys3>': Vec<SessionKeys3>;
|
||||||
'Vec<SessionKeys4>': Vec<SessionKeys4>;
|
'Vec<SessionKeys4>': Vec<SessionKeys4>;
|
||||||
'Vec<SessionKeys5>': Vec<SessionKeys5>;
|
'Vec<SessionKeys5>': Vec<SessionKeys5>;
|
||||||
'Vec<SessionKeys6>': Vec<SessionKeys6>;
|
'Vec<SessionKeys6>': Vec<SessionKeys6>;
|
||||||
|
'Vec<SessionKeys6B>': Vec<SessionKeys6B>;
|
||||||
'Vec<SessionKeys7>': Vec<SessionKeys7>;
|
'Vec<SessionKeys7>': Vec<SessionKeys7>;
|
||||||
|
'Vec<SessionKeys7B>': Vec<SessionKeys7B>;
|
||||||
'Vec<SessionKeys8>': Vec<SessionKeys8>;
|
'Vec<SessionKeys8>': Vec<SessionKeys8>;
|
||||||
|
'Vec<SessionKeys8B>': Vec<SessionKeys8B>;
|
||||||
'Vec<SessionKeys9>': Vec<SessionKeys9>;
|
'Vec<SessionKeys9>': Vec<SessionKeys9>;
|
||||||
|
'Vec<SessionKeys9B>': Vec<SessionKeys9B>;
|
||||||
'Vec<SetId>': Vec<SetId>;
|
'Vec<SetId>': Vec<SetId>;
|
||||||
'Vec<SetIndex>': Vec<SetIndex>;
|
'Vec<SetIndex>': Vec<SetIndex>;
|
||||||
'Vec<SiField>': Vec<SiField>;
|
'Vec<SiField>': Vec<SiField>;
|
||||||
@@ -1566,11 +1610,9 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<TaskAddress>': Vec<TaskAddress>;
|
'Vec<TaskAddress>': Vec<TaskAddress>;
|
||||||
'Vec<TAssetBalance>': Vec<TAssetBalance>;
|
'Vec<TAssetBalance>': Vec<TAssetBalance>;
|
||||||
'Vec<TAssetDepositBalance>': Vec<TAssetDepositBalance>;
|
'Vec<TAssetDepositBalance>': Vec<TAssetDepositBalance>;
|
||||||
'Vec<TeleportAsset>': Vec<TeleportAsset>;
|
|
||||||
'Vec<Text>': Vec<Text>;
|
'Vec<Text>': Vec<Text>;
|
||||||
'Vec<Timepoint>': Vec<Timepoint>;
|
'Vec<Timepoint>': Vec<Timepoint>;
|
||||||
'Vec<TombstoneContractInfo>': Vec<TombstoneContractInfo>;
|
'Vec<TombstoneContractInfo>': Vec<TombstoneContractInfo>;
|
||||||
'Vec<Transact>': Vec<Transact>;
|
|
||||||
'Vec<TransactionPriority>': Vec<TransactionPriority>;
|
'Vec<TransactionPriority>': Vec<TransactionPriority>;
|
||||||
'Vec<TransactionValidityError>': Vec<TransactionValidityError>;
|
'Vec<TransactionValidityError>': Vec<TransactionValidityError>;
|
||||||
'Vec<TransientValidationData>': Vec<TransientValidationData>;
|
'Vec<TransientValidationData>': Vec<TransientValidationData>;
|
||||||
@@ -1613,7 +1655,9 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<ValidatorPrefsTo196>': Vec<ValidatorPrefsTo196>;
|
'Vec<ValidatorPrefsTo196>': Vec<ValidatorPrefsTo196>;
|
||||||
'Vec<ValidatorPrefsWithBlocked>': Vec<ValidatorPrefsWithBlocked>;
|
'Vec<ValidatorPrefsWithBlocked>': Vec<ValidatorPrefsWithBlocked>;
|
||||||
'Vec<ValidatorPrefsWithCommission>': Vec<ValidatorPrefsWithCommission>;
|
'Vec<ValidatorPrefsWithCommission>': Vec<ValidatorPrefsWithCommission>;
|
||||||
|
'Vec<ValidatorSetId>': Vec<ValidatorSetId>;
|
||||||
'Vec<ValidatorSignature>': Vec<ValidatorSignature>;
|
'Vec<ValidatorSignature>': Vec<ValidatorSignature>;
|
||||||
|
'Vec<ValidDisputeStatementKind>': Vec<ValidDisputeStatementKind>;
|
||||||
'Vec<ValidityAttestation>': Vec<ValidityAttestation>;
|
'Vec<ValidityAttestation>': Vec<ValidityAttestation>;
|
||||||
'Vec<VecInboundHrmpMessage>': Vec<VecInboundHrmpMessage>;
|
'Vec<VecInboundHrmpMessage>': Vec<VecInboundHrmpMessage>;
|
||||||
'Vec<VersionedMultiAsset>': Vec<VersionedMultiAsset>;
|
'Vec<VersionedMultiAsset>': Vec<VersionedMultiAsset>;
|
||||||
@@ -1645,16 +1689,35 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
'Vec<WinnersDataTuple>': Vec<WinnersDataTuple>;
|
'Vec<WinnersDataTuple>': Vec<WinnersDataTuple>;
|
||||||
'Vec<WinningData>': Vec<WinningData>;
|
'Vec<WinningData>': Vec<WinningData>;
|
||||||
'Vec<WinningDataEntry>': Vec<WinningDataEntry>;
|
'Vec<WinningDataEntry>': Vec<WinningDataEntry>;
|
||||||
'Vec<WithdrawAsset>': Vec<WithdrawAsset>;
|
|
||||||
'Vec<WithdrawReasons>': Vec<WithdrawReasons>;
|
'Vec<WithdrawReasons>': Vec<WithdrawReasons>;
|
||||||
'Vec<Xcm>': Vec<Xcm>;
|
'Vec<Xcm>': Vec<Xcm>;
|
||||||
|
'Vec<XcmAssetEffects>': Vec<XcmAssetEffects>;
|
||||||
'Vec<XcmError>': Vec<XcmError>;
|
'Vec<XcmError>': Vec<XcmError>;
|
||||||
'Vec<XcmResult>': Vec<XcmResult>;
|
'Vec<XcmHrmpChannelAccepted>': Vec<XcmHrmpChannelAccepted>;
|
||||||
|
'Vec<XcmHrmpChannelClosing>': Vec<XcmHrmpChannelClosing>;
|
||||||
|
'Vec<XcmHrmpNewChannelOpenRequest>': Vec<XcmHrmpNewChannelOpenRequest>;
|
||||||
|
'Vec<XcmOrder>': Vec<XcmOrder>;
|
||||||
|
'Vec<XcmOrderBuyExecution>': Vec<XcmOrderBuyExecution>;
|
||||||
|
'Vec<XcmOrderDepositAsset>': Vec<XcmOrderDepositAsset>;
|
||||||
|
'Vec<XcmOrderDepositReserveAsset>': Vec<XcmOrderDepositReserveAsset>;
|
||||||
|
'Vec<XcmOrderExchangeAsset>': Vec<XcmOrderExchangeAsset>;
|
||||||
|
'Vec<XcmOrderInitiateReserveWithdraw>': Vec<XcmOrderInitiateReserveWithdraw>;
|
||||||
|
'Vec<XcmOrderInitiateTeleport>': Vec<XcmOrderInitiateTeleport>;
|
||||||
|
'Vec<XcmOrderQueryHolding>': Vec<XcmOrderQueryHolding>;
|
||||||
|
'Vec<XcmOriginKind>': Vec<XcmOriginKind>;
|
||||||
|
'Vec<XcmOutcome>': Vec<XcmOutcome>;
|
||||||
|
'Vec<XcmQueryResponse>': Vec<XcmQueryResponse>;
|
||||||
|
'Vec<XcmRelayedFrom>': Vec<XcmRelayedFrom>;
|
||||||
|
'Vec<XcmReserveAssetDeposit>': Vec<XcmReserveAssetDeposit>;
|
||||||
|
'Vec<XcmResponse>': Vec<XcmResponse>;
|
||||||
|
'Vec<XcmTeleportAsset>': Vec<XcmTeleportAsset>;
|
||||||
|
'Vec<XcmTransact>': Vec<XcmTransact>;
|
||||||
|
'Vec<XcmTransferAsset>': Vec<XcmTransferAsset>;
|
||||||
|
'Vec<XcmTransferReserveAsset>': Vec<XcmTransferReserveAsset>;
|
||||||
|
'Vec<XcmWithdrawAsset>': Vec<XcmWithdrawAsset>;
|
||||||
AbridgedCandidateReceipt: AbridgedCandidateReceipt;
|
AbridgedCandidateReceipt: AbridgedCandidateReceipt;
|
||||||
AbridgedHostConfiguration: AbridgedHostConfiguration;
|
AbridgedHostConfiguration: AbridgedHostConfiguration;
|
||||||
AbridgedHrmpChannel: AbridgedHrmpChannel;
|
AbridgedHrmpChannel: AbridgedHrmpChannel;
|
||||||
AbstractFungible: AbstractFungible;
|
|
||||||
AbstractNonFungible: AbstractNonFungible;
|
|
||||||
AccountData: AccountData;
|
AccountData: AccountData;
|
||||||
AccountId: AccountId;
|
AccountId: AccountId;
|
||||||
AccountId32Junction: AccountId32Junction;
|
AccountId32Junction: AccountId32Junction;
|
||||||
@@ -1717,8 +1780,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
BalanceLock: BalanceLock;
|
BalanceLock: BalanceLock;
|
||||||
BalanceLockTo212: BalanceLockTo212;
|
BalanceLockTo212: BalanceLockTo212;
|
||||||
BalanceOf: BalanceOf;
|
BalanceOf: BalanceOf;
|
||||||
Balances: Balances;
|
|
||||||
BalanceStatus: BalanceStatus;
|
BalanceStatus: BalanceStatus;
|
||||||
|
BeefyCommitment: BeefyCommitment;
|
||||||
|
BeefyKey: BeefyKey;
|
||||||
|
BeefyNextAuthoritySet: BeefyNextAuthoritySet;
|
||||||
|
BeefyPayload: BeefyPayload;
|
||||||
|
BeefySignedCommitment: BeefySignedCommitment;
|
||||||
Bid: Bid;
|
Bid: Bid;
|
||||||
Bidder: Bidder;
|
Bidder: Bidder;
|
||||||
BidKind: BidKind;
|
BidKind: BidKind;
|
||||||
@@ -1761,8 +1828,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
CompactAssignmentsTo257: CompactAssignmentsTo257;
|
CompactAssignmentsTo257: CompactAssignmentsTo257;
|
||||||
CompactScore: CompactScore;
|
CompactScore: CompactScore;
|
||||||
CompactScoreCompact: CompactScoreCompact;
|
CompactScoreCompact: CompactScoreCompact;
|
||||||
ConcreteFungible: ConcreteFungible;
|
|
||||||
ConcreteNonFungible: ConcreteNonFungible;
|
|
||||||
Consensus: Consensus;
|
Consensus: Consensus;
|
||||||
ConsensusEngineId: ConsensusEngineId;
|
ConsensusEngineId: ConsensusEngineId;
|
||||||
ConsumedWeight: ConsumedWeight;
|
ConsumedWeight: ConsumedWeight;
|
||||||
@@ -1811,8 +1876,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
DefunctVoter: DefunctVoter;
|
DefunctVoter: DefunctVoter;
|
||||||
Delegations: Delegations;
|
Delegations: Delegations;
|
||||||
DeletedContract: DeletedContract;
|
DeletedContract: DeletedContract;
|
||||||
DepositAsset: DepositAsset;
|
|
||||||
DepositReserveAsset: DepositReserveAsset;
|
|
||||||
Digest: Digest;
|
Digest: Digest;
|
||||||
DigestItem: DigestItem;
|
DigestItem: DigestItem;
|
||||||
DigestOf: DigestOf;
|
DigestOf: DigestOf;
|
||||||
@@ -1827,7 +1890,10 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
DispatchResult: DispatchResult;
|
DispatchResult: DispatchResult;
|
||||||
DispatchResultOf: DispatchResultOf;
|
DispatchResultOf: DispatchResultOf;
|
||||||
DispatchResultTo198: DispatchResultTo198;
|
DispatchResultTo198: DispatchResultTo198;
|
||||||
|
DisputeStatement: DisputeStatement;
|
||||||
|
DisputeStatementSet: DisputeStatementSet;
|
||||||
DoNotConstruct: DoNotConstruct;
|
DoNotConstruct: DoNotConstruct;
|
||||||
|
DoubleEncodedCall: DoubleEncodedCall;
|
||||||
DoubleMapTypeLatest: DoubleMapTypeLatest;
|
DoubleMapTypeLatest: DoubleMapTypeLatest;
|
||||||
DoubleMapTypeV10: DoubleMapTypeV10;
|
DoubleMapTypeV10: DoubleMapTypeV10;
|
||||||
DoubleMapTypeV11: DoubleMapTypeV11;
|
DoubleMapTypeV11: DoubleMapTypeV11;
|
||||||
@@ -1898,12 +1964,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
EvmAccount: EvmAccount;
|
EvmAccount: EvmAccount;
|
||||||
EvmLog: EvmLog;
|
EvmLog: EvmLog;
|
||||||
EvmVicinity: EvmVicinity;
|
EvmVicinity: EvmVicinity;
|
||||||
ExchangeAsset: ExchangeAsset;
|
|
||||||
ExitError: ExitError;
|
ExitError: ExitError;
|
||||||
ExitFatal: ExitFatal;
|
ExitFatal: ExitFatal;
|
||||||
ExitReason: ExitReason;
|
ExitReason: ExitReason;
|
||||||
ExitRevert: ExitRevert;
|
ExitRevert: ExitRevert;
|
||||||
ExitSucceed: ExitSucceed;
|
ExitSucceed: ExitSucceed;
|
||||||
|
ExplicitDisputeStatement: ExplicitDisputeStatement;
|
||||||
Exposure: Exposure;
|
Exposure: Exposure;
|
||||||
ExtendedBalance: ExtendedBalance;
|
ExtendedBalance: ExtendedBalance;
|
||||||
Extrinsic: Extrinsic;
|
Extrinsic: Extrinsic;
|
||||||
@@ -1944,6 +2010,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
FundInfo: FundInfo;
|
FundInfo: FundInfo;
|
||||||
Gas: Gas;
|
Gas: Gas;
|
||||||
GiltBid: GiltBid;
|
GiltBid: GiltBid;
|
||||||
|
GlobalValidationData: GlobalValidationData;
|
||||||
GlobalValidationSchedule: GlobalValidationSchedule;
|
GlobalValidationSchedule: GlobalValidationSchedule;
|
||||||
GrandpaEquivocation: GrandpaEquivocation;
|
GrandpaEquivocation: GrandpaEquivocation;
|
||||||
GrandpaEquivocationProof: GrandpaEquivocationProof;
|
GrandpaEquivocationProof: GrandpaEquivocationProof;
|
||||||
@@ -2000,9 +2067,8 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
Index: Index;
|
Index: Index;
|
||||||
IndicesLookupSource: IndicesLookupSource;
|
IndicesLookupSource: IndicesLookupSource;
|
||||||
IndividualExposure: IndividualExposure;
|
IndividualExposure: IndividualExposure;
|
||||||
InitiateReserveWithdraw: InitiateReserveWithdraw;
|
|
||||||
InitiateTeleport: InitiateTeleport;
|
|
||||||
InstructionWeights: InstructionWeights;
|
InstructionWeights: InstructionWeights;
|
||||||
|
InvalidDisputeStatementKind: InvalidDisputeStatementKind;
|
||||||
InvalidTransaction: InvalidTransaction;
|
InvalidTransaction: InvalidTransaction;
|
||||||
Json: Json;
|
Json: Json;
|
||||||
Junction: Junction;
|
Junction: Junction;
|
||||||
@@ -2048,6 +2114,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
MetadataV12: MetadataV12;
|
MetadataV12: MetadataV12;
|
||||||
MetadataV9: MetadataV9;
|
MetadataV9: MetadataV9;
|
||||||
MmrLeafProof: MmrLeafProof;
|
MmrLeafProof: MmrLeafProof;
|
||||||
|
MmrRootHash: MmrRootHash;
|
||||||
ModuleConstantMetadataLatest: ModuleConstantMetadataLatest;
|
ModuleConstantMetadataLatest: ModuleConstantMetadataLatest;
|
||||||
ModuleConstantMetadataV10: ModuleConstantMetadataV10;
|
ModuleConstantMetadataV10: ModuleConstantMetadataV10;
|
||||||
ModuleConstantMetadataV11: ModuleConstantMetadataV11;
|
ModuleConstantMetadataV11: ModuleConstantMetadataV11;
|
||||||
@@ -2065,6 +2132,11 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
MortalEra: MortalEra;
|
MortalEra: MortalEra;
|
||||||
MultiAddress: MultiAddress;
|
MultiAddress: MultiAddress;
|
||||||
MultiAsset: MultiAsset;
|
MultiAsset: MultiAsset;
|
||||||
|
MultiAssetAbstractFungible: MultiAssetAbstractFungible;
|
||||||
|
MultiAssetAbstractNonFungible: MultiAssetAbstractNonFungible;
|
||||||
|
MultiAssetConcreteFungible: MultiAssetConcreteFungible;
|
||||||
|
MultiAssetConcreteNonFungible: MultiAssetConcreteNonFungible;
|
||||||
|
MultiDisputeStatementSet: MultiDisputeStatementSet;
|
||||||
MultiLocation: MultiLocation;
|
MultiLocation: MultiLocation;
|
||||||
Multiplier: Multiplier;
|
Multiplier: Multiplier;
|
||||||
Multisig: Multisig;
|
Multisig: Multisig;
|
||||||
@@ -2097,17 +2169,17 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
OpenTipFinderTo225: OpenTipFinderTo225;
|
OpenTipFinderTo225: OpenTipFinderTo225;
|
||||||
OpenTipTip: OpenTipTip;
|
OpenTipTip: OpenTipTip;
|
||||||
OpenTipTo225: OpenTipTo225;
|
OpenTipTo225: OpenTipTo225;
|
||||||
Order: Order;
|
|
||||||
Origin: Origin;
|
Origin: Origin;
|
||||||
OriginCaller: OriginCaller;
|
OriginCaller: OriginCaller;
|
||||||
OriginKind: OriginKind;
|
|
||||||
OutboundHrmpMessage: OutboundHrmpMessage;
|
OutboundHrmpMessage: OutboundHrmpMessage;
|
||||||
Owner: Owner;
|
Owner: Owner;
|
||||||
|
PalletId: PalletId;
|
||||||
PalletsOrigin: PalletsOrigin;
|
PalletsOrigin: PalletsOrigin;
|
||||||
PalletVersion: PalletVersion;
|
PalletVersion: PalletVersion;
|
||||||
ParachainDispatchOrigin: ParachainDispatchOrigin;
|
ParachainDispatchOrigin: ParachainDispatchOrigin;
|
||||||
ParachainInherentData: ParachainInherentData;
|
ParachainInherentData: ParachainInherentData;
|
||||||
ParachainProposal: ParachainProposal;
|
ParachainProposal: ParachainProposal;
|
||||||
|
ParachainsInherentData: ParachainsInherentData;
|
||||||
ParaGenesisArgs: ParaGenesisArgs;
|
ParaGenesisArgs: ParaGenesisArgs;
|
||||||
ParaId: ParaId;
|
ParaId: ParaId;
|
||||||
ParaInfo: ParaInfo;
|
ParaInfo: ParaInfo;
|
||||||
@@ -2160,7 +2232,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
ProxyDefinition: ProxyDefinition;
|
ProxyDefinition: ProxyDefinition;
|
||||||
ProxyState: ProxyState;
|
ProxyState: ProxyState;
|
||||||
ProxyType: ProxyType;
|
ProxyType: ProxyType;
|
||||||
QueryHolding: QueryHolding;
|
|
||||||
QueuedParathread: QueuedParathread;
|
QueuedParathread: QueuedParathread;
|
||||||
Randomness: Randomness;
|
Randomness: Randomness;
|
||||||
Raw: Raw;
|
Raw: Raw;
|
||||||
@@ -2194,15 +2265,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
RegistrationJudgement: RegistrationJudgement;
|
RegistrationJudgement: RegistrationJudgement;
|
||||||
RelayChainBlockNumber: RelayChainBlockNumber;
|
RelayChainBlockNumber: RelayChainBlockNumber;
|
||||||
RelayChainHash: RelayChainHash;
|
RelayChainHash: RelayChainHash;
|
||||||
RelayedFrom: RelayedFrom;
|
|
||||||
RelayTo: RelayTo;
|
|
||||||
Releases: Releases;
|
Releases: Releases;
|
||||||
Remark: Remark;
|
Remark: Remark;
|
||||||
Renouncing: Renouncing;
|
Renouncing: Renouncing;
|
||||||
ReportedRoundStates: ReportedRoundStates;
|
ReportedRoundStates: ReportedRoundStates;
|
||||||
Reporter: Reporter;
|
Reporter: Reporter;
|
||||||
ReportIdOf: ReportIdOf;
|
ReportIdOf: ReportIdOf;
|
||||||
ReserveAssetDeposit: ReserveAssetDeposit;
|
|
||||||
Retriable: Retriable;
|
Retriable: Retriable;
|
||||||
RewardDestination: RewardDestination;
|
RewardDestination: RewardDestination;
|
||||||
RewardPoint: RewardPoint;
|
RewardPoint: RewardPoint;
|
||||||
@@ -2226,18 +2294,25 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
SealV0: SealV0;
|
SealV0: SealV0;
|
||||||
SeatHolder: SeatHolder;
|
SeatHolder: SeatHolder;
|
||||||
SeedOf: SeedOf;
|
SeedOf: SeedOf;
|
||||||
|
ServiceQuality: ServiceQuality;
|
||||||
SessionIndex: SessionIndex;
|
SessionIndex: SessionIndex;
|
||||||
SessionInfo: SessionInfo;
|
SessionInfo: SessionInfo;
|
||||||
SessionInfoValidatorGroup: SessionInfoValidatorGroup;
|
SessionInfoValidatorGroup: SessionInfoValidatorGroup;
|
||||||
SessionKeys1: SessionKeys1;
|
SessionKeys1: SessionKeys1;
|
||||||
|
SessionKeys10: SessionKeys10;
|
||||||
|
SessionKeys10B: SessionKeys10B;
|
||||||
SessionKeys2: SessionKeys2;
|
SessionKeys2: SessionKeys2;
|
||||||
SessionKeys3: SessionKeys3;
|
SessionKeys3: SessionKeys3;
|
||||||
SessionKeys4: SessionKeys4;
|
SessionKeys4: SessionKeys4;
|
||||||
SessionKeys5: SessionKeys5;
|
SessionKeys5: SessionKeys5;
|
||||||
SessionKeys6: SessionKeys6;
|
SessionKeys6: SessionKeys6;
|
||||||
|
SessionKeys6B: SessionKeys6B;
|
||||||
SessionKeys7: SessionKeys7;
|
SessionKeys7: SessionKeys7;
|
||||||
|
SessionKeys7B: SessionKeys7B;
|
||||||
SessionKeys8: SessionKeys8;
|
SessionKeys8: SessionKeys8;
|
||||||
|
SessionKeys8B: SessionKeys8B;
|
||||||
SessionKeys9: SessionKeys9;
|
SessionKeys9: SessionKeys9;
|
||||||
|
SessionKeys9B: SessionKeys9B;
|
||||||
SetId: SetId;
|
SetId: SetId;
|
||||||
SetIndex: SetIndex;
|
SetIndex: SetIndex;
|
||||||
SiField: SiField;
|
SiField: SiField;
|
||||||
@@ -2320,11 +2395,9 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
TaskAddress: TaskAddress;
|
TaskAddress: TaskAddress;
|
||||||
TAssetBalance: TAssetBalance;
|
TAssetBalance: TAssetBalance;
|
||||||
TAssetDepositBalance: TAssetDepositBalance;
|
TAssetDepositBalance: TAssetDepositBalance;
|
||||||
TeleportAsset: TeleportAsset;
|
|
||||||
Text: Text;
|
Text: Text;
|
||||||
Timepoint: Timepoint;
|
Timepoint: Timepoint;
|
||||||
TombstoneContractInfo: TombstoneContractInfo;
|
TombstoneContractInfo: TombstoneContractInfo;
|
||||||
Transact: Transact;
|
|
||||||
TransactionPriority: TransactionPriority;
|
TransactionPriority: TransactionPriority;
|
||||||
TransactionValidityError: TransactionValidityError;
|
TransactionValidityError: TransactionValidityError;
|
||||||
TransientValidationData: TransientValidationData;
|
TransientValidationData: TransientValidationData;
|
||||||
@@ -2367,7 +2440,9 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
ValidatorPrefsTo196: ValidatorPrefsTo196;
|
ValidatorPrefsTo196: ValidatorPrefsTo196;
|
||||||
ValidatorPrefsWithBlocked: ValidatorPrefsWithBlocked;
|
ValidatorPrefsWithBlocked: ValidatorPrefsWithBlocked;
|
||||||
ValidatorPrefsWithCommission: ValidatorPrefsWithCommission;
|
ValidatorPrefsWithCommission: ValidatorPrefsWithCommission;
|
||||||
|
ValidatorSetId: ValidatorSetId;
|
||||||
ValidatorSignature: ValidatorSignature;
|
ValidatorSignature: ValidatorSignature;
|
||||||
|
ValidDisputeStatementKind: ValidDisputeStatementKind;
|
||||||
ValidityAttestation: ValidityAttestation;
|
ValidityAttestation: ValidityAttestation;
|
||||||
VecInboundHrmpMessage: VecInboundHrmpMessage;
|
VecInboundHrmpMessage: VecInboundHrmpMessage;
|
||||||
VersionedMultiAsset: VersionedMultiAsset;
|
VersionedMultiAsset: VersionedMultiAsset;
|
||||||
@@ -2399,10 +2474,31 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
WinnersDataTuple: WinnersDataTuple;
|
WinnersDataTuple: WinnersDataTuple;
|
||||||
WinningData: WinningData;
|
WinningData: WinningData;
|
||||||
WinningDataEntry: WinningDataEntry;
|
WinningDataEntry: WinningDataEntry;
|
||||||
WithdrawAsset: WithdrawAsset;
|
|
||||||
WithdrawReasons: WithdrawReasons;
|
WithdrawReasons: WithdrawReasons;
|
||||||
Xcm: Xcm;
|
Xcm: Xcm;
|
||||||
|
XcmAssetEffects: XcmAssetEffects;
|
||||||
XcmError: XcmError;
|
XcmError: XcmError;
|
||||||
XcmResult: XcmResult;
|
XcmHrmpChannelAccepted: XcmHrmpChannelAccepted;
|
||||||
|
XcmHrmpChannelClosing: XcmHrmpChannelClosing;
|
||||||
|
XcmHrmpNewChannelOpenRequest: XcmHrmpNewChannelOpenRequest;
|
||||||
|
XcmOrder: XcmOrder;
|
||||||
|
XcmOrderBuyExecution: XcmOrderBuyExecution;
|
||||||
|
XcmOrderDepositAsset: XcmOrderDepositAsset;
|
||||||
|
XcmOrderDepositReserveAsset: XcmOrderDepositReserveAsset;
|
||||||
|
XcmOrderExchangeAsset: XcmOrderExchangeAsset;
|
||||||
|
XcmOrderInitiateReserveWithdraw: XcmOrderInitiateReserveWithdraw;
|
||||||
|
XcmOrderInitiateTeleport: XcmOrderInitiateTeleport;
|
||||||
|
XcmOrderQueryHolding: XcmOrderQueryHolding;
|
||||||
|
XcmOriginKind: XcmOriginKind;
|
||||||
|
XcmOutcome: XcmOutcome;
|
||||||
|
XcmQueryResponse: XcmQueryResponse;
|
||||||
|
XcmRelayedFrom: XcmRelayedFrom;
|
||||||
|
XcmReserveAssetDeposit: XcmReserveAssetDeposit;
|
||||||
|
XcmResponse: XcmResponse;
|
||||||
|
XcmTeleportAsset: XcmTeleportAsset;
|
||||||
|
XcmTransact: XcmTransact;
|
||||||
|
XcmTransferAsset: XcmTransferAsset;
|
||||||
|
XcmTransferReserveAsset: XcmTransferReserveAsset;
|
||||||
|
XcmWithdrawAsset: XcmWithdrawAsset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { Address, Balance, Call, Index } from '../../interfaces/runtime';
|
|||||||
import type { ExtrinsicPayloadValue, IExtrinsicSignature, IKeyringPair, Registry, SignatureOptions } from '../../types';
|
import type { ExtrinsicPayloadValue, IExtrinsicSignature, IKeyringPair, Registry, SignatureOptions } from '../../types';
|
||||||
import type { ExtrinsicSignatureOptions } from '../types';
|
import type { ExtrinsicSignatureOptions } from '../types';
|
||||||
|
|
||||||
import { isU8a, u8aConcat, u8aToHex } from '@polkadot/util';
|
import { assert, isU8a, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
import { Compact } from '../../codec/Compact';
|
import { Compact } from '../../codec/Compact';
|
||||||
import { Enum } from '../../codec/Enum';
|
import { Enum } from '../../codec/Enum';
|
||||||
@@ -155,6 +155,8 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
|
|||||||
* @description Generate a payload and applies the signature from a keypair
|
* @description Generate a payload and applies the signature from a keypair
|
||||||
*/
|
*/
|
||||||
public sign (method: Call, account: IKeyringPair, options: SignatureOptions): IExtrinsicSignature {
|
public sign (method: Call, account: IKeyringPair, options: SignatureOptions): IExtrinsicSignature {
|
||||||
|
assert(account && account.addressRaw, `Expected a valid keypair for signing, found ${JSON.stringify(account)}`);
|
||||||
|
|
||||||
const signer = toAddress(this.registry, account.addressRaw);
|
const signer = toAddress(this.registry, account.addressRaw);
|
||||||
const payload = this.createPayload(method, options);
|
const payload = this.createPayload(method, options);
|
||||||
const signature = this.registry.createType('ExtrinsicSignature', payload.sign(account));
|
const signature = this.registry.createType('ExtrinsicSignature', payload.sign(account));
|
||||||
@@ -166,6 +168,8 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
|
|||||||
* @description Generate a payload and applies a fake signature
|
* @description Generate a payload and applies a fake signature
|
||||||
*/
|
*/
|
||||||
public signFake (method: Call, address: Address | Uint8Array | string, options: SignatureOptions): IExtrinsicSignature {
|
public signFake (method: Call, address: Address | Uint8Array | string, options: SignatureOptions): IExtrinsicSignature {
|
||||||
|
assert(address, `Expected a valid address for signing, found ${JSON.stringify(address)}`);
|
||||||
|
|
||||||
const signer = toAddress(this.registry, address);
|
const signer = toAddress(this.registry, address);
|
||||||
const payload = this.createPayload(method, options);
|
const payload = this.createPayload(method, options);
|
||||||
const signature = this.registry.createType('ExtrinsicSignature', u8aConcat(this.#fakePrefix, new Uint8Array(64).fill(0x42)));
|
const signature = this.registry.createType('ExtrinsicSignature', u8aConcat(this.#fakePrefix, new Uint8Array(64).fill(0x42)));
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// order important in structs... :)
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
|
||||||
|
import type { Definitions } from '../../types';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
rpc: {
|
||||||
|
subscribeJustifications: {
|
||||||
|
description: 'Returns the block most recently finalized by BEEFY, alongside side its justification.',
|
||||||
|
params: [],
|
||||||
|
pubsub: [
|
||||||
|
'justifications',
|
||||||
|
'subscribeJustifications',
|
||||||
|
'unsubscribeJustifications'
|
||||||
|
],
|
||||||
|
type: 'BeefySignedCommitment'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
types: {
|
||||||
|
BeefyCommitment: {
|
||||||
|
payload: 'BeefyPayload',
|
||||||
|
blockNumber: 'BlockNumber',
|
||||||
|
validatorSetId: 'ValidatorSetId'
|
||||||
|
},
|
||||||
|
BeefySignedCommitment: {
|
||||||
|
commitment: 'BeefyCommitment',
|
||||||
|
signatures: 'Vec<Option<Signature>>'
|
||||||
|
},
|
||||||
|
BeefyNextAuthoritySet: {
|
||||||
|
id: 'u64',
|
||||||
|
len: 'u32',
|
||||||
|
root: 'H256'
|
||||||
|
},
|
||||||
|
BeefyPayload: 'MmrRootHash',
|
||||||
|
MmrRootHash: 'H256',
|
||||||
|
ValidatorSetId: 'u64'
|
||||||
|
}
|
||||||
|
} as Definitions;
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
export * from './types';
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
import type { Option, Struct, Vec, u32, u64 } from '@polkadot/types';
|
||||||
|
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||||
|
import type { BlockNumber, H256 } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
|
/** @name BeefyCommitment */
|
||||||
|
export interface BeefyCommitment extends Struct {
|
||||||
|
readonly payload: BeefyPayload;
|
||||||
|
readonly blockNumber: BlockNumber;
|
||||||
|
readonly validatorSetId: ValidatorSetId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name BeefyNextAuthoritySet */
|
||||||
|
export interface BeefyNextAuthoritySet extends Struct {
|
||||||
|
readonly id: u64;
|
||||||
|
readonly len: u32;
|
||||||
|
readonly root: H256;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name BeefyPayload */
|
||||||
|
export interface BeefyPayload extends MmrRootHash {}
|
||||||
|
|
||||||
|
/** @name BeefySignedCommitment */
|
||||||
|
export interface BeefySignedCommitment extends Struct {
|
||||||
|
readonly commitment: BeefyCommitment;
|
||||||
|
readonly signatures: Vec<Option<Signature>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name MmrRootHash */
|
||||||
|
export interface MmrRootHash extends H256 {}
|
||||||
|
|
||||||
|
/** @name ValidatorSetId */
|
||||||
|
export interface ValidatorSetId extends u64 {}
|
||||||
|
|
||||||
|
export type PHANTOM_BEEFY = 'beefy';
|
||||||
@@ -18,7 +18,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
FundInfo: {
|
FundInfo: {
|
||||||
retiring: 'bool',
|
|
||||||
depositor: 'AccountId',
|
depositor: 'AccountId',
|
||||||
verifier: 'Option<MultiSigner>',
|
verifier: 'Option<MultiSigner>',
|
||||||
deposit: 'Balance',
|
deposit: 'Balance',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, Option, Struct, bool, u32 } from '@polkadot/types';
|
import type { Enum, Option, Struct, u32 } from '@polkadot/types';
|
||||||
import type { LeasePeriod } from '@polkadot/types/interfaces/parachains';
|
import type { LeasePeriod } from '@polkadot/types/interfaces/parachains';
|
||||||
import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
@@ -10,7 +10,6 @@ export interface FundIndex extends u32 {}
|
|||||||
|
|
||||||
/** @name FundInfo */
|
/** @name FundInfo */
|
||||||
export interface FundInfo extends Struct {
|
export interface FundInfo extends Struct {
|
||||||
readonly retiring: bool;
|
|
||||||
readonly depositor: AccountId;
|
readonly depositor: AccountId;
|
||||||
readonly verifier: Option<MultiSigner>;
|
readonly verifier: Option<MultiSigner>;
|
||||||
readonly deposit: Balance;
|
readonly deposit: Balance;
|
||||||
|
|||||||
@@ -42,11 +42,13 @@ export { default as vesting } from './vesting/definitions';
|
|||||||
|
|
||||||
// polkadot-specific types
|
// polkadot-specific types
|
||||||
export { default as attestations } from './attestations/definitions';
|
export { default as attestations } from './attestations/definitions';
|
||||||
|
export { default as beefy } from './beefy/definitions';
|
||||||
export { default as claims } from './claims/definitions';
|
export { default as claims } from './claims/definitions';
|
||||||
export { default as crowdloan } from './crowdloan/definitions';
|
export { default as crowdloan } from './crowdloan/definitions';
|
||||||
export { default as parachains } from './parachains/definitions';
|
export { default as parachains } from './parachains/definitions';
|
||||||
export { default as poll } from './poll/definitions';
|
export { default as poll } from './poll/definitions';
|
||||||
export { default as purchase } from './purchase/definitions';
|
export { default as purchase } from './purchase/definitions';
|
||||||
|
export { default as xcm } from './xcm/definitions';
|
||||||
|
|
||||||
// scale-info & contracts
|
// scale-info & contracts
|
||||||
export { default as contractsAbi } from './contractsAbi/definitions';
|
export { default as contractsAbi } from './contractsAbi/definitions';
|
||||||
|
|||||||
@@ -24,11 +24,18 @@ const proposeTypes = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const cumulusTypes = {
|
||||||
|
ServiceQuality: {
|
||||||
|
_enum: ['Ordered', 'Fast']
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
rpc: {},
|
rpc: {},
|
||||||
types: {
|
types: {
|
||||||
...proposeTypes,
|
...cumulusTypes,
|
||||||
...hrmpTypes,
|
...hrmpTypes,
|
||||||
|
...proposeTypes,
|
||||||
...slotTypes,
|
...slotTypes,
|
||||||
AbridgedCandidateReceipt: {
|
AbridgedCandidateReceipt: {
|
||||||
parachainIndex: 'ParaId',
|
parachainIndex: 'ParaId',
|
||||||
@@ -97,13 +104,14 @@ export default {
|
|||||||
},
|
},
|
||||||
CandidateDescriptor: {
|
CandidateDescriptor: {
|
||||||
paraId: 'ParaId',
|
paraId: 'ParaId',
|
||||||
relayParent: 'Hash',
|
relayParent: 'RelayChainHash',
|
||||||
collatorId: 'CollatorId',
|
collatorId: 'CollatorId',
|
||||||
persistedValidationDataHash: 'Hash',
|
persistedValidationDataHash: 'Hash',
|
||||||
povHash: 'Hash',
|
povHash: 'Hash',
|
||||||
erasureRoot: 'Hash',
|
erasureRoot: 'Hash',
|
||||||
signature: 'CollatorSignature',
|
signature: 'CollatorSignature',
|
||||||
paraHead: 'Hash'
|
paraHead: 'Hash',
|
||||||
|
validationCodeHash: 'Hash'
|
||||||
},
|
},
|
||||||
CandidateHash: 'Hash',
|
CandidateHash: 'Hash',
|
||||||
CandidatePendingAvailability: {
|
CandidatePendingAvailability: {
|
||||||
@@ -119,6 +127,11 @@ export default {
|
|||||||
descriptor: 'CandidateDescriptor',
|
descriptor: 'CandidateDescriptor',
|
||||||
commitmentsHash: 'Hash'
|
commitmentsHash: 'Hash'
|
||||||
},
|
},
|
||||||
|
GlobalValidationData: {
|
||||||
|
maxCodeSize: 'u32',
|
||||||
|
maxHeadDataSize: 'u32',
|
||||||
|
blockNumber: 'BlockNumber'
|
||||||
|
},
|
||||||
CollatorId: 'H256',
|
CollatorId: 'H256',
|
||||||
CollatorSignature: 'Signature',
|
CollatorSignature: 'Signature',
|
||||||
CommittedCandidateReceipt: {
|
CommittedCandidateReceipt: {
|
||||||
@@ -138,6 +151,36 @@ export default {
|
|||||||
Parachain: 'Null'
|
Parachain: 'Null'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
DisputeStatementSet: {
|
||||||
|
candidateHash: 'CandidateHash',
|
||||||
|
session: 'SessionIndex',
|
||||||
|
statements: 'Vec<(DisputeStatement, ValidatorIndex, ValidatorSignature)>'
|
||||||
|
},
|
||||||
|
MultiDisputeStatementSet: 'Vec<DisputeStatementSet>',
|
||||||
|
DisputeStatement: {
|
||||||
|
_enum: {
|
||||||
|
Valid: 'ValidDisputeStatementKind',
|
||||||
|
Invalid: 'InvalidDisputeStatementKind'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ValidDisputeStatementKind: {
|
||||||
|
_enum: [
|
||||||
|
'Explicit',
|
||||||
|
'BackingSeconded',
|
||||||
|
'BackingValid',
|
||||||
|
'ApprovalChecking'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
InvalidDisputeStatementKind: {
|
||||||
|
_enum: [
|
||||||
|
'Explicit'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
ExplicitDisputeStatement: {
|
||||||
|
valid: 'bool',
|
||||||
|
candidateHash: 'CandidateHash',
|
||||||
|
session: 'SessionIndex'
|
||||||
|
},
|
||||||
DoubleVoteReport: {
|
DoubleVoteReport: {
|
||||||
identity: 'ValidatorId',
|
identity: 'ValidatorId',
|
||||||
first: '(Statement, ValidatorSignature)',
|
first: '(Statement, ValidatorSignature)',
|
||||||
@@ -224,6 +267,12 @@ export default {
|
|||||||
downwardMessages: 'Vec<InboundDownwardMessage>',
|
downwardMessages: 'Vec<InboundDownwardMessage>',
|
||||||
horizontalMessages: 'BTreeMap<ParaId, VecInboundHrmpMessage>'
|
horizontalMessages: 'BTreeMap<ParaId, VecInboundHrmpMessage>'
|
||||||
},
|
},
|
||||||
|
ParachainsInherentData: {
|
||||||
|
bitfields: 'SignedAvailabilityBitfields',
|
||||||
|
backedCandidates: 'Vec<BackedCandidate>',
|
||||||
|
disputes: 'MultiDisputeStatementSet',
|
||||||
|
parentHeader: 'Header'
|
||||||
|
},
|
||||||
ParaGenesisArgs: {
|
ParaGenesisArgs: {
|
||||||
genesisHead: 'Bytes',
|
genesisHead: 'Bytes',
|
||||||
validationCode: 'Bytes',
|
validationCode: 'Bytes',
|
||||||
@@ -231,7 +280,9 @@ export default {
|
|||||||
},
|
},
|
||||||
ParaId: 'u32',
|
ParaId: 'u32',
|
||||||
ParaInfo: {
|
ParaInfo: {
|
||||||
scheduling: 'Scheduling'
|
manager: 'AccountId',
|
||||||
|
deposit: 'Balance',
|
||||||
|
locked: 'bool'
|
||||||
},
|
},
|
||||||
ParaLifecycle: {
|
ParaLifecycle: {
|
||||||
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingToParachain', 'DowngradingToParathread', 'OutgoingParathread', 'OutgoingParachain']
|
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingToParachain', 'DowngradingToParathread', 'OutgoingParathread', 'OutgoingParachain']
|
||||||
@@ -336,200 +387,6 @@ export default {
|
|||||||
Explicit: 'ValidatorSignature'
|
Explicit: 'ValidatorSignature'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
VersionedXcm: {
|
|
||||||
_enum: {
|
|
||||||
V0: 'Xcm'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
WithdrawAsset: {
|
|
||||||
assets: 'Vec<MultiAsset>',
|
|
||||||
effects: 'Vec<Order>'
|
|
||||||
},
|
|
||||||
ReserveAssetDeposit: {
|
|
||||||
assets: 'Vec<MultiAsset>',
|
|
||||||
effects: 'Vec<Order>'
|
|
||||||
},
|
|
||||||
TeleportAsset: {
|
|
||||||
assets: 'Vec<MultiAsset>',
|
|
||||||
effects: 'Vec<Order>'
|
|
||||||
},
|
|
||||||
Balances: {
|
|
||||||
queryId: 'Compact<u64>',
|
|
||||||
assets: 'Vec<MultiAsset>'
|
|
||||||
},
|
|
||||||
Transact: {
|
|
||||||
originType: 'OriginKind',
|
|
||||||
call: 'Vec<u8>'
|
|
||||||
},
|
|
||||||
RelayTo: {
|
|
||||||
dest: 'MultiLocation',
|
|
||||||
inner: 'VersionedXcm'
|
|
||||||
},
|
|
||||||
RelayedFrom: {
|
|
||||||
superorigin: 'MultiLocation',
|
|
||||||
inner: 'VersionedXcm'
|
|
||||||
},
|
|
||||||
Xcm: {
|
|
||||||
_enum: {
|
|
||||||
WithdrawAsset: 'WithdrawAsset',
|
|
||||||
ReserveAssetDeposit: 'ReserveAssetDeposit',
|
|
||||||
TeleportAsset: 'TeleportAsset',
|
|
||||||
Balances: 'Balances',
|
|
||||||
Transact: 'Transact',
|
|
||||||
RelayTo: 'RelayTo',
|
|
||||||
RelayedFrom: 'RelayedFrom'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
XcmError: {
|
|
||||||
_enum: ['Undefined', 'Unimplemented', 'UnhandledXcmVersion', 'UnhandledXcmMessage', 'UnhandledEffect', 'EscalationOfPrivilege', 'UntrustedReserveLocation', 'UntrustedTeleportLocation', 'DestinationBufferOverflow', 'CannotReachDestination', 'MultiLocationFull', 'FailedToDecode', 'BadOrigin']
|
|
||||||
},
|
|
||||||
XcmResult: {
|
|
||||||
_enum: {
|
|
||||||
Ok: '()',
|
|
||||||
Err: 'XcmError'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
OriginKind: {
|
|
||||||
_enum: ['Native', 'SovereignAccount', 'Superuser']
|
|
||||||
},
|
|
||||||
NetworkId: {
|
|
||||||
_enum: {
|
|
||||||
Any: 'Null',
|
|
||||||
Named: 'Vec<u8>',
|
|
||||||
Polkadot: 'Null',
|
|
||||||
Kusama: 'Null'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
MultiLocation: {
|
|
||||||
_enum: {
|
|
||||||
Null: 'Null',
|
|
||||||
X1: 'Junction',
|
|
||||||
X2: '(Junction, Junction)',
|
|
||||||
X3: '(Junction, Junction, Junction)',
|
|
||||||
X4: '(Junction, Junction, Junction, Junction)'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
AccountId32Junction: {
|
|
||||||
network: 'NetworkId',
|
|
||||||
id: 'AccountId'
|
|
||||||
},
|
|
||||||
AccountIndex64Junction: {
|
|
||||||
network: 'NetworkId',
|
|
||||||
index: 'Compact<u64>'
|
|
||||||
},
|
|
||||||
AccountKey20Junction: {
|
|
||||||
network: 'NetworkId',
|
|
||||||
index: '[u8; 20]'
|
|
||||||
},
|
|
||||||
Junction: {
|
|
||||||
_enum: {
|
|
||||||
Parent: 'Null',
|
|
||||||
Parachain: 'Compact<u32>',
|
|
||||||
AccountId32: 'AccountId32Junction',
|
|
||||||
AccountIndex64: 'AccountIndex64Junction',
|
|
||||||
AccountKey20: 'AccountKey20Junction',
|
|
||||||
PalletInstance: 'u8',
|
|
||||||
GeneralIndex: 'Compact<u128>',
|
|
||||||
GeneralKey: 'Vec<u8>',
|
|
||||||
OnlyChild: 'Null'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
VersionedMultiLocation: {
|
|
||||||
_enum: {
|
|
||||||
V0: 'MultiLocation'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
AssetInstance: {
|
|
||||||
_enum: {
|
|
||||||
Undefined: 'Null',
|
|
||||||
Index8: 'u8',
|
|
||||||
Index16: 'Compact<u16>',
|
|
||||||
Index32: 'Compact<u32>',
|
|
||||||
Index64: 'Compact<u64>',
|
|
||||||
Index128: 'Compact<u128>',
|
|
||||||
Array4: '[u8; 4]',
|
|
||||||
Array8: '[u8; 8]',
|
|
||||||
Array16: '[u8; 16]',
|
|
||||||
Array32: '[u8; 32]',
|
|
||||||
Blob: 'Vec<u8>'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
AbstractFungible: {
|
|
||||||
id: 'Vec<u8>',
|
|
||||||
instance: 'Compact<u128>'
|
|
||||||
},
|
|
||||||
AbstractNonFungible: {
|
|
||||||
class: 'Vec<u8>',
|
|
||||||
instance: 'AssetInstance'
|
|
||||||
},
|
|
||||||
ConcreteFungible: {
|
|
||||||
id: 'MultiLocation',
|
|
||||||
amount: 'Compact<u128>'
|
|
||||||
},
|
|
||||||
ConcreteNonFungible: {
|
|
||||||
class: 'MultiLocation',
|
|
||||||
instance: 'AssetInstance'
|
|
||||||
},
|
|
||||||
MultiAsset: {
|
|
||||||
_enum: {
|
|
||||||
None: 'Null',
|
|
||||||
All: 'Null',
|
|
||||||
AllFungible: 'Null',
|
|
||||||
AllNonFungible: 'Null',
|
|
||||||
AllAbstractFungible: 'Vec<u8>',
|
|
||||||
AllAbstractNonFungible: 'Vec<u8>',
|
|
||||||
AllConcreteFungible: 'MultiLocation',
|
|
||||||
AllConcreteNonFungible: 'MultiLocation',
|
|
||||||
AbstractFungible: 'AbstractFungible',
|
|
||||||
AbstractNonFungible: 'AbstractNonFungible',
|
|
||||||
ConcreteFungible: 'ConcreteFungible',
|
|
||||||
ConcreteNonFungible: 'ConcreteNonFungible'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
VersionedMultiAsset: {
|
|
||||||
_enum: {
|
|
||||||
V0: 'MultiAsset'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
DepositAsset: {
|
|
||||||
assets: 'Vec<MultiAsset>',
|
|
||||||
dest: 'MultiLocation'
|
|
||||||
},
|
|
||||||
DepositReserveAsset: {
|
|
||||||
assets: 'Vec<MultiAsset>',
|
|
||||||
dest: 'MultiLocation',
|
|
||||||
effects: 'Vec<Order>'
|
|
||||||
},
|
|
||||||
ExchangeAsset: {
|
|
||||||
give: 'Vec<MultiAsset>',
|
|
||||||
receive: 'Vec<MultiAsset>'
|
|
||||||
},
|
|
||||||
InitiateReserveWithdraw: {
|
|
||||||
assets: 'Vec<MultiAsset>',
|
|
||||||
reserve: 'MultiLocation',
|
|
||||||
effects: 'Vec<Order>'
|
|
||||||
},
|
|
||||||
InitiateTeleport: {
|
|
||||||
assets: 'Vec<MultiAsset>',
|
|
||||||
dest: 'MultiLocation',
|
|
||||||
effects: 'Vec<Order>'
|
|
||||||
},
|
|
||||||
QueryHolding: {
|
|
||||||
queryId: 'Compact<u64>',
|
|
||||||
dest: 'MultiLocation',
|
|
||||||
assets: 'Vec<MultiAsset>'
|
|
||||||
},
|
|
||||||
Order: {
|
|
||||||
_enum: {
|
|
||||||
Null: 'Null',
|
|
||||||
DepositAsset: 'DepositAsset',
|
|
||||||
DepositReserveAsset: 'DepositReserveAsset',
|
|
||||||
ExchangeAsset: 'ExchangeAsset',
|
|
||||||
InitiateReserveWithdraw: 'InitiateReserveWithdraw',
|
|
||||||
InitiateTeleport: 'InitiateTeleport',
|
|
||||||
QueryHolding: 'QueryHolding'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
MessagingStateSnapshot: {
|
MessagingStateSnapshot: {
|
||||||
relayDispatchQueueSize: '(u32, u32)',
|
relayDispatchQueueSize: '(u32, u32)',
|
||||||
egressChannels: 'Vec<MessagingStateSnapshotEgressEntry>'
|
egressChannels: 'Vec<MessagingStateSnapshotEgressEntry>'
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { BTreeMap, BitVec, Bytes, Compact, Enum, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
|
import type { BTreeMap, BitVec, Bytes, Enum, Option, Struct, U8aFixed, Vec, bool, u32 } from '@polkadot/types';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { AccountId, Balance, BalanceOf, BlockNumber, H256, Hash, StorageProof, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BalanceOf, BlockNumber, H256, Hash, Header, StorageProof, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
|
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
|
||||||
|
|
||||||
/** @name AbridgedCandidateReceipt */
|
/** @name AbridgedCandidateReceipt */
|
||||||
export interface AbridgedCandidateReceipt extends Struct {
|
export interface AbridgedCandidateReceipt extends Struct {
|
||||||
@@ -41,61 +42,6 @@ export interface AbridgedHrmpChannel extends Struct {
|
|||||||
readonly mqcHead: Option<Hash>;
|
readonly mqcHead: Option<Hash>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name AbstractFungible */
|
|
||||||
export interface AbstractFungible extends Struct {
|
|
||||||
readonly id: Bytes;
|
|
||||||
readonly instance: Compact<u128>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name AbstractNonFungible */
|
|
||||||
export interface AbstractNonFungible extends Struct {
|
|
||||||
readonly class: Bytes;
|
|
||||||
readonly instance: AssetInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name AccountId32Junction */
|
|
||||||
export interface AccountId32Junction extends Struct {
|
|
||||||
readonly network: NetworkId;
|
|
||||||
readonly id: AccountId;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name AccountIndex64Junction */
|
|
||||||
export interface AccountIndex64Junction extends Struct {
|
|
||||||
readonly network: NetworkId;
|
|
||||||
readonly index: Compact<u64>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name AccountKey20Junction */
|
|
||||||
export interface AccountKey20Junction extends Struct {
|
|
||||||
readonly network: NetworkId;
|
|
||||||
readonly index: U8aFixed;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name AssetInstance */
|
|
||||||
export interface AssetInstance extends Enum {
|
|
||||||
readonly isUndefined: boolean;
|
|
||||||
readonly isIndex8: boolean;
|
|
||||||
readonly asIndex8: u8;
|
|
||||||
readonly isIndex16: boolean;
|
|
||||||
readonly asIndex16: Compact<u16>;
|
|
||||||
readonly isIndex32: boolean;
|
|
||||||
readonly asIndex32: Compact<u32>;
|
|
||||||
readonly isIndex64: boolean;
|
|
||||||
readonly asIndex64: Compact<u64>;
|
|
||||||
readonly isIndex128: boolean;
|
|
||||||
readonly asIndex128: Compact<u128>;
|
|
||||||
readonly isArray4: boolean;
|
|
||||||
readonly asArray4: U8aFixed;
|
|
||||||
readonly isArray8: boolean;
|
|
||||||
readonly asArray8: U8aFixed;
|
|
||||||
readonly isArray16: boolean;
|
|
||||||
readonly asArray16: U8aFixed;
|
|
||||||
readonly isArray32: boolean;
|
|
||||||
readonly asArray32: U8aFixed;
|
|
||||||
readonly isBlob: boolean;
|
|
||||||
readonly asBlob: Bytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name AssignmentId */
|
/** @name AssignmentId */
|
||||||
export interface AssignmentId extends AccountId {}
|
export interface AssignmentId extends AccountId {}
|
||||||
|
|
||||||
@@ -135,12 +81,6 @@ export interface BackedCandidate extends Struct {
|
|||||||
readonly validatorIndices: BitVec;
|
readonly validatorIndices: BitVec;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name Balances */
|
|
||||||
export interface Balances extends Struct {
|
|
||||||
readonly queryId: Compact<u64>;
|
|
||||||
readonly assets: Vec<MultiAsset>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name Bidder */
|
/** @name Bidder */
|
||||||
export interface Bidder extends Enum {
|
export interface Bidder extends Enum {
|
||||||
readonly isNew: boolean;
|
readonly isNew: boolean;
|
||||||
@@ -170,13 +110,14 @@ export interface CandidateCommitments extends Struct {
|
|||||||
/** @name CandidateDescriptor */
|
/** @name CandidateDescriptor */
|
||||||
export interface CandidateDescriptor extends Struct {
|
export interface CandidateDescriptor extends Struct {
|
||||||
readonly paraId: ParaId;
|
readonly paraId: ParaId;
|
||||||
readonly relayParent: Hash;
|
readonly relayParent: RelayChainHash;
|
||||||
readonly collatorId: CollatorId;
|
readonly collatorId: CollatorId;
|
||||||
readonly persistedValidationDataHash: Hash;
|
readonly persistedValidationDataHash: Hash;
|
||||||
readonly povHash: Hash;
|
readonly povHash: Hash;
|
||||||
readonly erasureRoot: Hash;
|
readonly erasureRoot: Hash;
|
||||||
readonly signature: CollatorSignature;
|
readonly signature: CollatorSignature;
|
||||||
readonly paraHead: Hash;
|
readonly paraHead: Hash;
|
||||||
|
readonly validationCodeHash: Hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name CandidateHash */
|
/** @name CandidateHash */
|
||||||
@@ -211,18 +152,6 @@ export interface CommittedCandidateReceipt extends Struct {
|
|||||||
readonly commitments: CandidateCommitments;
|
readonly commitments: CandidateCommitments;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name ConcreteFungible */
|
|
||||||
export interface ConcreteFungible extends Struct {
|
|
||||||
readonly id: MultiLocation;
|
|
||||||
readonly amount: Compact<u128>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name ConcreteNonFungible */
|
|
||||||
export interface ConcreteNonFungible extends Struct {
|
|
||||||
readonly class: MultiLocation;
|
|
||||||
readonly instance: AssetInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name CoreAssignment */
|
/** @name CoreAssignment */
|
||||||
export interface CoreAssignment extends Struct {
|
export interface CoreAssignment extends Struct {
|
||||||
readonly core: CoreIndex;
|
readonly core: CoreIndex;
|
||||||
@@ -241,17 +170,19 @@ export interface CoreOccupied extends Enum {
|
|||||||
readonly isParachain: boolean;
|
readonly isParachain: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name DepositAsset */
|
/** @name DisputeStatement */
|
||||||
export interface DepositAsset extends Struct {
|
export interface DisputeStatement extends Enum {
|
||||||
readonly assets: Vec<MultiAsset>;
|
readonly isValid: boolean;
|
||||||
readonly dest: MultiLocation;
|
readonly asValid: ValidDisputeStatementKind;
|
||||||
|
readonly isInvalid: boolean;
|
||||||
|
readonly asInvalid: InvalidDisputeStatementKind;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name DepositReserveAsset */
|
/** @name DisputeStatementSet */
|
||||||
export interface DepositReserveAsset extends Struct {
|
export interface DisputeStatementSet extends Struct {
|
||||||
readonly assets: Vec<MultiAsset>;
|
readonly candidateHash: CandidateHash;
|
||||||
readonly dest: MultiLocation;
|
readonly session: SessionIndex;
|
||||||
readonly effects: Vec<Order>;
|
readonly statements: Vec<ITuple<[DisputeStatement, ValidatorIndex, ValidatorSignature]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name DoubleVoteReport */
|
/** @name DoubleVoteReport */
|
||||||
@@ -266,10 +197,18 @@ export interface DoubleVoteReport extends Struct {
|
|||||||
/** @name DownwardMessage */
|
/** @name DownwardMessage */
|
||||||
export interface DownwardMessage extends Bytes {}
|
export interface DownwardMessage extends Bytes {}
|
||||||
|
|
||||||
/** @name ExchangeAsset */
|
/** @name ExplicitDisputeStatement */
|
||||||
export interface ExchangeAsset extends Struct {
|
export interface ExplicitDisputeStatement extends Struct {
|
||||||
readonly give: Vec<MultiAsset>;
|
readonly valid: bool;
|
||||||
readonly receive: Vec<MultiAsset>;
|
readonly candidateHash: CandidateHash;
|
||||||
|
readonly session: SessionIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name GlobalValidationData */
|
||||||
|
export interface GlobalValidationData extends Struct {
|
||||||
|
readonly maxCodeSize: u32;
|
||||||
|
readonly maxHeadDataSize: u32;
|
||||||
|
readonly blockNumber: BlockNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name GlobalValidationSchedule */
|
/** @name GlobalValidationSchedule */
|
||||||
@@ -392,38 +331,9 @@ export interface IncomingParachainFixed extends Struct {
|
|||||||
readonly initialHeadData: HeadData;
|
readonly initialHeadData: HeadData;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name InitiateReserveWithdraw */
|
/** @name InvalidDisputeStatementKind */
|
||||||
export interface InitiateReserveWithdraw extends Struct {
|
export interface InvalidDisputeStatementKind extends Enum {
|
||||||
readonly assets: Vec<MultiAsset>;
|
readonly isExplicit: boolean;
|
||||||
readonly reserve: MultiLocation;
|
|
||||||
readonly effects: Vec<Order>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name InitiateTeleport */
|
|
||||||
export interface InitiateTeleport extends Struct {
|
|
||||||
readonly assets: Vec<MultiAsset>;
|
|
||||||
readonly dest: MultiLocation;
|
|
||||||
readonly effects: Vec<Order>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name Junction */
|
|
||||||
export interface Junction extends Enum {
|
|
||||||
readonly isParent: boolean;
|
|
||||||
readonly isParachain: boolean;
|
|
||||||
readonly asParachain: Compact<u32>;
|
|
||||||
readonly isAccountId32: boolean;
|
|
||||||
readonly asAccountId32: AccountId32Junction;
|
|
||||||
readonly isAccountIndex64: boolean;
|
|
||||||
readonly asAccountIndex64: AccountIndex64Junction;
|
|
||||||
readonly isAccountKey20: boolean;
|
|
||||||
readonly asAccountKey20: AccountKey20Junction;
|
|
||||||
readonly isPalletInstance: boolean;
|
|
||||||
readonly asPalletInstance: u8;
|
|
||||||
readonly isGeneralIndex: boolean;
|
|
||||||
readonly asGeneralIndex: Compact<u128>;
|
|
||||||
readonly isGeneralKey: boolean;
|
|
||||||
readonly asGeneralKey: Bytes;
|
|
||||||
readonly isOnlyChild: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name LeasePeriod */
|
/** @name LeasePeriod */
|
||||||
@@ -457,51 +367,8 @@ export interface MessagingStateSnapshot extends Struct {
|
|||||||
/** @name MessagingStateSnapshotEgressEntry */
|
/** @name MessagingStateSnapshotEgressEntry */
|
||||||
export interface MessagingStateSnapshotEgressEntry extends ITuple<[ParaId, AbridgedHrmpChannel]> {}
|
export interface MessagingStateSnapshotEgressEntry extends ITuple<[ParaId, AbridgedHrmpChannel]> {}
|
||||||
|
|
||||||
/** @name MultiAsset */
|
/** @name MultiDisputeStatementSet */
|
||||||
export interface MultiAsset extends Enum {
|
export interface MultiDisputeStatementSet extends Vec<DisputeStatementSet> {}
|
||||||
readonly isNone: boolean;
|
|
||||||
readonly isAll: boolean;
|
|
||||||
readonly isAllFungible: boolean;
|
|
||||||
readonly isAllNonFungible: boolean;
|
|
||||||
readonly isAllAbstractFungible: boolean;
|
|
||||||
readonly asAllAbstractFungible: Bytes;
|
|
||||||
readonly isAllAbstractNonFungible: boolean;
|
|
||||||
readonly asAllAbstractNonFungible: Bytes;
|
|
||||||
readonly isAllConcreteFungible: boolean;
|
|
||||||
readonly asAllConcreteFungible: MultiLocation;
|
|
||||||
readonly isAllConcreteNonFungible: boolean;
|
|
||||||
readonly asAllConcreteNonFungible: MultiLocation;
|
|
||||||
readonly isAbstractFungible: boolean;
|
|
||||||
readonly asAbstractFungible: AbstractFungible;
|
|
||||||
readonly isAbstractNonFungible: boolean;
|
|
||||||
readonly asAbstractNonFungible: AbstractNonFungible;
|
|
||||||
readonly isConcreteFungible: boolean;
|
|
||||||
readonly asConcreteFungible: ConcreteFungible;
|
|
||||||
readonly isConcreteNonFungible: boolean;
|
|
||||||
readonly asConcreteNonFungible: ConcreteNonFungible;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name MultiLocation */
|
|
||||||
export interface MultiLocation extends Enum {
|
|
||||||
readonly isNull: boolean;
|
|
||||||
readonly isX1: boolean;
|
|
||||||
readonly asX1: Junction;
|
|
||||||
readonly isX2: boolean;
|
|
||||||
readonly asX2: ITuple<[Junction, Junction]>;
|
|
||||||
readonly isX3: boolean;
|
|
||||||
readonly asX3: ITuple<[Junction, Junction, Junction]>;
|
|
||||||
readonly isX4: boolean;
|
|
||||||
readonly asX4: ITuple<[Junction, Junction, Junction, Junction]>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name NetworkId */
|
|
||||||
export interface NetworkId extends Enum {
|
|
||||||
readonly isAny: boolean;
|
|
||||||
readonly isNamed: boolean;
|
|
||||||
readonly asNamed: Bytes;
|
|
||||||
readonly isPolkadot: boolean;
|
|
||||||
readonly isKusama: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name NewBidder */
|
/** @name NewBidder */
|
||||||
export interface NewBidder extends Struct {
|
export interface NewBidder extends Struct {
|
||||||
@@ -509,30 +376,6 @@ export interface NewBidder extends Struct {
|
|||||||
readonly sub: SubId;
|
readonly sub: SubId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name Order */
|
|
||||||
export interface Order extends Enum {
|
|
||||||
readonly isNull: boolean;
|
|
||||||
readonly isDepositAsset: boolean;
|
|
||||||
readonly asDepositAsset: DepositAsset;
|
|
||||||
readonly isDepositReserveAsset: boolean;
|
|
||||||
readonly asDepositReserveAsset: DepositReserveAsset;
|
|
||||||
readonly isExchangeAsset: boolean;
|
|
||||||
readonly asExchangeAsset: ExchangeAsset;
|
|
||||||
readonly isInitiateReserveWithdraw: boolean;
|
|
||||||
readonly asInitiateReserveWithdraw: InitiateReserveWithdraw;
|
|
||||||
readonly isInitiateTeleport: boolean;
|
|
||||||
readonly asInitiateTeleport: InitiateTeleport;
|
|
||||||
readonly isQueryHolding: boolean;
|
|
||||||
readonly asQueryHolding: QueryHolding;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name OriginKind */
|
|
||||||
export interface OriginKind extends Enum {
|
|
||||||
readonly isNative: boolean;
|
|
||||||
readonly isSovereignAccount: boolean;
|
|
||||||
readonly isSuperuser: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name OutboundHrmpMessage */
|
/** @name OutboundHrmpMessage */
|
||||||
export interface OutboundHrmpMessage extends Struct {
|
export interface OutboundHrmpMessage extends Struct {
|
||||||
readonly recipient: u32;
|
readonly recipient: u32;
|
||||||
@@ -563,6 +406,14 @@ export interface ParachainProposal extends Struct {
|
|||||||
readonly balance: Balance;
|
readonly balance: Balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @name ParachainsInherentData */
|
||||||
|
export interface ParachainsInherentData extends Struct {
|
||||||
|
readonly bitfields: SignedAvailabilityBitfields;
|
||||||
|
readonly backedCandidates: Vec<BackedCandidate>;
|
||||||
|
readonly disputes: MultiDisputeStatementSet;
|
||||||
|
readonly parentHeader: Header;
|
||||||
|
}
|
||||||
|
|
||||||
/** @name ParaGenesisArgs */
|
/** @name ParaGenesisArgs */
|
||||||
export interface ParaGenesisArgs extends Struct {
|
export interface ParaGenesisArgs extends Struct {
|
||||||
readonly genesisHead: Bytes;
|
readonly genesisHead: Bytes;
|
||||||
@@ -575,7 +426,9 @@ export interface ParaId extends u32 {}
|
|||||||
|
|
||||||
/** @name ParaInfo */
|
/** @name ParaInfo */
|
||||||
export interface ParaInfo extends Struct {
|
export interface ParaInfo extends Struct {
|
||||||
readonly scheduling: Scheduling;
|
readonly manager: AccountId;
|
||||||
|
readonly deposit: Balance;
|
||||||
|
readonly locked: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name ParaLifecycle */
|
/** @name ParaLifecycle */
|
||||||
@@ -627,13 +480,6 @@ export interface PersistedValidationData extends Struct {
|
|||||||
readonly maxPovSize: u32;
|
readonly maxPovSize: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name QueryHolding */
|
|
||||||
export interface QueryHolding extends Struct {
|
|
||||||
readonly queryId: Compact<u64>;
|
|
||||||
readonly dest: MultiLocation;
|
|
||||||
readonly assets: Vec<MultiAsset>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name QueuedParathread */
|
/** @name QueuedParathread */
|
||||||
export interface QueuedParathread extends Struct {
|
export interface QueuedParathread extends Struct {
|
||||||
readonly claim: ParathreadEntry;
|
readonly claim: ParathreadEntry;
|
||||||
@@ -652,27 +498,9 @@ export interface RelayChainBlockNumber extends u32 {}
|
|||||||
/** @name RelayChainHash */
|
/** @name RelayChainHash */
|
||||||
export interface RelayChainHash extends Hash {}
|
export interface RelayChainHash extends Hash {}
|
||||||
|
|
||||||
/** @name RelayedFrom */
|
|
||||||
export interface RelayedFrom extends Struct {
|
|
||||||
readonly superorigin: MultiLocation;
|
|
||||||
readonly inner: VersionedXcm;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name RelayTo */
|
|
||||||
export interface RelayTo extends Struct {
|
|
||||||
readonly dest: MultiLocation;
|
|
||||||
readonly inner: VersionedXcm;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name Remark */
|
/** @name Remark */
|
||||||
export interface Remark extends U8aFixed {}
|
export interface Remark extends U8aFixed {}
|
||||||
|
|
||||||
/** @name ReserveAssetDeposit */
|
|
||||||
export interface ReserveAssetDeposit extends Struct {
|
|
||||||
readonly assets: Vec<MultiAsset>;
|
|
||||||
readonly effects: Vec<Order>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name Retriable */
|
/** @name Retriable */
|
||||||
export interface Retriable extends Enum {
|
export interface Retriable extends Enum {
|
||||||
readonly isNever: boolean;
|
readonly isNever: boolean;
|
||||||
@@ -686,6 +514,12 @@ export interface Scheduling extends Enum {
|
|||||||
readonly isDynamic: boolean;
|
readonly isDynamic: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @name ServiceQuality */
|
||||||
|
export interface ServiceQuality extends Enum {
|
||||||
|
readonly isOrdered: boolean;
|
||||||
|
readonly isFast: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
/** @name SessionInfo */
|
/** @name SessionInfo */
|
||||||
export interface SessionInfo extends Struct {
|
export interface SessionInfo extends Struct {
|
||||||
readonly validators: Vec<ValidatorId>;
|
readonly validators: Vec<ValidatorId>;
|
||||||
@@ -750,18 +584,6 @@ export interface SubId extends u32 {}
|
|||||||
/** @name SystemInherentData */
|
/** @name SystemInherentData */
|
||||||
export interface SystemInherentData extends ParachainInherentData {}
|
export interface SystemInherentData extends ParachainInherentData {}
|
||||||
|
|
||||||
/** @name TeleportAsset */
|
|
||||||
export interface TeleportAsset extends Struct {
|
|
||||||
readonly assets: Vec<MultiAsset>;
|
|
||||||
readonly effects: Vec<Order>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name Transact */
|
|
||||||
export interface Transact extends Struct {
|
|
||||||
readonly originType: OriginKind;
|
|
||||||
readonly call: Bytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name TransientValidationData */
|
/** @name TransientValidationData */
|
||||||
export interface TransientValidationData extends Struct {
|
export interface TransientValidationData extends Struct {
|
||||||
readonly maxCodeSize: u32;
|
readonly maxCodeSize: u32;
|
||||||
@@ -799,6 +621,14 @@ export interface ValidationFunctionParams extends Struct {
|
|||||||
/** @name ValidatorSignature */
|
/** @name ValidatorSignature */
|
||||||
export interface ValidatorSignature extends Signature {}
|
export interface ValidatorSignature extends Signature {}
|
||||||
|
|
||||||
|
/** @name ValidDisputeStatementKind */
|
||||||
|
export interface ValidDisputeStatementKind extends Enum {
|
||||||
|
readonly isExplicit: boolean;
|
||||||
|
readonly isBackingSeconded: boolean;
|
||||||
|
readonly isBackingValid: boolean;
|
||||||
|
readonly isApprovalChecking: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
/** @name ValidityAttestation */
|
/** @name ValidityAttestation */
|
||||||
export interface ValidityAttestation extends Enum {
|
export interface ValidityAttestation extends Enum {
|
||||||
readonly isNever: boolean;
|
readonly isNever: boolean;
|
||||||
@@ -811,24 +641,6 @@ export interface ValidityAttestation extends Enum {
|
|||||||
/** @name VecInboundHrmpMessage */
|
/** @name VecInboundHrmpMessage */
|
||||||
export interface VecInboundHrmpMessage extends Vec<InboundHrmpMessage> {}
|
export interface VecInboundHrmpMessage extends Vec<InboundHrmpMessage> {}
|
||||||
|
|
||||||
/** @name VersionedMultiAsset */
|
|
||||||
export interface VersionedMultiAsset extends Enum {
|
|
||||||
readonly isV0: boolean;
|
|
||||||
readonly asV0: MultiAsset;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name VersionedMultiLocation */
|
|
||||||
export interface VersionedMultiLocation extends Enum {
|
|
||||||
readonly isV0: boolean;
|
|
||||||
readonly asV0: MultiLocation;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name VersionedXcm */
|
|
||||||
export interface VersionedXcm extends Enum {
|
|
||||||
readonly isV0: boolean;
|
|
||||||
readonly asV0: Xcm;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name WinnersData */
|
/** @name WinnersData */
|
||||||
export interface WinnersData extends Vec<WinnersDataTuple> {}
|
export interface WinnersData extends Vec<WinnersDataTuple> {}
|
||||||
|
|
||||||
@@ -841,53 +653,4 @@ export interface WinningData extends Vec<WinningDataEntry> {}
|
|||||||
/** @name WinningDataEntry */
|
/** @name WinningDataEntry */
|
||||||
export interface WinningDataEntry extends Option<ITuple<[AccountId, ParaId, BalanceOf]>> {}
|
export interface WinningDataEntry extends Option<ITuple<[AccountId, ParaId, BalanceOf]>> {}
|
||||||
|
|
||||||
/** @name WithdrawAsset */
|
|
||||||
export interface WithdrawAsset extends Struct {
|
|
||||||
readonly assets: Vec<MultiAsset>;
|
|
||||||
readonly effects: Vec<Order>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name Xcm */
|
|
||||||
export interface Xcm extends Enum {
|
|
||||||
readonly isWithdrawAsset: boolean;
|
|
||||||
readonly asWithdrawAsset: WithdrawAsset;
|
|
||||||
readonly isReserveAssetDeposit: boolean;
|
|
||||||
readonly asReserveAssetDeposit: ReserveAssetDeposit;
|
|
||||||
readonly isTeleportAsset: boolean;
|
|
||||||
readonly asTeleportAsset: TeleportAsset;
|
|
||||||
readonly isBalances: boolean;
|
|
||||||
readonly asBalances: Balances;
|
|
||||||
readonly isTransact: boolean;
|
|
||||||
readonly asTransact: Transact;
|
|
||||||
readonly isRelayTo: boolean;
|
|
||||||
readonly asRelayTo: RelayTo;
|
|
||||||
readonly isRelayedFrom: boolean;
|
|
||||||
readonly asRelayedFrom: RelayedFrom;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name XcmError */
|
|
||||||
export interface XcmError extends Enum {
|
|
||||||
readonly isUndefined: boolean;
|
|
||||||
readonly isUnimplemented: boolean;
|
|
||||||
readonly isUnhandledXcmVersion: boolean;
|
|
||||||
readonly isUnhandledXcmMessage: boolean;
|
|
||||||
readonly isUnhandledEffect: boolean;
|
|
||||||
readonly isEscalationOfPrivilege: boolean;
|
|
||||||
readonly isUntrustedReserveLocation: boolean;
|
|
||||||
readonly isUntrustedTeleportLocation: boolean;
|
|
||||||
readonly isDestinationBufferOverflow: boolean;
|
|
||||||
readonly isCannotReachDestination: boolean;
|
|
||||||
readonly isMultiLocationFull: boolean;
|
|
||||||
readonly isFailedToDecode: boolean;
|
|
||||||
readonly isBadOrigin: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name XcmResult */
|
|
||||||
export interface XcmResult extends Enum {
|
|
||||||
readonly isOk: boolean;
|
|
||||||
readonly asOk: ITuple<[]>;
|
|
||||||
readonly isErr: boolean;
|
|
||||||
readonly asErr: XcmError;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PHANTOM_PARACHAINS = 'parachains';
|
export type PHANTOM_PARACHAINS = 'parachains';
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ export default {
|
|||||||
System: 'SystemOrigin'
|
System: 'SystemOrigin'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
PalletId: 'LockIdentifier',
|
||||||
PalletsOrigin: 'OriginCaller',
|
PalletsOrigin: 'OriginCaller',
|
||||||
PalletVersion: {
|
PalletVersion: {
|
||||||
major: 'u16',
|
major: 'u16',
|
||||||
|
|||||||
@@ -202,6 +202,9 @@ export interface OriginCaller extends Enum {
|
|||||||
readonly asSystem: SystemOrigin;
|
readonly asSystem: SystemOrigin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @name PalletId */
|
||||||
|
export interface PalletId extends LockIdentifier {}
|
||||||
|
|
||||||
/** @name PalletsOrigin */
|
/** @name PalletsOrigin */
|
||||||
export interface PalletsOrigin extends OriginCaller {}
|
export interface PalletsOrigin extends OriginCaller {}
|
||||||
|
|
||||||
|
|||||||
@@ -12,22 +12,27 @@ import type { Definitions } from '../../types';
|
|||||||
// pub struct SessionKeys {
|
// pub struct SessionKeys {
|
||||||
// Here we revert to tuples to keep the interfaces "opaque", as per the use
|
// Here we revert to tuples to keep the interfaces "opaque", as per the use
|
||||||
const keyTypes = {
|
const keyTypes = {
|
||||||
|
// key for beefy
|
||||||
|
BeefyKey: '[u8; 33]',
|
||||||
|
|
||||||
// default to Substrate master defaults, 4 keys (polkadot master, 5 keys)
|
// default to Substrate master defaults, 4 keys (polkadot master, 5 keys)
|
||||||
Keys: 'SessionKeys4',
|
Keys: 'SessionKeys4',
|
||||||
|
|
||||||
// shortcuts for 1-9 key tuples
|
|
||||||
SessionKeys1: '(AccountId)',
|
SessionKeys1: '(AccountId)',
|
||||||
SessionKeys2: '(AccountId, AccountId)',
|
SessionKeys2: '(AccountId, AccountId)',
|
||||||
// older substrate master
|
|
||||||
SessionKeys3: '(AccountId, AccountId, AccountId)',
|
SessionKeys3: '(AccountId, AccountId, AccountId)',
|
||||||
// CC2, Substrate master
|
|
||||||
SessionKeys4: '(AccountId, AccountId, AccountId, AccountId)',
|
SessionKeys4: '(AccountId, AccountId, AccountId, AccountId)',
|
||||||
// CC3
|
|
||||||
SessionKeys5: '(AccountId, AccountId, AccountId, AccountId, AccountId)',
|
SessionKeys5: '(AccountId, AccountId, AccountId, AccountId, AccountId)',
|
||||||
SessionKeys6: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)',
|
SessionKeys6: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)',
|
||||||
|
SessionKeys6B: '(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)',
|
||||||
SessionKeys7: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)',
|
SessionKeys7: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)',
|
||||||
|
SessionKeys7B: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)',
|
||||||
SessionKeys8: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)',
|
SessionKeys8: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)',
|
||||||
SessionKeys9: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)'
|
SessionKeys8B: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)',
|
||||||
|
SessionKeys9: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)',
|
||||||
|
SessionKeys9B: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)',
|
||||||
|
SessionKeys10: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)',
|
||||||
|
SessionKeys10B: '(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Struct, Vec, u32 } from '@polkadot/types';
|
import type { Bytes, Struct, U8aFixed, Vec, u32 } from '@polkadot/types';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { AccountId, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { Exposure } from '@polkadot/types/interfaces/staking';
|
import type { Exposure } from '@polkadot/types/interfaces/staking';
|
||||||
|
|
||||||
|
/** @name BeefyKey */
|
||||||
|
export interface BeefyKey extends U8aFixed {}
|
||||||
|
|
||||||
/** @name FullIdentification */
|
/** @name FullIdentification */
|
||||||
export interface FullIdentification extends Exposure {}
|
export interface FullIdentification extends Exposure {}
|
||||||
|
|
||||||
@@ -28,6 +31,12 @@ export interface SessionIndex extends u32 {}
|
|||||||
/** @name SessionKeys1 */
|
/** @name SessionKeys1 */
|
||||||
export interface SessionKeys1 extends AccountId {}
|
export interface SessionKeys1 extends AccountId {}
|
||||||
|
|
||||||
|
/** @name SessionKeys10 */
|
||||||
|
export interface SessionKeys10 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
|
||||||
|
|
||||||
|
/** @name SessionKeys10B */
|
||||||
|
export interface SessionKeys10B extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey]> {}
|
||||||
|
|
||||||
/** @name SessionKeys2 */
|
/** @name SessionKeys2 */
|
||||||
export interface SessionKeys2 extends ITuple<[AccountId, AccountId]> {}
|
export interface SessionKeys2 extends ITuple<[AccountId, AccountId]> {}
|
||||||
|
|
||||||
@@ -43,15 +52,27 @@ export interface SessionKeys5 extends ITuple<[AccountId, AccountId, AccountId, A
|
|||||||
/** @name SessionKeys6 */
|
/** @name SessionKeys6 */
|
||||||
export interface SessionKeys6 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
|
export interface SessionKeys6 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
|
||||||
|
|
||||||
|
/** @name SessionKeys6B */
|
||||||
|
export interface SessionKeys6B extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey]> {}
|
||||||
|
|
||||||
/** @name SessionKeys7 */
|
/** @name SessionKeys7 */
|
||||||
export interface SessionKeys7 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
|
export interface SessionKeys7 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
|
||||||
|
|
||||||
|
/** @name SessionKeys7B */
|
||||||
|
export interface SessionKeys7B extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey]> {}
|
||||||
|
|
||||||
/** @name SessionKeys8 */
|
/** @name SessionKeys8 */
|
||||||
export interface SessionKeys8 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
|
export interface SessionKeys8 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
|
||||||
|
|
||||||
|
/** @name SessionKeys8B */
|
||||||
|
export interface SessionKeys8B extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey]> {}
|
||||||
|
|
||||||
/** @name SessionKeys9 */
|
/** @name SessionKeys9 */
|
||||||
export interface SessionKeys9 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
|
export interface SessionKeys9 extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId]> {}
|
||||||
|
|
||||||
|
/** @name SessionKeys9B */
|
||||||
|
export interface SessionKeys9B extends ITuple<[AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey]> {}
|
||||||
|
|
||||||
/** @name ValidatorCount */
|
/** @name ValidatorCount */
|
||||||
export interface ValidatorCount extends u32 {}
|
export interface ValidatorCount extends u32 {}
|
||||||
|
|
||||||
|
|||||||
@@ -37,11 +37,13 @@ export * from './txpayment/types';
|
|||||||
export * from './utility/types';
|
export * from './utility/types';
|
||||||
export * from './vesting/types';
|
export * from './vesting/types';
|
||||||
export * from './attestations/types';
|
export * from './attestations/types';
|
||||||
|
export * from './beefy/types';
|
||||||
export * from './claims/types';
|
export * from './claims/types';
|
||||||
export * from './crowdloan/types';
|
export * from './crowdloan/types';
|
||||||
export * from './parachains/types';
|
export * from './parachains/types';
|
||||||
export * from './poll/types';
|
export * from './poll/types';
|
||||||
export * from './purchase/types';
|
export * from './purchase/types';
|
||||||
|
export * from './xcm/types';
|
||||||
export * from './contractsAbi/types';
|
export * from './contractsAbi/types';
|
||||||
export * from './scaleInfo/types';
|
export * from './scaleInfo/types';
|
||||||
export * from './eth/types';
|
export * from './eth/types';
|
||||||
|
|||||||
@@ -0,0 +1,227 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// order important in structs... :)
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
|
||||||
|
import type { Definitions } from '../../types';
|
||||||
|
|
||||||
|
const xcm = {
|
||||||
|
XcmAssetEffects: {
|
||||||
|
assets: 'Vec<MultiAsset>',
|
||||||
|
effects: 'Vec<XcmOrder>'
|
||||||
|
},
|
||||||
|
XcmWithdrawAsset: 'XcmAssetEffects',
|
||||||
|
XcmReserveAssetDeposit: 'XcmAssetEffects',
|
||||||
|
XcmTeleportAsset: 'XcmAssetEffects',
|
||||||
|
XcmQueryResponse: { queryId: 'Compact<u64>', response: 'XcmResponse' },
|
||||||
|
XcmTransferAsset: { assets: 'Vec<MultiAsset>', dest: 'MultiLocation' },
|
||||||
|
XcmTransferReserveAsset: { assets: 'Vec<MultiAsset>', dest: 'MultiLocation', effects: 'Vec<XcmOrder>' },
|
||||||
|
XcmTransact: { originType: 'XcmOriginKind', requireWeightAtMost: 'u64', call: 'DoubleEncodedCall' },
|
||||||
|
XcmHrmpNewChannelOpenRequest: { sender: 'Compact<u32>', maxMessageSize: 'Compact<u32>', maxCapacity: 'Compact<u32>' },
|
||||||
|
XcmHrmpChannelAccepted: { recipient: 'Compact<u32>' },
|
||||||
|
XcmHrmpChannelClosing: { initiator: 'Compact<u32>', sender: 'Compact<u32>', recipient: 'Compact<u32>' },
|
||||||
|
XcmRelayedFrom: { who: 'MultiLocation', message: 'Xcm' },
|
||||||
|
Xcm: {
|
||||||
|
_enum: {
|
||||||
|
WithdrawAsset: 'XcmWithdrawAsset',
|
||||||
|
ReserveAssetDeposit: 'XcmReserveAssetDeposit',
|
||||||
|
TeleportAsset: 'XcmTeleportAsset',
|
||||||
|
QueryResponse: 'XcmQueryResponse',
|
||||||
|
TransferAsset: 'XcmTransferAsset',
|
||||||
|
TransferReserveAsset: 'XcmTransferReserveAsset',
|
||||||
|
Transact: 'XcmTransact',
|
||||||
|
HrmpNewChannelOpenRequest: 'XcmHrmpNewChannelOpenRequest',
|
||||||
|
HrmpChannelAccepted: 'XcmHrmpChannelAccepted',
|
||||||
|
HrmpChannelClosing: 'XcmHrmpChannelClosing',
|
||||||
|
RelayedFrom: 'XcmRelayedFrom'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
VersionedXcm: {
|
||||||
|
_enum: {
|
||||||
|
V0: 'Xcm'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const xmcOrder = {
|
||||||
|
XcmOrderDepositAsset: { assets: 'Vec<MultiAsset>', dest: 'MultiLocation' },
|
||||||
|
XcmOrderDepositReserveAsset: { assets: 'Vec<MultiAsset>', dest: 'MultiLocation', effects: 'Vec<XcmOrder>' },
|
||||||
|
XcmOrderExchangeAsset: { give: 'Vec<MultiAsset>', receive: 'Vec<MultiAsset>' },
|
||||||
|
XcmOrderInitiateReserveWithdraw: { assets: 'Vec<MultiAsset>', reserve: 'MultiLocation', effects: 'Vec<XcmOrder>' },
|
||||||
|
XcmOrderInitiateTeleport: { assets: 'Vec<MultiAsset>', dest: 'MultiLocation', effects: 'Vec<XcmOrder>' },
|
||||||
|
XcmOrderQueryHolding: { queryId: 'Compact<u64>', dest: 'MultiLocation', assets: 'Vec<MultiAsset>' },
|
||||||
|
XcmOrderBuyExecution: { fees: 'MultiAsset', weight: 'u64', debt: 'u64', haltOnError: 'bool', xcm: 'Vec<Xcm>' },
|
||||||
|
XcmOrder: {
|
||||||
|
_enum: {
|
||||||
|
Null: 'Null',
|
||||||
|
DepositAsset: 'XcmOrderDepositAsset',
|
||||||
|
DepositReserveAsset: 'XcmOrderDepositReserveAsset',
|
||||||
|
ExchangeAsset: 'XcmOrderExchangeAsset',
|
||||||
|
InitiateReserveWithdraw: 'XcmOrderInitiateReserveWithdraw',
|
||||||
|
InitiateTeleport: 'XcmOrderInitiateTeleport',
|
||||||
|
QueryHolding: 'XcmOrderQueryHolding',
|
||||||
|
BuyExecution: 'XcmOrderBuyExecution'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const multiAsset = {
|
||||||
|
MultiAssetAbstractFungible: {
|
||||||
|
id: 'Vec<u8>',
|
||||||
|
instance: 'Compact<u128>'
|
||||||
|
},
|
||||||
|
MultiAssetAbstractNonFungible: {
|
||||||
|
class: 'Vec<u8>',
|
||||||
|
instance: 'AssetInstance'
|
||||||
|
},
|
||||||
|
MultiAssetConcreteFungible: {
|
||||||
|
id: 'MultiLocation',
|
||||||
|
amount: 'Compact<u128>'
|
||||||
|
},
|
||||||
|
MultiAssetConcreteNonFungible: {
|
||||||
|
class: 'MultiLocation',
|
||||||
|
instance: 'AssetInstance'
|
||||||
|
},
|
||||||
|
MultiAsset: {
|
||||||
|
_enum: {
|
||||||
|
None: 'Null',
|
||||||
|
All: 'Null',
|
||||||
|
AllFungible: 'Null',
|
||||||
|
AllNonFungible: 'Null',
|
||||||
|
AllAbstractFungible: 'Vec<u8>',
|
||||||
|
AllAbstractNonFungible: 'Vec<u8>',
|
||||||
|
AllConcreteFungible: 'MultiLocation',
|
||||||
|
AllConcreteNonFungible: 'MultiLocation',
|
||||||
|
AbstractFungible: 'MultiAssetAbstractFungible',
|
||||||
|
AbstractNonFungible: 'MultiAssetAbstractNonFungible',
|
||||||
|
ConcreteFungible: 'MultiAssetConcreteFungible',
|
||||||
|
ConcreteNonFungible: 'MultiAssetConcreteNonFungible'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
VersionedMultiAsset: {
|
||||||
|
_enum: {
|
||||||
|
V0: 'MultiAsset'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
rpc: {},
|
||||||
|
types: {
|
||||||
|
...multiAsset,
|
||||||
|
...xcm,
|
||||||
|
...xmcOrder,
|
||||||
|
DoubleEncodedCall: { encoded: 'Vec<u8>' },
|
||||||
|
NetworkId: {
|
||||||
|
_enum: {
|
||||||
|
Any: 'Null',
|
||||||
|
Named: 'Vec<u8>',
|
||||||
|
Polkadot: 'Null',
|
||||||
|
Kusama: 'Null'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
XcmOriginKind: {
|
||||||
|
_enum: ['Native', 'SovereignAccount', 'Superuser']
|
||||||
|
},
|
||||||
|
XcmResponse: {
|
||||||
|
_enum: {
|
||||||
|
Assets: 'Vec<MultiAsset>'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
XcmError: {
|
||||||
|
_enum: {
|
||||||
|
Undefined: 'Null',
|
||||||
|
Overflow: 'Null',
|
||||||
|
Unimplemented: 'Null',
|
||||||
|
UnhandledXcmVersion: 'Null',
|
||||||
|
UnhandledXcmMessage: 'Null',
|
||||||
|
UnhandledEffect: 'Null',
|
||||||
|
EscalationOfPrivilege: 'Null',
|
||||||
|
UntrustedReserveLocation: 'Null',
|
||||||
|
UntrustedTeleportLocation: 'Null',
|
||||||
|
DestinationBufferOverflow: 'Null',
|
||||||
|
SendFailed: 'Null', // (#[codec(skip)] &'static str),
|
||||||
|
CannotReachDestination: '(MultiLocation, Xcm)',
|
||||||
|
MultiLocationFull: 'Null',
|
||||||
|
FailedToDecode: 'Null',
|
||||||
|
BadOrigin: 'Null',
|
||||||
|
ExceedsMaxMessageSize: 'Null',
|
||||||
|
FailedToTransactAsset: 'Null', // (#[codec(skip)] &'static str),
|
||||||
|
WeightLimitReached: 'Null',
|
||||||
|
Wildcard: 'Null',
|
||||||
|
TooMuchWeightRequired: 'Null',
|
||||||
|
NotHoldingFees: 'Null',
|
||||||
|
WeightNotComputable: 'Null',
|
||||||
|
Barrier: 'Null',
|
||||||
|
NotWithdrawable: 'Null',
|
||||||
|
LocationCannotHold: 'Null'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
XcmOutcome: {
|
||||||
|
_enum: {
|
||||||
|
Complete: 'Weight',
|
||||||
|
Incomplete: '(Weight, XcmError)',
|
||||||
|
Error: 'XcmError'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
MultiLocation: {
|
||||||
|
_enum: {
|
||||||
|
Null: 'Null',
|
||||||
|
X1: 'Junction',
|
||||||
|
X2: '(Junction, Junction)',
|
||||||
|
X3: '(Junction, Junction, Junction)',
|
||||||
|
X4: '(Junction, Junction, Junction, Junction)',
|
||||||
|
X5: '(Junction, Junction, Junction, Junction, Junction)',
|
||||||
|
X6: '(Junction, Junction, Junction, Junction, Junction, Junction)',
|
||||||
|
X7: '(Junction, Junction, Junction, Junction, Junction, Junction, Junction)',
|
||||||
|
X8: '(Junction, Junction, Junction, Junction, Junction, Junction, Junction, Junction)'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
AccountId32Junction: {
|
||||||
|
network: 'NetworkId',
|
||||||
|
id: 'AccountId'
|
||||||
|
},
|
||||||
|
AccountIndex64Junction: {
|
||||||
|
network: 'NetworkId',
|
||||||
|
index: 'Compact<u64>'
|
||||||
|
},
|
||||||
|
AccountKey20Junction: {
|
||||||
|
network: 'NetworkId',
|
||||||
|
index: '[u8; 20]'
|
||||||
|
},
|
||||||
|
Junction: {
|
||||||
|
_enum: {
|
||||||
|
Parent: 'Null',
|
||||||
|
Parachain: 'Compact<u32>',
|
||||||
|
AccountId32: 'AccountId32Junction',
|
||||||
|
AccountIndex64: 'AccountIndex64Junction',
|
||||||
|
AccountKey20: 'AccountKey20Junction',
|
||||||
|
PalletInstance: 'u8',
|
||||||
|
GeneralIndex: 'Compact<u128>',
|
||||||
|
GeneralKey: 'Vec<u8>',
|
||||||
|
OnlyChild: 'Null'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
VersionedMultiLocation: {
|
||||||
|
_enum: {
|
||||||
|
V0: 'MultiLocation'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
AssetInstance: {
|
||||||
|
_enum: {
|
||||||
|
Undefined: 'Null',
|
||||||
|
Index8: 'u8',
|
||||||
|
Index16: 'Compact<u16>',
|
||||||
|
Index32: 'Compact<u32>',
|
||||||
|
Index64: 'Compact<u64>',
|
||||||
|
Index128: 'Compact<u128>',
|
||||||
|
Array4: '[u8; 4]',
|
||||||
|
Array8: '[u8; 8]',
|
||||||
|
Array16: '[u8; 16]',
|
||||||
|
Array32: '[u8; 32]',
|
||||||
|
Blob: 'Vec<u8>'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} as Definitions;
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
export * from './types';
|
||||||
@@ -0,0 +1,385 @@
|
|||||||
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
import type { Bytes, Compact, Enum, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
|
||||||
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
import type { AccountId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
|
/** @name AccountId32Junction */
|
||||||
|
export interface AccountId32Junction extends Struct {
|
||||||
|
readonly network: NetworkId;
|
||||||
|
readonly id: AccountId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name AccountIndex64Junction */
|
||||||
|
export interface AccountIndex64Junction extends Struct {
|
||||||
|
readonly network: NetworkId;
|
||||||
|
readonly index: Compact<u64>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name AccountKey20Junction */
|
||||||
|
export interface AccountKey20Junction extends Struct {
|
||||||
|
readonly network: NetworkId;
|
||||||
|
readonly index: U8aFixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name AssetInstance */
|
||||||
|
export interface AssetInstance extends Enum {
|
||||||
|
readonly isUndefined: boolean;
|
||||||
|
readonly isIndex8: boolean;
|
||||||
|
readonly asIndex8: u8;
|
||||||
|
readonly isIndex16: boolean;
|
||||||
|
readonly asIndex16: Compact<u16>;
|
||||||
|
readonly isIndex32: boolean;
|
||||||
|
readonly asIndex32: Compact<u32>;
|
||||||
|
readonly isIndex64: boolean;
|
||||||
|
readonly asIndex64: Compact<u64>;
|
||||||
|
readonly isIndex128: boolean;
|
||||||
|
readonly asIndex128: Compact<u128>;
|
||||||
|
readonly isArray4: boolean;
|
||||||
|
readonly asArray4: U8aFixed;
|
||||||
|
readonly isArray8: boolean;
|
||||||
|
readonly asArray8: U8aFixed;
|
||||||
|
readonly isArray16: boolean;
|
||||||
|
readonly asArray16: U8aFixed;
|
||||||
|
readonly isArray32: boolean;
|
||||||
|
readonly asArray32: U8aFixed;
|
||||||
|
readonly isBlob: boolean;
|
||||||
|
readonly asBlob: Bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name DoubleEncodedCall */
|
||||||
|
export interface DoubleEncodedCall extends Struct {
|
||||||
|
readonly encoded: Bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name Junction */
|
||||||
|
export interface Junction extends Enum {
|
||||||
|
readonly isParent: boolean;
|
||||||
|
readonly isParachain: boolean;
|
||||||
|
readonly asParachain: Compact<u32>;
|
||||||
|
readonly isAccountId32: boolean;
|
||||||
|
readonly asAccountId32: AccountId32Junction;
|
||||||
|
readonly isAccountIndex64: boolean;
|
||||||
|
readonly asAccountIndex64: AccountIndex64Junction;
|
||||||
|
readonly isAccountKey20: boolean;
|
||||||
|
readonly asAccountKey20: AccountKey20Junction;
|
||||||
|
readonly isPalletInstance: boolean;
|
||||||
|
readonly asPalletInstance: u8;
|
||||||
|
readonly isGeneralIndex: boolean;
|
||||||
|
readonly asGeneralIndex: Compact<u128>;
|
||||||
|
readonly isGeneralKey: boolean;
|
||||||
|
readonly asGeneralKey: Bytes;
|
||||||
|
readonly isOnlyChild: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name MultiAsset */
|
||||||
|
export interface MultiAsset extends Enum {
|
||||||
|
readonly isNone: boolean;
|
||||||
|
readonly isAll: boolean;
|
||||||
|
readonly isAllFungible: boolean;
|
||||||
|
readonly isAllNonFungible: boolean;
|
||||||
|
readonly isAllAbstractFungible: boolean;
|
||||||
|
readonly asAllAbstractFungible: Bytes;
|
||||||
|
readonly isAllAbstractNonFungible: boolean;
|
||||||
|
readonly asAllAbstractNonFungible: Bytes;
|
||||||
|
readonly isAllConcreteFungible: boolean;
|
||||||
|
readonly asAllConcreteFungible: MultiLocation;
|
||||||
|
readonly isAllConcreteNonFungible: boolean;
|
||||||
|
readonly asAllConcreteNonFungible: MultiLocation;
|
||||||
|
readonly isAbstractFungible: boolean;
|
||||||
|
readonly asAbstractFungible: MultiAssetAbstractFungible;
|
||||||
|
readonly isAbstractNonFungible: boolean;
|
||||||
|
readonly asAbstractNonFungible: MultiAssetAbstractNonFungible;
|
||||||
|
readonly isConcreteFungible: boolean;
|
||||||
|
readonly asConcreteFungible: MultiAssetConcreteFungible;
|
||||||
|
readonly isConcreteNonFungible: boolean;
|
||||||
|
readonly asConcreteNonFungible: MultiAssetConcreteNonFungible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name MultiAssetAbstractFungible */
|
||||||
|
export interface MultiAssetAbstractFungible extends Struct {
|
||||||
|
readonly id: Bytes;
|
||||||
|
readonly instance: Compact<u128>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name MultiAssetAbstractNonFungible */
|
||||||
|
export interface MultiAssetAbstractNonFungible extends Struct {
|
||||||
|
readonly class: Bytes;
|
||||||
|
readonly instance: AssetInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name MultiAssetConcreteFungible */
|
||||||
|
export interface MultiAssetConcreteFungible extends Struct {
|
||||||
|
readonly id: MultiLocation;
|
||||||
|
readonly amount: Compact<u128>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name MultiAssetConcreteNonFungible */
|
||||||
|
export interface MultiAssetConcreteNonFungible extends Struct {
|
||||||
|
readonly class: MultiLocation;
|
||||||
|
readonly instance: AssetInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name MultiLocation */
|
||||||
|
export interface MultiLocation extends Enum {
|
||||||
|
readonly isNull: boolean;
|
||||||
|
readonly isX1: boolean;
|
||||||
|
readonly asX1: Junction;
|
||||||
|
readonly isX2: boolean;
|
||||||
|
readonly asX2: ITuple<[Junction, Junction]>;
|
||||||
|
readonly isX3: boolean;
|
||||||
|
readonly asX3: ITuple<[Junction, Junction, Junction]>;
|
||||||
|
readonly isX4: boolean;
|
||||||
|
readonly asX4: ITuple<[Junction, Junction, Junction, Junction]>;
|
||||||
|
readonly isX5: boolean;
|
||||||
|
readonly asX5: ITuple<[Junction, Junction, Junction, Junction, Junction]>;
|
||||||
|
readonly isX6: boolean;
|
||||||
|
readonly asX6: ITuple<[Junction, Junction, Junction, Junction, Junction, Junction]>;
|
||||||
|
readonly isX7: boolean;
|
||||||
|
readonly asX7: ITuple<[Junction, Junction, Junction, Junction, Junction, Junction, Junction]>;
|
||||||
|
readonly isX8: boolean;
|
||||||
|
readonly asX8: ITuple<[Junction, Junction, Junction, Junction, Junction, Junction, Junction, Junction]>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name NetworkId */
|
||||||
|
export interface NetworkId extends Enum {
|
||||||
|
readonly isAny: boolean;
|
||||||
|
readonly isNamed: boolean;
|
||||||
|
readonly asNamed: Bytes;
|
||||||
|
readonly isPolkadot: boolean;
|
||||||
|
readonly isKusama: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name VersionedMultiAsset */
|
||||||
|
export interface VersionedMultiAsset extends Enum {
|
||||||
|
readonly isV0: boolean;
|
||||||
|
readonly asV0: MultiAsset;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name VersionedMultiLocation */
|
||||||
|
export interface VersionedMultiLocation extends Enum {
|
||||||
|
readonly isV0: boolean;
|
||||||
|
readonly asV0: MultiLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name VersionedXcm */
|
||||||
|
export interface VersionedXcm extends Enum {
|
||||||
|
readonly isV0: boolean;
|
||||||
|
readonly asV0: Xcm;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name Xcm */
|
||||||
|
export interface Xcm extends Enum {
|
||||||
|
readonly isWithdrawAsset: boolean;
|
||||||
|
readonly asWithdrawAsset: XcmWithdrawAsset;
|
||||||
|
readonly isReserveAssetDeposit: boolean;
|
||||||
|
readonly asReserveAssetDeposit: XcmReserveAssetDeposit;
|
||||||
|
readonly isTeleportAsset: boolean;
|
||||||
|
readonly asTeleportAsset: XcmTeleportAsset;
|
||||||
|
readonly isQueryResponse: boolean;
|
||||||
|
readonly asQueryResponse: XcmQueryResponse;
|
||||||
|
readonly isTransferAsset: boolean;
|
||||||
|
readonly asTransferAsset: XcmTransferAsset;
|
||||||
|
readonly isTransferReserveAsset: boolean;
|
||||||
|
readonly asTransferReserveAsset: XcmTransferReserveAsset;
|
||||||
|
readonly isTransact: boolean;
|
||||||
|
readonly asTransact: XcmTransact;
|
||||||
|
readonly isHrmpNewChannelOpenRequest: boolean;
|
||||||
|
readonly asHrmpNewChannelOpenRequest: XcmHrmpNewChannelOpenRequest;
|
||||||
|
readonly isHrmpChannelAccepted: boolean;
|
||||||
|
readonly asHrmpChannelAccepted: XcmHrmpChannelAccepted;
|
||||||
|
readonly isHrmpChannelClosing: boolean;
|
||||||
|
readonly asHrmpChannelClosing: XcmHrmpChannelClosing;
|
||||||
|
readonly isRelayedFrom: boolean;
|
||||||
|
readonly asRelayedFrom: XcmRelayedFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmAssetEffects */
|
||||||
|
export interface XcmAssetEffects extends Struct {
|
||||||
|
readonly assets: Vec<MultiAsset>;
|
||||||
|
readonly effects: Vec<XcmOrder>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmError */
|
||||||
|
export interface XcmError extends Enum {
|
||||||
|
readonly isUndefined: boolean;
|
||||||
|
readonly isOverflow: boolean;
|
||||||
|
readonly isUnimplemented: boolean;
|
||||||
|
readonly isUnhandledXcmVersion: boolean;
|
||||||
|
readonly isUnhandledXcmMessage: boolean;
|
||||||
|
readonly isUnhandledEffect: boolean;
|
||||||
|
readonly isEscalationOfPrivilege: boolean;
|
||||||
|
readonly isUntrustedReserveLocation: boolean;
|
||||||
|
readonly isUntrustedTeleportLocation: boolean;
|
||||||
|
readonly isDestinationBufferOverflow: boolean;
|
||||||
|
readonly isSendFailed: boolean;
|
||||||
|
readonly isCannotReachDestination: boolean;
|
||||||
|
readonly asCannotReachDestination: ITuple<[MultiLocation, Xcm]>;
|
||||||
|
readonly isMultiLocationFull: boolean;
|
||||||
|
readonly isFailedToDecode: boolean;
|
||||||
|
readonly isBadOrigin: boolean;
|
||||||
|
readonly isExceedsMaxMessageSize: boolean;
|
||||||
|
readonly isFailedToTransactAsset: boolean;
|
||||||
|
readonly isWeightLimitReached: boolean;
|
||||||
|
readonly isWildcard: boolean;
|
||||||
|
readonly isTooMuchWeightRequired: boolean;
|
||||||
|
readonly isNotHoldingFees: boolean;
|
||||||
|
readonly isWeightNotComputable: boolean;
|
||||||
|
readonly isBarrier: boolean;
|
||||||
|
readonly isNotWithdrawable: boolean;
|
||||||
|
readonly isLocationCannotHold: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmHrmpChannelAccepted */
|
||||||
|
export interface XcmHrmpChannelAccepted extends Struct {
|
||||||
|
readonly recipient: Compact<u32>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmHrmpChannelClosing */
|
||||||
|
export interface XcmHrmpChannelClosing extends Struct {
|
||||||
|
readonly initiator: Compact<u32>;
|
||||||
|
readonly sender: Compact<u32>;
|
||||||
|
readonly recipient: Compact<u32>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmHrmpNewChannelOpenRequest */
|
||||||
|
export interface XcmHrmpNewChannelOpenRequest extends Struct {
|
||||||
|
readonly sender: Compact<u32>;
|
||||||
|
readonly maxMessageSize: Compact<u32>;
|
||||||
|
readonly maxCapacity: Compact<u32>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOrder */
|
||||||
|
export interface XcmOrder extends Enum {
|
||||||
|
readonly isNull: boolean;
|
||||||
|
readonly isDepositAsset: boolean;
|
||||||
|
readonly asDepositAsset: XcmOrderDepositAsset;
|
||||||
|
readonly isDepositReserveAsset: boolean;
|
||||||
|
readonly asDepositReserveAsset: XcmOrderDepositReserveAsset;
|
||||||
|
readonly isExchangeAsset: boolean;
|
||||||
|
readonly asExchangeAsset: XcmOrderExchangeAsset;
|
||||||
|
readonly isInitiateReserveWithdraw: boolean;
|
||||||
|
readonly asInitiateReserveWithdraw: XcmOrderInitiateReserveWithdraw;
|
||||||
|
readonly isInitiateTeleport: boolean;
|
||||||
|
readonly asInitiateTeleport: XcmOrderInitiateTeleport;
|
||||||
|
readonly isQueryHolding: boolean;
|
||||||
|
readonly asQueryHolding: XcmOrderQueryHolding;
|
||||||
|
readonly isBuyExecution: boolean;
|
||||||
|
readonly asBuyExecution: XcmOrderBuyExecution;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOrderBuyExecution */
|
||||||
|
export interface XcmOrderBuyExecution extends Struct {
|
||||||
|
readonly fees: MultiAsset;
|
||||||
|
readonly weight: u64;
|
||||||
|
readonly debt: u64;
|
||||||
|
readonly haltOnError: bool;
|
||||||
|
readonly xcm: Vec<Xcm>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOrderDepositAsset */
|
||||||
|
export interface XcmOrderDepositAsset extends Struct {
|
||||||
|
readonly assets: Vec<MultiAsset>;
|
||||||
|
readonly dest: MultiLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOrderDepositReserveAsset */
|
||||||
|
export interface XcmOrderDepositReserveAsset extends Struct {
|
||||||
|
readonly assets: Vec<MultiAsset>;
|
||||||
|
readonly dest: MultiLocation;
|
||||||
|
readonly effects: Vec<XcmOrder>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOrderExchangeAsset */
|
||||||
|
export interface XcmOrderExchangeAsset extends Struct {
|
||||||
|
readonly give: Vec<MultiAsset>;
|
||||||
|
readonly receive: Vec<MultiAsset>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOrderInitiateReserveWithdraw */
|
||||||
|
export interface XcmOrderInitiateReserveWithdraw extends Struct {
|
||||||
|
readonly assets: Vec<MultiAsset>;
|
||||||
|
readonly reserve: MultiLocation;
|
||||||
|
readonly effects: Vec<XcmOrder>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOrderInitiateTeleport */
|
||||||
|
export interface XcmOrderInitiateTeleport extends Struct {
|
||||||
|
readonly assets: Vec<MultiAsset>;
|
||||||
|
readonly dest: MultiLocation;
|
||||||
|
readonly effects: Vec<XcmOrder>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOrderQueryHolding */
|
||||||
|
export interface XcmOrderQueryHolding extends Struct {
|
||||||
|
readonly queryId: Compact<u64>;
|
||||||
|
readonly dest: MultiLocation;
|
||||||
|
readonly assets: Vec<MultiAsset>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOriginKind */
|
||||||
|
export interface XcmOriginKind extends Enum {
|
||||||
|
readonly isNative: boolean;
|
||||||
|
readonly isSovereignAccount: boolean;
|
||||||
|
readonly isSuperuser: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmOutcome */
|
||||||
|
export interface XcmOutcome extends Enum {
|
||||||
|
readonly isComplete: boolean;
|
||||||
|
readonly asComplete: Weight;
|
||||||
|
readonly isIncomplete: boolean;
|
||||||
|
readonly asIncomplete: ITuple<[Weight, XcmError]>;
|
||||||
|
readonly isError: boolean;
|
||||||
|
readonly asError: XcmError;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmQueryResponse */
|
||||||
|
export interface XcmQueryResponse extends Struct {
|
||||||
|
readonly queryId: Compact<u64>;
|
||||||
|
readonly response: XcmResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmRelayedFrom */
|
||||||
|
export interface XcmRelayedFrom extends Struct {
|
||||||
|
readonly who: MultiLocation;
|
||||||
|
readonly message: Xcm;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmReserveAssetDeposit */
|
||||||
|
export interface XcmReserveAssetDeposit extends XcmAssetEffects {}
|
||||||
|
|
||||||
|
/** @name XcmResponse */
|
||||||
|
export interface XcmResponse extends Enum {
|
||||||
|
readonly isAssets: boolean;
|
||||||
|
readonly asAssets: Vec<MultiAsset>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmTeleportAsset */
|
||||||
|
export interface XcmTeleportAsset extends XcmAssetEffects {}
|
||||||
|
|
||||||
|
/** @name XcmTransact */
|
||||||
|
export interface XcmTransact extends Struct {
|
||||||
|
readonly originType: XcmOriginKind;
|
||||||
|
readonly requireWeightAtMost: u64;
|
||||||
|
readonly call: DoubleEncodedCall;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmTransferAsset */
|
||||||
|
export interface XcmTransferAsset extends Struct {
|
||||||
|
readonly assets: Vec<MultiAsset>;
|
||||||
|
readonly dest: MultiLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmTransferReserveAsset */
|
||||||
|
export interface XcmTransferReserveAsset extends Struct {
|
||||||
|
readonly assets: Vec<MultiAsset>;
|
||||||
|
readonly dest: MultiLocation;
|
||||||
|
readonly effects: Vec<XcmOrder>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmWithdrawAsset */
|
||||||
|
export interface XcmWithdrawAsset extends XcmAssetEffects {}
|
||||||
|
|
||||||
|
export type PHANTOM_XCM = 'xcm';
|
||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types', version: '4.2.1' };
|
export const packageInfo = { name: '@polkadot/types', version: '4.6.1' };
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export interface ISubmittableResult {
|
|||||||
readonly dispatchError?: DispatchError;
|
readonly dispatchError?: DispatchError;
|
||||||
readonly dispatchInfo?: DispatchInfo;
|
readonly dispatchInfo?: DispatchInfo;
|
||||||
readonly events: EventRecord[];
|
readonly events: EventRecord[];
|
||||||
|
readonly internalError?: Error;
|
||||||
readonly status: ExtrinsicStatus;
|
readonly status: ExtrinsicStatus;
|
||||||
readonly isCompleted: boolean;
|
readonly isCompleted: boolean;
|
||||||
readonly isError: boolean;
|
readonly isError: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user