difftreelog
added totalstaked & fix bug with number in RPC Client
in: master
15 files changed
client/rpc/src/lib.rsdiffbeforeafterboth--- a/client/rpc/src/lib.rs
+++ b/client/rpc/src/lib.rs
@@ -247,7 +247,8 @@
/// Returns the total amount of staked tokens.
#[method(name = "unique_totalStaked")]
- fn total_staked(&self, staker: CrossAccountId, at: Option<BlockHash>) -> Result<u128>;
+ fn total_staked(&self, staker: Option<CrossAccountId>, at: Option<BlockHash>)
+ -> Result<String>;
///Returns the total amount of staked tokens per block when staked.
#[method(name = "unique_totalStakedPerBlock")]
@@ -255,11 +256,12 @@
&self,
staker: CrossAccountId,
at: Option<BlockHash>,
- ) -> Result<Vec<(BlockNumber, u128)>>;
+ ) -> Result<Vec<(BlockNumber, String)>>;
/// Return the total amount locked by staking tokens.
#[method(name = "unique_totalStakingLocked")]
- fn total_staking_locked(&self, staker: CrossAccountId, at: Option<BlockHash>) -> Result<u128>;
+ fn total_staking_locked(&self, staker: CrossAccountId, at: Option<BlockHash>)
+ -> Result<String>;
}
mod rmrk_unique_rpc {
@@ -539,9 +541,13 @@
pass_method!(effective_collection_limits(collection_id: CollectionId) -> Option<CollectionLimits>, unique_api);
pass_method!(total_pieces(collection_id: CollectionId, token_id: TokenId) -> Option<String> => |o| o.map(|number| number.to_string()) , unique_api);
pass_method!(token_owners(collection: CollectionId, token: TokenId) -> Vec<CrossAccountId>, unique_api);
- pass_method!(total_staked(staker: CrossAccountId) -> u128, unique_api);
- pass_method!(total_staked_per_block(staker: CrossAccountId) -> Vec<(BlockNumber, u128)>, unique_api);
- pass_method!(total_staking_locked(staker: CrossAccountId) -> u128, unique_api);
+ pass_method!(total_staked(staker: Option<CrossAccountId>) -> String => |v| v.to_string(), unique_api);
+ pass_method!(total_staked_per_block(staker: CrossAccountId) -> Vec<(BlockNumber, String)> =>
+ |v| v
+ .into_iter()
+ .map(|(b, a)| (b, a.to_string()))
+ .collect::<Vec<_>>(), unique_api);
+ pass_method!(total_staking_locked(staker: CrossAccountId) -> String => |v| v.to_string(), unique_api);
}
#[allow(deprecated)]
pallets/app-promotion/src/lib.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/lib.rs
+++ b/pallets/app-promotion/src/lib.rs
@@ -448,8 +448,11 @@
}
}
- pub fn cross_id_total_staked(staker: T::CrossAccountId) -> Option<BalanceOf<T>> {
- Self::total_staked_by_id(staker.as_sub())
+ pub fn cross_id_total_staked(staker: Option<T::CrossAccountId>) -> Option<BalanceOf<T>> {
+ staker.map_or(Some(<TotalStaked<T>>::get()), |s| {
+ Self::total_staked_by_id(s.as_sub())
+ })
+ // Self::total_staked_by_id(staker.as_sub())
}
pub fn cross_id_locked_balance(staker: T::CrossAccountId) -> BalanceOf<T> {
primitives/rpc/src/lib.rsdiffbeforeafterboth--- a/primitives/rpc/src/lib.rs
+++ b/primitives/rpc/src/lib.rs
@@ -126,7 +126,7 @@
/// Get total pieces of token.
fn total_pieces(collection_id: CollectionId, token_id: TokenId) -> Result<Option<u128>>;
fn token_owners(collection: CollectionId, token: TokenId) -> Result<Vec<CrossAccountId>>;
- fn total_staked(staker: CrossAccountId) -> Result<u128>;
+ fn total_staked(staker: Option<CrossAccountId>) -> Result<u128>;
fn total_staked_per_block(staker: CrossAccountId) -> Result<Vec<(BlockNumber, u128)>>;
fn total_staking_locked(staker: CrossAccountId) -> Result<u128>;
}
runtime/common/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -188,7 +188,7 @@
dispatch_unique_runtime!(collection.total_pieces(token_id))
}
- fn total_staked(staker: CrossAccountId) -> Result<u128, DispatchError> {
+ fn total_staked(staker: Option<CrossAccountId>) -> Result<u128, DispatchError> {
Ok(<pallet_app_promotion::Pallet<Runtime>>::cross_id_total_staked(staker).unwrap_or_default())
// Ok(0)
}
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -83,6 +83,7 @@
"testRFT": "mocha --timeout 9999999 -r ts-node/register ./**/refungible.test.ts",
"testFT": "mocha --timeout 9999999 -r ts-node/register ./**/fungible.test.ts",
"testRPC": "mocha --timeout 9999999 -r ts-node/register ./**/rpc.test.ts",
+ "testPromotion": "mocha --timeout 9999999 -r ts-node/register ./**/app-promotion.test.ts",
"polkadot-types-fetch-metadata": "curl -H 'Content-Type: application/json' -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > src/interfaces/metadata.json",
"polkadot-types-from-defs": "ts-node ./node_modules/.bin/polkadot-types-from-defs --endpoint src/interfaces/metadata.json --input src/interfaces/ --package .",
"polkadot-types-from-chain": "ts-node ./node_modules/.bin/polkadot-types-from-chain --endpoint src/interfaces/metadata.json --output src/interfaces/ --package .",
tests/src/app-promotion.test.tsdiffbeforeafterboth--- /dev/null
+++ b/tests/src/app-promotion.test.ts
@@ -0,0 +1,90 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Unique Network is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
+import {default as usingApi, submitTransactionAsync} from './substrate/substrate-api';
+import {IKeyringPair} from '@polkadot/types/types';
+import {
+
+ createMultipleItemsExpectSuccess,
+ isTokenExists,
+ getLastTokenId,
+ getAllowance,
+ approve,
+ transferFrom,
+ createCollection,
+ transfer,
+ burnItem,
+ normalizeAccountId,
+ CrossAccountId,
+ createFungibleItemExpectSuccess,
+ U128_MAX,
+ burnFromExpectSuccess,
+ UNIQUE,
+} from './util/helpers';
+
+import chai from 'chai';
+import chaiAsPromised from 'chai-as-promised';
+import getBalance from './substrate/get-balance';
+import { unique } from './interfaces/definitions';
+chai.use(chaiAsPromised);
+const expect = chai.expect;
+
+let alice: IKeyringPair;
+let bob: IKeyringPair;
+let palletAdmin: IKeyringPair;
+
+describe('integration test: AppPromotion', () => {
+ before(async () => {
+ await usingApi(async (api, privateKeyWrapper) => {
+ alice = privateKeyWrapper('//Alice');
+ bob = privateKeyWrapper('//Bob');
+ palletAdmin = privateKeyWrapper('//palletAdmin');
+ const tx = api.tx.sudo.sudo(api.tx.promotion.setAdminAddress(palletAdmin.addressRaw));
+ await submitTransactionAsync(alice, tx);
+ });
+ });
+ it('will change balance state to "locked", add it to "staked" map, and increase "totalStaked" amount', async () => {
+ // arrange: Alice balance = 1000
+ // act: Alice calls appPromotion.stake(100)
+ // assert: Alice locked balance equal 100
+ // assert: Alice free balance closeTo 900
+ // assert: query appPromotion.staked(Alice) equal [100]
+ // assert: query appPromotion.totalStaked() increased by 100
+ // act: Alice extrinsic appPromotion.stake(200)
+
+ // assert: Alice locked balance equal 300
+ // assert: query appPromotion.staked(Alice) equal [100, 200]
+ // assert: query appPromotion.totalStaked() increased by 200
+
+ await usingApi(async (api, privateKeyWrapper) => {
+ await submitTransactionAsync(alice, api.tx.balances.transfer(bob.addressRaw, 10n * UNIQUE));
+ const [alicesBalanceBefore, bobsBalanceBefore] = await getBalance(api, [alice.address, bob.address]);
+
+ console.log(`alice: ${alicesBalanceBefore} \n bob: ${bobsBalanceBefore}`);
+
+ await submitTransactionAsync(alice, api.tx.promotion.stake(1n * UNIQUE));
+ await submitTransactionAsync(bob, api.tx.promotion.stake(1n * UNIQUE));
+ const alice_total_staked = (await (api.rpc.unique.totalStaked(normalizeAccountId(alice)))).toBigInt();
+ const bob_total_staked = (await api.rpc.unique.totalStaked(normalizeAccountId(bob))).toBigInt();
+
+ console.log(`alice staked: ${alice_total_staked} \n bob staked: ${bob_total_staked}, total staked: ${(await api.rpc.unique.totalStaked()).toBigInt()}`);
+
+
+
+ });
+ });
+
+});
\ No newline at end of file
tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -456,6 +456,27 @@
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
+ promotion: {
+ admin: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * Next target block when interest is recalculated
+ **/
+ nextInterestBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
+ pendingUnstake: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<u128>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
+ /**
+ * Amount of tokens staked by account in the blocknumber.
+ **/
+ staked: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<u128>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
+ /**
+ * A block when app-promotion has started
+ **/
+ startBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
+ totalStaked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * Generic query
+ **/
+ [key: string]: QueryableStorageEntry<ApiType>;
+ };
randomnessCollectiveFlip: {
/**
* Series of block headers from the last 81 blocks that acts as random seed material. This
tests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-rpc.ts
+++ b/tests/src/interfaces/augment-api-rpc.ts
@@ -8,8 +8,8 @@
import type { PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsPartPartType, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenChild, UpDataStructsTokenData } from './default';
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
import type { Metadata, StorageKey } from '@polkadot/types';
-import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from '@polkadot/types-codec';
-import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
+import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
+import type { AnyNumber, Codec, ITuple } from '@polkadot/types-codec/types';
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
@@ -739,6 +739,18 @@
**/
totalPieces: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u128>>>;
/**
+ * Returns the total amount of staked tokens
+ **/
+ totalStaked: AugmentedRpc<(staker?: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;
+ /**
+ * Returns the total amount of staked tokens per block when staked
+ **/
+ totalStakedPerBlock: AugmentedRpc<(staker: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>>;
+ /**
+ * Return the total amount locked by staking tokens
+ **/
+ totalStakingLocked: AugmentedRpc<(staker: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;
+ /**
* Get the amount of distinctive tokens present in a collection
**/
totalSupply: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -362,6 +362,16 @@
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
+ promotion: {
+ setAdminAddress: AugmentedSubmittable<(admin: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
+ stake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
+ startAppPromotion: AugmentedSubmittable<(promotionStartRelayBlock: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
+ unstake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
+ /**
+ * Generic tx
+ **/
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
+ };
rmrkCore: {
/**
* Accept an NFT sent from another account to self or an owned NFT.
tests/src/interfaces/augment-types.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-types.ts
+++ b/tests/src/interfaces/augment-types.ts
@@ -804,6 +804,7 @@
Owner: Owner;
PageCounter: PageCounter;
PageIndexData: PageIndexData;
+ PalletAppPromotionCall: PalletAppPromotionCall;
PalletBalancesAccountData: PalletBalancesAccountData;
PalletBalancesBalanceLock: PalletBalancesBalanceLock;
PalletBalancesCall: PalletBalancesCall;
tests/src/interfaces/default/types.tsdiffbeforeafterboth806 readonly perPeriod: Compact<u128>;806 readonly perPeriod: Compact<u128>;807}807}808809/** @name PalletAppPromotionCall */810export interface PalletAppPromotionCall extends Enum {811 readonly isSetAdminAddress: boolean;812 readonly asSetAdminAddress: {813 readonly admin: AccountId32;814 } & Struct;815 readonly isStartAppPromotion: boolean;816 readonly asStartAppPromotion: {817 readonly promotionStartRelayBlock: u32;818 } & Struct;819 readonly isStake: boolean;820 readonly asStake: {821 readonly amount: u128;822 } & Struct;823 readonly isUnstake: boolean;824 readonly asUnstake: {825 readonly amount: u128;826 } & Struct;827 readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'Stake' | 'Unstake';828}808829809/** @name PalletBalancesAccountData */830/** @name PalletBalancesAccountData */810export interface PalletBalancesAccountData extends Struct {831export interface PalletBalancesAccountData extends Struct {tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -1979,9 +1979,25 @@
collectionId: 'u32',
data: 'UpDataStructsCreateItemExData',
},
+<<<<<<< HEAD
set_transfers_enabled_flag: {
collectionId: 'u32',
value: 'bool',
+=======
+ finish: {
+ address: 'H160',
+ code: 'Bytes'
+ }
+ }
+ },
+ /**
+ * Lookup259: pallet_sudo::pallet::Event<T>
+ **/
+ PalletSudoEvent: {
+ _enum: {
+ Sudid: {
+ sudoResult: 'Result<Null, SpRuntimeDispatchError>',
+>>>>>>> b43f8da0... added totalstaked & fix bug with number in RPC Client
},
burn_item: {
collectionId: 'u32',
tests/src/interfaces/registry.tsdiffbeforeafterboth--- a/tests/src/interfaces/registry.ts
+++ b/tests/src/interfaces/registry.ts
@@ -83,6 +83,7 @@
OrmlVestingModuleError: OrmlVestingModuleError;
OrmlVestingModuleEvent: OrmlVestingModuleEvent;
OrmlVestingVestingSchedule: OrmlVestingVestingSchedule;
+ PalletAppPromotionCall: PalletAppPromotionCall;
PalletBalancesAccountData: PalletBalancesAccountData;
PalletBalancesBalanceLock: PalletBalancesBalanceLock;
PalletBalancesCall: PalletBalancesCall;
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -10,62 +10,67 @@
import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
import type { Event } from '@polkadot/types/interfaces/system';
-declare module '@polkadot/types/lookup' {
- /** @name FrameSystemAccountInfo (3) */
- interface FrameSystemAccountInfo extends Struct {
- readonly nonce: u32;
- readonly consumers: u32;
- readonly providers: u32;
- readonly sufficients: u32;
- readonly data: PalletBalancesAccountData;
+ /** @name PolkadotPrimitivesV2PersistedValidationData (2) */
+ export interface PolkadotPrimitivesV2PersistedValidationData extends Struct {
+ readonly parentHead: Bytes;
+ readonly relayParentNumber: u32;
+ readonly relayParentStorageRoot: H256;
+ readonly maxPovSize: u32;
}
- /** @name PalletBalancesAccountData (5) */
- interface PalletBalancesAccountData extends Struct {
- readonly free: u128;
- readonly reserved: u128;
- readonly miscFrozen: u128;
- readonly feeFrozen: u128;
+ /** @name PolkadotPrimitivesV2UpgradeRestriction (9) */
+ export interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {
+ readonly isPresent: boolean;
+ readonly type: 'Present';
+ }
+
+ /** @name SpTrieStorageProof (10) */
+ export interface SpTrieStorageProof extends Struct {
+ readonly trieNodes: BTreeSet<Bytes>;
}
- /** @name FrameSupportWeightsPerDispatchClassU64 (7) */
- interface FrameSupportWeightsPerDispatchClassU64 extends Struct {
- readonly normal: u64;
- readonly operational: u64;
- readonly mandatory: u64;
+ /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (13) */
+ export interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {
+ readonly dmqMqcHead: H256;
+ readonly relayDispatchQueueSize: ITuple<[u32, u32]>;
+ readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;
+ readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;
}
- /** @name SpRuntimeDigest (11) */
- interface SpRuntimeDigest extends Struct {
- readonly logs: Vec<SpRuntimeDigestDigestItem>;
+ /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (18) */
+ export interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct {
+ readonly maxCapacity: u32;
+ readonly maxTotalSize: u32;
+ readonly maxMessageSize: u32;
+ readonly msgCount: u32;
+ readonly totalSize: u32;
+ readonly mqcHead: Option<H256>;
}
- /** @name SpRuntimeDigestDigestItem (13) */
- interface SpRuntimeDigestDigestItem extends Enum {
- readonly isOther: boolean;
- readonly asOther: Bytes;
- readonly isConsensus: boolean;
- readonly asConsensus: ITuple<[U8aFixed, Bytes]>;
- readonly isSeal: boolean;
- readonly asSeal: ITuple<[U8aFixed, Bytes]>;
- readonly isPreRuntime: boolean;
- readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;
- readonly isRuntimeEnvironmentUpdated: boolean;
- readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';
+ /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (20) */
+ export interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct {
+ readonly maxCodeSize: u32;
+ readonly maxHeadDataSize: u32;
+ readonly maxUpwardQueueCount: u32;
+ readonly maxUpwardQueueSize: u32;
+ readonly maxUpwardMessageSize: u32;
+ readonly maxUpwardMessageNumPerCandidate: u32;
+ readonly hrmpMaxMessageNumPerCandidate: u32;
+ readonly validationUpgradeCooldown: u32;
+ readonly validationUpgradeDelay: u32;
}
- /** @name FrameSystemEventRecord (16) */
- interface FrameSystemEventRecord extends Struct {
- readonly phase: FrameSystemPhase;
- readonly event: Event;
- readonly topics: Vec<H256>;
+ /** @name PolkadotCorePrimitivesOutboundHrmpMessage (26) */
+ export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
+ readonly recipient: u32;
+ readonly data: Bytes;
}
- /** @name FrameSystemEvent (18) */
- interface FrameSystemEvent extends Enum {
- readonly isExtrinsicSuccess: boolean;
- readonly asExtrinsicSuccess: {
- readonly dispatchInfo: FrameSupportWeightsDispatchInfo;
+ /** @name CumulusPalletParachainSystemCall (28) */
+ export interface CumulusPalletParachainSystemCall extends Enum {
+ readonly isSetValidationData: boolean;
+ readonly asSetValidationData: {
+ readonly data: CumulusPrimitivesParachainInherentParachainInherentData;
} & Struct;
readonly isExtrinsicFailed: boolean;
readonly asExtrinsicFailed: {
@@ -89,82 +94,28 @@
readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';
}
- /** @name FrameSupportWeightsDispatchInfo (19) */
- interface FrameSupportWeightsDispatchInfo extends Struct {
- readonly weight: u64;
- readonly class: FrameSupportWeightsDispatchClass;
- readonly paysFee: FrameSupportWeightsPays;
+ /** @name CumulusPrimitivesParachainInherentParachainInherentData (29) */
+ export interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {
+ readonly validationData: PolkadotPrimitivesV2PersistedValidationData;
+ readonly relayChainState: SpTrieStorageProof;
+ readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;
+ readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;
}
- /** @name FrameSupportWeightsDispatchClass (20) */
- interface FrameSupportWeightsDispatchClass extends Enum {
- readonly isNormal: boolean;
- readonly isOperational: boolean;
- readonly isMandatory: boolean;
- readonly type: 'Normal' | 'Operational' | 'Mandatory';
+ /** @name PolkadotCorePrimitivesInboundDownwardMessage (31) */
+ export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
+ readonly sentAt: u32;
+ readonly msg: Bytes;
}
- /** @name FrameSupportWeightsPays (21) */
- interface FrameSupportWeightsPays extends Enum {
- readonly isYes: boolean;
- readonly isNo: boolean;
- readonly type: 'Yes' | 'No';
+ /** @name PolkadotCorePrimitivesInboundHrmpMessage (34) */
+ export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
+ readonly sentAt: u32;
+ readonly data: Bytes;
}
- /** @name SpRuntimeDispatchError (22) */
- interface SpRuntimeDispatchError extends Enum {
- readonly isOther: boolean;
- readonly isCannotLookup: boolean;
- readonly isBadOrigin: boolean;
- readonly isModule: boolean;
- readonly asModule: SpRuntimeModuleError;
- readonly isConsumerRemaining: boolean;
- readonly isNoProviders: boolean;
- readonly isTooManyConsumers: boolean;
- readonly isToken: boolean;
- readonly asToken: SpRuntimeTokenError;
- readonly isArithmetic: boolean;
- readonly asArithmetic: SpRuntimeArithmeticError;
- readonly isTransactional: boolean;
- readonly asTransactional: SpRuntimeTransactionalError;
- readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional';
- }
-
- /** @name SpRuntimeModuleError (23) */
- interface SpRuntimeModuleError extends Struct {
- readonly index: u8;
- readonly error: U8aFixed;
- }
-
- /** @name SpRuntimeTokenError (24) */
- interface SpRuntimeTokenError extends Enum {
- readonly isNoFunds: boolean;
- readonly isWouldDie: boolean;
- readonly isBelowMinimum: boolean;
- readonly isCannotCreate: boolean;
- readonly isUnknownAsset: boolean;
- readonly isFrozen: boolean;
- readonly isUnsupported: boolean;
- readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';
- }
-
- /** @name SpRuntimeArithmeticError (25) */
- interface SpRuntimeArithmeticError extends Enum {
- readonly isUnderflow: boolean;
- readonly isOverflow: boolean;
- readonly isDivisionByZero: boolean;
- readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';
- }
-
- /** @name SpRuntimeTransactionalError (26) */
- interface SpRuntimeTransactionalError extends Enum {
- readonly isLimitReached: boolean;
- readonly isNoLayer: boolean;
- readonly type: 'LimitReached' | 'NoLayer';
- }
-
- /** @name CumulusPalletParachainSystemEvent (27) */
- interface CumulusPalletParachainSystemEvent extends Enum {
+ /** @name CumulusPalletParachainSystemEvent (37) */
+ export interface CumulusPalletParachainSystemEvent extends Enum {
readonly isValidationFunctionStored: boolean;
readonly isValidationFunctionApplied: boolean;
readonly asValidationFunctionApplied: {
@@ -187,8 +138,94 @@
readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';
}
- /** @name PalletBalancesEvent (28) */
- interface PalletBalancesEvent extends Enum {
+ /** @name CumulusPalletParachainSystemError (38) */
+ export interface CumulusPalletParachainSystemError extends Enum {
+ readonly isOverlappingUpgrades: boolean;
+ readonly isProhibitedByPolkadot: boolean;
+ readonly isTooBig: boolean;
+ readonly isValidationDataNotAvailable: boolean;
+ readonly isHostConfigurationNotAvailable: boolean;
+ readonly isNotScheduled: boolean;
+ readonly isNothingAuthorized: boolean;
+ readonly isUnauthorized: boolean;
+ readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';
+ }
+
+ /** @name PalletBalancesAccountData (41) */
+ export interface PalletBalancesAccountData extends Struct {
+ readonly free: u128;
+ readonly reserved: u128;
+ readonly miscFrozen: u128;
+ readonly feeFrozen: u128;
+ }
+
+ /** @name PalletBalancesBalanceLock (43) */
+ export interface PalletBalancesBalanceLock extends Struct {
+ readonly id: U8aFixed;
+ readonly amount: u128;
+ readonly reasons: PalletBalancesReasons;
+ }
+
+ /** @name PalletBalancesReasons (45) */
+ export interface PalletBalancesReasons extends Enum {
+ readonly isFee: boolean;
+ readonly isMisc: boolean;
+ readonly isAll: boolean;
+ readonly type: 'Fee' | 'Misc' | 'All';
+ }
+
+ /** @name PalletBalancesReserveData (48) */
+ export interface PalletBalancesReserveData extends Struct {
+ readonly id: U8aFixed;
+ readonly amount: u128;
+ }
+
+ /** @name PalletBalancesReleases (51) */
+ export interface PalletBalancesReleases extends Enum {
+ readonly isV100: boolean;
+ readonly isV200: boolean;
+ readonly type: 'V100' | 'V200';
+ }
+
+ /** @name PalletBalancesCall (52) */
+ export interface PalletBalancesCall extends Enum {
+ readonly isTransfer: boolean;
+ readonly asTransfer: {
+ readonly dest: MultiAddress;
+ readonly value: Compact<u128>;
+ } & Struct;
+ readonly isSetBalance: boolean;
+ readonly asSetBalance: {
+ readonly who: MultiAddress;
+ readonly newFree: Compact<u128>;
+ readonly newReserved: Compact<u128>;
+ } & Struct;
+ readonly isForceTransfer: boolean;
+ readonly asForceTransfer: {
+ readonly source: MultiAddress;
+ readonly dest: MultiAddress;
+ readonly value: Compact<u128>;
+ } & Struct;
+ readonly isTransferKeepAlive: boolean;
+ readonly asTransferKeepAlive: {
+ readonly dest: MultiAddress;
+ readonly value: Compact<u128>;
+ } & Struct;
+ readonly isTransferAll: boolean;
+ readonly asTransferAll: {
+ readonly dest: MultiAddress;
+ readonly keepAlive: bool;
+ } & Struct;
+ readonly isForceUnreserve: boolean;
+ readonly asForceUnreserve: {
+ readonly who: MultiAddress;
+ readonly amount: u128;
+ } & Struct;
+ readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';
+ }
+
+ /** @name PalletBalancesEvent (58) */
+ export interface PalletBalancesEvent extends Enum {
readonly isEndowed: boolean;
readonly asEndowed: {
readonly account: AccountId32;
@@ -246,26 +283,74 @@
readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';
}
- /** @name FrameSupportTokensMiscBalanceStatus (29) */
- interface FrameSupportTokensMiscBalanceStatus extends Enum {
+ /** @name FrameSupportTokensMiscBalanceStatus (59) */
+ export interface FrameSupportTokensMiscBalanceStatus extends Enum {
readonly isFree: boolean;
readonly isReserved: boolean;
readonly type: 'Free' | 'Reserved';
}
- /** @name PalletTransactionPaymentEvent (30) */
- interface PalletTransactionPaymentEvent extends Enum {
- readonly isTransactionFeePaid: boolean;
- readonly asTransactionFeePaid: {
- readonly who: AccountId32;
- readonly actualFee: u128;
- readonly tip: u128;
+ /** @name PalletBalancesError (60) */
+ export interface PalletBalancesError extends Enum {
+ readonly isVestingBalance: boolean;
+ readonly isLiquidityRestrictions: boolean;
+ readonly isInsufficientBalance: boolean;
+ readonly isExistentialDeposit: boolean;
+ readonly isKeepAlive: boolean;
+ readonly isExistingVestingSchedule: boolean;
+ readonly isDeadAccount: boolean;
+ readonly isTooManyReserves: boolean;
+ readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';
+ }
+
+ /** @name PalletTimestampCall (63) */
+ export interface PalletTimestampCall extends Enum {
+ readonly isSet: boolean;
+ readonly asSet: {
+ readonly now: Compact<u64>;
} & Struct;
- readonly type: 'TransactionFeePaid';
+ readonly type: 'Set';
+ }
+
+ /** @name PalletTransactionPaymentReleases (66) */
+ export interface PalletTransactionPaymentReleases extends Enum {
+ readonly isV1Ancient: boolean;
+ readonly isV2: boolean;
+ readonly type: 'V1Ancient' | 'V2';
}
- /** @name PalletTreasuryEvent (31) */
- interface PalletTreasuryEvent extends Enum {
+ /** @name PalletTreasuryProposal (67) */
+ export interface PalletTreasuryProposal extends Struct {
+ readonly proposer: AccountId32;
+ readonly value: u128;
+ readonly beneficiary: AccountId32;
+ readonly bond: u128;
+ }
+
+ /** @name PalletTreasuryCall (70) */
+ export interface PalletTreasuryCall extends Enum {
+ readonly isProposeSpend: boolean;
+ readonly asProposeSpend: {
+ readonly value: Compact<u128>;
+ readonly beneficiary: MultiAddress;
+ } & Struct;
+ readonly isRejectProposal: boolean;
+ readonly asRejectProposal: {
+ readonly proposalId: Compact<u32>;
+ } & Struct;
+ readonly isApproveProposal: boolean;
+ readonly asApproveProposal: {
+ readonly proposalId: Compact<u32>;
+ } & Struct;
+ readonly isRemoveApproval: boolean;
+ readonly asRemoveApproval: {
+ readonly proposalId: Compact<u32>;
+ } & Struct;
+ readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'RemoveApproval';
+ }
+
+ /** @name PalletTreasuryEvent (72) */
+ export interface PalletTreasuryEvent extends Enum {
readonly isProposed: boolean;
readonly asProposed: {
readonly proposalIndex: u32;
@@ -297,39 +382,93 @@
readonly asDeposit: {
readonly value: u128;
} & Struct;
- readonly isSpendApproved: boolean;
- readonly asSpendApproved: {
- readonly proposalIndex: u32;
- readonly amount: u128;
- readonly beneficiary: AccountId32;
+ readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';
+ }
+
+ /** @name FrameSupportPalletId (75) */
+ export interface FrameSupportPalletId extends U8aFixed {}
+
+ /** @name PalletTreasuryError (76) */
+ export interface PalletTreasuryError extends Enum {
+ readonly isInsufficientProposersBalance: boolean;
+ readonly isInvalidIndex: boolean;
+ readonly isTooManyApprovals: boolean;
+ readonly isProposalNotApproved: boolean;
+ readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'ProposalNotApproved';
+ }
+
+ /** @name PalletSudoCall (77) */
+ export interface PalletSudoCall extends Enum {
+ readonly isSudo: boolean;
+ readonly asSudo: {
+ readonly call: Call;
+ } & Struct;
+ readonly isSudoUncheckedWeight: boolean;
+ readonly asSudoUncheckedWeight: {
+ readonly call: Call;
+ readonly weight: u64;
} & Struct;
+ readonly isSetKey: boolean;
+ readonly asSetKey: {
+ readonly new_: MultiAddress;
+ } & Struct;
+ readonly isSudoAs: boolean;
+ readonly asSudoAs: {
+ readonly who: MultiAddress;
+ readonly call: Call;
+ } & Struct;
readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved';
}
- /** @name PalletSudoEvent (32) */
- interface PalletSudoEvent extends Enum {
- readonly isSudid: boolean;
- readonly asSudid: {
- readonly sudoResult: Result<Null, SpRuntimeDispatchError>;
+ /** @name FrameSystemCall (79) */
+ export interface FrameSystemCall extends Enum {
+ readonly isFillBlock: boolean;
+ readonly asFillBlock: {
+ readonly ratio: Perbill;
} & Struct;
- readonly isKeyChanged: boolean;
- readonly asKeyChanged: {
- readonly oldSudoer: Option<AccountId32>;
+ readonly isRemark: boolean;
+ readonly asRemark: {
+ readonly remark: Bytes;
} & Struct;
- readonly isSudoAsDone: boolean;
- readonly asSudoAsDone: {
- readonly sudoResult: Result<Null, SpRuntimeDispatchError>;
+ readonly isSetHeapPages: boolean;
+ readonly asSetHeapPages: {
+ readonly pages: u64;
} & Struct;
- readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';
+ readonly isSetCode: boolean;
+ readonly asSetCode: {
+ readonly code: Bytes;
+ } & Struct;
+ readonly isSetCodeWithoutChecks: boolean;
+ readonly asSetCodeWithoutChecks: {
+ readonly code: Bytes;
+ } & Struct;
+ readonly isSetStorage: boolean;
+ readonly asSetStorage: {
+ readonly items: Vec<ITuple<[Bytes, Bytes]>>;
+ } & Struct;
+ readonly isKillStorage: boolean;
+ readonly asKillStorage: {
+ readonly keys_: Vec<Bytes>;
+ } & Struct;
+ readonly isKillPrefix: boolean;
+ readonly asKillPrefix: {
+ readonly prefix: Bytes;
+ readonly subkeys: u32;
+ } & Struct;
+ readonly isRemarkWithEvent: boolean;
+ readonly asRemarkWithEvent: {
+ readonly remark: Bytes;
+ } & Struct;
+ readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';
}
- /** @name OrmlVestingModuleEvent (36) */
- interface OrmlVestingModuleEvent extends Enum {
- readonly isVestingScheduleAdded: boolean;
- readonly asVestingScheduleAdded: {
- readonly from: AccountId32;
- readonly to: AccountId32;
- readonly vestingSchedule: OrmlVestingVestingSchedule;
+ /** @name OrmlVestingModuleCall (83) */
+ export interface OrmlVestingModuleCall extends Enum {
+ readonly isClaim: boolean;
+ readonly isVestedTransfer: boolean;
+ readonly asVestedTransfer: {
+ readonly dest: MultiAddress;
+ readonly schedule: OrmlVestingVestingSchedule;
} & Struct;
readonly isClaimed: boolean;
readonly asClaimed: {
@@ -343,20 +482,20 @@
readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';
}
- /** @name OrmlVestingVestingSchedule (37) */
- interface OrmlVestingVestingSchedule extends Struct {
+ /** @name OrmlVestingVestingSchedule (84) */
+ export interface OrmlVestingVestingSchedule extends Struct {
readonly start: u32;
readonly period: u32;
readonly periodCount: u32;
readonly perPeriod: Compact<u128>;
}
- /** @name CumulusPalletXcmpQueueEvent (39) */
- interface CumulusPalletXcmpQueueEvent extends Enum {
- readonly isSuccess: boolean;
- readonly asSuccess: {
- readonly messageHash: Option<H256>;
- readonly weight: u64;
+ /** @name CumulusPalletXcmpQueueCall (86) */
+ export interface CumulusPalletXcmpQueueCall extends Enum {
+ readonly isServiceOverweight: boolean;
+ readonly asServiceOverweight: {
+ readonly index: u64;
+ readonly weightLimit: u64;
} & Struct;
readonly isFail: boolean;
readonly asFail: {
@@ -395,117 +534,102 @@
readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';
}
- /** @name XcmV2TraitsError (41) */
- interface XcmV2TraitsError extends Enum {
- readonly isOverflow: boolean;
- readonly isUnimplemented: boolean;
- readonly isUntrustedReserveLocation: boolean;
- readonly isUntrustedTeleportLocation: boolean;
- readonly isMultiLocationFull: boolean;
- readonly isMultiLocationNotInvertible: boolean;
- readonly isBadOrigin: boolean;
- readonly isInvalidLocation: boolean;
- readonly isAssetNotFound: boolean;
- readonly isFailedToTransactAsset: boolean;
- readonly isNotWithdrawable: boolean;
- readonly isLocationCannotHold: boolean;
- readonly isExceedsMaxMessageSize: boolean;
- readonly isDestinationUnsupported: boolean;
- readonly isTransport: boolean;
- readonly isUnroutable: boolean;
- readonly isUnknownClaim: boolean;
- readonly isFailedToDecode: boolean;
- readonly isMaxWeightInvalid: boolean;
- readonly isNotHoldingFees: boolean;
- readonly isTooExpensive: boolean;
- readonly isTrap: boolean;
- readonly asTrap: u64;
- readonly isUnhandledXcmVersion: boolean;
- readonly isWeightLimitReached: boolean;
- readonly asWeightLimitReached: u64;
- readonly isBarrier: boolean;
- readonly isWeightNotComputable: boolean;
- readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';
+ /** @name PalletXcmCall (87) */
+ export interface PalletXcmCall extends Enum {
+ readonly isSend: boolean;
+ readonly asSend: {
+ readonly dest: XcmVersionedMultiLocation;
+ readonly message: XcmVersionedXcm;
+ } & Struct;
+ readonly isTeleportAssets: boolean;
+ readonly asTeleportAssets: {
+ readonly dest: XcmVersionedMultiLocation;
+ readonly beneficiary: XcmVersionedMultiLocation;
+ readonly assets: XcmVersionedMultiAssets;
+ readonly feeAssetItem: u32;
+ } & Struct;
+ readonly isReserveTransferAssets: boolean;
+ readonly asReserveTransferAssets: {
+ readonly dest: XcmVersionedMultiLocation;
+ readonly beneficiary: XcmVersionedMultiLocation;
+ readonly assets: XcmVersionedMultiAssets;
+ readonly feeAssetItem: u32;
+ } & Struct;
+ readonly isExecute: boolean;
+ readonly asExecute: {
+ readonly message: XcmVersionedXcm;
+ readonly maxWeight: u64;
+ } & Struct;
+ readonly isForceXcmVersion: boolean;
+ readonly asForceXcmVersion: {
+ readonly location: XcmV1MultiLocation;
+ readonly xcmVersion: u32;
+ } & Struct;
+ readonly isForceDefaultXcmVersion: boolean;
+ readonly asForceDefaultXcmVersion: {
+ readonly maybeXcmVersion: Option<u32>;
+ } & Struct;
+ readonly isForceSubscribeVersionNotify: boolean;
+ readonly asForceSubscribeVersionNotify: {
+ readonly location: XcmVersionedMultiLocation;
+ } & Struct;
+ readonly isForceUnsubscribeVersionNotify: boolean;
+ readonly asForceUnsubscribeVersionNotify: {
+ readonly location: XcmVersionedMultiLocation;
+ } & Struct;
+ readonly isLimitedReserveTransferAssets: boolean;
+ readonly asLimitedReserveTransferAssets: {
+ readonly dest: XcmVersionedMultiLocation;
+ readonly beneficiary: XcmVersionedMultiLocation;
+ readonly assets: XcmVersionedMultiAssets;
+ readonly feeAssetItem: u32;
+ readonly weightLimit: XcmV2WeightLimit;
+ } & Struct;
+ readonly isLimitedTeleportAssets: boolean;
+ readonly asLimitedTeleportAssets: {
+ readonly dest: XcmVersionedMultiLocation;
+ readonly beneficiary: XcmVersionedMultiLocation;
+ readonly assets: XcmVersionedMultiAssets;
+ readonly feeAssetItem: u32;
+ readonly weightLimit: XcmV2WeightLimit;
+ } & Struct;
+ readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
}
- /** @name PalletXcmEvent (43) */
- interface PalletXcmEvent extends Enum {
- readonly isAttempted: boolean;
- readonly asAttempted: XcmV2TraitsOutcome;
- readonly isSent: boolean;
- readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;
- readonly isUnexpectedResponse: boolean;
- readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;
- readonly isResponseReady: boolean;
- readonly asResponseReady: ITuple<[u64, XcmV2Response]>;
- readonly isNotified: boolean;
- readonly asNotified: ITuple<[u64, u8, u8]>;
- readonly isNotifyOverweight: boolean;
- readonly asNotifyOverweight: ITuple<[u64, u8, u8, u64, u64]>;
- readonly isNotifyDispatchError: boolean;
- readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;
- readonly isNotifyDecodeFailed: boolean;
- readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;
- readonly isInvalidResponder: boolean;
- readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;
- readonly isInvalidResponderVersion: boolean;
- readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;
- readonly isResponseTaken: boolean;
- readonly asResponseTaken: u64;
- readonly isAssetsTrapped: boolean;
- readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
- readonly isVersionChangeNotified: boolean;
- readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;
- readonly isSupportedVersionChanged: boolean;
- readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;
- readonly isNotifyTargetSendFail: boolean;
- readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;
- readonly isNotifyTargetMigrationFail: boolean;
- readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;
- readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';
+ /** @name XcmVersionedMultiLocation (88) */
+ export interface XcmVersionedMultiLocation extends Enum {
+ readonly isV0: boolean;
+ readonly asV0: XcmV0MultiLocation;
+ readonly isV1: boolean;
+ readonly asV1: XcmV1MultiLocation;
+ readonly type: 'V0' | 'V1';
}
- /** @name XcmV2TraitsOutcome (44) */
- interface XcmV2TraitsOutcome extends Enum {
- readonly isComplete: boolean;
- readonly asComplete: u64;
- readonly isIncomplete: boolean;
- readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;
- readonly isError: boolean;
- readonly asError: XcmV2TraitsError;
- readonly type: 'Complete' | 'Incomplete' | 'Error';
- }
-
- /** @name XcmV1MultiLocation (45) */
- interface XcmV1MultiLocation extends Struct {
- readonly parents: u8;
- readonly interior: XcmV1MultilocationJunctions;
- }
-
- /** @name XcmV1MultilocationJunctions (46) */
- interface XcmV1MultilocationJunctions extends Enum {
- readonly isHere: boolean;
+ /** @name XcmV0MultiLocation (89) */
+ export interface XcmV0MultiLocation extends Enum {
+ readonly isNull: boolean;
readonly isX1: boolean;
- readonly asX1: XcmV1Junction;
+ readonly asX1: XcmV0Junction;
readonly isX2: boolean;
- readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;
+ readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;
readonly isX3: boolean;
- readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
readonly isX4: boolean;
- readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
readonly isX5: boolean;
- readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
readonly isX6: boolean;
- readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
readonly isX7: boolean;
- readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
readonly isX8: boolean;
- readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
- readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
+ readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
+ readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
}
- /** @name XcmV1Junction (47) */
- interface XcmV1Junction extends Enum {
+ /** @name XcmV0Junction (90) */
+ export interface XcmV0Junction extends Enum {
+ readonly isParent: boolean;
readonly isParachain: boolean;
readonly asParachain: Compact<u32>;
readonly isAccountId32: boolean;
@@ -535,11 +659,11 @@
readonly id: XcmV0JunctionBodyId;
readonly part: XcmV0JunctionBodyPart;
} & Struct;
- readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
+ readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
- /** @name XcmV0JunctionNetworkId (49) */
- interface XcmV0JunctionNetworkId extends Enum {
+ /** @name XcmV0JunctionNetworkId (91) */
+ export interface XcmV0JunctionNetworkId extends Enum {
readonly isAny: boolean;
readonly isNamed: boolean;
readonly asNamed: Bytes;
@@ -548,8 +672,8 @@
readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
}
- /** @name XcmV0JunctionBodyId (53) */
- interface XcmV0JunctionBodyId extends Enum {
+ /** @name XcmV0JunctionBodyId (92) */
+ export interface XcmV0JunctionBodyId extends Enum {
readonly isUnit: boolean;
readonly isNamed: boolean;
readonly asNamed: Bytes;
@@ -562,8 +686,8 @@
readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';
}
- /** @name XcmV0JunctionBodyPart (54) */
- interface XcmV0JunctionBodyPart extends Enum {
+ /** @name XcmV0JunctionBodyPart (93) */
+ export interface XcmV0JunctionBodyPart extends Enum {
readonly isVoice: boolean;
readonly isMembers: boolean;
readonly asMembers: {
@@ -587,12 +711,462 @@
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
}
- /** @name XcmV2Xcm (55) */
- interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
+ /** @name XcmV1MultiLocation (94) */
+ export interface XcmV1MultiLocation extends Struct {
+ readonly parents: u8;
+ readonly interior: XcmV1MultilocationJunctions;
+ }
+
+ /** @name XcmV1MultilocationJunctions (95) */
+ export interface XcmV1MultilocationJunctions extends Enum {
+ readonly isHere: boolean;
+ readonly isX1: boolean;
+ readonly asX1: XcmV1Junction;
+ readonly isX2: boolean;
+ readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;
+ readonly isX3: boolean;
+ readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly isX4: boolean;
+ readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly isX5: boolean;
+ readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly isX6: boolean;
+ readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly isX7: boolean;
+ readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly isX8: boolean;
+ readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
+ readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
+ }
+
+ /** @name XcmV1Junction (96) */
+ export interface XcmV1Junction extends Enum {
+ readonly isParachain: boolean;
+ readonly asParachain: Compact<u32>;
+ readonly isAccountId32: boolean;
+ readonly asAccountId32: {
+ readonly network: XcmV0JunctionNetworkId;
+ readonly id: U8aFixed;
+ } & Struct;
+ readonly isAccountIndex64: boolean;
+ readonly asAccountIndex64: {
+ readonly network: XcmV0JunctionNetworkId;
+ readonly index: Compact<u64>;
+ } & Struct;
+ readonly isAccountKey20: boolean;
+ readonly asAccountKey20: {
+ readonly network: XcmV0JunctionNetworkId;
+ readonly key: U8aFixed;
+ } & Struct;
+ readonly isPalletInstance: boolean;
+ readonly asPalletInstance: u8;
+ readonly isGeneralIndex: boolean;
+ readonly asGeneralIndex: Compact<u128>;
+ readonly isGeneralKey: boolean;
+ readonly asGeneralKey: Bytes;
+ readonly isOnlyChild: boolean;
+ readonly isPlurality: boolean;
+ readonly asPlurality: {
+ readonly id: XcmV0JunctionBodyId;
+ readonly part: XcmV0JunctionBodyPart;
+ } & Struct;
+ readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
+ }
+
+ /** @name XcmVersionedXcm (97) */
+ export interface XcmVersionedXcm extends Enum {
+ readonly isV0: boolean;
+ readonly asV0: XcmV0Xcm;
+ readonly isV1: boolean;
+ readonly asV1: XcmV1Xcm;
+ readonly isV2: boolean;
+ readonly asV2: XcmV2Xcm;
+ readonly type: 'V0' | 'V1' | 'V2';
+ }
+
+ /** @name XcmV0Xcm (98) */
+ export interface XcmV0Xcm extends Enum {
+ readonly isWithdrawAsset: boolean;
+ readonly asWithdrawAsset: {
+ readonly assets: Vec<XcmV0MultiAsset>;
+ readonly effects: Vec<XcmV0Order>;
+ } & Struct;
+ readonly isReserveAssetDeposit: boolean;
+ readonly asReserveAssetDeposit: {
+ readonly assets: Vec<XcmV0MultiAsset>;
+ readonly effects: Vec<XcmV0Order>;
+ } & Struct;
+ readonly isTeleportAsset: boolean;
+ readonly asTeleportAsset: {
+ readonly assets: Vec<XcmV0MultiAsset>;
+ readonly effects: Vec<XcmV0Order>;
+ } & Struct;
+ readonly isQueryResponse: boolean;
+ readonly asQueryResponse: {
+ readonly queryId: Compact<u64>;
+ readonly response: XcmV0Response;
+ } & Struct;
+ readonly isTransferAsset: boolean;
+ readonly asTransferAsset: {
+ readonly assets: Vec<XcmV0MultiAsset>;
+ readonly dest: XcmV0MultiLocation;
+ } & Struct;
+ readonly isTransferReserveAsset: boolean;
+ readonly asTransferReserveAsset: {
+ readonly assets: Vec<XcmV0MultiAsset>;
+ readonly dest: XcmV0MultiLocation;
+ readonly effects: Vec<XcmV0Order>;
+ } & Struct;
+ readonly isTransact: boolean;
+ readonly asTransact: {
+ readonly originType: XcmV0OriginKind;
+ readonly requireWeightAtMost: u64;
+ readonly call: XcmDoubleEncoded;
+ } & Struct;
+ readonly isHrmpNewChannelOpenRequest: boolean;
+ readonly asHrmpNewChannelOpenRequest: {
+ readonly sender: Compact<u32>;
+ readonly maxMessageSize: Compact<u32>;
+ readonly maxCapacity: Compact<u32>;
+ } & Struct;
+ readonly isHrmpChannelAccepted: boolean;
+ readonly asHrmpChannelAccepted: {
+ readonly recipient: Compact<u32>;
+ } & Struct;
+ readonly isHrmpChannelClosing: boolean;
+ readonly asHrmpChannelClosing: {
+ readonly initiator: Compact<u32>;
+ readonly sender: Compact<u32>;
+ readonly recipient: Compact<u32>;
+ } & Struct;
+ readonly isRelayedFrom: boolean;
+ readonly asRelayedFrom: {
+ readonly who: XcmV0MultiLocation;
+ readonly message: XcmV0Xcm;
+ } & Struct;
+ readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
+ }
+
+ /** @name XcmV0MultiAsset (100) */
+ export interface XcmV0MultiAsset extends Enum {
+ readonly isNone: boolean;
+ readonly isAll: boolean;
+ readonly isAllFungible: boolean;
+ readonly isAllNonFungible: boolean;
+ readonly isAllAbstractFungible: boolean;
+ readonly asAllAbstractFungible: {
+ readonly id: Bytes;
+ } & Struct;
+ readonly isAllAbstractNonFungible: boolean;
+ readonly asAllAbstractNonFungible: {
+ readonly class: Bytes;
+ } & Struct;
+ readonly isAllConcreteFungible: boolean;
+ readonly asAllConcreteFungible: {
+ readonly id: XcmV0MultiLocation;
+ } & Struct;
+ readonly isAllConcreteNonFungible: boolean;
+ readonly asAllConcreteNonFungible: {
+ readonly class: XcmV0MultiLocation;
+ } & Struct;
+ readonly isAbstractFungible: boolean;
+ readonly asAbstractFungible: {
+ readonly id: Bytes;
+ readonly amount: Compact<u128>;
+ } & Struct;
+ readonly isAbstractNonFungible: boolean;
+ readonly asAbstractNonFungible: {
+ readonly class: Bytes;
+ readonly instance: XcmV1MultiassetAssetInstance;
+ } & Struct;
+ readonly isConcreteFungible: boolean;
+ readonly asConcreteFungible: {
+ readonly id: XcmV0MultiLocation;
+ readonly amount: Compact<u128>;
+ } & Struct;
+ readonly isConcreteNonFungible: boolean;
+ readonly asConcreteNonFungible: {
+ readonly class: XcmV0MultiLocation;
+ readonly instance: XcmV1MultiassetAssetInstance;
+ } & Struct;
+ readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';
+ }
+
+ /** @name XcmV1MultiassetAssetInstance (101) */
+ export interface XcmV1MultiassetAssetInstance extends Enum {
+ readonly isUndefined: boolean;
+ readonly isIndex: boolean;
+ readonly asIndex: 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;
+ readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
+ }
+
+ /** @name XcmV0Order (104) */
+ export interface XcmV0Order extends Enum {
+ readonly isNull: boolean;
+ readonly isDepositAsset: boolean;
+ readonly asDepositAsset: {
+ readonly assets: Vec<XcmV0MultiAsset>;
+ readonly dest: XcmV0MultiLocation;
+ } & Struct;
+ readonly isDepositReserveAsset: boolean;
+ readonly asDepositReserveAsset: {
+ readonly assets: Vec<XcmV0MultiAsset>;
+ readonly dest: XcmV0MultiLocation;
+ readonly effects: Vec<XcmV0Order>;
+ } & Struct;
+ readonly isExchangeAsset: boolean;
+ readonly asExchangeAsset: {
+ readonly give: Vec<XcmV0MultiAsset>;
+ readonly receive: Vec<XcmV0MultiAsset>;
+ } & Struct;
+ readonly isInitiateReserveWithdraw: boolean;
+ readonly asInitiateReserveWithdraw: {
+ readonly assets: Vec<XcmV0MultiAsset>;
+ readonly reserve: XcmV0MultiLocation;
+ readonly effects: Vec<XcmV0Order>;
+ } & Struct;
+ readonly isInitiateTeleport: boolean;
+ readonly asInitiateTeleport: {
+ readonly assets: Vec<XcmV0MultiAsset>;
+ readonly dest: XcmV0MultiLocation;
+ readonly effects: Vec<XcmV0Order>;
+ } & Struct;
+ readonly isQueryHolding: boolean;
+ readonly asQueryHolding: {
+ readonly queryId: Compact<u64>;
+ readonly dest: XcmV0MultiLocation;
+ readonly assets: Vec<XcmV0MultiAsset>;
+ } & Struct;
+ readonly isBuyExecution: boolean;
+ readonly asBuyExecution: {
+ readonly fees: XcmV0MultiAsset;
+ readonly weight: u64;
+ readonly debt: u64;
+ readonly haltOnError: bool;
+ readonly xcm: Vec<XcmV0Xcm>;
+ } & Struct;
+ readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
+ }
+
+ /** @name XcmV0Response (106) */
+ export interface XcmV0Response extends Enum {
+ readonly isAssets: boolean;
+ readonly asAssets: Vec<XcmV0MultiAsset>;
+ readonly type: 'Assets';
+ }
+
+ /** @name XcmV0OriginKind (107) */
+ export interface XcmV0OriginKind extends Enum {
+ readonly isNative: boolean;
+ readonly isSovereignAccount: boolean;
+ readonly isSuperuser: boolean;
+ readonly isXcm: boolean;
+ readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
+ }
+
+ /** @name XcmDoubleEncoded (108) */
+ export interface XcmDoubleEncoded extends Struct {
+ readonly encoded: Bytes;
+ }
- /** @name XcmV2Instruction (57) */
- interface XcmV2Instruction extends Enum {
+ /** @name XcmV1Xcm (109) */
+ export interface XcmV1Xcm extends Enum {
readonly isWithdrawAsset: boolean;
+ readonly asWithdrawAsset: {
+ readonly assets: XcmV1MultiassetMultiAssets;
+ readonly effects: Vec<XcmV1Order>;
+ } & Struct;
+ readonly isReserveAssetDeposited: boolean;
+ readonly asReserveAssetDeposited: {
+ readonly assets: XcmV1MultiassetMultiAssets;
+ readonly effects: Vec<XcmV1Order>;
+ } & Struct;
+ readonly isReceiveTeleportedAsset: boolean;
+ readonly asReceiveTeleportedAsset: {
+ readonly assets: XcmV1MultiassetMultiAssets;
+ readonly effects: Vec<XcmV1Order>;
+ } & Struct;
+ readonly isQueryResponse: boolean;
+ readonly asQueryResponse: {
+ readonly queryId: Compact<u64>;
+ readonly response: XcmV1Response;
+ } & Struct;
+ readonly isTransferAsset: boolean;
+ readonly asTransferAsset: {
+ readonly assets: XcmV1MultiassetMultiAssets;
+ readonly beneficiary: XcmV1MultiLocation;
+ } & Struct;
+ readonly isTransferReserveAsset: boolean;
+ readonly asTransferReserveAsset: {
+ readonly assets: XcmV1MultiassetMultiAssets;
+ readonly dest: XcmV1MultiLocation;
+ readonly effects: Vec<XcmV1Order>;
+ } & Struct;
+ readonly isTransact: boolean;
+ readonly asTransact: {
+ readonly originType: XcmV0OriginKind;
+ readonly requireWeightAtMost: u64;
+ readonly call: XcmDoubleEncoded;
+ } & Struct;
+ readonly isHrmpNewChannelOpenRequest: boolean;
+ readonly asHrmpNewChannelOpenRequest: {
+ readonly sender: Compact<u32>;
+ readonly maxMessageSize: Compact<u32>;
+ readonly maxCapacity: Compact<u32>;
+ } & Struct;
+ readonly isHrmpChannelAccepted: boolean;
+ readonly asHrmpChannelAccepted: {
+ readonly recipient: Compact<u32>;
+ } & Struct;
+ readonly isHrmpChannelClosing: boolean;
+ readonly asHrmpChannelClosing: {
+ readonly initiator: Compact<u32>;
+ readonly sender: Compact<u32>;
+ readonly recipient: Compact<u32>;
+ } & Struct;
+ readonly isRelayedFrom: boolean;
+ readonly asRelayedFrom: {
+ readonly who: XcmV1MultilocationJunctions;
+ readonly message: XcmV1Xcm;
+ } & Struct;
+ readonly isSubscribeVersion: boolean;
+ readonly asSubscribeVersion: {
+ readonly queryId: Compact<u64>;
+ readonly maxResponseWeight: Compact<u64>;
+ } & Struct;
+ readonly isUnsubscribeVersion: boolean;
+ readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
+ }
+
+ /** @name XcmV1MultiassetMultiAssets (110) */
+ export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}
+
+ /** @name XcmV1MultiAsset (112) */
+ export interface XcmV1MultiAsset extends Struct {
+ readonly id: XcmV1MultiassetAssetId;
+ readonly fun: XcmV1MultiassetFungibility;
+ }
+
+ /** @name XcmV1MultiassetAssetId (113) */
+ export interface XcmV1MultiassetAssetId extends Enum {
+ readonly isConcrete: boolean;
+ readonly asConcrete: XcmV1MultiLocation;
+ readonly isAbstract: boolean;
+ readonly asAbstract: Bytes;
+ readonly type: 'Concrete' | 'Abstract';
+ }
+
+ /** @name XcmV1MultiassetFungibility (114) */
+ export interface XcmV1MultiassetFungibility extends Enum {
+ readonly isFungible: boolean;
+ readonly asFungible: Compact<u128>;
+ readonly isNonFungible: boolean;
+ readonly asNonFungible: XcmV1MultiassetAssetInstance;
+ readonly type: 'Fungible' | 'NonFungible';
+ }
+
+ /** @name XcmV1Order (116) */
+ export interface XcmV1Order extends Enum {
+ readonly isNoop: boolean;
+ readonly isDepositAsset: boolean;
+ readonly asDepositAsset: {
+ readonly assets: XcmV1MultiassetMultiAssetFilter;
+ readonly maxAssets: u32;
+ readonly beneficiary: XcmV1MultiLocation;
+ } & Struct;
+ readonly isDepositReserveAsset: boolean;
+ readonly asDepositReserveAsset: {
+ readonly assets: XcmV1MultiassetMultiAssetFilter;
+ readonly maxAssets: u32;
+ readonly dest: XcmV1MultiLocation;
+ readonly effects: Vec<XcmV1Order>;
+ } & Struct;
+ readonly isExchangeAsset: boolean;
+ readonly asExchangeAsset: {
+ readonly give: XcmV1MultiassetMultiAssetFilter;
+ readonly receive: XcmV1MultiassetMultiAssets;
+ } & Struct;
+ readonly isInitiateReserveWithdraw: boolean;
+ readonly asInitiateReserveWithdraw: {
+ readonly assets: XcmV1MultiassetMultiAssetFilter;
+ readonly reserve: XcmV1MultiLocation;
+ readonly effects: Vec<XcmV1Order>;
+ } & Struct;
+ readonly isInitiateTeleport: boolean;
+ readonly asInitiateTeleport: {
+ readonly assets: XcmV1MultiassetMultiAssetFilter;
+ readonly dest: XcmV1MultiLocation;
+ readonly effects: Vec<XcmV1Order>;
+ } & Struct;
+ readonly isQueryHolding: boolean;
+ readonly asQueryHolding: {
+ readonly queryId: Compact<u64>;
+ readonly dest: XcmV1MultiLocation;
+ readonly assets: XcmV1MultiassetMultiAssetFilter;
+ } & Struct;
+ readonly isBuyExecution: boolean;
+ readonly asBuyExecution: {
+ readonly fees: XcmV1MultiAsset;
+ readonly weight: u64;
+ readonly debt: u64;
+ readonly haltOnError: bool;
+ readonly instructions: Vec<XcmV1Xcm>;
+ } & Struct;
+ readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
+ }
+
+ /** @name XcmV1MultiassetMultiAssetFilter (117) */
+ export interface XcmV1MultiassetMultiAssetFilter extends Enum {
+ readonly isDefinite: boolean;
+ readonly asDefinite: XcmV1MultiassetMultiAssets;
+ readonly isWild: boolean;
+ readonly asWild: XcmV1MultiassetWildMultiAsset;
+ readonly type: 'Definite' | 'Wild';
+ }
+
+ /** @name XcmV1MultiassetWildMultiAsset (118) */
+ export interface XcmV1MultiassetWildMultiAsset extends Enum {
+ readonly isAll: boolean;
+ readonly isAllOf: boolean;
+ readonly asAllOf: {
+ readonly id: XcmV1MultiassetAssetId;
+ readonly fun: XcmV1MultiassetWildFungibility;
+ } & Struct;
+ readonly type: 'All' | 'AllOf';
+ }
+
+ /** @name XcmV1MultiassetWildFungibility (119) */
+ export interface XcmV1MultiassetWildFungibility extends Enum {
+ readonly isFungible: boolean;
+ readonly isNonFungible: boolean;
+ readonly type: 'Fungible' | 'NonFungible';
+ }
+
+ /** @name XcmV1Response (121) */
+ export interface XcmV1Response extends Enum {
+ readonly isAssets: boolean;
+ readonly asAssets: XcmV1MultiassetMultiAssets;
+ readonly isVersion: boolean;
+ readonly asVersion: u32;
+ readonly type: 'Assets' | 'Version';
+ }
+
+ /** @name XcmV2Xcm (122) */
+ export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
+
+ /** @name XcmV2Instruction (124) */
+ export interface XcmV2Instruction extends Enum {
+ readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;
readonly isReserveAssetDeposited: boolean;
readonly asReserveAssetDeposited: XcmV1MultiassetMultiAssets;
@@ -708,55 +1282,10 @@
} & Struct;
readonly isUnsubscribeVersion: boolean;
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';
- }
-
- /** @name XcmV1MultiassetMultiAssets (58) */
- interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}
-
- /** @name XcmV1MultiAsset (60) */
- interface XcmV1MultiAsset extends Struct {
- readonly id: XcmV1MultiassetAssetId;
- readonly fun: XcmV1MultiassetFungibility;
}
- /** @name XcmV1MultiassetAssetId (61) */
- interface XcmV1MultiassetAssetId extends Enum {
- readonly isConcrete: boolean;
- readonly asConcrete: XcmV1MultiLocation;
- readonly isAbstract: boolean;
- readonly asAbstract: Bytes;
- readonly type: 'Concrete' | 'Abstract';
- }
-
- /** @name XcmV1MultiassetFungibility (62) */
- interface XcmV1MultiassetFungibility extends Enum {
- readonly isFungible: boolean;
- readonly asFungible: Compact<u128>;
- readonly isNonFungible: boolean;
- readonly asNonFungible: XcmV1MultiassetAssetInstance;
- readonly type: 'Fungible' | 'NonFungible';
- }
-
- /** @name XcmV1MultiassetAssetInstance (63) */
- interface XcmV1MultiassetAssetInstance extends Enum {
- readonly isUndefined: boolean;
- readonly isIndex: boolean;
- readonly asIndex: 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;
- readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
- }
-
- /** @name XcmV2Response (66) */
- interface XcmV2Response extends Enum {
+ /** @name XcmV2Response (125) */
+ export interface XcmV2Response extends Enum {
readonly isNull: boolean;
readonly isAssets: boolean;
readonly asAssets: XcmV1MultiassetMultiAssets;
@@ -767,57 +1296,49 @@
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
}
- /** @name XcmV0OriginKind (69) */
- interface XcmV0OriginKind extends Enum {
- readonly isNative: boolean;
- readonly isSovereignAccount: boolean;
- readonly isSuperuser: boolean;
- readonly isXcm: boolean;
- readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
- }
-
- /** @name XcmDoubleEncoded (70) */
- interface XcmDoubleEncoded extends Struct {
- readonly encoded: Bytes;
- }
-
- /** @name XcmV1MultiassetMultiAssetFilter (71) */
- interface XcmV1MultiassetMultiAssetFilter extends Enum {
- readonly isDefinite: boolean;
- readonly asDefinite: XcmV1MultiassetMultiAssets;
- readonly isWild: boolean;
- readonly asWild: XcmV1MultiassetWildMultiAsset;
- readonly type: 'Definite' | 'Wild';
- }
-
- /** @name XcmV1MultiassetWildMultiAsset (72) */
- interface XcmV1MultiassetWildMultiAsset extends Enum {
- readonly isAll: boolean;
- readonly isAllOf: boolean;
- readonly asAllOf: {
- readonly id: XcmV1MultiassetAssetId;
- readonly fun: XcmV1MultiassetWildFungibility;
- } & Struct;
- readonly type: 'All' | 'AllOf';
- }
-
- /** @name XcmV1MultiassetWildFungibility (73) */
- interface XcmV1MultiassetWildFungibility extends Enum {
- readonly isFungible: boolean;
- readonly isNonFungible: boolean;
- readonly type: 'Fungible' | 'NonFungible';
+ /** @name XcmV2TraitsError (128) */
+ export interface XcmV2TraitsError extends Enum {
+ readonly isOverflow: boolean;
+ readonly isUnimplemented: boolean;
+ readonly isUntrustedReserveLocation: boolean;
+ readonly isUntrustedTeleportLocation: boolean;
+ readonly isMultiLocationFull: boolean;
+ readonly isMultiLocationNotInvertible: boolean;
+ readonly isBadOrigin: boolean;
+ readonly isInvalidLocation: boolean;
+ readonly isAssetNotFound: boolean;
+ readonly isFailedToTransactAsset: boolean;
+ readonly isNotWithdrawable: boolean;
+ readonly isLocationCannotHold: boolean;
+ readonly isExceedsMaxMessageSize: boolean;
+ readonly isDestinationUnsupported: boolean;
+ readonly isTransport: boolean;
+ readonly isUnroutable: boolean;
+ readonly isUnknownClaim: boolean;
+ readonly isFailedToDecode: boolean;
+ readonly isMaxWeightInvalid: boolean;
+ readonly isNotHoldingFees: boolean;
+ readonly isTooExpensive: boolean;
+ readonly isTrap: boolean;
+ readonly asTrap: u64;
+ readonly isUnhandledXcmVersion: boolean;
+ readonly isWeightLimitReached: boolean;
+ readonly asWeightLimitReached: u64;
+ readonly isBarrier: boolean;
+ readonly isWeightNotComputable: boolean;
+ readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';
}
- /** @name XcmV2WeightLimit (74) */
- interface XcmV2WeightLimit extends Enum {
+ /** @name XcmV2WeightLimit (129) */
+ export interface XcmV2WeightLimit extends Enum {
readonly isUnlimited: boolean;
readonly isLimited: boolean;
readonly asLimited: Compact<u64>;
readonly type: 'Unlimited' | 'Limited';
}
- /** @name XcmVersionedMultiAssets (76) */
- interface XcmVersionedMultiAssets extends Enum {
+ /** @name XcmVersionedMultiAssets (130) */
+ export interface XcmVersionedMultiAssets extends Enum {
readonly isV0: boolean;
readonly asV0: Vec<XcmV0MultiAsset>;
readonly isV1: boolean;
@@ -825,105 +1346,16 @@
readonly type: 'V0' | 'V1';
}
- /** @name XcmV0MultiAsset (78) */
- interface XcmV0MultiAsset extends Enum {
- readonly isNone: boolean;
- readonly isAll: boolean;
- readonly isAllFungible: boolean;
- readonly isAllNonFungible: boolean;
- readonly isAllAbstractFungible: boolean;
- readonly asAllAbstractFungible: {
- readonly id: Bytes;
- } & Struct;
- readonly isAllAbstractNonFungible: boolean;
- readonly asAllAbstractNonFungible: {
- readonly class: Bytes;
- } & Struct;
- readonly isAllConcreteFungible: boolean;
- readonly asAllConcreteFungible: {
- readonly id: XcmV0MultiLocation;
- } & Struct;
- readonly isAllConcreteNonFungible: boolean;
- readonly asAllConcreteNonFungible: {
- readonly class: XcmV0MultiLocation;
- } & Struct;
- readonly isAbstractFungible: boolean;
- readonly asAbstractFungible: {
- readonly id: Bytes;
- readonly amount: Compact<u128>;
- } & Struct;
- readonly isAbstractNonFungible: boolean;
- readonly asAbstractNonFungible: {
- readonly class: Bytes;
- readonly instance: XcmV1MultiassetAssetInstance;
- } & Struct;
- readonly isConcreteFungible: boolean;
- readonly asConcreteFungible: {
- readonly id: XcmV0MultiLocation;
- readonly amount: Compact<u128>;
- } & Struct;
- readonly isConcreteNonFungible: boolean;
- readonly asConcreteNonFungible: {
- readonly class: XcmV0MultiLocation;
- readonly instance: XcmV1MultiassetAssetInstance;
- } & Struct;
- readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';
- }
+ /** @name CumulusPalletXcmCall (145) */
+ export type CumulusPalletXcmCall = Null;
- /** @name XcmV0MultiLocation (79) */
- interface XcmV0MultiLocation extends Enum {
- readonly isNull: boolean;
- readonly isX1: boolean;
- readonly asX1: XcmV0Junction;
- readonly isX2: boolean;
- readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;
- readonly isX3: boolean;
- readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX4: boolean;
- readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX5: boolean;
- readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX6: boolean;
- readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX7: boolean;
- readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX8: boolean;
- readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
- }
-
- /** @name XcmV0Junction (80) */
- interface XcmV0Junction extends Enum {
- readonly isParent: boolean;
- readonly isParachain: boolean;
- readonly asParachain: Compact<u32>;
- readonly isAccountId32: boolean;
- readonly asAccountId32: {
- readonly network: XcmV0JunctionNetworkId;
- readonly id: U8aFixed;
+ /** @name CumulusPalletDmpQueueCall (146) */
+ export interface CumulusPalletDmpQueueCall extends Enum {
+ readonly isServiceOverweight: boolean;
+ readonly asServiceOverweight: {
+ readonly index: u64;
+ readonly weightLimit: u64;
} & Struct;
- readonly isAccountIndex64: boolean;
- readonly asAccountIndex64: {
- readonly network: XcmV0JunctionNetworkId;
- readonly index: Compact<u64>;
- } & Struct;
- readonly isAccountKey20: boolean;
- readonly asAccountKey20: {
- readonly network: XcmV0JunctionNetworkId;
- readonly key: U8aFixed;
- } & Struct;
- readonly isPalletInstance: boolean;
- readonly asPalletInstance: u8;
- readonly isGeneralIndex: boolean;
- readonly asGeneralIndex: Compact<u128>;
- readonly isGeneralKey: boolean;
- readonly asGeneralKey: Bytes;
- readonly isOnlyChild: boolean;
- readonly isPlurality: boolean;
- readonly asPlurality: {
- readonly id: XcmV0JunctionBodyId;
- readonly part: XcmV0JunctionBodyPart;
- } & Struct;
readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
@@ -947,16 +1379,51 @@
readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';
}
- /** @name CumulusPalletDmpQueueEvent (83) */
- interface CumulusPalletDmpQueueEvent extends Enum {
- readonly isInvalidFormat: boolean;
- readonly asInvalidFormat: {
- readonly messageId: U8aFixed;
+ /** @name PalletInflationCall (147) */
+ export interface PalletInflationCall extends Enum {
+ readonly isStartInflation: boolean;
+ readonly asStartInflation: {
+ readonly inflationStartRelayBlock: u32;
} & Struct;
+<<<<<<< HEAD
readonly isUnsupportedVersion: boolean;
readonly asUnsupportedVersion: {
readonly messageId: U8aFixed;
+=======
+ readonly type: 'StartInflation';
+ }
+
+ /** @name PalletAppPromotionCall (148) */
+ export interface PalletAppPromotionCall extends Enum {
+ readonly isSetAdminAddress: boolean;
+ readonly asSetAdminAddress: {
+ readonly admin: AccountId32;
+ } & Struct;
+ readonly isStartAppPromotion: boolean;
+ readonly asStartAppPromotion: {
+ readonly promotionStartRelayBlock: u32;
+ } & Struct;
+ readonly isStake: boolean;
+ readonly asStake: {
+ readonly amount: u128;
+ } & Struct;
+ readonly isUnstake: boolean;
+ readonly asUnstake: {
+ readonly amount: u128;
} & Struct;
+ readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'Stake' | 'Unstake';
+ }
+
+ /** @name PalletUniqueCall (149) */
+ export interface PalletUniqueCall extends Enum {
+ readonly isCreateCollection: boolean;
+ readonly asCreateCollection: {
+ readonly collectionName: Vec<u16>;
+ readonly collectionDescription: Vec<u16>;
+ readonly tokenPrefix: Bytes;
+ readonly mode: UpDataStructsCollectionMode;
+>>>>>>> b43f8da0... added totalstaked & fix bug with number in RPC Client
+ } & Struct;
readonly isExecutedDownward: boolean;
readonly asExecutedDownward: {
readonly messageId: U8aFixed;
@@ -1095,6 +1562,7 @@
readonly asCollectionDestroyed: {
readonly issuer: AccountId32;
readonly collectionId: u32;
+ readonly newAdmin: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isIssuerChanged: boolean;
readonly asIssuerChanged: {
@@ -1174,6 +1642,7 @@
readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet';
}
+<<<<<<< HEAD
/** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (97) */
interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {
readonly isAccountId: boolean;
@@ -1359,889 +1828,10 @@
readonly normal: FrameSystemLimitsWeightsPerClass;
readonly operational: FrameSystemLimitsWeightsPerClass;
readonly mandatory: FrameSystemLimitsWeightsPerClass;
- }
-
- /** @name FrameSystemLimitsWeightsPerClass (126) */
- interface FrameSystemLimitsWeightsPerClass extends Struct {
- readonly baseExtrinsic: u64;
- readonly maxExtrinsic: Option<u64>;
- readonly maxTotal: Option<u64>;
- readonly reserved: Option<u64>;
- }
-
- /** @name FrameSystemLimitsBlockLength (128) */
- interface FrameSystemLimitsBlockLength extends Struct {
- readonly max: FrameSupportWeightsPerDispatchClassU32;
- }
-
- /** @name FrameSupportWeightsPerDispatchClassU32 (129) */
- interface FrameSupportWeightsPerDispatchClassU32 extends Struct {
- readonly normal: u32;
- readonly operational: u32;
- readonly mandatory: u32;
- }
-
- /** @name FrameSupportWeightsRuntimeDbWeight (130) */
- interface FrameSupportWeightsRuntimeDbWeight extends Struct {
- readonly read: u64;
- readonly write: u64;
- }
-
- /** @name SpVersionRuntimeVersion (131) */
- interface SpVersionRuntimeVersion extends Struct {
- readonly specName: Text;
- readonly implName: Text;
- readonly authoringVersion: u32;
- readonly specVersion: u32;
- readonly implVersion: u32;
- readonly apis: Vec<ITuple<[U8aFixed, u32]>>;
- readonly transactionVersion: u32;
- readonly stateVersion: u8;
- }
-
- /** @name FrameSystemError (136) */
- interface FrameSystemError extends Enum {
- readonly isInvalidSpecName: boolean;
- readonly isSpecVersionNeedsToIncrease: boolean;
- readonly isFailedToExtractRuntimeVersion: boolean;
- readonly isNonDefaultComposite: boolean;
- readonly isNonZeroRefCount: boolean;
- readonly isCallFiltered: boolean;
- readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';
- }
-
- /** @name PolkadotPrimitivesV2PersistedValidationData (137) */
- interface PolkadotPrimitivesV2PersistedValidationData extends Struct {
- readonly parentHead: Bytes;
- readonly relayParentNumber: u32;
- readonly relayParentStorageRoot: H256;
- readonly maxPovSize: u32;
- }
-
- /** @name PolkadotPrimitivesV2UpgradeRestriction (140) */
- interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {
- readonly isPresent: boolean;
- readonly type: 'Present';
- }
-
- /** @name SpTrieStorageProof (141) */
- interface SpTrieStorageProof extends Struct {
- readonly trieNodes: BTreeSet<Bytes>;
- }
-
- /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (143) */
- interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {
- readonly dmqMqcHead: H256;
- readonly relayDispatchQueueSize: ITuple<[u32, u32]>;
- readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;
- readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;
- }
-
- /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (146) */
- interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct {
- readonly maxCapacity: u32;
- readonly maxTotalSize: u32;
- readonly maxMessageSize: u32;
- readonly msgCount: u32;
- readonly totalSize: u32;
- readonly mqcHead: Option<H256>;
- }
-
- /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (147) */
- interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct {
- readonly maxCodeSize: u32;
- readonly maxHeadDataSize: u32;
- readonly maxUpwardQueueCount: u32;
- readonly maxUpwardQueueSize: u32;
- readonly maxUpwardMessageSize: u32;
- readonly maxUpwardMessageNumPerCandidate: u32;
- readonly hrmpMaxMessageNumPerCandidate: u32;
- readonly validationUpgradeCooldown: u32;
- readonly validationUpgradeDelay: u32;
- }
-
- /** @name PolkadotCorePrimitivesOutboundHrmpMessage (153) */
- interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
- readonly recipient: u32;
- readonly data: Bytes;
}
- /** @name CumulusPalletParachainSystemCall (154) */
- interface CumulusPalletParachainSystemCall extends Enum {
- readonly isSetValidationData: boolean;
- readonly asSetValidationData: {
- readonly data: CumulusPrimitivesParachainInherentParachainInherentData;
- } & Struct;
- readonly isSudoSendUpwardMessage: boolean;
- readonly asSudoSendUpwardMessage: {
- readonly message: Bytes;
- } & Struct;
- readonly isAuthorizeUpgrade: boolean;
- readonly asAuthorizeUpgrade: {
- readonly codeHash: H256;
- } & Struct;
- readonly isEnactAuthorizedUpgrade: boolean;
- readonly asEnactAuthorizedUpgrade: {
- readonly code: Bytes;
- } & Struct;
- readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';
- }
-
- /** @name CumulusPrimitivesParachainInherentParachainInherentData (155) */
- interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {
- readonly validationData: PolkadotPrimitivesV2PersistedValidationData;
- readonly relayChainState: SpTrieStorageProof;
- readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;
- readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;
- }
-
- /** @name PolkadotCorePrimitivesInboundDownwardMessage (157) */
- interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
- readonly sentAt: u32;
- readonly msg: Bytes;
- }
-
- /** @name PolkadotCorePrimitivesInboundHrmpMessage (160) */
- interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
- readonly sentAt: u32;
- readonly data: Bytes;
- }
-
- /** @name CumulusPalletParachainSystemError (163) */
- interface CumulusPalletParachainSystemError extends Enum {
- readonly isOverlappingUpgrades: boolean;
- readonly isProhibitedByPolkadot: boolean;
- readonly isTooBig: boolean;
- readonly isValidationDataNotAvailable: boolean;
- readonly isHostConfigurationNotAvailable: boolean;
- readonly isNotScheduled: boolean;
- readonly isNothingAuthorized: boolean;
- readonly isUnauthorized: boolean;
- readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';
- }
-
- /** @name PalletBalancesBalanceLock (165) */
- interface PalletBalancesBalanceLock extends Struct {
- readonly id: U8aFixed;
- readonly amount: u128;
- readonly reasons: PalletBalancesReasons;
- }
-
- /** @name PalletBalancesReasons (166) */
- interface PalletBalancesReasons extends Enum {
- readonly isFee: boolean;
- readonly isMisc: boolean;
- readonly isAll: boolean;
- readonly type: 'Fee' | 'Misc' | 'All';
- }
-
- /** @name PalletBalancesReserveData (169) */
- interface PalletBalancesReserveData extends Struct {
- readonly id: U8aFixed;
- readonly amount: u128;
- }
-
- /** @name PalletBalancesReleases (171) */
- interface PalletBalancesReleases extends Enum {
- readonly isV100: boolean;
- readonly isV200: boolean;
- readonly type: 'V100' | 'V200';
- }
-
- /** @name PalletBalancesCall (172) */
- interface PalletBalancesCall extends Enum {
- readonly isTransfer: boolean;
- readonly asTransfer: {
- readonly dest: MultiAddress;
- readonly value: Compact<u128>;
- } & Struct;
- readonly isSetBalance: boolean;
- readonly asSetBalance: {
- readonly who: MultiAddress;
- readonly newFree: Compact<u128>;
- readonly newReserved: Compact<u128>;
- } & Struct;
- readonly isForceTransfer: boolean;
- readonly asForceTransfer: {
- readonly source: MultiAddress;
- readonly dest: MultiAddress;
- readonly value: Compact<u128>;
- } & Struct;
- readonly isTransferKeepAlive: boolean;
- readonly asTransferKeepAlive: {
- readonly dest: MultiAddress;
- readonly value: Compact<u128>;
- } & Struct;
- readonly isTransferAll: boolean;
- readonly asTransferAll: {
- readonly dest: MultiAddress;
- readonly keepAlive: bool;
- } & Struct;
- readonly isForceUnreserve: boolean;
- readonly asForceUnreserve: {
- readonly who: MultiAddress;
- readonly amount: u128;
- } & Struct;
- readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';
- }
-
- /** @name PalletBalancesError (175) */
- interface PalletBalancesError extends Enum {
- readonly isVestingBalance: boolean;
- readonly isLiquidityRestrictions: boolean;
- readonly isInsufficientBalance: boolean;
- readonly isExistentialDeposit: boolean;
- readonly isKeepAlive: boolean;
- readonly isExistingVestingSchedule: boolean;
- readonly isDeadAccount: boolean;
- readonly isTooManyReserves: boolean;
- readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';
- }
-
- /** @name PalletTimestampCall (177) */
- interface PalletTimestampCall extends Enum {
- readonly isSet: boolean;
- readonly asSet: {
- readonly now: Compact<u64>;
- } & Struct;
- readonly type: 'Set';
- }
-
- /** @name PalletTransactionPaymentReleases (179) */
- interface PalletTransactionPaymentReleases extends Enum {
- readonly isV1Ancient: boolean;
- readonly isV2: boolean;
- readonly type: 'V1Ancient' | 'V2';
- }
-
- /** @name PalletTreasuryProposal (180) */
- interface PalletTreasuryProposal extends Struct {
- readonly proposer: AccountId32;
- readonly value: u128;
- readonly beneficiary: AccountId32;
- readonly bond: u128;
- }
-
- /** @name PalletTreasuryCall (183) */
- interface PalletTreasuryCall extends Enum {
- readonly isProposeSpend: boolean;
- readonly asProposeSpend: {
- readonly value: Compact<u128>;
- readonly beneficiary: MultiAddress;
- } & Struct;
- readonly isRejectProposal: boolean;
- readonly asRejectProposal: {
- readonly proposalId: Compact<u32>;
- } & Struct;
- readonly isApproveProposal: boolean;
- readonly asApproveProposal: {
- readonly proposalId: Compact<u32>;
- } & Struct;
- readonly isSpend: boolean;
- readonly asSpend: {
- readonly amount: Compact<u128>;
- readonly beneficiary: MultiAddress;
- } & Struct;
- readonly isRemoveApproval: boolean;
- readonly asRemoveApproval: {
- readonly proposalId: Compact<u32>;
- } & Struct;
- readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';
- }
-
- /** @name FrameSupportPalletId (186) */
- interface FrameSupportPalletId extends U8aFixed {}
-
- /** @name PalletTreasuryError (187) */
- interface PalletTreasuryError extends Enum {
- readonly isInsufficientProposersBalance: boolean;
- readonly isInvalidIndex: boolean;
- readonly isTooManyApprovals: boolean;
- readonly isInsufficientPermission: boolean;
- readonly isProposalNotApproved: boolean;
- readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';
- }
-
- /** @name PalletSudoCall (188) */
- interface PalletSudoCall extends Enum {
- readonly isSudo: boolean;
- readonly asSudo: {
- readonly call: Call;
- } & Struct;
- readonly isSudoUncheckedWeight: boolean;
- readonly asSudoUncheckedWeight: {
- readonly call: Call;
- readonly weight: u64;
- } & Struct;
- readonly isSetKey: boolean;
- readonly asSetKey: {
- readonly new_: MultiAddress;
- } & Struct;
- readonly isSudoAs: boolean;
- readonly asSudoAs: {
- readonly who: MultiAddress;
- readonly call: Call;
- } & Struct;
- readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';
- }
-
- /** @name OrmlVestingModuleCall (190) */
- interface OrmlVestingModuleCall extends Enum {
- readonly isClaim: boolean;
- readonly isVestedTransfer: boolean;
- readonly asVestedTransfer: {
- readonly dest: MultiAddress;
- readonly schedule: OrmlVestingVestingSchedule;
- } & Struct;
- readonly isUpdateVestingSchedules: boolean;
- readonly asUpdateVestingSchedules: {
- readonly who: MultiAddress;
- readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;
- } & Struct;
- readonly isClaimFor: boolean;
- readonly asClaimFor: {
- readonly dest: MultiAddress;
- } & Struct;
- readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';
- }
-
- /** @name CumulusPalletXcmpQueueCall (192) */
- interface CumulusPalletXcmpQueueCall extends Enum {
- readonly isServiceOverweight: boolean;
- readonly asServiceOverweight: {
- readonly index: u64;
- readonly weightLimit: u64;
- } & Struct;
- readonly isSuspendXcmExecution: boolean;
- readonly isResumeXcmExecution: boolean;
- readonly isUpdateSuspendThreshold: boolean;
- readonly asUpdateSuspendThreshold: {
- readonly new_: u32;
- } & Struct;
- readonly isUpdateDropThreshold: boolean;
- readonly asUpdateDropThreshold: {
- readonly new_: u32;
- } & Struct;
- readonly isUpdateResumeThreshold: boolean;
- readonly asUpdateResumeThreshold: {
- readonly new_: u32;
- } & Struct;
- readonly isUpdateThresholdWeight: boolean;
- readonly asUpdateThresholdWeight: {
- readonly new_: u64;
- } & Struct;
- readonly isUpdateWeightRestrictDecay: boolean;
- readonly asUpdateWeightRestrictDecay: {
- readonly new_: u64;
- } & Struct;
- readonly isUpdateXcmpMaxIndividualWeight: boolean;
- readonly asUpdateXcmpMaxIndividualWeight: {
- readonly new_: u64;
- } & Struct;
- readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';
- }
-
- /** @name PalletXcmCall (193) */
- interface PalletXcmCall extends Enum {
- readonly isSend: boolean;
- readonly asSend: {
- readonly dest: XcmVersionedMultiLocation;
- readonly message: XcmVersionedXcm;
- } & Struct;
- readonly isTeleportAssets: boolean;
- readonly asTeleportAssets: {
- readonly dest: XcmVersionedMultiLocation;
- readonly beneficiary: XcmVersionedMultiLocation;
- readonly assets: XcmVersionedMultiAssets;
- readonly feeAssetItem: u32;
- } & Struct;
- readonly isReserveTransferAssets: boolean;
- readonly asReserveTransferAssets: {
- readonly dest: XcmVersionedMultiLocation;
- readonly beneficiary: XcmVersionedMultiLocation;
- readonly assets: XcmVersionedMultiAssets;
- readonly feeAssetItem: u32;
- } & Struct;
- readonly isExecute: boolean;
- readonly asExecute: {
- readonly message: XcmVersionedXcm;
- readonly maxWeight: u64;
- } & Struct;
- readonly isForceXcmVersion: boolean;
- readonly asForceXcmVersion: {
- readonly location: XcmV1MultiLocation;
- readonly xcmVersion: u32;
- } & Struct;
- readonly isForceDefaultXcmVersion: boolean;
- readonly asForceDefaultXcmVersion: {
- readonly maybeXcmVersion: Option<u32>;
- } & Struct;
- readonly isForceSubscribeVersionNotify: boolean;
- readonly asForceSubscribeVersionNotify: {
- readonly location: XcmVersionedMultiLocation;
- } & Struct;
- readonly isForceUnsubscribeVersionNotify: boolean;
- readonly asForceUnsubscribeVersionNotify: {
- readonly location: XcmVersionedMultiLocation;
- } & Struct;
- readonly isLimitedReserveTransferAssets: boolean;
- readonly asLimitedReserveTransferAssets: {
- readonly dest: XcmVersionedMultiLocation;
- readonly beneficiary: XcmVersionedMultiLocation;
- readonly assets: XcmVersionedMultiAssets;
- readonly feeAssetItem: u32;
- readonly weightLimit: XcmV2WeightLimit;
- } & Struct;
- readonly isLimitedTeleportAssets: boolean;
- readonly asLimitedTeleportAssets: {
- readonly dest: XcmVersionedMultiLocation;
- readonly beneficiary: XcmVersionedMultiLocation;
- readonly assets: XcmVersionedMultiAssets;
- readonly feeAssetItem: u32;
- readonly weightLimit: XcmV2WeightLimit;
- } & Struct;
- readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
- }
-
- /** @name XcmVersionedXcm (194) */
- interface XcmVersionedXcm extends Enum {
- readonly isV0: boolean;
- readonly asV0: XcmV0Xcm;
- readonly isV1: boolean;
- readonly asV1: XcmV1Xcm;
- readonly isV2: boolean;
- readonly asV2: XcmV2Xcm;
- readonly type: 'V0' | 'V1' | 'V2';
- }
-
- /** @name XcmV0Xcm (195) */
- interface XcmV0Xcm extends Enum {
- readonly isWithdrawAsset: boolean;
- readonly asWithdrawAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isReserveAssetDeposit: boolean;
- readonly asReserveAssetDeposit: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isTeleportAsset: boolean;
- readonly asTeleportAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isQueryResponse: boolean;
- readonly asQueryResponse: {
- readonly queryId: Compact<u64>;
- readonly response: XcmV0Response;
- } & Struct;
- readonly isTransferAsset: boolean;
- readonly asTransferAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- } & Struct;
- readonly isTransferReserveAsset: boolean;
- readonly asTransferReserveAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isTransact: boolean;
- readonly asTransact: {
- readonly originType: XcmV0OriginKind;
- readonly requireWeightAtMost: u64;
- readonly call: XcmDoubleEncoded;
- } & Struct;
- readonly isHrmpNewChannelOpenRequest: boolean;
- readonly asHrmpNewChannelOpenRequest: {
- readonly sender: Compact<u32>;
- readonly maxMessageSize: Compact<u32>;
- readonly maxCapacity: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelAccepted: boolean;
- readonly asHrmpChannelAccepted: {
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelClosing: boolean;
- readonly asHrmpChannelClosing: {
- readonly initiator: Compact<u32>;
- readonly sender: Compact<u32>;
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isRelayedFrom: boolean;
- readonly asRelayedFrom: {
- readonly who: XcmV0MultiLocation;
- readonly message: XcmV0Xcm;
- } & Struct;
- readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
- }
-
- /** @name XcmV0Order (197) */
- interface XcmV0Order extends Enum {
- readonly isNull: boolean;
- readonly isDepositAsset: boolean;
- readonly asDepositAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- } & Struct;
- readonly isDepositReserveAsset: boolean;
- readonly asDepositReserveAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isExchangeAsset: boolean;
- readonly asExchangeAsset: {
- readonly give: Vec<XcmV0MultiAsset>;
- readonly receive: Vec<XcmV0MultiAsset>;
- } & Struct;
- readonly isInitiateReserveWithdraw: boolean;
- readonly asInitiateReserveWithdraw: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly reserve: XcmV0MultiLocation;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isInitiateTeleport: boolean;
- readonly asInitiateTeleport: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isQueryHolding: boolean;
- readonly asQueryHolding: {
- readonly queryId: Compact<u64>;
- readonly dest: XcmV0MultiLocation;
- readonly assets: Vec<XcmV0MultiAsset>;
- } & Struct;
- readonly isBuyExecution: boolean;
- readonly asBuyExecution: {
- readonly fees: XcmV0MultiAsset;
- readonly weight: u64;
- readonly debt: u64;
- readonly haltOnError: bool;
- readonly xcm: Vec<XcmV0Xcm>;
- } & Struct;
- readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
- }
-
- /** @name XcmV0Response (199) */
- interface XcmV0Response extends Enum {
- readonly isAssets: boolean;
- readonly asAssets: Vec<XcmV0MultiAsset>;
- readonly type: 'Assets';
- }
-
- /** @name XcmV1Xcm (200) */
- interface XcmV1Xcm extends Enum {
- readonly isWithdrawAsset: boolean;
- readonly asWithdrawAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isReserveAssetDeposited: boolean;
- readonly asReserveAssetDeposited: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isReceiveTeleportedAsset: boolean;
- readonly asReceiveTeleportedAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isQueryResponse: boolean;
- readonly asQueryResponse: {
- readonly queryId: Compact<u64>;
- readonly response: XcmV1Response;
- } & Struct;
- readonly isTransferAsset: boolean;
- readonly asTransferAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly beneficiary: XcmV1MultiLocation;
- } & Struct;
- readonly isTransferReserveAsset: boolean;
- readonly asTransferReserveAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly dest: XcmV1MultiLocation;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isTransact: boolean;
- readonly asTransact: {
- readonly originType: XcmV0OriginKind;
- readonly requireWeightAtMost: u64;
- readonly call: XcmDoubleEncoded;
- } & Struct;
- readonly isHrmpNewChannelOpenRequest: boolean;
- readonly asHrmpNewChannelOpenRequest: {
- readonly sender: Compact<u32>;
- readonly maxMessageSize: Compact<u32>;
- readonly maxCapacity: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelAccepted: boolean;
- readonly asHrmpChannelAccepted: {
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelClosing: boolean;
- readonly asHrmpChannelClosing: {
- readonly initiator: Compact<u32>;
- readonly sender: Compact<u32>;
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isRelayedFrom: boolean;
- readonly asRelayedFrom: {
- readonly who: XcmV1MultilocationJunctions;
- readonly message: XcmV1Xcm;
- } & Struct;
- readonly isSubscribeVersion: boolean;
- readonly asSubscribeVersion: {
- readonly queryId: Compact<u64>;
- readonly maxResponseWeight: Compact<u64>;
- } & Struct;
- readonly isUnsubscribeVersion: boolean;
- readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
- }
-
- /** @name XcmV1Order (202) */
- interface XcmV1Order extends Enum {
- readonly isNoop: boolean;
- readonly isDepositAsset: boolean;
- readonly asDepositAsset: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly maxAssets: u32;
- readonly beneficiary: XcmV1MultiLocation;
- } & Struct;
- readonly isDepositReserveAsset: boolean;
- readonly asDepositReserveAsset: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly maxAssets: u32;
- readonly dest: XcmV1MultiLocation;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isExchangeAsset: boolean;
- readonly asExchangeAsset: {
- readonly give: XcmV1MultiassetMultiAssetFilter;
- readonly receive: XcmV1MultiassetMultiAssets;
- } & Struct;
- readonly isInitiateReserveWithdraw: boolean;
- readonly asInitiateReserveWithdraw: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly reserve: XcmV1MultiLocation;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isInitiateTeleport: boolean;
- readonly asInitiateTeleport: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly dest: XcmV1MultiLocation;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isQueryHolding: boolean;
- readonly asQueryHolding: {
- readonly queryId: Compact<u64>;
- readonly dest: XcmV1MultiLocation;
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- } & Struct;
- readonly isBuyExecution: boolean;
- readonly asBuyExecution: {
- readonly fees: XcmV1MultiAsset;
- readonly weight: u64;
- readonly debt: u64;
- readonly haltOnError: bool;
- readonly instructions: Vec<XcmV1Xcm>;
- } & Struct;
- readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
- }
-
- /** @name XcmV1Response (204) */
- interface XcmV1Response extends Enum {
- readonly isAssets: boolean;
- readonly asAssets: XcmV1MultiassetMultiAssets;
- readonly isVersion: boolean;
- readonly asVersion: u32;
- readonly type: 'Assets' | 'Version';
- }
-
- /** @name CumulusPalletXcmCall (218) */
- type CumulusPalletXcmCall = Null;
-
- /** @name CumulusPalletDmpQueueCall (219) */
- interface CumulusPalletDmpQueueCall extends Enum {
- readonly isServiceOverweight: boolean;
- readonly asServiceOverweight: {
- readonly index: u64;
- readonly weightLimit: u64;
- } & Struct;
- readonly type: 'ServiceOverweight';
- }
-
- /** @name PalletInflationCall (220) */
- interface PalletInflationCall extends Enum {
- readonly isStartInflation: boolean;
- readonly asStartInflation: {
- readonly inflationStartRelayBlock: u32;
- } & Struct;
- readonly type: 'StartInflation';
- }
-
- /** @name PalletUniqueCall (221) */
- interface PalletUniqueCall extends Enum {
- readonly isCreateCollection: boolean;
- readonly asCreateCollection: {
- readonly collectionName: Vec<u16>;
- readonly collectionDescription: Vec<u16>;
- readonly tokenPrefix: Bytes;
- readonly mode: UpDataStructsCollectionMode;
- } & Struct;
- readonly isCreateCollectionEx: boolean;
- readonly asCreateCollectionEx: {
- readonly data: UpDataStructsCreateCollectionData;
- } & Struct;
- readonly isDestroyCollection: boolean;
- readonly asDestroyCollection: {
- readonly collectionId: u32;
- } & Struct;
- readonly isAddToAllowList: boolean;
- readonly asAddToAllowList: {
- readonly collectionId: u32;
- readonly address: PalletEvmAccountBasicCrossAccountIdRepr;
- } & Struct;
- readonly isRemoveFromAllowList: boolean;
- readonly asRemoveFromAllowList: {
- readonly collectionId: u32;
- readonly address: PalletEvmAccountBasicCrossAccountIdRepr;
- } & Struct;
- readonly isChangeCollectionOwner: boolean;
- readonly asChangeCollectionOwner: {
- readonly collectionId: u32;
- readonly newOwner: AccountId32;
- } & Struct;
- readonly isAddCollectionAdmin: boolean;
- readonly asAddCollectionAdmin: {
- readonly collectionId: u32;
- readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;
- } & Struct;
- readonly isRemoveCollectionAdmin: boolean;
- readonly asRemoveCollectionAdmin: {
- readonly collectionId: u32;
- readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;
- } & Struct;
- readonly isSetCollectionSponsor: boolean;
- readonly asSetCollectionSponsor: {
- readonly collectionId: u32;
- readonly newSponsor: AccountId32;
- } & Struct;
- readonly isConfirmSponsorship: boolean;
- readonly asConfirmSponsorship: {
- readonly collectionId: u32;
- } & Struct;
- readonly isRemoveCollectionSponsor: boolean;
- readonly asRemoveCollectionSponsor: {
- readonly collectionId: u32;
- } & Struct;
- readonly isCreateItem: boolean;
- readonly asCreateItem: {
- readonly collectionId: u32;
- readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly data: UpDataStructsCreateItemData;
- } & Struct;
- readonly isCreateMultipleItems: boolean;
- readonly asCreateMultipleItems: {
- readonly collectionId: u32;
- readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly itemsData: Vec<UpDataStructsCreateItemData>;
- } & Struct;
- readonly isSetCollectionProperties: boolean;
- readonly asSetCollectionProperties: {
- readonly collectionId: u32;
- readonly properties: Vec<UpDataStructsProperty>;
- } & Struct;
- readonly isDeleteCollectionProperties: boolean;
- readonly asDeleteCollectionProperties: {
- readonly collectionId: u32;
- readonly propertyKeys: Vec<Bytes>;
- } & Struct;
- readonly isSetTokenProperties: boolean;
- readonly asSetTokenProperties: {
- readonly collectionId: u32;
- readonly tokenId: u32;
- readonly properties: Vec<UpDataStructsProperty>;
- } & Struct;
- readonly isDeleteTokenProperties: boolean;
- readonly asDeleteTokenProperties: {
- readonly collectionId: u32;
- readonly tokenId: u32;
- readonly propertyKeys: Vec<Bytes>;
- } & Struct;
- readonly isSetTokenPropertyPermissions: boolean;
- readonly asSetTokenPropertyPermissions: {
- readonly collectionId: u32;
- readonly propertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;
- } & Struct;
- readonly isCreateMultipleItemsEx: boolean;
- readonly asCreateMultipleItemsEx: {
- readonly collectionId: u32;
- readonly data: UpDataStructsCreateItemExData;
- } & Struct;
- readonly isSetTransfersEnabledFlag: boolean;
- readonly asSetTransfersEnabledFlag: {
- readonly collectionId: u32;
- readonly value: bool;
- } & Struct;
- readonly isBurnItem: boolean;
- readonly asBurnItem: {
- readonly collectionId: u32;
- readonly itemId: u32;
- readonly value: u128;
- } & Struct;
- readonly isBurnFrom: boolean;
- readonly asBurnFrom: {
- readonly collectionId: u32;
- readonly from: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly itemId: u32;
- readonly value: u128;
- } & Struct;
- readonly isTransfer: boolean;
- readonly asTransfer: {
- readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly collectionId: u32;
- readonly itemId: u32;
- readonly value: u128;
- } & Struct;
- readonly isApprove: boolean;
- readonly asApprove: {
- readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly collectionId: u32;
- readonly itemId: u32;
- readonly amount: u128;
- } & Struct;
- readonly isTransferFrom: boolean;
- readonly asTransferFrom: {
- readonly from: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly collectionId: u32;
- readonly itemId: u32;
- readonly value: u128;
- } & Struct;
- readonly isSetCollectionLimits: boolean;
- readonly asSetCollectionLimits: {
- readonly collectionId: u32;
- readonly newLimit: UpDataStructsCollectionLimits;
- } & Struct;
- readonly isSetCollectionPermissions: boolean;
- readonly asSetCollectionPermissions: {
- readonly collectionId: u32;
- readonly newPermission: UpDataStructsCollectionPermissions;
- } & Struct;
- readonly isRepartition: boolean;
- readonly asRepartition: {
- readonly collectionId: u32;
- readonly tokenId: u32;
- readonly amount: u128;
- } & Struct;
- readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition';
- }
-
- /** @name UpDataStructsCollectionMode (226) */
- interface UpDataStructsCollectionMode extends Enum {
+ /** @name UpDataStructsCollectionMode (155) */
+ export interface UpDataStructsCollectionMode extends Enum {
readonly isNft: boolean;
readonly isFungible: boolean;
readonly asFungible: u8;
@@ -2249,8 +1839,8 @@
readonly type: 'Nft' | 'Fungible' | 'ReFungible';
}
- /** @name UpDataStructsCreateCollectionData (227) */
- interface UpDataStructsCreateCollectionData extends Struct {
+ /** @name UpDataStructsCreateCollectionData (156) */
+ export interface UpDataStructsCreateCollectionData extends Struct {
readonly mode: UpDataStructsCollectionMode;
readonly access: Option<UpDataStructsAccessMode>;
readonly name: Vec<u16>;
@@ -2263,15 +1853,15 @@
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsAccessMode (229) */
- interface UpDataStructsAccessMode extends Enum {
+ /** @name UpDataStructsAccessMode (158) */
+ export interface UpDataStructsAccessMode extends Enum {
readonly isNormal: boolean;
readonly isAllowList: boolean;
readonly type: 'Normal' | 'AllowList';
}
- /** @name UpDataStructsCollectionLimits (231) */
- interface UpDataStructsCollectionLimits extends Struct {
+ /** @name UpDataStructsCollectionLimits (161) */
+ export interface UpDataStructsCollectionLimits extends Struct {
readonly accountTokenOwnershipLimit: Option<u32>;
readonly sponsoredDataSize: Option<u32>;
readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;
@@ -2283,52 +1873,61 @@
readonly transfersEnabled: Option<bool>;
}
- /** @name UpDataStructsSponsoringRateLimit (233) */
- interface UpDataStructsSponsoringRateLimit extends Enum {
+ /** @name UpDataStructsSponsoringRateLimit (163) */
+ export interface UpDataStructsSponsoringRateLimit extends Enum {
readonly isSponsoringDisabled: boolean;
readonly isBlocks: boolean;
readonly asBlocks: u32;
readonly type: 'SponsoringDisabled' | 'Blocks';
}
- /** @name UpDataStructsCollectionPermissions (236) */
- interface UpDataStructsCollectionPermissions extends Struct {
+ /** @name UpDataStructsCollectionPermissions (166) */
+ export interface UpDataStructsCollectionPermissions extends Struct {
readonly access: Option<UpDataStructsAccessMode>;
readonly mintMode: Option<bool>;
readonly nesting: Option<UpDataStructsNestingPermissions>;
}
- /** @name UpDataStructsNestingPermissions (238) */
- interface UpDataStructsNestingPermissions extends Struct {
+ /** @name UpDataStructsNestingPermissions (168) */
+ export interface UpDataStructsNestingPermissions extends Struct {
readonly tokenOwner: bool;
readonly collectionAdmin: bool;
readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;
}
- /** @name UpDataStructsOwnerRestrictedSet (240) */
- interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}
+ /** @name UpDataStructsOwnerRestrictedSet (170) */
+ export interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}
- /** @name UpDataStructsPropertyKeyPermission (245) */
- interface UpDataStructsPropertyKeyPermission extends Struct {
+ /** @name UpDataStructsPropertyKeyPermission (176) */
+ export interface UpDataStructsPropertyKeyPermission extends Struct {
readonly key: Bytes;
readonly permission: UpDataStructsPropertyPermission;
}
- /** @name UpDataStructsPropertyPermission (246) */
- interface UpDataStructsPropertyPermission extends Struct {
+ /** @name UpDataStructsPropertyPermission (178) */
+ export interface UpDataStructsPropertyPermission extends Struct {
readonly mutable: bool;
readonly collectionAdmin: bool;
readonly tokenOwner: bool;
}
- /** @name UpDataStructsProperty (249) */
- interface UpDataStructsProperty extends Struct {
+ /** @name UpDataStructsProperty (181) */
+ export interface UpDataStructsProperty extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name UpDataStructsCreateItemData (252) */
- interface UpDataStructsCreateItemData extends Enum {
+ /** @name PalletEvmAccountBasicCrossAccountIdRepr (184) */
+ export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {
+ readonly isSubstrate: boolean;
+ readonly asSubstrate: AccountId32;
+ readonly isEthereum: boolean;
+ readonly asEthereum: H160;
+ readonly type: 'Substrate' | 'Ethereum';
+ }
+
+ /** @name UpDataStructsCreateItemData (186) */
+ export interface UpDataStructsCreateItemData extends Enum {
readonly isNft: boolean;
readonly asNft: UpDataStructsCreateNftData;
readonly isFungible: boolean;
@@ -2338,24 +1937,67 @@
readonly type: 'Nft' | 'Fungible' | 'ReFungible';
}
- /** @name UpDataStructsCreateNftData (253) */
- interface UpDataStructsCreateNftData extends Struct {
+ /** @name UpDataStructsCreateNftData (187) */
+ export interface UpDataStructsCreateNftData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateFungibleData (254) */
- interface UpDataStructsCreateFungibleData extends Struct {
+ /** @name UpDataStructsCreateFungibleData (188) */
+ export interface UpDataStructsCreateFungibleData extends Struct {
readonly value: u128;
}
- /** @name UpDataStructsCreateReFungibleData (255) */
- interface UpDataStructsCreateReFungibleData extends Struct {
+ /** @name UpDataStructsCreateReFungibleData (189) */
+ export interface UpDataStructsCreateReFungibleData extends Struct {
readonly pieces: u128;
readonly properties: Vec<UpDataStructsProperty>;
+>>>>>>> b43f8da0... added totalstaked & fix bug with number in RPC Client
+ }
+
+ /** @name FrameSystemLimitsBlockLength (128) */
+ interface FrameSystemLimitsBlockLength extends Struct {
+ readonly max: FrameSupportWeightsPerDispatchClassU32;
+ }
+
+ /** @name FrameSupportWeightsPerDispatchClassU32 (129) */
+ interface FrameSupportWeightsPerDispatchClassU32 extends Struct {
+ readonly normal: u32;
+ readonly operational: u32;
+ readonly mandatory: u32;
+ }
+
+ /** @name FrameSupportWeightsRuntimeDbWeight (130) */
+ interface FrameSupportWeightsRuntimeDbWeight extends Struct {
+ readonly read: u64;
+ readonly write: u64;
}
- /** @name UpDataStructsCreateItemExData (258) */
- interface UpDataStructsCreateItemExData extends Enum {
+ /** @name SpVersionRuntimeVersion (131) */
+ interface SpVersionRuntimeVersion extends Struct {
+ readonly specName: Text;
+ readonly implName: Text;
+ readonly authoringVersion: u32;
+ readonly specVersion: u32;
+ readonly implVersion: u32;
+ readonly apis: Vec<ITuple<[U8aFixed, u32]>>;
+ readonly transactionVersion: u32;
+ readonly stateVersion: u8;
+ }
+
+<<<<<<< HEAD
+ /** @name FrameSystemError (136) */
+ interface FrameSystemError extends Enum {
+ readonly isInvalidSpecName: boolean;
+ readonly isSpecVersionNeedsToIncrease: boolean;
+ readonly isFailedToExtractRuntimeVersion: boolean;
+ readonly isNonDefaultComposite: boolean;
+ readonly isNonZeroRefCount: boolean;
+ readonly isCallFiltered: boolean;
+ readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';
+ }
+
+ /** @name UpDataStructsCreateItemExData (192) */
+ export interface UpDataStructsCreateItemExData extends Enum {
readonly isNft: boolean;
readonly asNft: Vec<UpDataStructsCreateNftExData>;
readonly isFungible: boolean;
@@ -2367,27 +2009,27 @@
readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';
}
- /** @name UpDataStructsCreateNftExData (260) */
- interface UpDataStructsCreateNftExData extends Struct {
+ /** @name UpDataStructsCreateNftExData (194) */
+ export interface UpDataStructsCreateNftExData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
- /** @name UpDataStructsCreateRefungibleExSingleOwner (267) */
- interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {
+ /** @name UpDataStructsCreateRefungibleExSingleOwner (201) */
+ export interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {
readonly user: PalletEvmAccountBasicCrossAccountIdRepr;
readonly pieces: u128;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateRefungibleExMultipleOwners (269) */
- interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {
+ /** @name UpDataStructsCreateRefungibleExMultipleOwners (203) */
+ export interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {
readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name PalletUniqueSchedulerCall (270) */
- interface PalletUniqueSchedulerCall extends Enum {
+ /** @name PalletUniqueSchedulerCall (205) */
+ export interface PalletUniqueSchedulerCall extends Enum {
readonly isScheduleNamed: boolean;
readonly asScheduleNamed: {
readonly id: U8aFixed;
@@ -2411,8 +2053,8 @@
readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';
}
- /** @name FrameSupportScheduleMaybeHashed (272) */
- interface FrameSupportScheduleMaybeHashed extends Enum {
+ /** @name FrameSupportScheduleMaybeHashed (207) */
+ export interface FrameSupportScheduleMaybeHashed extends Enum {
readonly isValue: boolean;
readonly asValue: Call;
readonly isHash: boolean;
@@ -2420,27 +2062,14 @@
readonly type: 'Value' | 'Hash';
}
- /** @name PalletConfigurationCall (273) */
- interface PalletConfigurationCall extends Enum {
- readonly isSetWeightToFeeCoefficientOverride: boolean;
- readonly asSetWeightToFeeCoefficientOverride: {
- readonly coeff: Option<u32>;
- } & Struct;
- readonly isSetMinGasPriceOverride: boolean;
- readonly asSetMinGasPriceOverride: {
- readonly coeff: Option<u64>;
- } & Struct;
- readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride';
- }
+ /** @name PalletTemplateTransactionPaymentCall (208) */
+ export type PalletTemplateTransactionPaymentCall = Null;
- /** @name PalletTemplateTransactionPaymentCall (274) */
- type PalletTemplateTransactionPaymentCall = Null;
+ /** @name PalletStructureCall (209) */
+ export type PalletStructureCall = Null;
- /** @name PalletStructureCall (275) */
- type PalletStructureCall = Null;
-
- /** @name PalletRmrkCoreCall (276) */
- interface PalletRmrkCoreCall extends Enum {
+ /** @name PalletRmrkCoreCall (210) */
+ export interface PalletRmrkCoreCall extends Enum {
readonly isCreateCollection: boolean;
readonly asCreateCollection: {
readonly metadata: Bytes;
@@ -2545,8 +2174,8 @@
readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';
}
- /** @name RmrkTraitsResourceResourceTypes (282) */
- interface RmrkTraitsResourceResourceTypes extends Enum {
+ /** @name RmrkTraitsResourceResourceTypes (216) */
+ export interface RmrkTraitsResourceResourceTypes extends Enum {
readonly isBasic: boolean;
readonly asBasic: RmrkTraitsResourceBasicResource;
readonly isComposable: boolean;
@@ -2556,16 +2185,16 @@
readonly type: 'Basic' | 'Composable' | 'Slot';
}
- /** @name RmrkTraitsResourceBasicResource (284) */
- interface RmrkTraitsResourceBasicResource extends Struct {
+ /** @name RmrkTraitsResourceBasicResource (218) */
+ export interface RmrkTraitsResourceBasicResource extends Struct {
readonly src: Option<Bytes>;
readonly metadata: Option<Bytes>;
readonly license: Option<Bytes>;
readonly thumb: Option<Bytes>;
}
- /** @name RmrkTraitsResourceComposableResource (286) */
- interface RmrkTraitsResourceComposableResource extends Struct {
+ /** @name RmrkTraitsResourceComposableResource (220) */
+ export interface RmrkTraitsResourceComposableResource extends Struct {
readonly parts: Vec<u32>;
readonly base: u32;
readonly src: Option<Bytes>;
@@ -2574,8 +2203,8 @@
readonly thumb: Option<Bytes>;
}
- /** @name RmrkTraitsResourceSlotResource (287) */
- interface RmrkTraitsResourceSlotResource extends Struct {
+ /** @name RmrkTraitsResourceSlotResource (221) */
+ export interface RmrkTraitsResourceSlotResource extends Struct {
readonly base: u32;
readonly src: Option<Bytes>;
readonly metadata: Option<Bytes>;
@@ -2584,8 +2213,17 @@
readonly thumb: Option<Bytes>;
}
- /** @name PalletRmrkEquipCall (290) */
- interface PalletRmrkEquipCall extends Enum {
+ /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (223) */
+ export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {
+ readonly isAccountId: boolean;
+ readonly asAccountId: AccountId32;
+ readonly isCollectionAndNftTuple: boolean;
+ readonly asCollectionAndNftTuple: ITuple<[u32, u32]>;
+ readonly type: 'AccountId' | 'CollectionAndNftTuple';
+ }
+
+ /** @name PalletRmrkEquipCall (227) */
+ export interface PalletRmrkEquipCall extends Enum {
readonly isCreateBase: boolean;
readonly asCreateBase: {
readonly baseType: Bytes;
@@ -2606,8 +2244,8 @@
readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';
}
- /** @name RmrkTraitsPartPartType (293) */
- interface RmrkTraitsPartPartType extends Enum {
+ /** @name RmrkTraitsPartPartType (230) */
+ export interface RmrkTraitsPartPartType extends Enum {
readonly isFixedPart: boolean;
readonly asFixedPart: RmrkTraitsPartFixedPart;
readonly isSlotPart: boolean;
@@ -2615,99 +2253,91 @@
readonly type: 'FixedPart' | 'SlotPart';
}
- /** @name RmrkTraitsPartFixedPart (295) */
- interface RmrkTraitsPartFixedPart extends Struct {
+ /** @name RmrkTraitsPartFixedPart (232) */
+ export interface RmrkTraitsPartFixedPart extends Struct {
readonly id: u32;
readonly z: u32;
readonly src: Bytes;
}
- /** @name RmrkTraitsPartSlotPart (296) */
- interface RmrkTraitsPartSlotPart extends Struct {
+ /** @name RmrkTraitsPartSlotPart (233) */
+ export interface RmrkTraitsPartSlotPart extends Struct {
readonly id: u32;
readonly equippable: RmrkTraitsPartEquippableList;
readonly src: Bytes;
readonly z: u32;
}
- /** @name RmrkTraitsPartEquippableList (297) */
- interface RmrkTraitsPartEquippableList extends Enum {
+ /** @name RmrkTraitsPartEquippableList (234) */
+ export interface RmrkTraitsPartEquippableList extends Enum {
readonly isAll: boolean;
- readonly isEmpty: boolean;
- readonly isCustom: boolean;
- readonly asCustom: Vec<u32>;
- readonly type: 'All' | 'Empty' | 'Custom';
+ readonly type: 'Fee' | 'Misc' | 'All';
}
- /** @name RmrkTraitsTheme (299) */
- interface RmrkTraitsTheme extends Struct {
+ /** @name RmrkTraitsTheme (236) */
+ export interface RmrkTraitsTheme extends Struct {
readonly name: Bytes;
readonly properties: Vec<RmrkTraitsThemeThemeProperty>;
readonly inherit: bool;
}
- /** @name RmrkTraitsThemeThemeProperty (301) */
- interface RmrkTraitsThemeThemeProperty extends Struct {
+ /** @name RmrkTraitsThemeThemeProperty (238) */
+ export interface RmrkTraitsThemeThemeProperty extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name PalletEvmCall (303) */
- interface PalletEvmCall extends Enum {
+ /** @name PalletEvmCall (240) */
+ export interface PalletEvmCall extends Enum {
readonly isWithdraw: boolean;
readonly asWithdraw: {
readonly address: H160;
readonly value: u128;
+>>>>>>> b43f8da0... added totalstaked & fix bug with number in RPC Client
} & Struct;
- readonly isCall: boolean;
- readonly asCall: {
- readonly source: H160;
- readonly target: H160;
- readonly input: Bytes;
- readonly value: U256;
- readonly gasLimit: u64;
- readonly maxFeePerGas: U256;
- readonly maxPriorityFeePerGas: Option<U256>;
- readonly nonce: Option<U256>;
- readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;
+ readonly isSetBalance: boolean;
+ readonly asSetBalance: {
+ readonly who: MultiAddress;
+ readonly newFree: Compact<u128>;
+ readonly newReserved: Compact<u128>;
} & Struct;
- readonly isCreate: boolean;
- readonly asCreate: {
- readonly source: H160;
- readonly init: Bytes;
- readonly value: U256;
- readonly gasLimit: u64;
- readonly maxFeePerGas: U256;
- readonly maxPriorityFeePerGas: Option<U256>;
- readonly nonce: Option<U256>;
- readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;
+ readonly isForceTransfer: boolean;
+ readonly asForceTransfer: {
+ readonly source: MultiAddress;
+ readonly dest: MultiAddress;
+ readonly value: Compact<u128>;
} & Struct;
- readonly isCreate2: boolean;
- readonly asCreate2: {
- readonly source: H160;
- readonly init: Bytes;
- readonly salt: H256;
- readonly value: U256;
- readonly gasLimit: u64;
- readonly maxFeePerGas: U256;
- readonly maxPriorityFeePerGas: Option<U256>;
- readonly nonce: Option<U256>;
- readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;
+ readonly isTransferKeepAlive: boolean;
+ readonly asTransferKeepAlive: {
+ readonly dest: MultiAddress;
+ readonly value: Compact<u128>;
} & Struct;
+<<<<<<< HEAD
+ readonly isTransferAll: boolean;
+ readonly asTransferAll: {
+ readonly dest: MultiAddress;
+ readonly keepAlive: bool;
+=======
readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';
}
- /** @name PalletEthereumCall (307) */
- interface PalletEthereumCall extends Enum {
+ /** @name PalletEthereumCall (246) */
+ export interface PalletEthereumCall extends Enum {
readonly isTransact: boolean;
readonly asTransact: {
readonly transaction: EthereumTransactionTransactionV2;
+>>>>>>> b43f8da0... added totalstaked & fix bug with number in RPC Client
} & Struct;
- readonly type: 'Transact';
+ readonly isForceUnreserve: boolean;
+ readonly asForceUnreserve: {
+ readonly who: MultiAddress;
+ readonly amount: u128;
+ } & Struct;
+ readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';
}
- /** @name EthereumTransactionTransactionV2 (308) */
- interface EthereumTransactionTransactionV2 extends Enum {
+ /** @name EthereumTransactionTransactionV2 (247) */
+ export interface EthereumTransactionTransactionV2 extends Enum {
readonly isLegacy: boolean;
readonly asLegacy: EthereumTransactionLegacyTransaction;
readonly isEip2930: boolean;
@@ -2717,8 +2347,8 @@
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
- /** @name EthereumTransactionLegacyTransaction (309) */
- interface EthereumTransactionLegacyTransaction extends Struct {
+ /** @name EthereumTransactionLegacyTransaction (248) */
+ export interface EthereumTransactionLegacyTransaction extends Struct {
readonly nonce: U256;
readonly gasPrice: U256;
readonly gasLimit: U256;
@@ -2728,23 +2358,23 @@
readonly signature: EthereumTransactionTransactionSignature;
}
- /** @name EthereumTransactionTransactionAction (310) */
- interface EthereumTransactionTransactionAction extends Enum {
+ /** @name EthereumTransactionTransactionAction (249) */
+ export interface EthereumTransactionTransactionAction extends Enum {
readonly isCall: boolean;
readonly asCall: H160;
readonly isCreate: boolean;
readonly type: 'Call' | 'Create';
}
- /** @name EthereumTransactionTransactionSignature (311) */
- interface EthereumTransactionTransactionSignature extends Struct {
+ /** @name EthereumTransactionTransactionSignature (250) */
+ export interface EthereumTransactionTransactionSignature extends Struct {
readonly v: u64;
readonly r: H256;
readonly s: H256;
}
- /** @name EthereumTransactionEip2930Transaction (313) */
- interface EthereumTransactionEip2930Transaction extends Struct {
+ /** @name EthereumTransactionEip2930Transaction (252) */
+ export interface EthereumTransactionEip2930Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
readonly gasPrice: U256;
@@ -2758,14 +2388,14 @@
readonly s: H256;
}
- /** @name EthereumTransactionAccessListItem (315) */
- interface EthereumTransactionAccessListItem extends Struct {
+ /** @name EthereumTransactionAccessListItem (254) */
+ export interface EthereumTransactionAccessListItem extends Struct {
readonly address: H160;
readonly storageKeys: Vec<H256>;
}
- /** @name EthereumTransactionEip1559Transaction (316) */
- interface EthereumTransactionEip1559Transaction extends Struct {
+ /** @name EthereumTransactionEip1559Transaction (255) */
+ export interface EthereumTransactionEip1559Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
readonly maxPriorityFeePerGas: U256;
@@ -2780,33 +2410,702 @@
readonly s: H256;
}
- /** @name PalletEvmMigrationCall (317) */
- interface PalletEvmMigrationCall extends Enum {
+ /** @name PalletEvmMigrationCall (256) */
+ export interface PalletEvmMigrationCall extends Enum {
readonly isBegin: boolean;
readonly asBegin: {
readonly address: H160;
+>>>>>>> b43f8da0... added totalstaked & fix bug with number in RPC Client
+ } & Struct;
+ readonly isSudoUncheckedWeight: boolean;
+ readonly asSudoUncheckedWeight: {
+ readonly call: Call;
+ readonly weight: u64;
} & Struct;
- readonly isSetData: boolean;
- readonly asSetData: {
- readonly address: H160;
- readonly data: Vec<ITuple<[H256, H256]>>;
+ readonly isSetKey: boolean;
+ readonly asSetKey: {
+ readonly new_: MultiAddress;
+ } & Struct;
+ readonly isSudoAs: boolean;
+ readonly asSudoAs: {
+ readonly who: MultiAddress;
+ readonly call: Call;
+ } & Struct;
+ readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';
+ }
+
+ /** @name PalletSudoEvent (259) */
+ export interface PalletSudoEvent extends Enum {
+ readonly isSudid: boolean;
+ readonly asSudid: {
+ readonly sudoResult: Result<Null, SpRuntimeDispatchError>;
+ } & Struct;
+ readonly isKeyChanged: boolean;
+ readonly asKeyChanged: {
+ readonly oldSudoer: Option<AccountId32>;
} & Struct;
- readonly isFinish: boolean;
- readonly asFinish: {
- readonly address: H160;
- readonly code: Bytes;
+ readonly isSudoAsDone: boolean;
+ readonly asSudoAsDone: {
+ readonly sudoResult: Result<Null, SpRuntimeDispatchError>;
} & Struct;
- readonly type: 'Begin' | 'SetData' | 'Finish';
+ readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';
+ }
+
+ /** @name SpRuntimeDispatchError (261) */
+ export interface SpRuntimeDispatchError extends Enum {
+ readonly isOther: boolean;
+ readonly isCannotLookup: boolean;
+ readonly isBadOrigin: boolean;
+ readonly isModule: boolean;
+ readonly asModule: SpRuntimeModuleError;
+ readonly isConsumerRemaining: boolean;
+ readonly isNoProviders: boolean;
+ readonly isTooManyConsumers: boolean;
+ readonly isToken: boolean;
+ readonly asToken: SpRuntimeTokenError;
+ readonly isArithmetic: boolean;
+ readonly asArithmetic: SpRuntimeArithmeticError;
+ readonly isTransactional: boolean;
+ readonly asTransactional: SpRuntimeTransactionalError;
+ readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional';
+ }
+
+ /** @name SpRuntimeModuleError (262) */
+ export interface SpRuntimeModuleError extends Struct {
+ readonly index: u8;
+ readonly error: U8aFixed;
+ }
+
+ /** @name SpRuntimeTokenError (263) */
+ export interface SpRuntimeTokenError extends Enum {
+ readonly isNoFunds: boolean;
+ readonly isWouldDie: boolean;
+ readonly isBelowMinimum: boolean;
+ readonly isCannotCreate: boolean;
+ readonly isUnknownAsset: boolean;
+ readonly isFrozen: boolean;
+ readonly isUnsupported: boolean;
+ readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';
+ }
+
+ /** @name SpRuntimeArithmeticError (264) */
+ export interface SpRuntimeArithmeticError extends Enum {
+ readonly isUnderflow: boolean;
+ readonly isOverflow: boolean;
+ readonly isDivisionByZero: boolean;
+ readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';
}
- /** @name PalletSudoError (320) */
- interface PalletSudoError extends Enum {
+ /** @name SpRuntimeTransactionalError (265) */
+ export interface SpRuntimeTransactionalError extends Enum {
+ readonly isLimitReached: boolean;
+ readonly isNoLayer: boolean;
+ readonly type: 'LimitReached' | 'NoLayer';
+ }
+
+ /** @name PalletSudoError (266) */
+ export interface PalletSudoError extends Enum {
readonly isRequireSudo: boolean;
readonly type: 'RequireSudo';
}
- /** @name OrmlVestingModuleError (322) */
- interface OrmlVestingModuleError extends Enum {
+ /** @name FrameSystemAccountInfo (267) */
+ export interface FrameSystemAccountInfo extends Struct {
+ readonly nonce: u32;
+ readonly consumers: u32;
+ readonly providers: u32;
+ readonly sufficients: u32;
+ readonly data: PalletBalancesAccountData;
+ }
+
+ /** @name FrameSupportWeightsPerDispatchClassU64 (268) */
+ export interface FrameSupportWeightsPerDispatchClassU64 extends Struct {
+ readonly normal: u64;
+ readonly operational: u64;
+ readonly mandatory: u64;
+ }
+
+ /** @name SpRuntimeDigest (269) */
+ export interface SpRuntimeDigest extends Struct {
+ readonly logs: Vec<SpRuntimeDigestDigestItem>;
+ }
+
+ /** @name SpRuntimeDigestDigestItem (271) */
+ export interface SpRuntimeDigestDigestItem extends Enum {
+ readonly isOther: boolean;
+ readonly asOther: Bytes;
+ readonly isConsensus: boolean;
+ readonly asConsensus: ITuple<[U8aFixed, Bytes]>;
+ readonly isSeal: boolean;
+ readonly asSeal: ITuple<[U8aFixed, Bytes]>;
+ readonly isPreRuntime: boolean;
+ readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;
+ readonly isRuntimeEnvironmentUpdated: boolean;
+ readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';
+ }
+
+ /** @name FrameSystemEventRecord (273) */
+ export interface FrameSystemEventRecord extends Struct {
+ readonly phase: FrameSystemPhase;
+ readonly event: Event;
+ readonly topics: Vec<H256>;
+ }
+
+ /** @name FrameSystemEvent (275) */
+ export interface FrameSystemEvent extends Enum {
+ readonly isExtrinsicSuccess: boolean;
+ readonly asExtrinsicSuccess: {
+ readonly dispatchInfo: FrameSupportWeightsDispatchInfo;
+ } & Struct;
+ readonly isExtrinsicFailed: boolean;
+ readonly asExtrinsicFailed: {
+ readonly dispatchError: SpRuntimeDispatchError;
+ readonly dispatchInfo: FrameSupportWeightsDispatchInfo;
+ } & Struct;
+ readonly isCodeUpdated: boolean;
+ readonly isNewAccount: boolean;
+ readonly asNewAccount: {
+ readonly account: AccountId32;
+ } & Struct;
+ readonly isKilledAccount: boolean;
+ readonly asKilledAccount: {
+ readonly account: AccountId32;
+ } & Struct;
+ readonly isRemarked: boolean;
+ readonly asRemarked: {
+ readonly sender: AccountId32;
+ readonly hash_: H256;
+ } & Struct;
+ readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';
+ }
+
+ /** @name FrameSupportWeightsDispatchInfo (276) */
+ export interface FrameSupportWeightsDispatchInfo extends Struct {
+ readonly weight: u64;
+ readonly class: FrameSupportWeightsDispatchClass;
+ readonly paysFee: FrameSupportWeightsPays;
+ }
+
+ /** @name FrameSupportWeightsDispatchClass (277) */
+ export interface FrameSupportWeightsDispatchClass extends Enum {
+ readonly isNormal: boolean;
+ readonly isOperational: boolean;
+ readonly isMandatory: boolean;
+ readonly type: 'Normal' | 'Operational' | 'Mandatory';
+ }
+
+ /** @name FrameSupportWeightsPays (278) */
+ export interface FrameSupportWeightsPays extends Enum {
+ readonly isYes: boolean;
+ readonly isNo: boolean;
+ readonly type: 'Yes' | 'No';
+ }
+
+ /** @name OrmlVestingModuleEvent (279) */
+ export interface OrmlVestingModuleEvent extends Enum {
+ readonly isVestingScheduleAdded: boolean;
+ readonly asVestingScheduleAdded: {
+ readonly from: AccountId32;
+ readonly to: AccountId32;
+ readonly vestingSchedule: OrmlVestingVestingSchedule;
+ } & Struct;
+ readonly isClaimed: boolean;
+ readonly asClaimed: {
+ readonly who: AccountId32;
+ readonly amount: u128;
+ } & Struct;
+ readonly isVestingSchedulesUpdated: boolean;
+ readonly asVestingSchedulesUpdated: {
+ readonly who: AccountId32;
+ } & Struct;
+ readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';
+ }
+
+ /** @name CumulusPalletXcmpQueueEvent (280) */
+ export interface CumulusPalletXcmpQueueEvent extends Enum {
+ readonly isSuccess: boolean;
+ readonly asSuccess: Option<H256>;
+ readonly isFail: boolean;
+ readonly asFail: ITuple<[Option<H256>, XcmV2TraitsError]>;
+ readonly isBadVersion: boolean;
+ readonly asBadVersion: Option<H256>;
+ readonly isBadFormat: boolean;
+ readonly asBadFormat: Option<H256>;
+ readonly isUpwardMessageSent: boolean;
+ readonly asUpwardMessageSent: Option<H256>;
+ readonly isXcmpMessageSent: boolean;
+ readonly asXcmpMessageSent: Option<H256>;
+ readonly isOverweightEnqueued: boolean;
+ readonly asOverweightEnqueued: ITuple<[u32, u32, u64, u64]>;
+ readonly isOverweightServiced: boolean;
+ readonly asOverweightServiced: ITuple<[u64, u64]>;
+ readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';
+ }
+
+ /** @name PalletXcmEvent (281) */
+ export interface PalletXcmEvent extends Enum {
+ readonly isAttempted: boolean;
+ readonly asAttempted: XcmV2TraitsOutcome;
+ readonly isSent: boolean;
+ readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;
+ readonly isUnexpectedResponse: boolean;
+ readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;
+ readonly isResponseReady: boolean;
+ readonly asResponseReady: ITuple<[u64, XcmV2Response]>;
+ readonly isNotified: boolean;
+ readonly asNotified: ITuple<[u64, u8, u8]>;
+ readonly isNotifyOverweight: boolean;
+ readonly asNotifyOverweight: ITuple<[u64, u8, u8, u64, u64]>;
+ readonly isNotifyDispatchError: boolean;
+ readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;
+ readonly isNotifyDecodeFailed: boolean;
+ readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;
+ readonly isInvalidResponder: boolean;
+ readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;
+ readonly isInvalidResponderVersion: boolean;
+ readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;
+ readonly isResponseTaken: boolean;
+ readonly asResponseTaken: u64;
+ readonly isAssetsTrapped: boolean;
+ readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
+ readonly isVersionChangeNotified: boolean;
+ readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;
+ readonly isSupportedVersionChanged: boolean;
+ readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;
+ readonly isNotifyTargetSendFail: boolean;
+ readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;
+ readonly isNotifyTargetMigrationFail: boolean;
+ readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;
+ readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';
+ }
+
+ /** @name XcmV2TraitsOutcome (282) */
+ export interface XcmV2TraitsOutcome extends Enum {
+ readonly isComplete: boolean;
+ readonly asComplete: u64;
+ readonly isIncomplete: boolean;
+ readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;
+ readonly isError: boolean;
+ readonly asError: XcmV2TraitsError;
+ readonly type: 'Complete' | 'Incomplete' | 'Error';
+ }
+
+ /** @name CumulusPalletXcmEvent (284) */
+ export interface CumulusPalletXcmEvent extends Enum {
+ readonly isInvalidFormat: boolean;
+ readonly asInvalidFormat: U8aFixed;
+ readonly isUnsupportedVersion: boolean;
+ readonly asUnsupportedVersion: U8aFixed;
+ readonly isExecutedDownward: boolean;
+ readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;
+ readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';
+ }
+
+ /** @name CumulusPalletDmpQueueEvent (285) */
+ export interface CumulusPalletDmpQueueEvent extends Enum {
+ readonly isInvalidFormat: boolean;
+ readonly asInvalidFormat: {
+ readonly messageId: U8aFixed;
+ } & Struct;
+ readonly isUnsupportedVersion: boolean;
+ readonly asUnsupportedVersion: {
+ readonly messageId: U8aFixed;
+ } & Struct;
+ readonly isExecutedDownward: boolean;
+ readonly asExecutedDownward: {
+ readonly messageId: U8aFixed;
+ readonly outcome: XcmV2TraitsOutcome;
+ } & Struct;
+ readonly isWeightExhausted: boolean;
+ readonly asWeightExhausted: {
+ readonly messageId: U8aFixed;
+ readonly remainingWeight: u64;
+ readonly requiredWeight: u64;
+ } & Struct;
+ readonly isOverweightEnqueued: boolean;
+ readonly asOverweightEnqueued: {
+ readonly messageId: U8aFixed;
+ readonly overweightIndex: u64;
+ readonly requiredWeight: u64;
+ } & Struct;
+ readonly isOverweightServiced: boolean;
+ readonly asOverweightServiced: {
+ readonly overweightIndex: u64;
+ readonly weightUsed: u64;
+ } & Struct;
+ readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';
+ }
+
+ /** @name PalletUniqueRawEvent (286) */
+ export interface PalletUniqueRawEvent extends Enum {
+ readonly isCollectionSponsorRemoved: boolean;
+ readonly asCollectionSponsorRemoved: u32;
+ readonly isCollectionAdminAdded: boolean;
+ readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ readonly isCollectionOwnedChanged: boolean;
+ readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;
+ readonly isCollectionSponsorSet: boolean;
+ readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;
+ readonly isSponsorshipConfirmed: boolean;
+ readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;
+ readonly isCollectionAdminRemoved: boolean;
+ readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ readonly isAllowListAddressRemoved: boolean;
+ readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ readonly isAllowListAddressAdded: boolean;
+ readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ readonly isCollectionLimitSet: boolean;
+ readonly asCollectionLimitSet: u32;
+ readonly isCollectionPermissionSet: boolean;
+ readonly asCollectionPermissionSet: u32;
+ readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'CollectionPermissionSet';
+ }
+
+ /** @name PalletUniqueSchedulerEvent (287) */
+ export interface PalletUniqueSchedulerEvent extends Enum {
+ readonly isScheduled: boolean;
+ readonly asScheduled: {
+ readonly when: u32;
+ readonly index: u32;
+ } & Struct;
+ readonly isCanceled: boolean;
+ readonly asCanceled: {
+ readonly when: u32;
+ readonly index: u32;
+ } & Struct;
+ readonly isDispatched: boolean;
+ readonly asDispatched: {
+ readonly task: ITuple<[u32, u32]>;
+ readonly id: Option<U8aFixed>;
+ readonly result: Result<Null, SpRuntimeDispatchError>;
+ } & Struct;
+ readonly isCallLookupFailed: boolean;
+ readonly asCallLookupFailed: {
+ readonly task: ITuple<[u32, u32]>;
+ readonly id: Option<U8aFixed>;
+ readonly error: FrameSupportScheduleLookupError;
+ } & Struct;
+ readonly type: 'Scheduled' | 'Canceled' | 'Dispatched' | 'CallLookupFailed';
+ }
+
+ /** @name FrameSupportScheduleLookupError (289) */
+ export interface FrameSupportScheduleLookupError extends Enum {
+ readonly isUnknown: boolean;
+ readonly isBadFormat: boolean;
+ readonly type: 'Unknown' | 'BadFormat';
+ }
+
+ /** @name PalletCommonEvent (290) */
+ export interface PalletCommonEvent extends Enum {
+ readonly isCollectionCreated: boolean;
+ readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;
+ readonly isCollectionDestroyed: boolean;
+ readonly asCollectionDestroyed: u32;
+ readonly isItemCreated: boolean;
+ readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
+ readonly isItemDestroyed: boolean;
+ readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
+ readonly isTransfer: boolean;
+ readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
+ readonly isApproved: boolean;
+ readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
+ readonly isCollectionPropertySet: boolean;
+ readonly asCollectionPropertySet: ITuple<[u32, Bytes]>;
+ readonly isCollectionPropertyDeleted: boolean;
+ readonly asCollectionPropertyDeleted: ITuple<[u32, Bytes]>;
+ readonly isTokenPropertySet: boolean;
+ readonly asTokenPropertySet: ITuple<[u32, u32, Bytes]>;
+ readonly isTokenPropertyDeleted: boolean;
+ readonly asTokenPropertyDeleted: ITuple<[u32, u32, Bytes]>;
+ readonly isPropertyPermissionSet: boolean;
+ readonly asPropertyPermissionSet: ITuple<[u32, Bytes]>;
+ readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet';
+ }
+
+ /** @name PalletStructureEvent (291) */
+ export interface PalletStructureEvent extends Enum {
+ readonly isExecuted: boolean;
+ readonly asExecuted: Result<Null, SpRuntimeDispatchError>;
+ readonly type: 'Executed';
+ }
+
+ /** @name PalletRmrkCoreEvent (292) */
+ export interface PalletRmrkCoreEvent extends Enum {
+ readonly isCollectionCreated: boolean;
+ readonly asCollectionCreated: {
+ readonly issuer: AccountId32;
+ readonly collectionId: u32;
+ } & Struct;
+ readonly isCollectionDestroyed: boolean;
+ readonly asCollectionDestroyed: {
+ readonly issuer: AccountId32;
+ readonly collectionId: u32;
+ } & Struct;
+ readonly isIssuerChanged: boolean;
+ readonly asIssuerChanged: {
+ readonly oldIssuer: AccountId32;
+ readonly newIssuer: AccountId32;
+ readonly collectionId: u32;
+ } & Struct;
+ readonly isCollectionLocked: boolean;
+ readonly asCollectionLocked: {
+ readonly issuer: AccountId32;
+ readonly collectionId: u32;
+ } & Struct;
+ readonly isNftMinted: boolean;
+ readonly asNftMinted: {
+ readonly owner: AccountId32;
+ readonly collectionId: u32;
+ readonly nftId: u32;
+ } & Struct;
+ readonly isNftBurned: boolean;
+ readonly asNftBurned: {
+ readonly owner: AccountId32;
+ readonly nftId: u32;
+ } & Struct;
+ readonly isNftSent: boolean;
+ readonly asNftSent: {
+ readonly sender: AccountId32;
+ readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;
+ readonly collectionId: u32;
+ readonly nftId: u32;
+ readonly approvalRequired: bool;
+ } & Struct;
+ readonly isNftAccepted: boolean;
+ readonly asNftAccepted: {
+ readonly sender: AccountId32;
+ readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;
+ readonly collectionId: u32;
+ readonly nftId: u32;
+ } & Struct;
+ readonly isNftRejected: boolean;
+ readonly asNftRejected: {
+ readonly sender: AccountId32;
+ readonly collectionId: u32;
+ readonly nftId: u32;
+ } & Struct;
+ readonly isPropertySet: boolean;
+ readonly asPropertySet: {
+ readonly collectionId: u32;
+ readonly maybeNftId: Option<u32>;
+ readonly key: Bytes;
+ readonly value: Bytes;
+ } & Struct;
+ readonly isResourceAdded: boolean;
+ readonly asResourceAdded: {
+ readonly nftId: u32;
+ readonly resourceId: u32;
+ } & Struct;
+ readonly isResourceRemoval: boolean;
+ readonly asResourceRemoval: {
+ readonly nftId: u32;
+ readonly resourceId: u32;
+ } & Struct;
+ readonly isResourceAccepted: boolean;
+ readonly asResourceAccepted: {
+ readonly nftId: u32;
+ readonly resourceId: u32;
+ } & Struct;
+ readonly isResourceRemovalAccepted: boolean;
+ readonly asResourceRemovalAccepted: {
+ readonly nftId: u32;
+ readonly resourceId: u32;
+ } & Struct;
+ readonly isPrioritySet: boolean;
+ readonly asPrioritySet: {
+ readonly collectionId: u32;
+ readonly nftId: u32;
+ } & Struct;
+ readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet';
+ }
+
+ /** @name PalletRmrkEquipEvent (293) */
+ export interface PalletRmrkEquipEvent extends Enum {
+ readonly isBaseCreated: boolean;
+ readonly asBaseCreated: {
+ readonly issuer: AccountId32;
+ readonly baseId: u32;
+ } & Struct;
+ readonly isEquippablesUpdated: boolean;
+ readonly asEquippablesUpdated: {
+ readonly baseId: u32;
+ readonly slotId: u32;
+ } & Struct;
+ readonly type: 'BaseCreated' | 'EquippablesUpdated';
+ }
+
+ /** @name PalletEvmEvent (294) */
+ export interface PalletEvmEvent extends Enum {
+ readonly isLog: boolean;
+ readonly asLog: EthereumLog;
+ readonly isCreated: boolean;
+ readonly asCreated: H160;
+ readonly isCreatedFailed: boolean;
+ readonly asCreatedFailed: H160;
+ readonly isExecuted: boolean;
+ readonly asExecuted: H160;
+ readonly isExecutedFailed: boolean;
+ readonly asExecutedFailed: H160;
+ readonly isBalanceDeposit: boolean;
+ readonly asBalanceDeposit: ITuple<[AccountId32, H160, U256]>;
+ readonly isBalanceWithdraw: boolean;
+ readonly asBalanceWithdraw: ITuple<[AccountId32, H160, U256]>;
+ readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';
+ }
+
+ /** @name EthereumLog (295) */
+ export interface EthereumLog extends Struct {
+ readonly address: H160;
+ readonly topics: Vec<H256>;
+ readonly data: Bytes;
+ }
+
+ /** @name PalletEthereumEvent (296) */
+ export interface PalletEthereumEvent extends Enum {
+ readonly isExecuted: boolean;
+ readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;
+ readonly type: 'Executed';
+ }
+
+ /** @name EvmCoreErrorExitReason (297) */
+ export interface EvmCoreErrorExitReason extends Enum {
+ readonly isSucceed: boolean;
+ readonly asSucceed: EvmCoreErrorExitSucceed;
+ readonly isError: boolean;
+ readonly asError: EvmCoreErrorExitError;
+ readonly isRevert: boolean;
+ readonly asRevert: EvmCoreErrorExitRevert;
+ readonly isFatal: boolean;
+ readonly asFatal: EvmCoreErrorExitFatal;
+ readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';
+ }
+
+ /** @name EvmCoreErrorExitSucceed (298) */
+ export interface EvmCoreErrorExitSucceed extends Enum {
+ readonly isStopped: boolean;
+ readonly isReturned: boolean;
+ readonly isSuicided: boolean;
+ readonly type: 'Stopped' | 'Returned' | 'Suicided';
+ }
+
+ /** @name EvmCoreErrorExitError (299) */
+ export interface EvmCoreErrorExitError extends Enum {
+ readonly isStackUnderflow: boolean;
+ readonly isStackOverflow: boolean;
+ readonly isInvalidJump: boolean;
+ readonly isInvalidRange: boolean;
+ readonly isDesignatedInvalid: boolean;
+ readonly isCallTooDeep: boolean;
+ readonly isCreateCollision: boolean;
+ readonly isCreateContractLimit: boolean;
+ readonly isOutOfOffset: boolean;
+ readonly isOutOfGas: boolean;
+ readonly isOutOfFund: boolean;
+ readonly isPcUnderflow: boolean;
+ readonly isCreateEmpty: boolean;
+ readonly isOther: boolean;
+ readonly asOther: Text;
+ readonly isInvalidCode: boolean;
+ readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';
+ }
+
+ /** @name EvmCoreErrorExitRevert (302) */
+ export interface EvmCoreErrorExitRevert extends Enum {
+ readonly isReverted: boolean;
+ readonly type: 'Reverted';
+ }
+
+ /** @name EvmCoreErrorExitFatal (303) */
+ export interface EvmCoreErrorExitFatal extends Enum {
+ readonly isNotSupported: boolean;
+ readonly isUnhandledInterrupt: boolean;
+ readonly isCallErrorAsFatal: boolean;
+ readonly asCallErrorAsFatal: EvmCoreErrorExitError;
+ readonly isOther: boolean;
+ readonly asOther: Text;
+ readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';
+ }
+
+ /** @name FrameSystemPhase (304) */
+ export interface FrameSystemPhase extends Enum {
+ readonly isApplyExtrinsic: boolean;
+ readonly asApplyExtrinsic: u32;
+ readonly isFinalization: boolean;
+ readonly isInitialization: boolean;
+ readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';
+ }
+
+ /** @name FrameSystemLastRuntimeUpgradeInfo (306) */
+ export interface FrameSystemLastRuntimeUpgradeInfo extends Struct {
+ readonly specVersion: Compact<u32>;
+ readonly specName: Text;
+ }
+
+ /** @name FrameSystemLimitsBlockWeights (307) */
+ export interface FrameSystemLimitsBlockWeights extends Struct {
+ readonly baseBlock: u64;
+ readonly maxBlock: u64;
+ readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;
+ }
+
+ /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (308) */
+ export interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {
+ readonly normal: FrameSystemLimitsWeightsPerClass;
+ readonly operational: FrameSystemLimitsWeightsPerClass;
+ readonly mandatory: FrameSystemLimitsWeightsPerClass;
+ }
+
+ /** @name FrameSystemLimitsWeightsPerClass (309) */
+ export interface FrameSystemLimitsWeightsPerClass extends Struct {
+ readonly baseExtrinsic: u64;
+ readonly maxExtrinsic: Option<u64>;
+ readonly maxTotal: Option<u64>;
+ readonly reserved: Option<u64>;
+ }
+
+ /** @name FrameSystemLimitsBlockLength (311) */
+ export interface FrameSystemLimitsBlockLength extends Struct {
+ readonly max: FrameSupportWeightsPerDispatchClassU32;
+ }
+
+ /** @name FrameSupportWeightsPerDispatchClassU32 (312) */
+ export interface FrameSupportWeightsPerDispatchClassU32 extends Struct {
+ readonly normal: u32;
+ readonly operational: u32;
+ readonly mandatory: u32;
+ }
+
+ /** @name FrameSupportWeightsRuntimeDbWeight (313) */
+ export interface FrameSupportWeightsRuntimeDbWeight extends Struct {
+ readonly read: u64;
+ readonly write: u64;
+ }
+
+ /** @name SpVersionRuntimeVersion (314) */
+ export interface SpVersionRuntimeVersion extends Struct {
+ readonly specName: Text;
+ readonly implName: Text;
+ readonly authoringVersion: u32;
+ readonly specVersion: u32;
+ readonly implVersion: u32;
+ readonly apis: Vec<ITuple<[U8aFixed, u32]>>;
+ readonly transactionVersion: u32;
+ readonly stateVersion: u8;
+ }
+
+ /** @name FrameSystemError (318) */
+ export interface FrameSystemError extends Enum {
+ readonly isInvalidSpecName: boolean;
+ readonly isSpecVersionNeedsToIncrease: boolean;
+ readonly isFailedToExtractRuntimeVersion: boolean;
+ readonly isNonDefaultComposite: boolean;
+ readonly isNonZeroRefCount: boolean;
+ readonly isCallFiltered: boolean;
+ readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';
+ }
+
+ /** @name OrmlVestingModuleError (320) */
+ export interface OrmlVestingModuleError extends Enum {
readonly isZeroVestingPeriod: boolean;
readonly isZeroVestingPeriodCount: boolean;
readonly isInsufficientBalanceToLock: boolean;
@@ -2816,30 +3115,30 @@
readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';
}
- /** @name CumulusPalletXcmpQueueInboundChannelDetails (324) */
- interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {
+ /** @name CumulusPalletXcmpQueueInboundChannelDetails (322) */
+ export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {
readonly sender: u32;
readonly state: CumulusPalletXcmpQueueInboundState;
readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;
}
- /** @name CumulusPalletXcmpQueueInboundState (325) */
- interface CumulusPalletXcmpQueueInboundState extends Enum {
+ /** @name CumulusPalletXcmpQueueInboundState (323) */
+ export interface CumulusPalletXcmpQueueInboundState extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
- /** @name PolkadotParachainPrimitivesXcmpMessageFormat (328) */
- interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
+ /** @name PolkadotParachainPrimitivesXcmpMessageFormat (326) */
+ export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
readonly isConcatenatedVersionedXcm: boolean;
readonly isConcatenatedEncodedBlob: boolean;
readonly isSignals: boolean;
readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
}
- /** @name CumulusPalletXcmpQueueOutboundChannelDetails (331) */
- interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
+ /** @name CumulusPalletXcmpQueueOutboundChannelDetails (329) */
+ export interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
readonly recipient: u32;
readonly state: CumulusPalletXcmpQueueOutboundState;
readonly signalsExist: bool;
@@ -2847,15 +3146,15 @@
readonly lastIndex: u16;
}
- /** @name CumulusPalletXcmpQueueOutboundState (332) */
- interface CumulusPalletXcmpQueueOutboundState extends Enum {
+ /** @name CumulusPalletXcmpQueueOutboundState (330) */
+ export interface CumulusPalletXcmpQueueOutboundState extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
- /** @name CumulusPalletXcmpQueueQueueConfigData (334) */
- interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
+ /** @name CumulusPalletXcmpQueueQueueConfigData (332) */
+ export interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
readonly suspendThreshold: u32;
readonly dropThreshold: u32;
readonly resumeThreshold: u32;
@@ -2864,8 +3163,8 @@
readonly xcmpMaxIndividualWeight: u64;
}
- /** @name CumulusPalletXcmpQueueError (336) */
- interface CumulusPalletXcmpQueueError extends Enum {
+ /** @name CumulusPalletXcmpQueueError (334) */
+ export interface CumulusPalletXcmpQueueError extends Enum {
readonly isFailedToSend: boolean;
readonly isBadXcmOrigin: boolean;
readonly isBadXcm: boolean;
@@ -2874,8 +3173,8 @@
readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';
}
- /** @name PalletXcmError (337) */
- interface PalletXcmError extends Enum {
+ /** @name PalletXcmError (335) */
+ export interface PalletXcmError extends Enum {
readonly isUnreachable: boolean;
readonly isSendFailure: boolean;
readonly isFiltered: boolean;
@@ -2892,30 +3191,30 @@
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
}
- /** @name CumulusPalletXcmError (338) */
- type CumulusPalletXcmError = Null;
+ /** @name CumulusPalletXcmError (336) */
+ export type CumulusPalletXcmError = Null;
- /** @name CumulusPalletDmpQueueConfigData (339) */
- interface CumulusPalletDmpQueueConfigData extends Struct {
+ /** @name CumulusPalletDmpQueueConfigData (337) */
+ export interface CumulusPalletDmpQueueConfigData extends Struct {
readonly maxIndividual: u64;
}
- /** @name CumulusPalletDmpQueuePageIndexData (340) */
- interface CumulusPalletDmpQueuePageIndexData extends Struct {
+ /** @name CumulusPalletDmpQueuePageIndexData (338) */
+ export interface CumulusPalletDmpQueuePageIndexData extends Struct {
readonly beginUsed: u32;
readonly endUsed: u32;
readonly overweightCount: u64;
}
- /** @name CumulusPalletDmpQueueError (343) */
- interface CumulusPalletDmpQueueError extends Enum {
+ /** @name CumulusPalletDmpQueueError (341) */
+ export interface CumulusPalletDmpQueueError extends Enum {
readonly isUnknown: boolean;
readonly isOverLimit: boolean;
readonly type: 'Unknown' | 'OverLimit';
}
- /** @name PalletUniqueError (347) */
- interface PalletUniqueError extends Enum {
+ /** @name PalletUniqueError (346) */
+ export interface PalletUniqueError extends Enum {
readonly isCollectionDecimalPointLimitExceeded: boolean;
readonly isConfirmUnsetSponsorFail: boolean;
readonly isEmptyArgument: boolean;
@@ -2923,8 +3222,8 @@
readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';
}
- /** @name PalletUniqueSchedulerScheduledV3 (350) */
- interface PalletUniqueSchedulerScheduledV3 extends Struct {
+ /** @name PalletUniqueSchedulerScheduledV3 (349) */
+ export interface PalletUniqueSchedulerScheduledV3 extends Struct {
readonly maybeId: Option<U8aFixed>;
readonly priority: u8;
readonly call: FrameSupportScheduleMaybeHashed;
@@ -2932,8 +3231,9 @@
readonly origin: OpalRuntimeOriginCaller;
}
- /** @name OpalRuntimeOriginCaller (351) */
- interface OpalRuntimeOriginCaller extends Enum {
+ /** @name OpalRuntimeOriginCaller (350) */
+ export interface OpalRuntimeOriginCaller extends Enum {
+ readonly isVoid: boolean;
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
readonly isVoid: boolean;
@@ -2946,8 +3246,8 @@
readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';
}
- /** @name FrameSupportDispatchRawOrigin (352) */
- interface FrameSupportDispatchRawOrigin extends Enum {
+ /** @name FrameSupportDispatchRawOrigin (351) */
+ export interface FrameSupportDispatchRawOrigin extends Enum {
readonly isRoot: boolean;
readonly isSigned: boolean;
readonly asSigned: AccountId32;
@@ -2955,8 +3255,8 @@
readonly type: 'Root' | 'Signed' | 'None';
}
- /** @name PalletXcmOrigin (353) */
- interface PalletXcmOrigin extends Enum {
+ /** @name PalletXcmOrigin (352) */
+ export interface PalletXcmOrigin extends Enum {
readonly isXcm: boolean;
readonly asXcm: XcmV1MultiLocation;
readonly isResponse: boolean;
@@ -2964,26 +3264,26 @@
readonly type: 'Xcm' | 'Response';
}
- /** @name CumulusPalletXcmOrigin (354) */
- interface CumulusPalletXcmOrigin extends Enum {
+ /** @name CumulusPalletXcmOrigin (353) */
+ export interface CumulusPalletXcmOrigin extends Enum {
readonly isRelay: boolean;
readonly isSiblingParachain: boolean;
readonly asSiblingParachain: u32;
readonly type: 'Relay' | 'SiblingParachain';
}
- /** @name PalletEthereumRawOrigin (355) */
- interface PalletEthereumRawOrigin extends Enum {
+ /** @name PalletEthereumRawOrigin (354) */
+ export interface PalletEthereumRawOrigin extends Enum {
readonly isEthereumTransaction: boolean;
readonly asEthereumTransaction: H160;
readonly type: 'EthereumTransaction';
}
- /** @name SpCoreVoid (356) */
- type SpCoreVoid = Null;
+ /** @name SpCoreVoid (355) */
+ export type SpCoreVoid = Null;
- /** @name PalletUniqueSchedulerError (357) */
- interface PalletUniqueSchedulerError extends Enum {
+ /** @name PalletUniqueSchedulerError (356) */
+ export interface PalletUniqueSchedulerError extends Enum {
readonly isFailedToSchedule: boolean;
readonly isNotFound: boolean;
readonly isTargetBlockNumberInPast: boolean;
@@ -2991,8 +3291,8 @@
readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';
}
- /** @name UpDataStructsCollection (358) */
- interface UpDataStructsCollection extends Struct {
+ /** @name UpDataStructsCollection (357) */
+ export interface UpDataStructsCollection extends Struct {
readonly owner: AccountId32;
readonly mode: UpDataStructsCollectionMode;
readonly name: Vec<u16>;
@@ -3004,8 +3304,8 @@
readonly externalCollection: bool;
}
- /** @name UpDataStructsSponsorshipState (359) */
- interface UpDataStructsSponsorshipState extends Enum {
+ /** @name UpDataStructsSponsorshipState (358) */
+ export interface UpDataStructsSponsorshipState extends Enum {
readonly isDisabled: boolean;
readonly isUnconfirmed: boolean;
readonly asUnconfirmed: AccountId32;
@@ -3014,44 +3314,44 @@
readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
}
- /** @name UpDataStructsProperties (360) */
- interface UpDataStructsProperties extends Struct {
+ /** @name UpDataStructsProperties (359) */
+ export interface UpDataStructsProperties extends Struct {
readonly map: UpDataStructsPropertiesMapBoundedVec;
readonly consumedSpace: u32;
readonly spaceLimit: u32;
}
- /** @name UpDataStructsPropertiesMapBoundedVec (361) */
- interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}
+ /** @name UpDataStructsPropertiesMapBoundedVec (360) */
+ export interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}
- /** @name UpDataStructsPropertiesMapPropertyPermission (366) */
- interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}
+ /** @name UpDataStructsPropertiesMapPropertyPermission (365) */
+ export interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}
- /** @name UpDataStructsCollectionStats (373) */
- interface UpDataStructsCollectionStats extends Struct {
+ /** @name UpDataStructsCollectionStats (372) */
+ export interface UpDataStructsCollectionStats extends Struct {
readonly created: u32;
readonly destroyed: u32;
readonly alive: u32;
}
- /** @name UpDataStructsTokenChild (374) */
- interface UpDataStructsTokenChild extends Struct {
+ /** @name UpDataStructsTokenChild (373) */
+ export interface UpDataStructsTokenChild extends Struct {
readonly token: u32;
readonly collection: u32;
}
- /** @name PhantomTypeUpDataStructs (375) */
- interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}
+ /** @name PhantomTypeUpDataStructs (374) */
+ export interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}
- /** @name UpDataStructsTokenData (377) */
- interface UpDataStructsTokenData extends Struct {
+ /** @name UpDataStructsTokenData (376) */
+ export interface UpDataStructsTokenData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
readonly pieces: u128;
}
- /** @name UpDataStructsRpcCollection (379) */
- interface UpDataStructsRpcCollection extends Struct {
+ /** @name UpDataStructsRpcCollection (378) */
+ export interface UpDataStructsRpcCollection extends Struct {
readonly owner: AccountId32;
readonly mode: UpDataStructsCollectionMode;
readonly name: Vec<u16>;
@@ -3065,8 +3365,8 @@
readonly readOnly: bool;
}
- /** @name RmrkTraitsCollectionCollectionInfo (380) */
- interface RmrkTraitsCollectionCollectionInfo extends Struct {
+ /** @name RmrkTraitsCollectionCollectionInfo (379) */
+ export interface RmrkTraitsCollectionCollectionInfo extends Struct {
readonly issuer: AccountId32;
readonly metadata: Bytes;
readonly max: Option<u32>;
@@ -3074,8 +3374,8 @@
readonly nftsCount: u32;
}
- /** @name RmrkTraitsNftNftInfo (381) */
- interface RmrkTraitsNftNftInfo extends Struct {
+ /** @name RmrkTraitsNftNftInfo (380) */
+ export interface RmrkTraitsNftNftInfo extends Struct {
readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;
readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;
readonly metadata: Bytes;
@@ -3083,41 +3383,41 @@
readonly pending: bool;
}
- /** @name RmrkTraitsNftRoyaltyInfo (383) */
- interface RmrkTraitsNftRoyaltyInfo extends Struct {
+ /** @name RmrkTraitsNftRoyaltyInfo (382) */
+ export interface RmrkTraitsNftRoyaltyInfo extends Struct {
readonly recipient: AccountId32;
readonly amount: Permill;
}
- /** @name RmrkTraitsResourceResourceInfo (384) */
- interface RmrkTraitsResourceResourceInfo extends Struct {
+ /** @name RmrkTraitsResourceResourceInfo (383) */
+ export interface RmrkTraitsResourceResourceInfo extends Struct {
readonly id: u32;
readonly resource: RmrkTraitsResourceResourceTypes;
readonly pending: bool;
readonly pendingRemoval: bool;
}
- /** @name RmrkTraitsPropertyPropertyInfo (385) */
- interface RmrkTraitsPropertyPropertyInfo extends Struct {
+ /** @name RmrkTraitsPropertyPropertyInfo (384) */
+ export interface RmrkTraitsPropertyPropertyInfo extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name RmrkTraitsBaseBaseInfo (386) */
- interface RmrkTraitsBaseBaseInfo extends Struct {
+ /** @name RmrkTraitsBaseBaseInfo (385) */
+ export interface RmrkTraitsBaseBaseInfo extends Struct {
readonly issuer: AccountId32;
readonly baseType: Bytes;
readonly symbol: Bytes;
}
- /** @name RmrkTraitsNftNftChild (387) */
- interface RmrkTraitsNftNftChild extends Struct {
+ /** @name RmrkTraitsNftNftChild (386) */
+ export interface RmrkTraitsNftNftChild extends Struct {
readonly collectionId: u32;
readonly nftId: u32;
}
- /** @name PalletCommonError (389) */
- interface PalletCommonError extends Enum {
+ /** @name PalletCommonError (388) */
+ export interface PalletCommonError extends Enum {
readonly isCollectionNotFound: boolean;
readonly isMustBeTokenOwner: boolean;
readonly isNoPermission: boolean;
@@ -3155,8 +3455,8 @@
readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal';
}
- /** @name PalletFungibleError (391) */
- interface PalletFungibleError extends Enum {
+ /** @name PalletFungibleError (390) */
+ export interface PalletFungibleError extends Enum {
readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isFungibleItemsHaveNoId: boolean;
readonly isFungibleItemsDontHaveData: boolean;
@@ -3165,8 +3465,8 @@
readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
- /** @name PalletRefungibleItemData (392) */
- interface PalletRefungibleItemData extends Struct {
+ /** @name PalletRefungibleItemData (391) */
+ export interface PalletRefungibleItemData extends Struct {
readonly constData: Bytes;
}
tests/src/interfaces/unique/definitions.tsdiffbeforeafterboth--- a/tests/src/interfaces/unique/definitions.ts
+++ b/tests/src/interfaces/unique/definitions.ts
@@ -175,5 +175,20 @@
[collectionParam, tokenParam],
'Option<u128>',
),
+ totalStaked: fun(
+ 'Returns the total amount of staked tokens',
+ [{name: 'staker', type: CROSS_ACCOUNT_ID_TYPE, isOptional: true}],
+ 'u128',
+ ),
+ totalStakedPerBlock: fun(
+ 'Returns the total amount of staked tokens per block when staked',
+ [crossAccountParam('staker')],
+ 'Vec<(u32, u128)>',
+ ),
+ totalStakingLocked: fun(
+ 'Return the total amount locked by staking tokens',
+ [crossAccountParam('staker')],
+ 'u128',
+ ),
},
};