implement xcm dry run api (#5970)
* add definitions for xcm dry run api * replace ITuple with Tuple * replace ITuple with tuple syntax * update types for xcm v3 and v4 * remove console log * revert enum ts error logging * fix dry run call param type name * lint
This commit is contained in:
@@ -122,7 +122,7 @@ describe('runtime definitions', (): void => {
|
||||
for (const { methods, version } of versions) {
|
||||
describe(`version ${version}`, (): void => {
|
||||
const methodsEntries = Object.entries<DefinitionCall>(methods);
|
||||
const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV4Location', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedAssets, FungiblesAccessError>', 'XcmVersionedLocation', 'XcmVersionedAssetId', 'XcmVersionedXcm', 'Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>'];
|
||||
const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV4Location', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedAssets, FungiblesAccessError>', 'XcmVersionedLocation', 'XcmVersionedAssetId', 'XcmVersionedXcm', 'Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>', 'VersionedMultiLocation', 'VersionedXcm', 'PostDispatchInfo', 'DispatchResultWithPostInfo', 'CallDryRunEffects', 'XcmDryRunEffects', 'XcmDryRunApiError', 'Result<CallDryRunEffects, XcmDryRunApiError>', 'Result<XcmDryRunEffects, XcmDryRunApiError>'];
|
||||
|
||||
for (const [key, { params, type }] of methodsEntries) {
|
||||
describe(`${key}`, (): void => {
|
||||
|
||||
@@ -66,6 +66,7 @@ export { default as poll } from './poll/definitions.js';
|
||||
export { default as purchase } from './purchase/definitions.js';
|
||||
|
||||
// XCM related types
|
||||
export { default as dryRunApi } from './dryRunApi/definitions.js';
|
||||
export { default as xcm } from './xcm/definitions.js';
|
||||
export { default as xcmPaymentApi } from './xcmPaymentApi/definitions.js';
|
||||
export { default as xcmRuntimeApi } from './xcmRuntimeApi/definitions.js';
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { runtime } from './runtime.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {
|
||||
PostDispatchInfo: {
|
||||
actualWeight: 'Option<Weight>',
|
||||
paysFee: 'Pays'
|
||||
},
|
||||
DispatchResultWithPostInfo: 'Result<PostDispatchInfo, DispatchError>',
|
||||
CallDryRunEffects: {
|
||||
executionResult: 'DispatchResultWithPostInfo',
|
||||
emittedEvents: 'Vec<Event>',
|
||||
localXcm: 'Option<VersionedXcm>',
|
||||
forwardedXcms: 'Vec<(VersionedMultiLocation, Vec<VersionedXcm>)>'
|
||||
},
|
||||
XcmDryRunEffects: {
|
||||
executionResult: 'OutcomeV4',
|
||||
emittedEvents: 'Vec<Event>',
|
||||
forwardedXcms: 'Vec<(VersionedMultiLocation, Vec<VersionedXcm>)>'
|
||||
},
|
||||
XcmDryRunApiError: {
|
||||
_enum: [
|
||||
'Unimplemented',
|
||||
'VersionedConversionFailed'
|
||||
]
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types.js';
|
||||
@@ -0,0 +1,42 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types/index.js';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
DryRunApi: [
|
||||
{
|
||||
methods: {
|
||||
dry_run_call: {
|
||||
description: 'Dry run call',
|
||||
params: [
|
||||
{
|
||||
name: 'origin',
|
||||
type: 'OriginCaller'
|
||||
},
|
||||
{
|
||||
name: 'call',
|
||||
type: 'RuntimeCall'
|
||||
}
|
||||
],
|
||||
type: 'Result<CallDryRunEffects, XcmDryRunApiError>'
|
||||
},
|
||||
dry_run_xcm: {
|
||||
description: 'Dry run XCM program',
|
||||
params: [
|
||||
{
|
||||
name: 'originLocation',
|
||||
type: 'VersionedMultiLocation'
|
||||
},
|
||||
{
|
||||
name: 'xcm',
|
||||
type: 'VersionedXcm'
|
||||
}
|
||||
],
|
||||
type: 'Result<XcmDryRunEffects, XcmDryRunApiError>'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,46 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Enum, Option, Result, Struct, Vec } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Pays, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { DispatchError, Event } from '@polkadot/types/interfaces/system';
|
||||
import type { OutcomeV4, VersionedMultiLocation, VersionedXcm } from '@polkadot/types/interfaces/xcm';
|
||||
|
||||
/** @name CallDryRunEffects */
|
||||
export interface CallDryRunEffects extends Struct {
|
||||
readonly executionResult: DispatchResultWithPostInfo;
|
||||
readonly emittedEvents: Vec<Event>;
|
||||
readonly localXcm: Option<VersionedXcm>;
|
||||
readonly forwardedXcms: Vec<ITuple<[VersionedMultiLocation, Vec<VersionedXcm>]>>;
|
||||
}
|
||||
|
||||
/** @name DispatchResultWithPostInfo */
|
||||
export interface DispatchResultWithPostInfo extends Result<PostDispatchInfo, DispatchError> {
|
||||
readonly isErr: boolean;
|
||||
readonly asErr: DispatchError;
|
||||
readonly isOk: boolean;
|
||||
readonly asOk: PostDispatchInfo;
|
||||
}
|
||||
|
||||
/** @name PostDispatchInfo */
|
||||
export interface PostDispatchInfo extends Struct {
|
||||
readonly actualWeight: Option<Weight>;
|
||||
readonly paysFee: Pays;
|
||||
}
|
||||
|
||||
/** @name XcmDryRunApiError */
|
||||
export interface XcmDryRunApiError extends Enum {
|
||||
readonly isUnimplemented: boolean;
|
||||
readonly isVersionedConversionFailed: boolean;
|
||||
readonly type: 'Unimplemented' | 'VersionedConversionFailed';
|
||||
}
|
||||
|
||||
/** @name XcmDryRunEffects */
|
||||
export interface XcmDryRunEffects extends Struct {
|
||||
readonly executionResult: OutcomeV4;
|
||||
readonly emittedEvents: Vec<Event>;
|
||||
readonly forwardedXcms: Vec<ITuple<[VersionedMultiLocation, Vec<VersionedXcm>]>>;
|
||||
}
|
||||
|
||||
export type PHANTOM_DRYRUNAPI = 'dryRunApi';
|
||||
@@ -25,6 +25,7 @@ export * from './cumulus/types.js';
|
||||
export * from './democracy/types.js';
|
||||
export * from './dev/types.js';
|
||||
export * from './discovery/types.js';
|
||||
export * from './dryRunApi/types.js';
|
||||
export * from './elections/types.js';
|
||||
export * from './engine/types.js';
|
||||
export * from './eth/types.js';
|
||||
|
||||
@@ -11,8 +11,10 @@ import { mapXcmTypes } from '@polkadot/types-create';
|
||||
import { v0 } from './v0.js';
|
||||
import { v1 } from './v1.js';
|
||||
import { v2 } from './v2.js';
|
||||
import { v3 } from './v3.js';
|
||||
import { v4 } from './v4.js';
|
||||
|
||||
const XCM_LATEST = 'V2';
|
||||
const XCM_LATEST = 'V4';
|
||||
|
||||
const xcm = {
|
||||
XcmOrigin: {
|
||||
@@ -87,9 +89,11 @@ export default {
|
||||
...v0,
|
||||
...v1,
|
||||
...v2,
|
||||
...v3,
|
||||
...v4,
|
||||
...mapXcmTypes(XCM_LATEST),
|
||||
DoubleEncodedCall: {
|
||||
encoded: 'Vec<u8>'
|
||||
encoded: 'Bytes'
|
||||
},
|
||||
XcmOriginKind: {
|
||||
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
|
||||
@@ -134,33 +138,43 @@ export default {
|
||||
_enum: {
|
||||
V0: 'MultiAssetV0',
|
||||
V1: 'MultiAssetV1',
|
||||
V2: 'MultiAssetV2'
|
||||
V2: 'MultiAssetV2',
|
||||
V3: 'MultiAssetV3',
|
||||
V4: 'MultiAssetV4'
|
||||
}
|
||||
},
|
||||
VersionedMultiAssets: {
|
||||
_enum: {
|
||||
V0: 'Vec<MultiAssetV0>',
|
||||
V1: 'MultiAssetsV1',
|
||||
V2: 'MultiAssetsV2'
|
||||
V2: 'MultiAssetsV2',
|
||||
V3: 'MultiAssetsV3',
|
||||
V4: 'MultiAssetsV4'
|
||||
}
|
||||
},
|
||||
VersionedMultiLocation: {
|
||||
_enum: {
|
||||
V0: 'MultiLocationV0',
|
||||
V1: 'MultiLocationV1',
|
||||
V2: 'MultiLocationV2'
|
||||
V2: 'MultiLocationV2',
|
||||
V3: 'MultiLocationV3',
|
||||
V4: 'MultiLocationV4'
|
||||
}
|
||||
},
|
||||
VersionedResponse: {
|
||||
V0: 'ResponseV0',
|
||||
V1: 'ResponseV1',
|
||||
V2: 'ResponseV2'
|
||||
V2: 'ResponseV2',
|
||||
V3: 'ResponseV3',
|
||||
V4: 'ResponseV4'
|
||||
},
|
||||
VersionedXcm: {
|
||||
_enum: {
|
||||
V0: 'XcmV0',
|
||||
V1: 'XcmV1',
|
||||
V2: 'XcmV2'
|
||||
V2: 'XcmV2',
|
||||
V3: 'XcmV3',
|
||||
V4: 'XcmV4'
|
||||
}
|
||||
},
|
||||
XcmVersion: 'u32'
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -7,25 +7,148 @@
|
||||
import type { DefinitionsTypes } from '../../types/index.js';
|
||||
|
||||
export const v2: DefinitionsTypes = {
|
||||
AssetInstanceV2: 'AssetInstanceV1',
|
||||
FungibilityV2: 'FungibilityV1',
|
||||
JunctionV2: 'JunctionV1',
|
||||
JunctionsV2: 'JunctionsV1',
|
||||
MultiAssetsV2: 'MultiAssetsV1',
|
||||
MultiAssetV2: 'MultiAssetV1',
|
||||
MultiAssetFilterV2: 'MultiAssetFilterV1',
|
||||
MultiLocationV2: 'MultiLocationV1',
|
||||
OriginKindV2: 'OriginKindV1',
|
||||
WildFungibilityV2: 'WildFungibilityV1',
|
||||
AssetIdV2: {
|
||||
_enum: {
|
||||
Concrete: 'MultiLocationV2',
|
||||
Abstract: 'Bytes'
|
||||
}
|
||||
},
|
||||
AssetInstanceV2: {
|
||||
_enum: {
|
||||
Undefined: 'Null',
|
||||
Index: 'Compact<u128>',
|
||||
Array4: '[u8;4]',
|
||||
Array8: '[u8;8]',
|
||||
Array16: '[u8;16]',
|
||||
Array32: '[u8;32]',
|
||||
Blob: 'Bytes'
|
||||
}
|
||||
},
|
||||
BodyIdV2: {
|
||||
_enum: {
|
||||
Unit: 'Null',
|
||||
Named: 'Bytes',
|
||||
Index: 'Compact<u32>',
|
||||
Executive: 'Null',
|
||||
Technical: 'Null',
|
||||
Legislative: 'Null',
|
||||
Judicial: 'Null',
|
||||
Defense: 'Null',
|
||||
Administration: 'Null',
|
||||
Treasury: 'Null'
|
||||
}
|
||||
},
|
||||
BodyPartV2: {
|
||||
_enum: {
|
||||
Voice: 'Null',
|
||||
Members: {
|
||||
count: 'Compact<u32>'
|
||||
},
|
||||
Fraction: {
|
||||
nom: 'Compact<u32>',
|
||||
denom: 'Compact<u32>'
|
||||
},
|
||||
AtLeastProportion: {
|
||||
nom: 'Compact<u32>',
|
||||
denom: 'Compact<u32>'
|
||||
},
|
||||
MoreThanProportion: {
|
||||
nom: 'Compact<u32>',
|
||||
denom: 'Compact<u32>'
|
||||
}
|
||||
}
|
||||
},
|
||||
NetworkIdV2: {
|
||||
_enum: {
|
||||
Any: 'Null',
|
||||
Named: 'Bytes',
|
||||
Polkadot: 'Null',
|
||||
Kusama: 'Null'
|
||||
}
|
||||
},
|
||||
JunctionV2: {
|
||||
_enum: {
|
||||
Parachain: 'Compact<u32>',
|
||||
AccountId32: {
|
||||
network: 'NetworkIdV2',
|
||||
id: '[u8; 32]'
|
||||
},
|
||||
AccountIndex64: {
|
||||
network: 'NetworkIdV2',
|
||||
index: 'Compact<u64>'
|
||||
},
|
||||
AccountKey20: {
|
||||
network: 'NetworkIdV2',
|
||||
key: '[u8; 20]'
|
||||
},
|
||||
PalletInstance: 'u8',
|
||||
GeneralIndex: 'Compact<u128>',
|
||||
GeneralKey: 'Bytes',
|
||||
OnlyChild: 'Null',
|
||||
Plurality: {
|
||||
id: 'BodyIdV2',
|
||||
part: 'BodyPartV2'
|
||||
}
|
||||
}
|
||||
},
|
||||
JunctionsV2: {
|
||||
_enum: {
|
||||
Here: 'Null',
|
||||
X1: 'JunctionV2',
|
||||
X2: '(JunctionV2, JunctionV2)',
|
||||
X3: '(JunctionV2, JunctionV2, JunctionV2)',
|
||||
X4: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2)',
|
||||
X5: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2)',
|
||||
X6: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2)',
|
||||
X7: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2)',
|
||||
X8: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2)'
|
||||
}
|
||||
},
|
||||
FungibilityV2: {
|
||||
_enum: {
|
||||
Fungible: 'Compact<u128>',
|
||||
NonFungible: 'AssetInstanceV2'
|
||||
}
|
||||
},
|
||||
InteriorMultiLocationV2: 'JunctionsV2',
|
||||
MultiAssetV2: {
|
||||
id: 'AssetIdV2',
|
||||
fun: 'FungibilityV2'
|
||||
},
|
||||
MultiAssetsV2: 'Vec<MultiAssetV2>',
|
||||
MultiAssetFilterV2: {
|
||||
_enum: {
|
||||
Definite: 'MultiAssetsV2',
|
||||
Wild: 'WildMultiAssetV2'
|
||||
}
|
||||
},
|
||||
MultiLocationV2: {
|
||||
parents: 'u8',
|
||||
interior: 'JunctionsV2'
|
||||
},
|
||||
OriginKindV2: {
|
||||
_enum: {
|
||||
Native: 'Null',
|
||||
SovereignAccount: 'Null',
|
||||
Superuser: 'Null',
|
||||
Xcm: 'Null'
|
||||
}
|
||||
},
|
||||
WildFungibilityV2: {
|
||||
_enum: {
|
||||
Fungible: 'Null',
|
||||
NonFungible: 'Null'
|
||||
}
|
||||
},
|
||||
ResponseV2: {
|
||||
_enum: {
|
||||
Null: 'Null',
|
||||
Assets: 'MultiAssetsV2',
|
||||
ExecutionResult: 'ResponseV2Result'
|
||||
ExecutionResult: 'Option<(u32, XcmErrorV2)>',
|
||||
Version: 'u32'
|
||||
}
|
||||
},
|
||||
ResponseV2Error: '(u32, XcmErrorV2)',
|
||||
ResponseV2Result: 'Result<Null, ResponseV2Error>',
|
||||
WeightLimitV2: {
|
||||
_enum: {
|
||||
Unlimited: 'Null',
|
||||
@@ -52,8 +175,8 @@ export const v2: DefinitionsTypes = {
|
||||
xcm: 'XcmV2'
|
||||
},
|
||||
Transact: {
|
||||
originType: 'OriginKindV2',
|
||||
requireWeightAtMost: 'u64',
|
||||
originType: 'XcmOriginKind',
|
||||
requireWeightAtMost: 'Compact<u64>',
|
||||
call: 'DoubleEncodedCall'
|
||||
},
|
||||
HrmpNewChannelOpenRequest: {
|
||||
@@ -70,7 +193,7 @@ export const v2: DefinitionsTypes = {
|
||||
recipient: 'Compact<u32>'
|
||||
},
|
||||
ClearOrigin: 'Null',
|
||||
DescendOrigin: 'InteriorMultiLocation',
|
||||
DescendOrigin: 'InteriorMultiLocationV2',
|
||||
ReportError: {
|
||||
queryId: 'Compact<u64>',
|
||||
dest: 'MultiLocationV2',
|
||||
@@ -78,12 +201,12 @@ export const v2: DefinitionsTypes = {
|
||||
},
|
||||
DepositAsset: {
|
||||
assets: 'MultiAssetFilterV2',
|
||||
maxAssets: 'u32',
|
||||
maxAssets: 'Compact<u32>',
|
||||
beneficiary: 'MultiLocationV2'
|
||||
},
|
||||
DepositReserveAsset: {
|
||||
assets: 'MultiAssetFilterV2',
|
||||
maxAssets: 'u32',
|
||||
maxAssets: 'Compact<u32>',
|
||||
dest: 'MultiLocationV2',
|
||||
xcm: 'XcmV2'
|
||||
},
|
||||
@@ -102,65 +225,69 @@ export const v2: DefinitionsTypes = {
|
||||
xcm: 'XcmV2'
|
||||
},
|
||||
QueryHolding: {
|
||||
query_id: 'Compact<u64>',
|
||||
queryId: 'Compact<u64>',
|
||||
dest: 'MultiLocationV2',
|
||||
assets: 'MultiAssetFilterV2',
|
||||
maxResponse_Weight: 'Compact<u64>'
|
||||
maxResponseWeight: 'Compact<u64>'
|
||||
},
|
||||
BuyExecution: {
|
||||
fees: 'MultiAssetV2',
|
||||
weightLimit: 'WeightLimitV2'
|
||||
},
|
||||
RefundSurplus: 'Null',
|
||||
SetErrorHandler: 'XcmV2',
|
||||
SetAppendix: 'XcmV2',
|
||||
SetErrorHandler: 'XcmV2<RuntimeCall>',
|
||||
SetAppendix: 'XcmV2<RuntimeCall>',
|
||||
ClearError: 'Null',
|
||||
ClaimAsset: {
|
||||
assets: 'MultiAssetsV2',
|
||||
ticket: 'MultiLocationV2'
|
||||
},
|
||||
Trap: 'u64'
|
||||
Trap: 'Compact<u64>',
|
||||
SubscribeVersion: {
|
||||
queryId: 'Compact<u64>',
|
||||
maxResponseWeight: 'Compact<u64>'
|
||||
},
|
||||
UnsubscribeVersion: 'Null'
|
||||
}
|
||||
},
|
||||
WildMultiAssetV2: {
|
||||
_enum: {
|
||||
All: 'Null',
|
||||
AllOf: {
|
||||
id: 'AssetIdV2',
|
||||
fun: 'WildFungibilityV2'
|
||||
}
|
||||
}
|
||||
},
|
||||
WildMultiAssetV2: 'WildMultiAssetV1',
|
||||
XcmV2: 'Vec<InstructionV2>',
|
||||
XcmErrorV2: {
|
||||
_enum: {
|
||||
Undefined: 'Null',
|
||||
Overflow: 'Null',
|
||||
Unimplemented: 'Null',
|
||||
UnhandledXcmVersion: 'Null',
|
||||
UnhandledXcmMessage: 'Null',
|
||||
UnhandledEffect: 'Null',
|
||||
EscalationOfPrivilege: 'Null',
|
||||
UntrustedReserveLocation: 'Null',
|
||||
UntrustedTeleportLocation: 'Null',
|
||||
DestinationBufferOverflow: 'Null',
|
||||
MultiLocationFull: 'Null',
|
||||
MultiLocationNotInvertible: 'Null',
|
||||
FailedToDecode: 'Null',
|
||||
BadOrigin: 'Null',
|
||||
ExceedsMaxMessageSize: 'Null',
|
||||
InvalidLocation: 'Null',
|
||||
AssetNotFound: 'Null',
|
||||
FailedToTransactAsset: 'Null',
|
||||
WeightLimitReached: 'Weight',
|
||||
Wildcard: 'Null',
|
||||
TooMuchWeightRequired: 'Null',
|
||||
NotHoldingFees: 'Null',
|
||||
WeightNotComputable: 'Null',
|
||||
Barrier: 'Null',
|
||||
NotWithdrawable: 'Null',
|
||||
LocationCannotHold: 'Null',
|
||||
TooExpensive: 'Null',
|
||||
AssetNotFound: 'Null',
|
||||
ExceedsMaxMessageSize: 'Null',
|
||||
DestinationUnsupported: 'Null',
|
||||
RecursionLimitReached: 'Null',
|
||||
Transport: 'Null',
|
||||
Unroutable: 'Null',
|
||||
UnknownWeightRequired: 'Null',
|
||||
Trap: 'u64',
|
||||
UnknownClaim: 'Null',
|
||||
InvalidLocation: 'Null'
|
||||
FailedToDecode: 'Null',
|
||||
MaxWeightInvalid: 'Null',
|
||||
NotHoldingFees: 'Null',
|
||||
TooExpensive: 'Null',
|
||||
Trap: 'u64',
|
||||
UnhandledXcmVersion: 'Null',
|
||||
WeightLimitReached: 'Weight',
|
||||
Barrier: 'Null',
|
||||
WeightNotComputable: 'Null'
|
||||
}
|
||||
},
|
||||
XcmOrderV2: 'XcmOrderV1'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -0,0 +1,386 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { DefinitionsTypes } from '../../types/index.js';
|
||||
|
||||
export const v3: DefinitionsTypes = {
|
||||
AssetIdV3: {
|
||||
_enum: {
|
||||
Concrete: 'MultiLocationV3',
|
||||
Abstract: 'Bytes'
|
||||
}
|
||||
},
|
||||
BodyIdV3: {
|
||||
_enum: {
|
||||
Unit: 'Null',
|
||||
Moniker: '[u8;4]',
|
||||
Index: 'Compact<u32>',
|
||||
Executive: 'Null',
|
||||
Technical: 'Null',
|
||||
Legislative: 'Null',
|
||||
Judicial: 'Null',
|
||||
Defense: 'Null',
|
||||
Administration: 'Null',
|
||||
Treasury: 'Null'
|
||||
}
|
||||
},
|
||||
BodyPartV3: {
|
||||
_enum: {
|
||||
Voice: 'Null',
|
||||
Members: {
|
||||
count: 'Compact<u32>'
|
||||
},
|
||||
Fraction: {
|
||||
nom: 'Compact<u32>',
|
||||
denom: 'Compact<u32>'
|
||||
},
|
||||
AtLeastProportion: {
|
||||
nom: 'Compact<u32>',
|
||||
denom: 'Compact<u32>'
|
||||
},
|
||||
MoreThanProportion: {
|
||||
nom: 'Compact<u32>',
|
||||
denom: 'Compact<u32>'
|
||||
}
|
||||
}
|
||||
},
|
||||
AssetInstanceV3: {
|
||||
_enum: {
|
||||
Undefined: 'Null',
|
||||
Index: 'Compact<u128>',
|
||||
Array4: '[u8;4]',
|
||||
Array8: '[u8;8]',
|
||||
Array16: '[u8;16]',
|
||||
Array32: '[u8;32]'
|
||||
}
|
||||
},
|
||||
FungibilityV3: {
|
||||
_enum: {
|
||||
Fungible: 'Compact<u128>',
|
||||
NonFungible: 'AssetInstanceV3'
|
||||
}
|
||||
},
|
||||
InteriorMultiLocationV3: 'JunctionsV3',
|
||||
JunctionV3: {
|
||||
_enum: {
|
||||
Parachain: 'Compact<u32>',
|
||||
AccountId32: {
|
||||
network: 'Option<NetworkIdV3>',
|
||||
id: '[u8;32]'
|
||||
},
|
||||
AccountIndex64: {
|
||||
network: 'Option<NetworkIdV3>',
|
||||
index: 'Compact<u64>'
|
||||
},
|
||||
AccountKey20: {
|
||||
network: 'Option<NetworkIdV3>',
|
||||
key: '[u8;20]'
|
||||
},
|
||||
PalletInstance: 'u8',
|
||||
GeneralIndex: 'Compact<u128>',
|
||||
GeneralKey: {
|
||||
length: 'u8',
|
||||
data: '[u8;32]'
|
||||
},
|
||||
OnlyChild: 'Null',
|
||||
Plurality: {
|
||||
id: 'BodyIdV3',
|
||||
part: 'BodyPartV3'
|
||||
},
|
||||
GlobalConsensus: 'NetworkIdV3'
|
||||
}
|
||||
},
|
||||
JunctionsV3: {
|
||||
_enum: {
|
||||
Here: 'Null',
|
||||
X1: 'JunctionV3',
|
||||
X2: '(JunctionV3, JunctionV3)',
|
||||
X3: '(JunctionV3, JunctionV3, JunctionV3)',
|
||||
X4: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3)',
|
||||
X5: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3)',
|
||||
X6: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3)',
|
||||
X7: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3)',
|
||||
X8: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3)'
|
||||
}
|
||||
},
|
||||
MaybeErrorCodeV3: {
|
||||
_enum: {
|
||||
Success: 'Null',
|
||||
Error: 'Bytes',
|
||||
TruncatedError: 'Bytes'
|
||||
}
|
||||
},
|
||||
MaxPalletsInfo: 'u32',
|
||||
MultiAssetV3: {
|
||||
id: 'AssetIdV3',
|
||||
fun: 'FungibilityV3'
|
||||
},
|
||||
MultiAssetsV3: 'Vec<MultiAssetV3>',
|
||||
MultiAssetFilterV3: {
|
||||
_enum: {
|
||||
Definite: 'MultiAssetsV3',
|
||||
Wild: 'WildMultiAssetV3'
|
||||
}
|
||||
},
|
||||
MultiLocationV3: {
|
||||
parents: 'u8',
|
||||
interior: 'JunctionsV3'
|
||||
},
|
||||
MaxPalletNameLen: 'u32',
|
||||
NetworkIdV3: {
|
||||
_enum: {
|
||||
ByGenesis: '[u8;32]',
|
||||
ByFork: {
|
||||
blockNumber: 'u64',
|
||||
blockHash: '[u8;32]'
|
||||
},
|
||||
Polkadot: 'Null',
|
||||
Kusama: 'Null',
|
||||
Westend: 'Null',
|
||||
Rococo: 'Null',
|
||||
Wococo: 'Null',
|
||||
Ethereum: {
|
||||
chainId: 'Compact<u64>'
|
||||
},
|
||||
BitcoinCore: 'Null',
|
||||
BitcoinCash: 'Null',
|
||||
PolkadotBulletin: 'Null'
|
||||
}
|
||||
|
||||
},
|
||||
OriginKindV3: 'OriginKindV2',
|
||||
PalletInfoV3: {
|
||||
index: 'Compact<u32>',
|
||||
name: 'Bytes',
|
||||
moduleName: 'Bytes',
|
||||
major: 'Compact<u32>',
|
||||
minor: 'Compact<u32>',
|
||||
patch: 'Compact<u32>'
|
||||
},
|
||||
WildFungibilityV3: 'WildFungibilityV2',
|
||||
QueryResponseInfoV3: {
|
||||
destination: 'MultiLocationV3',
|
||||
queryId: 'Compact<u64>',
|
||||
maxWeight: 'WeightV2'
|
||||
},
|
||||
ResponseV3: {
|
||||
_enum: {
|
||||
Null: 'Null',
|
||||
Assets: 'MultiAssetsV3',
|
||||
ExecutionResult: 'Option<(u32,XcmErrorV3)>',
|
||||
Version: 'u32',
|
||||
PalletsInfo: 'Vec<PalletInfoV3>',
|
||||
DispatchResult: 'MaybeErrorCodeV3'
|
||||
}
|
||||
},
|
||||
XcmErrorV3: {
|
||||
_enum: {
|
||||
Overflow: 'Null',
|
||||
Unimplemented: 'Null',
|
||||
UntrustedReserveLocation: 'Null',
|
||||
UntrustedTeleportLocation: 'Null',
|
||||
LocationFull: 'Null',
|
||||
LocationNotInvertible: 'Null',
|
||||
BadOrigin: 'Null',
|
||||
InvalidLocation: 'Null',
|
||||
AssetNotFound: 'Null',
|
||||
FailedToTransactAsset: 'Null',
|
||||
NotWithdrawable: 'Null',
|
||||
LocationCannotHold: 'Null',
|
||||
ExceedsMaxMessageSize: 'Null',
|
||||
DestinationUnsupported: 'Null',
|
||||
Transport: 'Null',
|
||||
Unroutable: 'Null',
|
||||
UnknownClaim: 'Null',
|
||||
FailedToDecode: 'Null',
|
||||
MaxWeightInvalid: 'Null',
|
||||
NotHoldingFees: 'Null',
|
||||
TooExpensive: 'Null',
|
||||
Trap: 'u64',
|
||||
ExpectationFalse: 'Null',
|
||||
PalletNotFound: 'Null',
|
||||
NameMismatch: 'Null',
|
||||
VersionIncompatible: 'Null',
|
||||
HoldingWouldOverflow: 'Null',
|
||||
ExportError: 'Null',
|
||||
ReanchorFailed: 'Null',
|
||||
NoDeal: 'Null',
|
||||
FeesNotMet: 'Null',
|
||||
LockError: 'Null',
|
||||
NoPermission: 'Null',
|
||||
Unanchored: 'Null',
|
||||
NotDepositable: 'Null',
|
||||
UnhandledXcmVersion: 'Null',
|
||||
WeightLimitReached: 'WeightV2',
|
||||
Barrier: 'Null',
|
||||
ExceedsStackLimit: 'Null'
|
||||
}
|
||||
},
|
||||
ResponseV3Error: '(u32, XcmErrorV3)',
|
||||
ResponseV3Result: 'Option<(u32, ResponseV3Error)>',
|
||||
WeightLimitV3: {
|
||||
_enum: {
|
||||
Unlimited: 'Null',
|
||||
Limited: 'WeightV2'
|
||||
}
|
||||
},
|
||||
InstructionV3: {
|
||||
_enum: {
|
||||
WithdrawAsset: 'MultiAssetsV3',
|
||||
ReserveAssetDeposited: 'MultiAssetsV3',
|
||||
ReceiveTeleportedAsset: 'MultiAssetsV3',
|
||||
QueryResponse: {
|
||||
queryId: 'Compact<u64>',
|
||||
response: 'ResponseV3',
|
||||
maxWeight: 'WeightV2',
|
||||
querier: 'Option<MultiLocationV3>'
|
||||
},
|
||||
TransferAsset: {
|
||||
assets: 'MultiAssetsV3',
|
||||
beneficiary: 'MultiLocationV3'
|
||||
},
|
||||
TransferReserveAsset: {
|
||||
assets: 'MultiAssetsV3',
|
||||
dest: 'MultiLocationV3',
|
||||
xcm: 'XcmV3'
|
||||
},
|
||||
Transact: {
|
||||
originKind: 'XcmOriginKind',
|
||||
requireWeightAtMost: 'WeightV2',
|
||||
call: 'DoubleEncodedCall'
|
||||
},
|
||||
HrmpNewChannelOpenRequest: {
|
||||
sender: 'Compact<u32>',
|
||||
maxMessageSize: 'Compact<u32>',
|
||||
maxCapacity: 'Compact<u32>'
|
||||
},
|
||||
HrmpChannelAccepted: {
|
||||
recipient: 'Compact<u32>'
|
||||
},
|
||||
HrmpChannelClosing: {
|
||||
initiator: 'Compact<u32>',
|
||||
sender: 'Compact<u32>',
|
||||
recipient: 'Compact<u32>'
|
||||
},
|
||||
ClearOrigin: 'Null',
|
||||
DescendOrigin: 'JunctionsV3',
|
||||
ReportError: 'QueryResponseInfoV3',
|
||||
DepositAsset: {
|
||||
assets: 'MultiAssetFilterV3',
|
||||
beneficiary: 'MultiLocationV3'
|
||||
},
|
||||
DepositReserveAsset: {
|
||||
assets: 'MultiAssetFilterV3',
|
||||
dest: 'MultiLocationV3',
|
||||
xcm: 'XcmV3'
|
||||
},
|
||||
ExchangeAsset: {
|
||||
give: 'MultiAssetFilterV3',
|
||||
want: 'MultiAssetsV3',
|
||||
maximal: 'bool'
|
||||
},
|
||||
InitiateReserveWithdraw: {
|
||||
assets: 'MultiAssetFilterV3',
|
||||
reserve: 'MultiLocationV3',
|
||||
xcm: 'XcmV3'
|
||||
},
|
||||
InitiateTeleport: {
|
||||
assets: 'MultiAssetFilterV3',
|
||||
dest: 'MultiLocationV3',
|
||||
xcm: 'XcmV3'
|
||||
},
|
||||
ReportHolding: {
|
||||
responseInfo: 'QueryResponseInfoV3',
|
||||
assets: 'MultiAssetFilterV3'
|
||||
},
|
||||
BuyExecution: {
|
||||
fees: 'MultiAssetV3',
|
||||
weightLimit: 'WeightLimitV3'
|
||||
},
|
||||
RefundSurplus: 'Null',
|
||||
SetErrorHandler: 'XcmV3<RuntimeCall>',
|
||||
SetAppendix: 'XcmV3<RuntimeCall>',
|
||||
ClearError: 'Null',
|
||||
ClaimAsset: {
|
||||
assets: 'MultiAssetsV3',
|
||||
ticket: 'MultiLocationV3'
|
||||
},
|
||||
Trap: 'Compact<u64>',
|
||||
SubscribeVersion: {
|
||||
queryId: 'Compact<u64>',
|
||||
maxResponseWeight: 'WeightV2'
|
||||
},
|
||||
UnsubscribeVersion: 'Null',
|
||||
BurnAsset: 'MultiAssetsV3',
|
||||
ExpectAsset: 'MultiAssetsV3',
|
||||
ExpectOrigin: 'Option<MultiLocationV3>',
|
||||
ExpectError: 'Option<(u32, XcmErrorV3)>',
|
||||
ExpectTransactStatus: 'MaybeErrorCodeV3',
|
||||
QueryPallet: {
|
||||
moduleName: 'Vec<u8>',
|
||||
responseInfo: 'QueryResponseInfoV3'
|
||||
},
|
||||
ExpectPallet: {
|
||||
index: 'Compact<u32>',
|
||||
name: 'Vec<u8>',
|
||||
moduleName: 'Vec<u8>',
|
||||
crateMajor: 'Compact<u32>',
|
||||
minCrateMinor: 'Compact<u32>'
|
||||
},
|
||||
ReportTransactStatus: 'QueryResponseInfoV3',
|
||||
ClearTransactStatus: 'Null',
|
||||
UniversalOrigin: 'JunctionV3',
|
||||
ExportMessage: {
|
||||
network: 'NetworkIdV3',
|
||||
destination: 'JunctionsV3',
|
||||
xcm: 'XcmV3'
|
||||
},
|
||||
LockAsset: {
|
||||
asset: 'MultiAssetV3',
|
||||
unlocker: 'MultiLocationV3'
|
||||
},
|
||||
UnlockAsset: {
|
||||
asset: 'MultiAssetV3',
|
||||
target: 'MultiLocationV3'
|
||||
},
|
||||
NoteUnlockable: {
|
||||
asset: 'MultiAssetV3',
|
||||
owner: 'MultiLocationV3'
|
||||
},
|
||||
RequestUnlock: {
|
||||
asset: 'MultiAssetV3',
|
||||
locker: 'MultiLocationV3'
|
||||
},
|
||||
SetFeesMode: {
|
||||
jitWithdraw: 'bool'
|
||||
},
|
||||
SetTopic: '[u8; 32]',
|
||||
ClearTopic: 'Null',
|
||||
AliasOrigin: 'MultiLocationV3',
|
||||
UnpaidExecution: {
|
||||
weightLimit: 'WeightLimitV3',
|
||||
checkOrigin: 'Option<MultiLocationV3>'
|
||||
}
|
||||
}
|
||||
},
|
||||
WildMultiAssetV3: {
|
||||
_enum: {
|
||||
All: 'Null',
|
||||
AllOf: {
|
||||
id: 'AssetIdV3',
|
||||
fun: 'WildFungibilityV2'
|
||||
},
|
||||
AllCounted: 'Compact<u32>',
|
||||
AllOfCounted: {
|
||||
id: 'AssetIdV3',
|
||||
fun: 'WildFungibilityV2',
|
||||
count: 'Compact<u32>'
|
||||
}
|
||||
}
|
||||
},
|
||||
VersionV3: 'u32',
|
||||
XcmV3: 'Vec<InstructionV3>'
|
||||
};
|
||||
@@ -0,0 +1,281 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { DefinitionsTypes } from '../../types/index.js';
|
||||
|
||||
export const v4: DefinitionsTypes = {
|
||||
AssetIdV4: 'MultiLocationV4',
|
||||
AssetInstanceV4: {
|
||||
_enum: {
|
||||
Undefined: 'Null',
|
||||
Index: 'Compact<u128>',
|
||||
Array4: '[u8;4]',
|
||||
Array8: '[u8;8]',
|
||||
Array16: '[u8;16]',
|
||||
Array32: '[u8;32]'
|
||||
}
|
||||
},
|
||||
FungibilityV4: {
|
||||
_enum: {
|
||||
Fungible: 'Compact<u128>',
|
||||
NonFungible: 'AssetInstanceV4'
|
||||
}
|
||||
},
|
||||
UncheckedFungibilityV4: {
|
||||
_enum: {
|
||||
Fungible: 'Compact<u128>',
|
||||
NonFungible: 'AssetInstanceV4'
|
||||
}
|
||||
},
|
||||
JunctionV4: {
|
||||
_enum: {
|
||||
Parachain: 'Compact<u32>',
|
||||
AccountId32: {
|
||||
network: 'Option<NetworkIdV4>',
|
||||
id: '[u8;32]'
|
||||
},
|
||||
AccountIndex64: {
|
||||
network: 'Option<NetworkIdV4>',
|
||||
index: 'Compact<u64>'
|
||||
},
|
||||
AccountKey20: {
|
||||
network: 'Option<NetworkIdV4>',
|
||||
key: '[u8;20]'
|
||||
},
|
||||
PalletInstance: 'u8',
|
||||
GeneralIndex: 'Compact<u128>',
|
||||
GeneralKey: {
|
||||
length: 'u8',
|
||||
data: '[u8;32]'
|
||||
},
|
||||
OnlyChild: 'Null',
|
||||
Plurality: {
|
||||
id: 'BodyIdV3',
|
||||
part: 'BodyPartV3'
|
||||
},
|
||||
GlobalConsensus: 'NetworkIdV4'
|
||||
}
|
||||
},
|
||||
JunctionsV4: {
|
||||
_enum: {
|
||||
Here: 'Null',
|
||||
X1: '[JunctionV4;1]',
|
||||
X2: '[JunctionV4;2]',
|
||||
X3: '[JunctionV4;3]',
|
||||
X4: '[JunctionV4;4]',
|
||||
X5: '[JunctionV4;5]',
|
||||
X6: '[JunctionV4;6]',
|
||||
X7: '[JunctionV4;7]',
|
||||
X8: '[JunctionV4;8]'
|
||||
}
|
||||
},
|
||||
MaxPalletsInfo: 'u32',
|
||||
NetworkIdV4: 'NetworkIdV3',
|
||||
MultiAssetV4: {
|
||||
id: 'AssetIdV4',
|
||||
fun: 'FungibilityV4'
|
||||
},
|
||||
MultiAssetsV4: 'Vec<MultiAssetV4>',
|
||||
MultiAssetFilterV4: {
|
||||
_enum: {
|
||||
Definite: 'MultiAssetsV4',
|
||||
Wild: 'WildMultiAssetV4'
|
||||
}
|
||||
},
|
||||
MultiLocationV4: {
|
||||
parents: 'u8',
|
||||
interior: 'JunctionsV4'
|
||||
},
|
||||
OriginKindV4: 'XcmOriginKind',
|
||||
PalletInfoV4: 'PalletInfoV3',
|
||||
WildFungibilityV4: 'WildFungibilityV2',
|
||||
QueryResponseInfoV4: {
|
||||
destination: 'MultiLocationV4',
|
||||
queryId: 'Compact<u64>',
|
||||
maxWeight: 'WeightV2'
|
||||
},
|
||||
ResponseV4: {
|
||||
_enum: {
|
||||
Null: 'Null',
|
||||
Assets: 'MultiAssetsV4',
|
||||
ExecutionResult: 'Option<(u32, XcmErrorV3)>',
|
||||
Version: 'u32',
|
||||
PalletsInfo: 'Vec<PalletInfoV4>',
|
||||
DispatchResult: 'MaybeErrorCodeV3'
|
||||
}
|
||||
},
|
||||
InstructionV4: {
|
||||
_enum: {
|
||||
WithdrawAsset: 'MultiAssetsV4',
|
||||
ReserveAssetDeposited: 'MultiAssetsV4',
|
||||
ReceiveTeleportedAsset: 'MultiAssetsV4',
|
||||
QueryResponse: {
|
||||
queryId: 'Compact<u64>',
|
||||
response: 'ResponseV4',
|
||||
maxWeight: 'WeightV2',
|
||||
querier: 'Option<MultiLocationV4>'
|
||||
},
|
||||
TransferAsset: {
|
||||
assets: 'MultiAssetsV4',
|
||||
beneficiary: 'MultiLocationV4'
|
||||
},
|
||||
TransferReserveAsset: {
|
||||
assets: 'MultiAssetsV4',
|
||||
dest: 'MultiLocationV4',
|
||||
xcm: 'XcmV4'
|
||||
},
|
||||
Transact: {
|
||||
originKind: 'OriginKindV4',
|
||||
requireWeightAtMost: 'WeightV2',
|
||||
call: 'DoubleEncodedCall'
|
||||
},
|
||||
HrmpNewChannelOpenRequest: {
|
||||
sender: 'Compact<u32>',
|
||||
maxMessageSize: 'Compact<u32>',
|
||||
maxCapacity: 'Compact<u32>'
|
||||
},
|
||||
HrmpChannelAccepted: {
|
||||
recipient: 'Compact<u32>'
|
||||
},
|
||||
HrmpChannelClosing: {
|
||||
initiator: 'Compact<u32>',
|
||||
sender: 'Compact<u32>',
|
||||
recipient: 'Compact<u32>'
|
||||
},
|
||||
ClearOrigin: 'Null',
|
||||
DescendOrigin: 'JunctionsV4',
|
||||
ReportError: 'QueryResponseInfoV4',
|
||||
DepositAsset: {
|
||||
assets: 'MultiAssetFilterV4',
|
||||
beneficiary: 'MultiLocationV4'
|
||||
},
|
||||
DepositReserveAsset: {
|
||||
assets: 'MultiAssetFilterV4',
|
||||
dest: 'MultiLocationV4',
|
||||
xcm: 'XcmV4'
|
||||
},
|
||||
ExchangeAsset: {
|
||||
give: 'MultiAssetFilterV4',
|
||||
want: 'MultiAssetsV4',
|
||||
maximal: 'bool'
|
||||
},
|
||||
InitiateReserveWithdraw: {
|
||||
assets: 'MultiAssetFilterV4',
|
||||
reserve: 'MultiLocationV4',
|
||||
xcm: 'XcmV4'
|
||||
},
|
||||
InitiateTeleport: {
|
||||
assets: 'MultiAssetFilterV4',
|
||||
dest: 'MultiLocationV4',
|
||||
xcm: 'XcmV4'
|
||||
},
|
||||
ReportHolding: {
|
||||
responseInfo: 'QueryResponseInfoV4',
|
||||
assets: 'MultiAssetFilterV4'
|
||||
},
|
||||
BuyExecution: {
|
||||
fees: 'MultiAssetV4',
|
||||
weightLimit: 'WeightLimitV3'
|
||||
},
|
||||
RefundSurplus: 'Null',
|
||||
SetErrorHandler: 'XcmV4',
|
||||
SetAppendix: 'XcmV4',
|
||||
ClearError: 'Null',
|
||||
ClaimAsset: {
|
||||
assets: 'MultiAssetsV4',
|
||||
ticket: 'MultiLocationV4'
|
||||
},
|
||||
Trap: 'Compact<u64>',
|
||||
SubscribeVersion: {
|
||||
queryId: 'Compact<u64>',
|
||||
maxResponseWeight: 'WeightV2'
|
||||
},
|
||||
UnsubscribeVersion: 'Null',
|
||||
BurnAsset: 'MultiAssetsV4',
|
||||
ExpectAsset: 'MultiAssetsV4',
|
||||
ExpectOrigin: 'Option<MultiLocationV4>',
|
||||
ExpectError: 'Option<(u32, XcmErrorV3)>',
|
||||
ExpectTransactStatus: 'MaybeErrorCodeV3',
|
||||
QueryPallet: {
|
||||
moduleName: 'Vec<u8>',
|
||||
responseInfo: 'QueryResponseInfoV4'
|
||||
},
|
||||
ExpectPallet: {
|
||||
index: 'Compact<u32>',
|
||||
name: 'Vec<u8>',
|
||||
moduleName: 'Vec<u8>',
|
||||
crateMajor: 'Compact<u32>',
|
||||
minCrateMinor: 'Compact<u32>'
|
||||
},
|
||||
ReportTransactStatus: 'QueryResponseInfoV4',
|
||||
ClearTransactStatus: 'Null',
|
||||
UniversalOrigin: 'JunctionV4',
|
||||
ExportMessage: {
|
||||
network: 'NetworkIdV4',
|
||||
destination: 'JunctionsV4',
|
||||
xcm: 'XcmV4'
|
||||
},
|
||||
LockAsset: {
|
||||
asset: 'MultiAssetV4',
|
||||
unlocker: 'MultiLocationV4'
|
||||
},
|
||||
UnlockAsset: {
|
||||
asset: 'MultiAssetV4',
|
||||
target: 'MultiLocationV4'
|
||||
},
|
||||
NoteUnlockable: {
|
||||
asset: 'MultiAssetV4',
|
||||
owner: 'MultiLocationV4'
|
||||
},
|
||||
RequestUnlock: {
|
||||
asset: 'MultiAssetV4',
|
||||
locker: 'MultiLocationV4'
|
||||
},
|
||||
SetFeesMode: {
|
||||
jitWithdraw: 'bool'
|
||||
},
|
||||
SetTopic: '[u8;32]',
|
||||
ClearTopic: 'Null',
|
||||
AliasOrigin: 'MultiLocationV4',
|
||||
UnpaidExecution: {
|
||||
weightLimit: 'WeightLimitV3',
|
||||
checkOrigin: 'Option<MultiLocationV4>'
|
||||
}
|
||||
}
|
||||
},
|
||||
OutcomeV4: {
|
||||
_enum: {
|
||||
Complete: {
|
||||
used: 'WeightV2'
|
||||
},
|
||||
Incomplete: {
|
||||
used: 'WeightV2',
|
||||
error: 'XcmErrorV3'
|
||||
},
|
||||
Error: {
|
||||
error: 'XcmErrorV3'
|
||||
}
|
||||
}
|
||||
},
|
||||
WildMultiAssetV4: {
|
||||
_enum: {
|
||||
All: 'Null',
|
||||
AllOf: {
|
||||
id: 'AssetIdV4',
|
||||
fun: 'WildFungibilityV4'
|
||||
},
|
||||
AllCounted: 'Compact<u32>',
|
||||
AllOfCounted: {
|
||||
id: 'AssetIdV4',
|
||||
fun: 'WildFungibilityV4',
|
||||
count: 'Compact<u32>'
|
||||
}
|
||||
}
|
||||
},
|
||||
VersionV4: 'u32',
|
||||
XcmV4: 'Vec<InstructionV4>',
|
||||
XcmErrorV4: 'XcmErrorV3'
|
||||
};
|
||||
Reference in New Issue
Block a user