diff --git a/packages/chaintypes/src/index.ts b/packages/chaintypes/src/index.ts index e71f54c..ef1dac6 100644 --- a/packages/chaintypes/src/index.ts +++ b/packages/chaintypes/src/index.ts @@ -3,12 +3,12 @@ export type { PolkadotApi } from './polkadot'; export type { KusamaApi } from './kusama'; export type { MoonbeamApi } from './moonbeam'; export type { AstarApi } from './astar'; -export type { KusamaAssetHubApi } from './kusamaAssetHub'; +export type { KusamaAssetHubApi } from './kusama-asset-hub'; export type { AlephApi } from './aleph'; -export type { PolkadotAssetHubApi } from './polkadotAssetHub'; +export type { PolkadotAssetHubApi } from './polkadot-asset-hub'; export type { RococoApi } from './rococo'; -export type { RococoAssetHubApi } from './rococoAssetHub'; +export type { RococoAssetHubApi } from './rococo-asset-hub'; export type { WestendApi } from './westend'; -export type { WestendPeopleApi } from './westendPeople'; -export type { WestendAssetHubApi } from './westendAssetHub'; +export type { WestendPeopleApi } from './westend-people'; +export type { WestendAssetHubApi } from './westend-asset-hub'; export type { PaseoApi } from './paseo'; diff --git a/packages/chaintypes/src/kusamaAssetHub/consts.d.ts b/packages/chaintypes/src/kusamaAssetHub/consts.d.ts deleted file mode 100644 index dacf155..0000000 --- a/packages/chaintypes/src/kusamaAssetHub/consts.d.ts +++ /dev/null @@ -1,765 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainConsts, RpcVersion } from 'dedot/types'; -import type { RuntimeVersion, Bytes, Permill } from 'dedot/codecs'; -import type { - FrameSystemLimitsBlockWeights, - FrameSystemLimitsBlockLength, - SpWeightsRuntimeDbWeight, - SpWeightsWeightV2Weight, - PalletNftsBitFlagsPalletFeature, - FrameSupportPalletId, - StagingXcmV3MultilocationMultiLocation, -} from './types'; - -export interface ChainConsts extends GenericChainConsts { - /** - * Pallet `System`'s constants - **/ - system: { - /** - * Block & extrinsics weights: base values and limits. - **/ - blockWeights: FrameSystemLimitsBlockWeights; - - /** - * The maximum length of a block (in bytes). - **/ - blockLength: FrameSystemLimitsBlockLength; - - /** - * Maximum number of block number to block hash mappings to keep (oldest pruned first). - **/ - blockHashCount: number; - - /** - * The weight of runtime database operations the runtime can invoke. - **/ - dbWeight: SpWeightsRuntimeDbWeight; - - /** - * Get the chain's current version. - **/ - version: RuntimeVersion; - - /** - * The designated SS58 prefix of this chain. - * - * This replaces the "ss58Format" property declared in the chain spec. Reason is - * that the runtime should know about the prefix in order to make use of it as - * an identifier of the chain. - **/ - ss58Prefix: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainSystem`'s constants - **/ - parachainSystem: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Timestamp`'s constants - **/ - timestamp: { - /** - * The minimum period between blocks. - * - * Be aware that this is different to the *expected* period that the block production - * apparatus provides. Your chosen consensus system will generally work with this to - * determine a sensible block time. For example, in the Aura pallet it will be double this - * period on default settings. - **/ - minimumPeriod: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainInfo`'s constants - **/ - parachainInfo: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Balances`'s constants - **/ - balances: { - /** - * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! - * - * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for - * this pallet. However, you do so at your own risk: this will open up a major DoS vector. - * In case you have multiple sources of provider references, you may also get unexpected - * behaviour if you set this to zero. - * - * Bottom line: Do yourself a favour and make it at least one! - **/ - existentialDeposit: bigint; - - /** - * The maximum number of locks that should exist on an account. - * Not strictly enforced, but used for weight estimation. - **/ - maxLocks: number; - - /** - * The maximum number of named reserves that can exist on an account. - **/ - maxReserves: number; - - /** - * The maximum number of individual freeze locks that can exist on an account at any time. - **/ - maxFreezes: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `TransactionPayment`'s constants - **/ - transactionPayment: { - /** - * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their - * `priority` - * - * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later - * added to a tip component in regular `priority` calculations. - * It means that a `Normal` transaction can front-run a similarly-sized `Operational` - * extrinsic (with no tip), by including a tip value greater than the virtual tip. - * - * ```rust,ignore - * // For `Normal` - * let priority = priority_calc(tip); - * - * // For `Operational` - * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; - * let priority = priority_calc(tip + virtual_tip); - * ``` - * - * Note that since we use `final_fee` the multiplier applies also to the regular `tip` - * sent with the transaction. So, not only does the transaction get a priority bump based - * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational` - * transactions. - **/ - operationalFeeMultiplier: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetTxPayment`'s constants - **/ - assetTxPayment: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Vesting`'s constants - **/ - vesting: { - /** - * The minimum amount transferred to call `vested_transfer`. - **/ - minVestedTransfer: bigint; - maxVestingSchedules: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Authorship`'s constants - **/ - authorship: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CollatorSelection`'s constants - **/ - collatorSelection: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Session`'s constants - **/ - session: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Aura`'s constants - **/ - aura: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AuraExt`'s constants - **/ - auraExt: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `XcmpQueue`'s constants - **/ - xcmpQueue: { - /** - * The maximum number of inbound XCMP channels that can be suspended simultaneously. - * - * Any further channel suspensions will fail and messages may get dropped without further - * notice. Choosing a high value (1000) is okay; the trade-off that is described in - * [`InboundXcmpSuspended`] still applies at that scale. - **/ - maxInboundSuspended: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PolkadotXcm`'s constants - **/ - polkadotXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CumulusXcm`'s constants - **/ - cumulusXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ToPolkadotXcmRouter`'s constants - **/ - toPolkadotXcmRouter: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `MessageQueue`'s constants - **/ - messageQueue: { - /** - * The size of the page; this implies the maximum message size which can be sent. - * - * A good value depends on the expected message sizes, their weights, the weight that is - * available for processing them and the maximal needed message size. The maximal message - * size is slightly lower than this as defined by [`MaxMessageLenOf`]. - **/ - heapSize: number; - - /** - * The maximum number of stale pages (i.e. of overweight messages) allowed before culling - * can happen. Once there are more stale pages than this, then historical pages may be - * dropped, even if they contain unprocessed overweight messages. - **/ - maxStale: number; - - /** - * The amount of weight (if any) which should be provided to the message queue for - * servicing enqueued items. - * - * This may be legitimately `None` in the case that you will call - * `ServiceQueues::service_queues` manually. - **/ - serviceWeight: SpWeightsWeightV2Weight | undefined; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Utility`'s constants - **/ - utility: { - /** - * The limit on the number of batched calls. - **/ - batchedCallsLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Multisig`'s constants - **/ - multisig: { - /** - * The base amount of currency needed to reserve for creating a multisig execution or to - * store a dispatch call for later. - * - * This is held for an additional storage item whose value size is - * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is - * `32 + sizeof(AccountId)` bytes. - **/ - depositBase: bigint; - - /** - * The amount of currency needed per unit threshold when creating a multisig execution. - * - * This is held for adding 32 bytes more into a pre-existing storage value. - **/ - depositFactor: bigint; - - /** - * The maximum amount of signatories allowed in the multisig. - **/ - maxSignatories: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Proxy`'s constants - **/ - proxy: { - /** - * The base amount of currency needed to reserve for creating a proxy. - * - * This is held for an additional storage item whose value size is - * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes. - **/ - proxyDepositBase: bigint; - - /** - * The amount of currency needed per proxy added. - * - * This is held for adding 32 bytes plus an instance of `ProxyType` more into a - * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take - * into account `32 + proxy_type.encode().len()` bytes of data. - **/ - proxyDepositFactor: bigint; - - /** - * The maximum amount of proxies allowed for a single account. - **/ - maxProxies: number; - - /** - * The maximum amount of time-delayed announcements that are allowed to be pending. - **/ - maxPending: number; - - /** - * The base amount of currency needed to reserve for creating an announcement. - * - * This is held when a new storage item holding a `Balance` is created (typically 16 - * bytes). - **/ - announcementDepositBase: bigint; - - /** - * The amount of currency needed per announcement made. - * - * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes) - * into a pre-existing storage value. - **/ - announcementDepositFactor: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Assets`'s constants - **/ - assets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Uniques`'s constants - **/ - uniques: { - /** - * The basic amount of funds that must be reserved for collection. - **/ - collectionDeposit: bigint; - - /** - * The basic amount of funds that must be reserved for an item. - **/ - itemDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your item. - **/ - metadataDepositBase: bigint; - - /** - * The basic amount of funds that must be reserved when adding an attribute to an item. - **/ - attributeDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes store in metadata, - * either "normal" metadata or attribute metadata. - **/ - depositPerByte: bigint; - - /** - * The maximum length of data stored on-chain. - **/ - stringLimit: number; - - /** - * The maximum length of an attribute key. - **/ - keyLimit: number; - - /** - * The maximum length of an attribute value. - **/ - valueLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Nfts`'s constants - **/ - nfts: { - /** - * The basic amount of funds that must be reserved for collection. - **/ - collectionDeposit: bigint; - - /** - * The basic amount of funds that must be reserved for an item. - **/ - itemDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your item. - **/ - metadataDepositBase: bigint; - - /** - * The basic amount of funds that must be reserved when adding an attribute to an item. - **/ - attributeDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes store in metadata, - * either "normal" metadata or attribute metadata. - **/ - depositPerByte: bigint; - - /** - * The maximum length of data stored on-chain. - **/ - stringLimit: number; - - /** - * The maximum length of an attribute key. - **/ - keyLimit: number; - - /** - * The maximum length of an attribute value. - **/ - valueLimit: number; - - /** - * The maximum approvals an item could have. - **/ - approvalsLimit: number; - - /** - * The maximum attributes approvals an item could have. - **/ - itemAttributesApprovalsLimit: number; - - /** - * The max number of tips a user could send. - **/ - maxTips: number; - - /** - * The max duration in blocks for deadlines. - **/ - maxDeadlineDuration: number; - - /** - * The max number of attributes a user could set per call. - **/ - maxAttributesPerCall: number; - - /** - * Disables some of pallet's features. - **/ - features: PalletNftsBitFlagsPalletFeature; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ForeignAssets`'s constants - **/ - foreignAssets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `NftFractionalization`'s constants - **/ - nftFractionalization: { - /** - * The deposit paid by the user locking an NFT. The deposit is returned to the original NFT - * owner when the asset is unified and the NFT is unlocked. - **/ - deposit: bigint; - - /** - * The pallet's id, used for deriving its sovereign account ID. - **/ - palletId: FrameSupportPalletId; - - /** - * The newly created asset's symbol. - **/ - newAssetSymbol: Bytes; - - /** - * The newly created asset's name. - **/ - newAssetName: Bytes; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PoolAssets`'s constants - **/ - poolAssets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetConversion`'s constants - **/ - assetConversion: { - /** - * A % the liquidity providers will take of every swap. Represents 10ths of a percent. - **/ - lpFee: number; - - /** - * A one-time fee to setup the pool. - **/ - poolSetupFee: bigint; - - /** - * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`]. - **/ - poolSetupFeeAsset: StagingXcmV3MultilocationMultiLocation; - - /** - * A fee to withdraw the liquidity. - **/ - liquidityWithdrawalFee: Permill; - - /** - * The minimum LP token amount that could be minted. Ameliorates rounding errors. - **/ - mintMinLiquidity: bigint; - - /** - * The max number of hops in a swap. - **/ - maxSwapPathLength: number; - - /** - * The pallet's id, used for deriving its sovereign account ID. - **/ - palletId: FrameSupportPalletId; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; -} diff --git a/packages/chaintypes/src/kusamaAssetHub/errors.d.ts b/packages/chaintypes/src/kusamaAssetHub/errors.d.ts deleted file mode 100644 index b0ae719..0000000 --- a/packages/chaintypes/src/kusamaAssetHub/errors.d.ts +++ /dev/null @@ -1,1529 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainErrors, GenericPalletError, RpcVersion } from 'dedot/types'; - -export interface ChainErrors extends GenericChainErrors { - /** - * Pallet `System`'s errors - **/ - system: { - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - InvalidSpecName: GenericPalletError; - - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - SpecVersionNeedsToIncrease: GenericPalletError; - - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - FailedToExtractRuntimeVersion: GenericPalletError; - - /** - * Suicide called when the account has non-default composite data. - **/ - NonDefaultComposite: GenericPalletError; - - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - NonZeroRefCount: GenericPalletError; - - /** - * The origin filter prevent the call to be dispatched. - **/ - CallFiltered: GenericPalletError; - - /** - * No upgrade authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The submitted code is not authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ParachainSystem`'s errors - **/ - parachainSystem: { - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - OverlappingUpgrades: GenericPalletError; - - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - ProhibitedByPolkadot: GenericPalletError; - - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - TooBig: GenericPalletError; - - /** - * The inherent which supplies the validation data did not run this block. - **/ - ValidationDataNotAvailable: GenericPalletError; - - /** - * The inherent which supplies the host configuration did not run this block. - **/ - HostConfigurationNotAvailable: GenericPalletError; - - /** - * No validation function upgrade is currently scheduled. - **/ - NotScheduled: GenericPalletError; - - /** - * No code upgrade has been authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The given code upgrade has not been authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Balances`'s errors - **/ - balances: { - /** - * Vesting balance too high to send value. - **/ - VestingBalance: GenericPalletError; - - /** - * Account liquidity restrictions prevent withdrawal. - **/ - LiquidityRestrictions: GenericPalletError; - - /** - * Balance too low to send value. - **/ - InsufficientBalance: GenericPalletError; - - /** - * Value too low to create account due to existential deposit. - **/ - ExistentialDeposit: GenericPalletError; - - /** - * Transfer/payment would kill account. - **/ - Expendability: GenericPalletError; - - /** - * A vesting schedule already exists for this account. - **/ - ExistingVestingSchedule: GenericPalletError; - - /** - * Beneficiary account must pre-exist. - **/ - DeadAccount: GenericPalletError; - - /** - * Number of named reserves exceed `MaxReserves`. - **/ - TooManyReserves: GenericPalletError; - - /** - * Number of holds exceed `VariantCountOf`. - **/ - TooManyHolds: GenericPalletError; - - /** - * Number of freezes exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * The issuance cannot be modified since it is already deactivated. - **/ - IssuanceDeactivated: GenericPalletError; - - /** - * The delta cannot be zero. - **/ - DeltaZero: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Vesting`'s errors - **/ - vesting: { - /** - * The account given is not vesting. - **/ - NotVesting: GenericPalletError; - - /** - * The account already has `MaxVestingSchedules` count of schedules and thus - * cannot add another one. Consider merging existing schedules in order to add another. - **/ - AtMaxVestingSchedules: GenericPalletError; - - /** - * Amount being transferred is too low to create a vesting schedule. - **/ - AmountLow: GenericPalletError; - - /** - * An index was out of bounds of the vesting schedules. - **/ - ScheduleIndexOutOfBounds: GenericPalletError; - - /** - * Failed to create a new schedule because some parameter was invalid. - **/ - InvalidScheduleParams: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `CollatorSelection`'s errors - **/ - collatorSelection: { - /** - * The pallet has too many candidates. - **/ - TooManyCandidates: GenericPalletError; - - /** - * Leaving would result in too few candidates. - **/ - TooFewEligibleCollators: GenericPalletError; - - /** - * Account is already a candidate. - **/ - AlreadyCandidate: GenericPalletError; - - /** - * Account is not a candidate. - **/ - NotCandidate: GenericPalletError; - - /** - * There are too many Invulnerables. - **/ - TooManyInvulnerables: GenericPalletError; - - /** - * Account is already an Invulnerable. - **/ - AlreadyInvulnerable: GenericPalletError; - - /** - * Account is not an Invulnerable. - **/ - NotInvulnerable: GenericPalletError; - - /** - * Account has no associated validator ID. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Validator ID is not yet registered. - **/ - ValidatorNotRegistered: GenericPalletError; - - /** - * Could not insert in the candidate list. - **/ - InsertToCandidateListFailed: GenericPalletError; - - /** - * Could not remove from the candidate list. - **/ - RemoveFromCandidateListFailed: GenericPalletError; - - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - DepositTooLow: GenericPalletError; - - /** - * Could not update the candidate list. - **/ - UpdateCandidateListFailed: GenericPalletError; - - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - InsufficientBond: GenericPalletError; - - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - TargetIsNotCandidate: GenericPalletError; - - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - IdenticalDeposit: GenericPalletError; - - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - InvalidUnreserve: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Session`'s errors - **/ - session: { - /** - * Invalid ownership proof. - **/ - InvalidProof: GenericPalletError; - - /** - * No associated validator ID for account. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Registered duplicate key. - **/ - DuplicatedKey: GenericPalletError; - - /** - * No keys are associated with this account. - **/ - NoKeys: GenericPalletError; - - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - NoAccount: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `XcmpQueue`'s errors - **/ - xcmpQueue: { - /** - * Setting the queue config failed since one of its values was invalid. - **/ - BadQueueConfig: GenericPalletError; - - /** - * The execution is already suspended. - **/ - AlreadySuspended: GenericPalletError; - - /** - * The execution is already resumed. - **/ - AlreadyResumed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PolkadotXcm`'s errors - **/ - polkadotXcm: { - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - Unreachable: GenericPalletError; - - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - SendFailure: GenericPalletError; - - /** - * The message execution fails the filter. - **/ - Filtered: GenericPalletError; - - /** - * The message's weight could not be determined. - **/ - UnweighableMessage: GenericPalletError; - - /** - * The destination `Location` provided cannot be inverted. - **/ - DestinationNotInvertible: GenericPalletError; - - /** - * The assets to be sent are empty. - **/ - Empty: GenericPalletError; - - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - CannotReanchor: GenericPalletError; - - /** - * Too many assets have been attempted for transfer. - **/ - TooManyAssets: GenericPalletError; - - /** - * Origin is invalid for sending. - **/ - InvalidOrigin: GenericPalletError; - - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - BadVersion: GenericPalletError; - - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - BadLocation: GenericPalletError; - - /** - * The referenced subscription could not be found. - **/ - NoSubscription: GenericPalletError; - - /** - * The location is invalid since it already has a subscription from us. - **/ - AlreadySubscribed: GenericPalletError; - - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - CannotCheckOutTeleport: GenericPalletError; - - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - LowBalance: GenericPalletError; - - /** - * The asset owner has too many locks on the asset. - **/ - TooManyLocks: GenericPalletError; - - /** - * The given account is not an identifiable sovereign account for any location. - **/ - AccountNotSovereign: GenericPalletError; - - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - FeesNotMet: GenericPalletError; - - /** - * A remote lock with the corresponding data could not be found. - **/ - LockNotFound: GenericPalletError; - - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - InUse: GenericPalletError; - - /** - * Invalid non-concrete asset. - **/ - InvalidAssetNotConcrete: GenericPalletError; - - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - InvalidAssetUnknownReserve: GenericPalletError; - - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - InvalidAssetUnsupportedReserve: GenericPalletError; - - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - TooManyReserves: GenericPalletError; - - /** - * Local XCM execution incomplete. - **/ - LocalExecutionIncomplete: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `MessageQueue`'s errors - **/ - messageQueue: { - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - NotReapable: GenericPalletError; - - /** - * Page to be reaped does not exist. - **/ - NoPage: GenericPalletError; - - /** - * The referenced message could not be found. - **/ - NoMessage: GenericPalletError; - - /** - * The message was already processed and cannot be processed again. - **/ - AlreadyProcessed: GenericPalletError; - - /** - * The message is queued for future execution. - **/ - Queued: GenericPalletError; - - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - InsufficientWeight: GenericPalletError; - - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - TemporarilyUnprocessable: GenericPalletError; - - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - QueuePaused: GenericPalletError; - - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - RecursiveDisallowed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Utility`'s errors - **/ - utility: { - /** - * Too many calls batched. - **/ - TooManyCalls: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Multisig`'s errors - **/ - multisig: { - /** - * Threshold must be 2 or greater. - **/ - MinimumThreshold: GenericPalletError; - - /** - * Call is already approved by this signatory. - **/ - AlreadyApproved: GenericPalletError; - - /** - * Call doesn't need any (more) approvals. - **/ - NoApprovalsNeeded: GenericPalletError; - - /** - * There are too few signatories in the list. - **/ - TooFewSignatories: GenericPalletError; - - /** - * There are too many signatories in the list. - **/ - TooManySignatories: GenericPalletError; - - /** - * The signatories were provided out of order; they should be ordered. - **/ - SignatoriesOutOfOrder: GenericPalletError; - - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - SenderInSignatories: GenericPalletError; - - /** - * Multisig operation not found when attempting to cancel. - **/ - NotFound: GenericPalletError; - - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - NotOwner: GenericPalletError; - - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - NoTimepoint: GenericPalletError; - - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - WrongTimepoint: GenericPalletError; - - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - UnexpectedTimepoint: GenericPalletError; - - /** - * The maximum weight information provided was too low. - **/ - MaxWeightTooLow: GenericPalletError; - - /** - * The data to be stored is already stored. - **/ - AlreadyStored: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Proxy`'s errors - **/ - proxy: { - /** - * There are too many proxies registered or too many announcements pending. - **/ - TooMany: GenericPalletError; - - /** - * Proxy registration not found. - **/ - NotFound: GenericPalletError; - - /** - * Sender is not a proxy of the account to be proxied. - **/ - NotProxy: GenericPalletError; - - /** - * A call which is incompatible with the proxy type's filter was attempted. - **/ - Unproxyable: GenericPalletError; - - /** - * Account is already a proxy. - **/ - Duplicate: GenericPalletError; - - /** - * Call may not be made by proxy because it may escalate its privileges. - **/ - NoPermission: GenericPalletError; - - /** - * Announcement, if made at all, was made too recently. - **/ - Unannounced: GenericPalletError; - - /** - * Cannot add self as proxy. - **/ - NoSelfProxy: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Assets`'s errors - **/ - assets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Uniques`'s errors - **/ - uniques: { - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownCollection: GenericPalletError; - - /** - * The item ID has already been used for an item. - **/ - AlreadyExists: GenericPalletError; - - /** - * The owner turned out to be different to what was expected. - **/ - WrongOwner: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * The item ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * The item or collection is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The delegate turned out to be different to what was expected. - **/ - WrongDelegate: GenericPalletError; - - /** - * There is no delegate approved. - **/ - NoDelegate: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The named owner has not signed ownership of the collection is acceptable. - **/ - Unaccepted: GenericPalletError; - - /** - * The item is locked. - **/ - Locked: GenericPalletError; - - /** - * All items have been minted. - **/ - MaxSupplyReached: GenericPalletError; - - /** - * The max supply has already been set. - **/ - MaxSupplyAlreadySet: GenericPalletError; - - /** - * The provided max supply is less to the amount of items a collection already has. - **/ - MaxSupplyTooSmall: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownItem: GenericPalletError; - - /** - * Item is not for sale. - **/ - NotForSale: GenericPalletError; - - /** - * The provided bid is too low. - **/ - BidTooLow: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Nfts`'s errors - **/ - nfts: { - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownCollection: GenericPalletError; - - /** - * The item ID has already been used for an item. - **/ - AlreadyExists: GenericPalletError; - - /** - * The approval had a deadline that expired, so the approval isn't valid anymore. - **/ - ApprovalExpired: GenericPalletError; - - /** - * The owner turned out to be different to what was expected. - **/ - WrongOwner: GenericPalletError; - - /** - * The witness data given does not match the current state of the chain. - **/ - BadWitness: GenericPalletError; - - /** - * Collection ID is already taken. - **/ - CollectionIdInUse: GenericPalletError; - - /** - * Items within that collection are non-transferable. - **/ - ItemsNonTransferable: GenericPalletError; - - /** - * The provided account is not a delegate. - **/ - NotDelegate: GenericPalletError; - - /** - * The delegate turned out to be different to what was expected. - **/ - WrongDelegate: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The named owner has not signed ownership acceptance of the collection. - **/ - Unaccepted: GenericPalletError; - - /** - * The item is locked (non-transferable). - **/ - ItemLocked: GenericPalletError; - - /** - * Item's attributes are locked. - **/ - LockedItemAttributes: GenericPalletError; - - /** - * Collection's attributes are locked. - **/ - LockedCollectionAttributes: GenericPalletError; - - /** - * Item's metadata is locked. - **/ - LockedItemMetadata: GenericPalletError; - - /** - * Collection's metadata is locked. - **/ - LockedCollectionMetadata: GenericPalletError; - - /** - * All items have been minted. - **/ - MaxSupplyReached: GenericPalletError; - - /** - * The max supply is locked and can't be changed. - **/ - MaxSupplyLocked: GenericPalletError; - - /** - * The provided max supply is less than the number of items a collection already has. - **/ - MaxSupplyTooSmall: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownItem: GenericPalletError; - - /** - * Swap doesn't exist. - **/ - UnknownSwap: GenericPalletError; - - /** - * The given item has no metadata set. - **/ - MetadataNotFound: GenericPalletError; - - /** - * The provided attribute can't be found. - **/ - AttributeNotFound: GenericPalletError; - - /** - * Item is not for sale. - **/ - NotForSale: GenericPalletError; - - /** - * The provided bid is too low. - **/ - BidTooLow: GenericPalletError; - - /** - * The item has reached its approval limit. - **/ - ReachedApprovalLimit: GenericPalletError; - - /** - * The deadline has already expired. - **/ - DeadlineExpired: GenericPalletError; - - /** - * The duration provided should be less than or equal to `MaxDeadlineDuration`. - **/ - WrongDuration: GenericPalletError; - - /** - * The method is disabled by system settings. - **/ - MethodDisabled: GenericPalletError; - - /** - * The provided setting can't be set. - **/ - WrongSetting: GenericPalletError; - - /** - * Item's config already exists and should be equal to the provided one. - **/ - InconsistentItemConfig: GenericPalletError; - - /** - * Config for a collection or an item can't be found. - **/ - NoConfig: GenericPalletError; - - /** - * Some roles were not cleared. - **/ - RolesNotCleared: GenericPalletError; - - /** - * Mint has not started yet. - **/ - MintNotStarted: GenericPalletError; - - /** - * Mint has already ended. - **/ - MintEnded: GenericPalletError; - - /** - * The provided Item was already used for claiming. - **/ - AlreadyClaimed: GenericPalletError; - - /** - * The provided data is incorrect. - **/ - IncorrectData: GenericPalletError; - - /** - * The extrinsic was sent by the wrong origin. - **/ - WrongOrigin: GenericPalletError; - - /** - * The provided signature is incorrect. - **/ - WrongSignature: GenericPalletError; - - /** - * The provided metadata might be too long. - **/ - IncorrectMetadata: GenericPalletError; - - /** - * Can't set more attributes per one call. - **/ - MaxAttributesLimitReached: GenericPalletError; - - /** - * The provided namespace isn't supported in this call. - **/ - WrongNamespace: GenericPalletError; - - /** - * Can't delete non-empty collections. - **/ - CollectionNotEmpty: GenericPalletError; - - /** - * The witness data should be provided. - **/ - WitnessRequired: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ForeignAssets`'s errors - **/ - foreignAssets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `NftFractionalization`'s errors - **/ - nftFractionalization: { - /** - * Asset ID does not correspond to locked NFT. - **/ - IncorrectAssetId: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * NFT doesn't exist. - **/ - NftNotFound: GenericPalletError; - - /** - * NFT has not yet been fractionalised. - **/ - NftNotFractionalized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PoolAssets`'s errors - **/ - poolAssets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `AssetConversion`'s errors - **/ - assetConversion: { - /** - * Provided asset pair is not supported for pool. - **/ - InvalidAssetPair: GenericPalletError; - - /** - * Pool already exists. - **/ - PoolExists: GenericPalletError; - - /** - * Desired amount can't be zero. - **/ - WrongDesiredAmount: GenericPalletError; - - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - AmountOneLessThanMinimal: GenericPalletError; - - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - AmountTwoLessThanMinimal: GenericPalletError; - - /** - * Reserve needs to always be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - ReserveLeftLessThanMinimal: GenericPalletError; - - /** - * Desired amount can't be equal to the pool reserve. - **/ - AmountOutTooHigh: GenericPalletError; - - /** - * The pool doesn't exist. - **/ - PoolNotFound: GenericPalletError; - - /** - * An overflow happened. - **/ - Overflow: GenericPalletError; - - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - AssetOneDepositDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - AssetTwoDepositDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - AssetOneWithdrawalDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - AssetTwoWithdrawalDidNotMeetMinimum: GenericPalletError; - - /** - * Optimal calculated amount is less than desired. - **/ - OptimalAmountLessThanDesired: GenericPalletError; - - /** - * Insufficient liquidity minted. - **/ - InsufficientLiquidityMinted: GenericPalletError; - - /** - * Requested liquidity can't be zero. - **/ - ZeroLiquidity: GenericPalletError; - - /** - * Amount can't be zero. - **/ - ZeroAmount: GenericPalletError; - - /** - * Calculated amount out is less than provided minimum amount. - **/ - ProvidedMinimumNotSufficientForSwap: GenericPalletError; - - /** - * Provided maximum amount is not sufficient for swap. - **/ - ProvidedMaximumNotSufficientForSwap: GenericPalletError; - - /** - * The provided path must consists of 2 assets at least. - **/ - InvalidPath: GenericPalletError; - - /** - * The provided path must consists of unique assets. - **/ - NonUniquePath: GenericPalletError; - - /** - * It was not possible to get or increment the Id of the pool. - **/ - IncorrectPoolAssetId: GenericPalletError; - - /** - * The destination account cannot exist with the swapped funds. - **/ - BelowMinimum: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; -} diff --git a/packages/chaintypes/src/kusamaAssetHub/events.d.ts b/packages/chaintypes/src/kusamaAssetHub/events.d.ts deleted file mode 100644 index 49c5b4c..0000000 --- a/packages/chaintypes/src/kusamaAssetHub/events.d.ts +++ /dev/null @@ -1,2443 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types'; -import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result, Bytes, Permill } from 'dedot/codecs'; -import type { - SpWeightsWeightV2Weight, - FrameSupportTokensMiscBalanceStatus, - StagingXcmV3MultilocationMultiLocation, - StagingXcmV4TraitsOutcome, - StagingXcmV4Location, - StagingXcmV4Xcm, - StagingXcmV4Response, - XcmVersionedAssets, - StagingXcmV4AssetAssets, - XcmV3TraitsError, - XcmVersionedLocation, - CumulusPrimitivesCoreAggregateMessageOrigin, - FrameSupportMessagesProcessMessageError, - PalletMultisigTimepoint, - AssetHubKusamaRuntimeProxyType, - PalletNftsAttributeNamespace, - PalletNftsPriceWithDirection, - PalletNftsPalletAttributes, -} from './types'; - -export interface ChainEvents extends GenericChainEvents { - /** - * Pallet `System`'s events - **/ - system: { - /** - * An extrinsic completed successfully. - **/ - ExtrinsicSuccess: GenericPalletEvent; - - /** - * An extrinsic failed. - **/ - ExtrinsicFailed: GenericPalletEvent< - Rv, - 'System', - 'ExtrinsicFailed', - { dispatchError: DispatchError; dispatchInfo: DispatchInfo } - >; - - /** - * `:code` was updated. - **/ - CodeUpdated: GenericPalletEvent; - - /** - * A new account was created. - **/ - NewAccount: GenericPalletEvent; - - /** - * An account was reaped. - **/ - KilledAccount: GenericPalletEvent; - - /** - * On on-chain remark happened. - **/ - Remarked: GenericPalletEvent; - - /** - * An upgrade was authorized. - **/ - UpgradeAuthorized: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ParachainSystem`'s events - **/ - parachainSystem: { - /** - * The validation function has been scheduled to apply. - **/ - ValidationFunctionStored: GenericPalletEvent; - - /** - * The validation function was applied as of the contained relay chain block number. - **/ - ValidationFunctionApplied: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'ValidationFunctionApplied', - { relayChainBlockNum: number } - >; - - /** - * The relay-chain aborted the upgrade process. - **/ - ValidationFunctionDiscarded: GenericPalletEvent; - - /** - * Some downward messages have been received and will be processed. - **/ - DownwardMessagesReceived: GenericPalletEvent; - - /** - * Downward messages were processed using the given weight. - **/ - DownwardMessagesProcessed: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'DownwardMessagesProcessed', - { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } - >; - - /** - * An upward message was sent to the relay chain. - **/ - UpwardMessageSent: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'UpwardMessageSent', - { messageHash?: FixedBytes<32> | undefined } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Balances`'s events - **/ - balances: { - /** - * An account was created with some free balance. - **/ - Endowed: GenericPalletEvent; - - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - DustLost: GenericPalletEvent; - - /** - * Transfer succeeded. - **/ - Transfer: GenericPalletEvent; - - /** - * A balance was set by root. - **/ - BalanceSet: GenericPalletEvent; - - /** - * Some balance was reserved (moved from free to reserved). - **/ - Reserved: GenericPalletEvent; - - /** - * Some balance was unreserved (moved from reserved to free). - **/ - Unreserved: GenericPalletEvent; - - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - ReserveRepatriated: GenericPalletEvent< - Rv, - 'Balances', - 'ReserveRepatriated', - { from: AccountId32; to: AccountId32; amount: bigint; destinationStatus: FrameSupportTokensMiscBalanceStatus } - >; - - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - Deposit: GenericPalletEvent; - - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - Withdraw: GenericPalletEvent; - - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - Slashed: GenericPalletEvent; - - /** - * Some amount was minted into an account. - **/ - Minted: GenericPalletEvent; - - /** - * Some amount was burned from an account. - **/ - Burned: GenericPalletEvent; - - /** - * Some amount was suspended from an account (it can be restored later). - **/ - Suspended: GenericPalletEvent; - - /** - * Some amount was restored into an account. - **/ - Restored: GenericPalletEvent; - - /** - * An account was upgraded. - **/ - Upgraded: GenericPalletEvent; - - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - Issued: GenericPalletEvent; - - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - Rescinded: GenericPalletEvent; - - /** - * Some balance was locked. - **/ - Locked: GenericPalletEvent; - - /** - * Some balance was unlocked. - **/ - Unlocked: GenericPalletEvent; - - /** - * Some balance was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some balance was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * The `TotalIssuance` was forcefully changed. - **/ - TotalIssuanceForced: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `TransactionPayment`'s events - **/ - transactionPayment: { - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - TransactionFeePaid: GenericPalletEvent< - Rv, - 'TransactionPayment', - 'TransactionFeePaid', - { who: AccountId32; actualFee: bigint; tip: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetTxPayment`'s events - **/ - assetTxPayment: { - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who` in an asset `asset_id`. - **/ - AssetTxFeePaid: GenericPalletEvent< - Rv, - 'AssetTxPayment', - 'AssetTxFeePaid', - { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * A swap of the refund in native currency back to asset failed. - **/ - AssetRefundFailed: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Vesting`'s events - **/ - vesting: { - /** - * The amount vested has been updated. This could indicate a change in funds available. - * The balance given is the amount which is left unvested (and thus locked). - **/ - VestingUpdated: GenericPalletEvent; - - /** - * An \[account\] has become fully vested. - **/ - VestingCompleted: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CollatorSelection`'s events - **/ - collatorSelection: { - /** - * New Invulnerables were set. - **/ - NewInvulnerables: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewInvulnerables', - { invulnerables: Array } - >; - - /** - * A new Invulnerable was added. - **/ - InvulnerableAdded: GenericPalletEvent; - - /** - * An Invulnerable was removed. - **/ - InvulnerableRemoved: GenericPalletEvent; - - /** - * The number of desired candidates was set. - **/ - NewDesiredCandidates: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewDesiredCandidates', - { desiredCandidates: number } - >; - - /** - * The candidacy bond was set. - **/ - NewCandidacyBond: GenericPalletEvent; - - /** - * A new candidate joined. - **/ - CandidateAdded: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateAdded', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * Bond of a candidate updated. - **/ - CandidateBondUpdated: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateBondUpdated', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * A candidate was removed. - **/ - CandidateRemoved: GenericPalletEvent; - - /** - * An account was replaced in the candidate list by another one. - **/ - CandidateReplaced: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateReplaced', - { old: AccountId32; new: AccountId32; deposit: bigint } - >; - - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - InvalidInvulnerableSkipped: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'InvalidInvulnerableSkipped', - { accountId: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Session`'s events - **/ - session: { - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - NewSession: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `XcmpQueue`'s events - **/ - xcmpQueue: { - /** - * An HRMP message was sent to a sibling parachain. - **/ - XcmpMessageSent: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PolkadotXcm`'s events - **/ - polkadotXcm: { - /** - * Execution of an XCM message was attempted. - **/ - Attempted: GenericPalletEvent; - - /** - * A XCM message was sent. - **/ - Sent: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Sent', - { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - } - >; - - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - UnexpectedResponse: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'UnexpectedResponse', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - ResponseReady: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'ResponseReady', - { queryId: bigint; response: StagingXcmV4Response } - >; - - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - Notified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Notified', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - NotifyOverweight: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyOverweight', - { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - } - >; - - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - NotifyDispatchError: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDispatchError', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - NotifyDecodeFailed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDecodeFailed', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidResponder: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponder', - { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined } - >; - - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidResponderVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponderVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Received query response has been read and removed. - **/ - ResponseTaken: GenericPalletEvent; - - /** - * Some assets have been placed in an asset trap. - **/ - AssetsTrapped: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsTrapped', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - VersionChangeNotified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionChangeNotified', - { destination: StagingXcmV4Location; result: number; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - SupportedVersionChanged: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'SupportedVersionChanged', - { location: StagingXcmV4Location; version: number } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - NotifyTargetSendFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetSendFail', - { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - NotifyTargetMigrationFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetMigrationFail', - { location: XcmVersionedLocation; queryId: bigint } - >; - - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidQuerierVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerierVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidQuerier: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerier', - { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - } - >; - - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - VersionNotifyStarted: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyStarted', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - VersionNotifyRequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyRequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - VersionNotifyUnrequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyUnrequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - FeesPaid: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'FeesPaid', - { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } - >; - - /** - * Some assets have been claimed from an asset trap - **/ - AssetsClaimed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsClaimed', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * A XCM version migration finished. - **/ - VersionMigrationFinished: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CumulusXcm`'s events - **/ - cumulusXcm: { - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - InvalidFormat: GenericPalletEvent>; - - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - UnsupportedVersion: GenericPalletEvent>; - - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - ExecutedDownward: GenericPalletEvent< - Rv, - 'CumulusXcm', - 'ExecutedDownward', - [FixedBytes<32>, StagingXcmV4TraitsOutcome] - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `MessageQueue`'s events - **/ - messageQueue: { - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - ProcessingFailed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'ProcessingFailed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - } - >; - - /** - * Message is processed. - **/ - Processed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'Processed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - } - >; - - /** - * Message placed in overweight queue. - **/ - OverweightEnqueued: GenericPalletEvent< - Rv, - 'MessageQueue', - 'OverweightEnqueued', - { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - } - >; - - /** - * This page was reaped. - **/ - PageReaped: GenericPalletEvent< - Rv, - 'MessageQueue', - 'PageReaped', - { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Utility`'s events - **/ - utility: { - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - BatchInterrupted: GenericPalletEvent; - - /** - * Batch of dispatches completed fully with no error. - **/ - BatchCompleted: GenericPalletEvent; - - /** - * Batch of dispatches completed but has errors. - **/ - BatchCompletedWithErrors: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - ItemCompleted: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with error. - **/ - ItemFailed: GenericPalletEvent; - - /** - * A call was dispatched. - **/ - DispatchedAs: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Multisig`'s events - **/ - multisig: { - /** - * A new multisig operation has begun. - **/ - NewMultisig: GenericPalletEvent< - Rv, - 'Multisig', - 'NewMultisig', - { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been approved by someone. - **/ - MultisigApproval: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigApproval', - { approving: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been executed. - **/ - MultisigExecuted: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigExecuted', - { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - } - >; - - /** - * A multisig operation has been cancelled. - **/ - MultisigCancelled: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigCancelled', - { cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Proxy`'s events - **/ - proxy: { - /** - * A proxy was executed correctly, with the given. - **/ - ProxyExecuted: GenericPalletEvent }>; - - /** - * A pure account has been created by new proxy with given - * disambiguation index and proxy type. - **/ - PureCreated: GenericPalletEvent< - Rv, - 'Proxy', - 'PureCreated', - { pure: AccountId32; who: AccountId32; proxyType: AssetHubKusamaRuntimeProxyType; disambiguationIndex: number } - >; - - /** - * An announcement was placed to make a call in the future. - **/ - Announced: GenericPalletEvent; - - /** - * A proxy was added. - **/ - ProxyAdded: GenericPalletEvent< - Rv, - 'Proxy', - 'ProxyAdded', - { delegator: AccountId32; delegatee: AccountId32; proxyType: AssetHubKusamaRuntimeProxyType; delay: number } - >; - - /** - * A proxy was removed. - **/ - ProxyRemoved: GenericPalletEvent< - Rv, - 'Proxy', - 'ProxyRemoved', - { delegator: AccountId32; delegatee: AccountId32; proxyType: AssetHubKusamaRuntimeProxyType; delay: number } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Assets`'s events - **/ - assets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Assets', - 'Transferred', - { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Assets', - 'TeamChanged', - { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'Assets', - 'AccountsDestroyed', - { assetId: number; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovalsDestroyed', - { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'Assets', - 'MetadataSet', - { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovedTransfer', - { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovalCancelled', - { assetId: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'Assets', - 'TransferredApproved', - { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'Assets', - 'AssetMinBalanceChanged', - { assetId: number; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Uniques`'s events - **/ - uniques: { - /** - * A `collection` was created. - **/ - Created: GenericPalletEvent< - Rv, - 'Uniques', - 'Created', - { collection: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * A `collection` was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * A `collection` was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * An `item` was issued. - **/ - Issued: GenericPalletEvent; - - /** - * An `item` was transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Uniques', - 'Transferred', - { collection: number; item: number; from: AccountId32; to: AccountId32 } - >; - - /** - * An `item` was destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * Some `item` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some `item` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some `collection` was frozen. - **/ - CollectionFrozen: GenericPalletEvent; - - /** - * Some `collection` was thawed. - **/ - CollectionThawed: GenericPalletEvent; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Uniques', - 'TeamChanged', - { collection: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'Uniques', - 'ApprovedTransfer', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Uniques', - 'ApprovalCancelled', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * A `collection` has had its attributes changed by the `Force` origin. - **/ - ItemStatusChanged: GenericPalletEvent; - - /** - * New metadata has been set for a `collection`. - **/ - CollectionMetadataSet: GenericPalletEvent< - Rv, - 'Uniques', - 'CollectionMetadataSet', - { collection: number; data: Bytes; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for a `collection`. - **/ - CollectionMetadataCleared: GenericPalletEvent; - - /** - * New metadata has been set for an item. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'Uniques', - 'MetadataSet', - { collection: number; item: number; data: Bytes; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an item. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * Metadata has been cleared for an item. - **/ - Redeposited: GenericPalletEvent< - Rv, - 'Uniques', - 'Redeposited', - { collection: number; successfulItems: Array } - >; - - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - AttributeSet: GenericPalletEvent< - Rv, - 'Uniques', - 'AttributeSet', - { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } - >; - - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - AttributeCleared: GenericPalletEvent< - Rv, - 'Uniques', - 'AttributeCleared', - { collection: number; maybeItem?: number | undefined; key: Bytes } - >; - - /** - * Ownership acceptance has changed for an account. - **/ - OwnershipAcceptanceChanged: GenericPalletEvent< - Rv, - 'Uniques', - 'OwnershipAcceptanceChanged', - { who: AccountId32; maybeCollection?: number | undefined } - >; - - /** - * Max supply has been set for a collection. - **/ - CollectionMaxSupplySet: GenericPalletEvent< - Rv, - 'Uniques', - 'CollectionMaxSupplySet', - { collection: number; maxSupply: number } - >; - - /** - * The price was set for the instance. - **/ - ItemPriceSet: GenericPalletEvent< - Rv, - 'Uniques', - 'ItemPriceSet', - { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined } - >; - - /** - * The price for the instance was removed. - **/ - ItemPriceRemoved: GenericPalletEvent; - - /** - * An item was bought. - **/ - ItemBought: GenericPalletEvent< - Rv, - 'Uniques', - 'ItemBought', - { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Nfts`'s events - **/ - nfts: { - /** - * A `collection` was created. - **/ - Created: GenericPalletEvent< - Rv, - 'Nfts', - 'Created', - { collection: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * A `collection` was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * A `collection` was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * An `item` was issued. - **/ - Issued: GenericPalletEvent; - - /** - * An `item` was transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Nfts', - 'Transferred', - { collection: number; item: number; from: AccountId32; to: AccountId32 } - >; - - /** - * An `item` was destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * An `item` became non-transferable. - **/ - ItemTransferLocked: GenericPalletEvent; - - /** - * An `item` became transferable. - **/ - ItemTransferUnlocked: GenericPalletEvent; - - /** - * `item` metadata or attributes were locked. - **/ - ItemPropertiesLocked: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemPropertiesLocked', - { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean } - >; - - /** - * Some `collection` was locked. - **/ - CollectionLocked: GenericPalletEvent; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Nfts', - 'TeamChanged', - { - collection: number; - issuer?: AccountId32 | undefined; - admin?: AccountId32 | undefined; - freezer?: AccountId32 | undefined; - } - >; - - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - TransferApproved: GenericPalletEvent< - Rv, - 'Nfts', - 'TransferApproved', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32; deadline?: number | undefined } - >; - - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'ApprovalCancelled', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * All approvals of an item got cancelled. - **/ - AllApprovalsCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'AllApprovalsCancelled', - { collection: number; item: number; owner: AccountId32 } - >; - - /** - * A `collection` has had its config changed by the `Force` origin. - **/ - CollectionConfigChanged: GenericPalletEvent; - - /** - * New metadata has been set for a `collection`. - **/ - CollectionMetadataSet: GenericPalletEvent; - - /** - * Metadata has been cleared for a `collection`. - **/ - CollectionMetadataCleared: GenericPalletEvent; - - /** - * New metadata has been set for an item. - **/ - ItemMetadataSet: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemMetadataSet', - { collection: number; item: number; data: Bytes } - >; - - /** - * Metadata has been cleared for an item. - **/ - ItemMetadataCleared: GenericPalletEvent; - - /** - * The deposit for a set of `item`s within a `collection` has been updated. - **/ - Redeposited: GenericPalletEvent }>; - - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - AttributeSet: GenericPalletEvent< - Rv, - 'Nfts', - 'AttributeSet', - { - collection: number; - maybeItem?: number | undefined; - key: Bytes; - value: Bytes; - namespace: PalletNftsAttributeNamespace; - } - >; - - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - AttributeCleared: GenericPalletEvent< - Rv, - 'Nfts', - 'AttributeCleared', - { collection: number; maybeItem?: number | undefined; key: Bytes; namespace: PalletNftsAttributeNamespace } - >; - - /** - * A new approval to modify item attributes was added. - **/ - ItemAttributesApprovalAdded: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemAttributesApprovalAdded', - { collection: number; item: number; delegate: AccountId32 } - >; - - /** - * A new approval to modify item attributes was removed. - **/ - ItemAttributesApprovalRemoved: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemAttributesApprovalRemoved', - { collection: number; item: number; delegate: AccountId32 } - >; - - /** - * Ownership acceptance has changed for an account. - **/ - OwnershipAcceptanceChanged: GenericPalletEvent< - Rv, - 'Nfts', - 'OwnershipAcceptanceChanged', - { who: AccountId32; maybeCollection?: number | undefined } - >; - - /** - * Max supply has been set for a collection. - **/ - CollectionMaxSupplySet: GenericPalletEvent< - Rv, - 'Nfts', - 'CollectionMaxSupplySet', - { collection: number; maxSupply: number } - >; - - /** - * Mint settings for a collection had changed. - **/ - CollectionMintSettingsUpdated: GenericPalletEvent< - Rv, - 'Nfts', - 'CollectionMintSettingsUpdated', - { collection: number } - >; - - /** - * Event gets emitted when the `NextCollectionId` gets incremented. - **/ - NextCollectionIdIncremented: GenericPalletEvent< - Rv, - 'Nfts', - 'NextCollectionIdIncremented', - { nextId?: number | undefined } - >; - - /** - * The price was set for the item. - **/ - ItemPriceSet: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemPriceSet', - { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined } - >; - - /** - * The price for the item was removed. - **/ - ItemPriceRemoved: GenericPalletEvent; - - /** - * An item was bought. - **/ - ItemBought: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemBought', - { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 } - >; - - /** - * A tip was sent. - **/ - TipSent: GenericPalletEvent< - Rv, - 'Nfts', - 'TipSent', - { collection: number; item: number; sender: AccountId32; receiver: AccountId32; amount: bigint } - >; - - /** - * An `item` swap intent was created. - **/ - SwapCreated: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapCreated', - { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * The swap was cancelled. - **/ - SwapCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapCancelled', - { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * The swap has been claimed. - **/ - SwapClaimed: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapClaimed', - { - sentCollection: number; - sentItem: number; - sentItemOwner: AccountId32; - receivedCollection: number; - receivedItem: number; - receivedItemOwner: AccountId32; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * New attributes have been set for an `item` of the `collection`. - **/ - PreSignedAttributesSet: GenericPalletEvent< - Rv, - 'Nfts', - 'PreSignedAttributesSet', - { collection: number; item: number; namespace: PalletNftsAttributeNamespace } - >; - - /** - * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` - * within that `collection`. - **/ - PalletAttributeSet: GenericPalletEvent< - Rv, - 'Nfts', - 'PalletAttributeSet', - { collection: number; item?: number | undefined; attribute: PalletNftsPalletAttributes; value: Bytes } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ForeignAssets`'s events - **/ - foreignAssets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Created', - { assetId: StagingXcmV3MultilocationMultiLocation; creator: AccountId32; owner: AccountId32 } - >; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Issued', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; amount: bigint } - >; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Transferred', - { assetId: StagingXcmV3MultilocationMultiLocation; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Burned', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; balance: bigint } - >; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'TeamChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'OwnerChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } - >; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Frozen', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Thawed', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetFrozen', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetThawed', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AccountsDestroyed', - { assetId: StagingXcmV3MultilocationMultiLocation; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovalsDestroyed', - { assetId: StagingXcmV3MultilocationMultiLocation; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'DestructionStarted', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Destroyed', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ForceCreated', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } - >; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'MetadataSet', - { - assetId: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'MetadataCleared', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovedTransfer', - { assetId: StagingXcmV3MultilocationMultiLocation; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovalCancelled', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'TransferredApproved', - { - assetId: StagingXcmV3MultilocationMultiLocation; - owner: AccountId32; - delegate: AccountId32; - destination: AccountId32; - amount: bigint; - } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetStatusChanged', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetMinBalanceChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Touched', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; depositor: AccountId32 } - >; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Blocked', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `NftFractionalization`'s events - **/ - nftFractionalization: { - /** - * An NFT was successfully fractionalized. - **/ - NftFractionalized: GenericPalletEvent< - Rv, - 'NftFractionalization', - 'NftFractionalized', - { nftCollection: number; nft: number; fractions: bigint; asset: number; beneficiary: AccountId32 } - >; - - /** - * An NFT was successfully returned back. - **/ - NftUnified: GenericPalletEvent< - Rv, - 'NftFractionalization', - 'NftUnified', - { nftCollection: number; nft: number; asset: number; beneficiary: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PoolAssets`'s events - **/ - poolAssets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Created', - { assetId: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Transferred', - { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'PoolAssets', - 'TeamChanged', - { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'PoolAssets', - 'AccountsDestroyed', - { assetId: number; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovalsDestroyed', - { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'PoolAssets', - 'MetadataSet', - { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovedTransfer', - { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovalCancelled', - { assetId: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'PoolAssets', - 'TransferredApproved', - { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'PoolAssets', - 'AssetMinBalanceChanged', - { assetId: number; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Touched', - { assetId: number; who: AccountId32; depositor: AccountId32 } - >; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetConversion`'s events - **/ - assetConversion: { - /** - * A successful call of the `CretaPool` extrinsic will create this event. - **/ - PoolCreated: GenericPalletEvent< - Rv, - 'AssetConversion', - 'PoolCreated', - { - /** - * The account that created the pool. - **/ - creator: AccountId32; - - /** - * The pool id associated with the pool. Note that the order of the assets may not be - * the same as the order specified in the create pool extrinsic. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account ID of the pool. - **/ - poolAccount: AccountId32; - - /** - * The id of the liquidity tokens that will be minted when assets are added to this - * pool. - **/ - lpToken: number; - } - >; - - /** - * A successful call of the `AddLiquidity` extrinsic will create this event. - **/ - LiquidityAdded: GenericPalletEvent< - Rv, - 'AssetConversion', - 'LiquidityAdded', - { - /** - * The account that the liquidity was taken from. - **/ - who: AccountId32; - - /** - * The account that the liquidity tokens were minted to. - **/ - mintTo: AccountId32; - - /** - * The pool id of the pool that the liquidity was added to. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was added to the pool. - **/ - amount1Provided: bigint; - - /** - * The amount of the second asset that was added to the pool. - **/ - amount2Provided: bigint; - - /** - * The id of the lp token that was minted. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were minted of that id. - **/ - lpTokenMinted: bigint; - } - >; - - /** - * A successful call of the `RemoveLiquidity` extrinsic will create this event. - **/ - LiquidityRemoved: GenericPalletEvent< - Rv, - 'AssetConversion', - 'LiquidityRemoved', - { - /** - * The account that the liquidity tokens were burned from. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - withdrawTo: AccountId32; - - /** - * The pool id that the liquidity was removed from. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was removed from the pool. - **/ - amount1: bigint; - - /** - * The amount of the second asset that was removed from the pool. - **/ - amount2: bigint; - - /** - * The id of the lp token that was burned. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were burned of that id. - **/ - lpTokenBurned: bigint; - - /** - * Liquidity withdrawal fee (%). - **/ - withdrawalFee: Permill; - } - >; - - /** - * Assets have been converted from one to another. Both `SwapExactTokenForToken` - * and `SwapTokenForExactToken` will generate this event. - **/ - SwapExecuted: GenericPalletEvent< - Rv, - 'AssetConversion', - 'SwapExecuted', - { - /** - * Which account was the instigator of the swap. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - sendTo: AccountId32; - - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - } - >; - - /** - * Assets have been converted from one to another. - **/ - SwapCreditExecuted: GenericPalletEvent< - Rv, - 'AssetConversion', - 'SwapCreditExecuted', - { - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; -} diff --git a/packages/chaintypes/src/kusamaAssetHub/index.d.ts b/packages/chaintypes/src/kusamaAssetHub/index.d.ts deleted file mode 100644 index 1fe093e..0000000 --- a/packages/chaintypes/src/kusamaAssetHub/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by dedot cli - -import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types'; -import { ChainConsts } from './consts'; -import { ChainStorage } from './query'; -import { ChainJsonRpcApis } from './json-rpc'; -import { ChainErrors } from './errors'; -import { ChainEvents } from './events'; -import { RuntimeApis } from './runtime'; -import { ChainTx } from './tx'; - -export * from './types'; - -export interface VersionedKusamaAssetHubApi extends GenericSubstrateApi { - rpc: ChainJsonRpcApis; - consts: ChainConsts; - query: ChainStorage; - errors: ChainErrors; - events: ChainEvents; - call: RuntimeApis; - tx: ChainTx; -} - -export interface KusamaAssetHubApi { - legacy: VersionedKusamaAssetHubApi; - v2: VersionedKusamaAssetHubApi; -} diff --git a/packages/chaintypes/src/kusamaAssetHub/json-rpc.d.ts b/packages/chaintypes/src/kusamaAssetHub/json-rpc.d.ts deleted file mode 100644 index d5e1288..0000000 --- a/packages/chaintypes/src/kusamaAssetHub/json-rpc.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by dedot cli - -import type { GenericJsonRpcApis, RpcVersion } from 'dedot/types'; -import type { JsonRpcApis } from 'dedot/types/json-rpc'; - -export type ChainJsonRpcApis = Pick< - JsonRpcApis, - | 'archive_unstable_body' - | 'archive_unstable_call' - | 'archive_unstable_finalizedHeight' - | 'archive_unstable_genesisHash' - | 'archive_unstable_hashByHeight' - | 'archive_unstable_header' - | 'archive_unstable_storage' - | 'author_hasKey' - | 'author_hasSessionKeys' - | 'author_insertKey' - | 'author_pendingExtrinsics' - | 'author_removeExtrinsic' - | 'author_rotateKeys' - | 'author_submitAndWatchExtrinsic' - | 'author_submitExtrinsic' - | 'chainHead_v1_body' - | 'chainHead_v1_call' - | 'chainHead_v1_continue' - | 'chainHead_v1_follow' - | 'chainHead_v1_header' - | 'chainHead_v1_stopOperation' - | 'chainHead_v1_storage' - | 'chainHead_v1_unpin' - | 'chain_getBlock' - | 'chain_getBlockHash' - | 'chain_getFinalizedHead' - | 'chain_getHeader' - | 'chain_subscribeAllHeads' - | 'chain_subscribeFinalizedHeads' - | 'chain_subscribeNewHeads' - | 'childstate_getKeys' - | 'childstate_getKeysPaged' - | 'childstate_getStorage' - | 'childstate_getStorageEntries' - | 'childstate_getStorageHash' - | 'childstate_getStorageSize' - | 'dev_getBlockStats' - | 'offchain_localStorageGet' - | 'offchain_localStorageSet' - | 'payment_queryFeeDetails' - | 'payment_queryInfo' - | 'rpc_methods' - | 'state_call' - | 'state_getChildReadProof' - | 'state_getKeys' - | 'state_getKeysPaged' - | 'state_getMetadata' - | 'state_getPairs' - | 'state_getReadProof' - | 'state_getRuntimeVersion' - | 'state_getStorage' - | 'state_getStorageHash' - | 'state_getStorageSize' - | 'state_queryStorage' - | 'state_queryStorageAt' - | 'state_subscribeRuntimeVersion' - | 'state_subscribeStorage' - | 'state_traceBlock' - | 'state_trieMigrationStatus' - | 'system_accountNextIndex' - | 'system_addLogFilter' - | 'system_addReservedPeer' - | 'system_chain' - | 'system_chainType' - | 'system_dryRun' - | 'system_health' - | 'system_localListenAddresses' - | 'system_localPeerId' - | 'system_name' - | 'system_nodeRoles' - | 'system_peers' - | 'system_properties' - | 'system_removeReservedPeer' - | 'system_reservedPeers' - | 'system_resetLogFilter' - | 'system_syncState' - | 'system_unstable_networkState' - | 'system_version' - | 'transactionWatch_v1_submitAndWatch' - | 'transaction_v1_broadcast' - | 'transaction_v1_stop' -> & - GenericJsonRpcApis; diff --git a/packages/chaintypes/src/kusamaAssetHub/query.d.ts b/packages/chaintypes/src/kusamaAssetHub/query.d.ts deleted file mode 100644 index 8cf0da9..0000000 --- a/packages/chaintypes/src/kusamaAssetHub/query.d.ts +++ /dev/null @@ -1,1677 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types'; -import type { - AccountId32, - AccountId32Like, - H256, - Bytes, - Digest, - Phase, - FixedU128, - BytesLike, - FixedBytes, -} from 'dedot/codecs'; -import type { - FrameSystemAccountInfo, - FrameSupportDispatchPerDispatchClass, - FrameSystemEventRecord, - FrameSystemLastRuntimeUpgradeInfo, - FrameSystemCodeUpgradeAuthorization, - CumulusPalletParachainSystemUnincludedSegmentAncestor, - CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, - PolkadotPrimitivesV6PersistedValidationData, - PolkadotPrimitivesV6UpgradeRestriction, - PolkadotPrimitivesV6UpgradeGoAhead, - SpTrieStorageProof, - CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, - PolkadotPrimitivesV6AbridgedHostConfiguration, - CumulusPrimitivesParachainInherentMessageQueueChain, - PolkadotParachainPrimitivesPrimitivesId, - PolkadotCorePrimitivesOutboundHrmpMessage, - SpWeightsWeightV2Weight, - PalletBalancesAccountData, - PalletBalancesBalanceLock, - PalletBalancesReserveData, - PalletBalancesIdAmount, - PalletBalancesIdAmount002, - PalletTransactionPaymentReleases, - PalletVestingVestingInfo, - PalletVestingReleases, - PalletCollatorSelectionCandidateInfo, - AssetHubKusamaRuntimeSessionKeys, - SpCoreCryptoKeyTypeId, - SpConsensusAuraSr25519AppSr25519Public, - SpConsensusSlotsSlot, - CumulusPalletXcmpQueueOutboundChannelDetails, - CumulusPalletXcmpQueueQueueConfigData, - PalletXcmQueryStatus, - XcmVersionedLocation, - PalletXcmVersionMigrationStage, - PalletXcmRemoteLockedFungibleRecord, - XcmVersionedAssetId, - BpXcmBridgeHubRouterBridgeState, - PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin, - PalletMessageQueuePage, - PalletMultisigMultisig, - PalletProxyProxyDefinition, - PalletProxyAnnouncement, - PalletAssetsAssetDetails, - PalletAssetsAssetAccount, - PalletAssetsApproval, - PalletAssetsAssetMetadata, - PalletUniquesCollectionDetails, - PalletUniquesItemDetails, - PalletUniquesCollectionMetadata, - PalletUniquesItemMetadata, - PalletNftsCollectionDetails, - PalletNftsBitFlagsCollectionRole, - PalletNftsItemDetails, - PalletNftsCollectionMetadata, - PalletNftsItemMetadata, - PalletNftsAttributeDeposit, - PalletNftsAttributeNamespace, - PalletNftsPendingSwap, - PalletNftsCollectionConfig, - PalletNftsItemConfig, - StagingXcmV3MultilocationMultiLocation, - PalletNftFractionalizationDetails, - PalletAssetConversionPoolInfo, -} from './types'; - -export interface ChainStorage extends GenericChainStorage { - /** - * Pallet `System`'s storage queries - **/ - system: { - /** - * The full account information for a particular account ID. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery FrameSystemAccountInfo, AccountId32>; - - /** - * Total extrinsics count for the current block. - * - * @param {Callback =} callback - **/ - extrinsicCount: GenericStorageQuery number | undefined>; - - /** - * The current weight for the block. - * - * @param {Callback =} callback - **/ - blockWeight: GenericStorageQuery FrameSupportDispatchPerDispatchClass>; - - /** - * Total length (in bytes) for all extrinsics put together, for the current block. - * - * @param {Callback =} callback - **/ - allExtrinsicsLen: GenericStorageQuery number | undefined>; - - /** - * Map of block numbers to block hashes. - * - * @param {number} arg - * @param {Callback =} callback - **/ - blockHash: GenericStorageQuery H256, number>; - - /** - * Extrinsics data for the current block (maps an extrinsic's index to its data). - * - * @param {number} arg - * @param {Callback =} callback - **/ - extrinsicData: GenericStorageQuery Bytes, number>; - - /** - * The current block number being processed. Set by `execute_block`. - * - * @param {Callback =} callback - **/ - number: GenericStorageQuery number>; - - /** - * Hash of the previous block. - * - * @param {Callback =} callback - **/ - parentHash: GenericStorageQuery H256>; - - /** - * Digest of the current block, also part of the block header. - * - * @param {Callback =} callback - **/ - digest: GenericStorageQuery Digest>; - - /** - * Events deposited for the current block. - * - * NOTE: The item is unbound and should therefore never be read on chain. - * It could otherwise inflate the PoV size of a block. - * - * Events have a large in-memory size. Box the events to not go out-of-memory - * just in case someone still reads them from within the runtime. - * - * @param {Callback> =} callback - **/ - events: GenericStorageQuery Array>; - - /** - * The number of events in the `Events` list. - * - * @param {Callback =} callback - **/ - eventCount: GenericStorageQuery number>; - - /** - * Mapping between a topic (represented by T::Hash) and a vector of indexes - * of events in the `>` list. - * - * All topic vectors have deterministic storage locations depending on the topic. This - * allows light-clients to leverage the changes trie storage tracking mechanism and - * in case of changes fetch the list of events of interest. - * - * The value has the type `(BlockNumberFor, EventIndex)` because if we used only just - * the `EventIndex` then in case if the topic has the same contents on the next block - * no notification will be triggered thus the event might be lost. - * - * @param {H256} arg - * @param {Callback> =} callback - **/ - eventTopics: GenericStorageQuery Array<[number, number]>, H256>; - - /** - * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. - * - * @param {Callback =} callback - **/ - lastRuntimeUpgrade: GenericStorageQuery FrameSystemLastRuntimeUpgradeInfo | undefined>; - - /** - * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToU32RefCount: GenericStorageQuery boolean>; - - /** - * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False - * (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToTripleRefCount: GenericStorageQuery boolean>; - - /** - * The execution phase of the block. - * - * @param {Callback =} callback - **/ - executionPhase: GenericStorageQuery Phase | undefined>; - - /** - * `Some` if a code upgrade has been authorized. - * - * @param {Callback =} callback - **/ - authorizedUpgrade: GenericStorageQuery FrameSystemCodeUpgradeAuthorization | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainSystem`'s storage queries - **/ - parachainSystem: { - /** - * Latest included block descendants the runtime accepted. In other words, these are - * ancestors of the currently executing block which have not been included in the observed - * relay-chain state. - * - * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured - * in the pallet. - * - * @param {Callback> =} callback - **/ - unincludedSegment: GenericStorageQuery Array>; - - /** - * Storage field that keeps track of bandwidth used by the unincluded segment along with the - * latest HRMP watermark. Used for limiting the acceptance of new blocks with - * respect to relay chain constraints. - * - * @param {Callback =} callback - **/ - aggregatedUnincludedSegment: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined - >; - - /** - * In case of a scheduled upgrade, this storage field contains the validation code to be - * applied. - * - * As soon as the relay chain gives us the go-ahead signal, we will overwrite the - * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process - * with the new validation code. This concludes the upgrade process. - * - * @param {Callback =} callback - **/ - pendingValidationCode: GenericStorageQuery Bytes>; - - /** - * Validation code that is set by the parachain and is to be communicated to collator and - * consequently the relay-chain. - * - * This will be cleared in `on_initialize` of each new block if no other pallet already set - * the value. - * - * @param {Callback =} callback - **/ - newValidationCode: GenericStorageQuery Bytes | undefined>; - - /** - * The [`PersistedValidationData`] set for this block. - * This value is expected to be set only once per block and it's never stored - * in the trie. - * - * @param {Callback =} callback - **/ - validationData: GenericStorageQuery PolkadotPrimitivesV6PersistedValidationData | undefined>; - - /** - * Were the validation data set to notify the relay chain? - * - * @param {Callback =} callback - **/ - didSetValidationCode: GenericStorageQuery boolean>; - - /** - * The relay chain block number associated with the last parachain block. - * - * This is updated in `on_finalize`. - * - * @param {Callback =} callback - **/ - lastRelayChainBlockNumber: GenericStorageQuery number>; - - /** - * An option which indicates if the relay-chain restricts signalling a validation code upgrade. - * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced - * candidate will be invalid. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeRestrictionSignal: GenericStorageQuery PolkadotPrimitivesV6UpgradeRestriction | undefined>; - - /** - * Optional upgrade go-ahead signal from the relay-chain. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeGoAhead: GenericStorageQuery PolkadotPrimitivesV6UpgradeGoAhead | undefined>; - - /** - * The state proof for the last relay parent block. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relayStateProof: GenericStorageQuery SpTrieStorageProof | undefined>; - - /** - * The snapshot of some state related to messaging relevant to the current parachain as per - * the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relevantMessagingState: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined - >; - - /** - * The parachain host configuration that was obtained from the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - hostConfiguration: GenericStorageQuery PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>; - - /** - * The last downward message queue chain head we have observed. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback =} callback - **/ - lastDmqMqcHead: GenericStorageQuery CumulusPrimitivesParachainInherentMessageQueueChain>; - - /** - * The message queue chain heads we have observed per each channel incoming channel. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback> =} callback - **/ - lastHrmpMqcHeads: GenericStorageQuery< - Rv, - () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]> - >; - - /** - * Number of downward messages processed in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - processedDownwardMessages: GenericStorageQuery number>; - - /** - * HRMP watermark that was set in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - hrmpWatermark: GenericStorageQuery number>; - - /** - * HRMP messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - hrmpOutboundMessages: GenericStorageQuery Array>; - - /** - * Upward messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - upwardMessages: GenericStorageQuery Array>; - - /** - * Upward messages that are still pending and not yet send to the relay chain. - * - * @param {Callback> =} callback - **/ - pendingUpwardMessages: GenericStorageQuery Array>; - - /** - * The factor to multiply the base delivery fee by for UMP. - * - * @param {Callback =} callback - **/ - upwardDeliveryFeeFactor: GenericStorageQuery FixedU128>; - - /** - * The number of HRMP messages we observed in `on_initialize` and thus used that number for - * announcing the weight of `on_initialize` and `on_finalize`. - * - * @param {Callback =} callback - **/ - announcedHrmpMessagesPerCandidate: GenericStorageQuery number>; - - /** - * The weight we reserve at the beginning of the block for processing XCMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedXcmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * The weight we reserve at the beginning of the block for processing DMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedDmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * A custom head data that should be returned as result of `validate_block`. - * - * See `Pallet::set_custom_validation_head_data` for more information. - * - * @param {Callback =} callback - **/ - customValidationHeadData: GenericStorageQuery Bytes | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Timestamp`'s storage queries - **/ - timestamp: { - /** - * The current time for the current block. - * - * @param {Callback =} callback - **/ - now: GenericStorageQuery bigint>; - - /** - * Whether the timestamp has been updated in this block. - * - * This value is updated to `true` upon successful submission of a timestamp by a node. - * It is then checked at the end of each block execution in the `on_finalize` hook. - * - * @param {Callback =} callback - **/ - didUpdate: GenericStorageQuery boolean>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainInfo`'s storage queries - **/ - parachainInfo: { - /** - * - * @param {Callback =} callback - **/ - parachainId: GenericStorageQuery PolkadotParachainPrimitivesPrimitivesId>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Balances`'s storage queries - **/ - balances: { - /** - * The total units issued in the system. - * - * @param {Callback =} callback - **/ - totalIssuance: GenericStorageQuery bigint>; - - /** - * The total units of outstanding deactivated balance in the system. - * - * @param {Callback =} callback - **/ - inactiveIssuance: GenericStorageQuery bigint>; - - /** - * The Balances pallet example of storing the balance of an account. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> - * } - * ``` - * - * You can also store the balance of an account in the `System` pallet. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = System - * } - * ``` - * - * But this comes with tradeoffs, storing account balances in the system pallet stores - * `frame_system` data alongside the account data contrary to storing account balances in the - * `Balances` pallet, which uses a `StorageMap` to store balances data only. - * NOTE: This is only used in the case that this pallet is used to store balances. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery PalletBalancesAccountData, AccountId32>; - - /** - * Any liquidity locks on some account balances. - * NOTE: Should only be accessed when setting, changing and freeing a lock. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - locks: GenericStorageQuery Array, AccountId32>; - - /** - * Named reserves on some account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - reserves: GenericStorageQuery Array, AccountId32>; - - /** - * Holds on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - holds: GenericStorageQuery Array, AccountId32>; - - /** - * Freeze locks on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery Array, AccountId32>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `TransactionPayment`'s storage queries - **/ - transactionPayment: { - /** - * - * @param {Callback =} callback - **/ - nextFeeMultiplier: GenericStorageQuery FixedU128>; - - /** - * - * @param {Callback =} callback - **/ - storageVersion: GenericStorageQuery PalletTransactionPaymentReleases>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Vesting`'s storage queries - **/ - vesting: { - /** - * Information regarding the vesting of a given account. - * - * @param {AccountId32Like} arg - * @param {Callback | undefined> =} callback - **/ - vesting: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => Array | undefined, - AccountId32 - >; - - /** - * Storage version of the pallet. - * - * New networks start with latest version, as determined by the genesis build. - * - * @param {Callback =} callback - **/ - storageVersion: GenericStorageQuery PalletVestingReleases>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Authorship`'s storage queries - **/ - authorship: { - /** - * Author of current block. - * - * @param {Callback =} callback - **/ - author: GenericStorageQuery AccountId32 | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `CollatorSelection`'s storage queries - **/ - collatorSelection: { - /** - * The invulnerable, permissioned collators. This list must be sorted. - * - * @param {Callback> =} callback - **/ - invulnerables: GenericStorageQuery Array>; - - /** - * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be - * mutually exclusive. - * - * This list is sorted in ascending order by deposit and when the deposits are equal, the least - * recently updated is considered greater. - * - * @param {Callback> =} callback - **/ - candidateList: GenericStorageQuery Array>; - - /** - * Last block authored by collator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - lastAuthoredBlock: GenericStorageQuery number, AccountId32>; - - /** - * Desired number of candidates. - * - * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct. - * - * @param {Callback =} callback - **/ - desiredCandidates: GenericStorageQuery number>; - - /** - * Fixed amount to deposit to become a collator. - * - * When a collator calls `leave_intent` they immediately receive the deposit back. - * - * @param {Callback =} callback - **/ - candidacyBond: GenericStorageQuery bigint>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Session`'s storage queries - **/ - session: { - /** - * The current set of validators. - * - * @param {Callback> =} callback - **/ - validators: GenericStorageQuery Array>; - - /** - * Current index of the session. - * - * @param {Callback =} callback - **/ - currentIndex: GenericStorageQuery number>; - - /** - * True if the underlying economic identities or weighting behind the validators - * has changed in the queued validator set. - * - * @param {Callback =} callback - **/ - queuedChanged: GenericStorageQuery boolean>; - - /** - * The queued keys for the next session. When the next session begins, these keys - * will be used to determine the validator's session keys. - * - * @param {Callback> =} callback - **/ - queuedKeys: GenericStorageQuery Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>>; - - /** - * Indices of disabled validators. - * - * The vec is always kept sorted so that we can find whether a given validator is - * disabled using binary search. It gets cleared when `on_session_ending` returns - * a new set of identities. - * - * @param {Callback> =} callback - **/ - disabledValidators: GenericStorageQuery Array>; - - /** - * The next session keys for a validator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - nextKeys: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => AssetHubKusamaRuntimeSessionKeys | undefined, - AccountId32 - >; - - /** - * The owner of a key. The key is the `KeyTypeId` + the encoded key. - * - * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg - * @param {Callback =} callback - **/ - keyOwner: GenericStorageQuery< - Rv, - (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined, - [SpCoreCryptoKeyTypeId, Bytes] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Aura`'s storage queries - **/ - aura: { - /** - * The current authority set. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * The current slot of this block. - * - * This will be set in `on_initialize`. - * - * @param {Callback =} callback - **/ - currentSlot: GenericStorageQuery SpConsensusSlotsSlot>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AuraExt`'s storage queries - **/ - auraExt: { - /** - * Serves as cache for the authorities. - * - * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session, - * but we require the old authorities to verify the seal when validating a PoV. This will - * always be updated to the latest AuRa authorities in `on_finalize`. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * Current slot paired with a number of authored blocks. - * - * Updated on each block initialization. - * - * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback - **/ - slotInfo: GenericStorageQuery [SpConsensusSlotsSlot, number] | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `XcmpQueue`'s storage queries - **/ - xcmpQueue: { - /** - * The suspended inbound XCMP channels. All others are not suspended. - * - * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block - * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached - * within the block and therefore only included once in the proof size. - * - * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof - * will be smaller. - * - * @param {Callback> =} callback - **/ - inboundXcmpSuspended: GenericStorageQuery Array>; - - /** - * The non-empty XCMP channels in order of becoming non-empty, and the index of the first - * and last outbound message. If the two indices are equal, then it indicates an empty - * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater - * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in - * case of the need to send a high-priority signal message this block. - * The bool is true if there is a signal message waiting to be sent. - * - * @param {Callback> =} callback - **/ - outboundXcmpStatus: GenericStorageQuery Array>; - - /** - * The messages outbound in a given XCMP channel. - * - * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg - * @param {Callback =} callback - **/ - outboundXcmpMessages: GenericStorageQuery< - Rv, - (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes, - [PolkadotParachainPrimitivesPrimitivesId, number] - >; - - /** - * Any signal messages waiting to be sent. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - signalMessages: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * The configuration which controls the dynamics of the outbound queue. - * - * @param {Callback =} callback - **/ - queueConfig: GenericStorageQuery CumulusPalletXcmpQueueQueueConfigData>; - - /** - * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. - * - * @param {Callback =} callback - **/ - queueSuspended: GenericStorageQuery boolean>; - - /** - * The factor to multiply the base delivery fee by. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - deliveryFeeFactor: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PolkadotXcm`'s storage queries - **/ - polkadotXcm: { - /** - * The latest available query index. - * - * @param {Callback =} callback - **/ - queryCounter: GenericStorageQuery bigint>; - - /** - * The ongoing queries. - * - * @param {bigint} arg - * @param {Callback =} callback - **/ - queries: GenericStorageQuery PalletXcmQueryStatus | undefined, bigint>; - - /** - * The existing asset traps. - * - * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of - * times this pair has been trapped (usually just 1 if it exists at all). - * - * @param {H256} arg - * @param {Callback =} callback - **/ - assetTraps: GenericStorageQuery number, H256>; - - /** - * Default version to encode XCM when latest version of destination is unknown. If `None`, - * then the destinations whose XCM version is unknown are considered unreachable. - * - * @param {Callback =} callback - **/ - safeXcmVersion: GenericStorageQuery number | undefined>; - - /** - * The Latest versions that we know various locations support. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - supportedVersion: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => number | undefined, - [number, XcmVersionedLocation] - >; - - /** - * All locations that we have requested version notifications from. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - versionNotifiers: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => bigint | undefined, - [number, XcmVersionedLocation] - >; - - /** - * The target locations that are subscribed to our version changes, as well as the most recent - * of our versions we informed them of. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback - **/ - versionNotifyTargets: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined, - [number, XcmVersionedLocation] - >; - - /** - * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and - * the `u32` counter is the number of times that a send to the destination has been attempted, - * which is used as a prioritization. - * - * @param {Callback> =} callback - **/ - versionDiscoveryQueue: GenericStorageQuery Array<[XcmVersionedLocation, number]>>; - - /** - * The current migration's stage, if any. - * - * @param {Callback =} callback - **/ - currentMigration: GenericStorageQuery PalletXcmVersionMigrationStage | undefined>; - - /** - * Fungible assets which we know are locked on a remote chain. - * - * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg - * @param {Callback =} callback - **/ - remoteLockedFungibles: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined, - [number, AccountId32, XcmVersionedAssetId] - >; - - /** - * Fungible assets which we know are locked on this chain. - * - * @param {AccountId32Like} arg - * @param {Callback | undefined> =} callback - **/ - lockedFungibles: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined, - AccountId32 - >; - - /** - * Global suspension state of the XCM executor. - * - * @param {Callback =} callback - **/ - xcmExecutionSuspended: GenericStorageQuery boolean>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ToPolkadotXcmRouter`'s storage queries - **/ - toPolkadotXcmRouter: { - /** - * Bridge that we are using. - * - * **bridges-v1** assumptions: all outbound messages through this router are using single lane - * and to single remote consensus. If there is some other remote consensus that uses the same - * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required - * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges - * by the same pallet instance. - * - * @param {Callback =} callback - **/ - bridge: GenericStorageQuery BpXcmBridgeHubRouterBridgeState>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `MessageQueue`'s storage queries - **/ - messageQueue: { - /** - * The index of the first and last (non-empty) pages. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg - * @param {Callback =} callback - **/ - bookStateFor: GenericStorageQuery< - Rv, - (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin - >; - - /** - * The origin at which we should begin servicing. - * - * @param {Callback =} callback - **/ - serviceHead: GenericStorageQuery CumulusPrimitivesCoreAggregateMessageOrigin | undefined>; - - /** - * The map of page indices to pages. - * - * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg - * @param {Callback =} callback - **/ - pages: GenericStorageQuery< - Rv, - (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined, - [CumulusPrimitivesCoreAggregateMessageOrigin, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Multisig`'s storage queries - **/ - multisig: { - /** - * The set of open multisig operations. - * - * @param {[AccountId32Like, FixedBytes<32>]} arg - * @param {Callback =} callback - **/ - multisigs: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined, - [AccountId32, FixedBytes<32>] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Proxy`'s storage queries - **/ - proxy: { - /** - * The set of account proxies. Maps the account which has delegated to the accounts - * which are being delegated to, together with the amount held on deposit. - * - * @param {AccountId32Like} arg - * @param {Callback<[Array, bigint]> =} callback - **/ - proxies: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => [Array, bigint], - AccountId32 - >; - - /** - * The announcements made by the proxy (key). - * - * @param {AccountId32Like} arg - * @param {Callback<[Array, bigint]> =} callback - **/ - announcements: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => [Array, bigint], - AccountId32 - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Assets`'s storage queries - **/ - assets: { - /** - * Details of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletAssetsAssetDetails | undefined, number>; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [number, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[number, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, - [number, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery PalletAssetsAssetMetadata, number>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Uniques`'s storage queries - **/ - uniques: { - /** - * Details of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - class: GenericStorageQuery PalletUniquesCollectionDetails | undefined, number>; - - /** - * The collection, if any, of which an account is willing to take ownership. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - ownershipAcceptance: GenericStorageQuery number | undefined, AccountId32>; - - /** - * The items held by any given account; set out this way so that items owned by a single - * account can be enumerated. - * - * @param {[AccountId32Like, number, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number, number]) => [] | undefined, - [AccountId32, number, number] - >; - - /** - * The collections owned by any given account; set out this way so that collections owned by - * a single account can be enumerated. - * - * @param {[AccountId32Like, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - classAccount: GenericStorageQuery [] | undefined, [AccountId32, number]>; - - /** - * The items in existence and their ownership details. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletUniquesItemDetails | undefined, [number, number]>; - - /** - * Metadata of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - classMetadataOf: GenericStorageQuery PalletUniquesCollectionMetadata | undefined, number>; - - /** - * Metadata of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - instanceMetadataOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletUniquesItemMetadata | undefined, - [number, number] - >; - - /** - * Attributes of a collection. - * - * @param {[number, number | undefined, BytesLike]} arg - * @param {Callback<[Bytes, bigint] | undefined> =} callback - **/ - attribute: GenericStorageQuery< - Rv, - (arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined, - [number, number | undefined, Bytes] - >; - - /** - * Price of an asset instance. - * - * @param {[number, number]} arg - * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback - **/ - itemPriceOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, - [number, number] - >; - - /** - * Keeps track of the number of items a collection might have. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionMaxSupply: GenericStorageQuery number | undefined, number>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Nfts`'s storage queries - **/ - nfts: { - /** - * Details of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collection: GenericStorageQuery PalletNftsCollectionDetails | undefined, number>; - - /** - * The collection, if any, of which an account is willing to take ownership. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - ownershipAcceptance: GenericStorageQuery number | undefined, AccountId32>; - - /** - * The items held by any given account; set out this way so that items owned by a single - * account can be enumerated. - * - * @param {[AccountId32Like, number, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number, number]) => [] | undefined, - [AccountId32, number, number] - >; - - /** - * The collections owned by any given account; set out this way so that collections owned by - * a single account can be enumerated. - * - * @param {[AccountId32Like, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - collectionAccount: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number]) => [] | undefined, - [AccountId32, number] - >; - - /** - * The items in existence and their ownership details. - * Stores collection roles as per account. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - collectionRoleOf: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined, - [number, AccountId32] - >; - - /** - * The items in existence and their ownership details. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - item: GenericStorageQuery PalletNftsItemDetails | undefined, [number, number]>; - - /** - * Metadata of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionMetadataOf: GenericStorageQuery PalletNftsCollectionMetadata | undefined, number>; - - /** - * Metadata of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - itemMetadataOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsItemMetadata | undefined, - [number, number] - >; - - /** - * Attributes of a collection. - * - * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg - * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback - **/ - attribute: GenericStorageQuery< - Rv, - ( - arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike], - ) => [Bytes, PalletNftsAttributeDeposit] | undefined, - [number, number | undefined, PalletNftsAttributeNamespace, Bytes] - >; - - /** - * A price of an item. - * - * @param {[number, number]} arg - * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback - **/ - itemPriceOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, - [number, number] - >; - - /** - * Item attribute approvals. - * - * @param {[number, number]} arg - * @param {Callback> =} callback - **/ - itemAttributesApprovalsOf: GenericStorageQuery Array, [number, number]>; - - /** - * Stores the `CollectionId` that is going to be used for the next collection. - * This gets incremented whenever a new collection is created. - * - * @param {Callback =} callback - **/ - nextCollectionId: GenericStorageQuery number | undefined>; - - /** - * Handles all the pending swaps. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - pendingSwapOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsPendingSwap | undefined, - [number, number] - >; - - /** - * Config of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionConfigOf: GenericStorageQuery PalletNftsCollectionConfig | undefined, number>; - - /** - * Config of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - itemConfigOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsItemConfig | undefined, - [number, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ForeignAssets`'s storage queries - **/ - foreignAssets: { - /** - * Details of an asset. - * - * @param {StagingXcmV3MultilocationMultiLocation} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery< - Rv, - (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined, - StagingXcmV3MultilocationMultiLocation - >; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like], - ) => PalletAssetsApproval | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {StagingXcmV3MultilocationMultiLocation} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery< - Rv, - (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata, - StagingXcmV3MultilocationMultiLocation - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `NftFractionalization`'s storage queries - **/ - nftFractionalization: { - /** - * Keeps track of the corresponding NFT ID, asset ID and amount minted. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - nftToAsset: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftFractionalizationDetails | undefined, - [number, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PoolAssets`'s storage queries - **/ - poolAssets: { - /** - * Details of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletAssetsAssetDetails | undefined, number>; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [number, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[number, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, - [number, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery PalletAssetsAssetMetadata, number>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AssetConversion`'s storage queries - **/ - assetConversion: { - /** - * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially - * created rather than people sending tokens directly to a pool's public account. - * - * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg - * @param {Callback =} callback - **/ - pools: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation], - ) => PalletAssetConversionPoolInfo | undefined, - [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation] - >; - - /** - * Stores the `PoolAssetId` that is going to be used for the next lp token. - * This gets incremented whenever a new lp pool is created. - * - * @param {Callback =} callback - **/ - nextPoolAssetId: GenericStorageQuery number | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; -} diff --git a/packages/chaintypes/src/kusamaAssetHub/runtime.d.ts b/packages/chaintypes/src/kusamaAssetHub/runtime.d.ts deleted file mode 100644 index b557f26..0000000 --- a/packages/chaintypes/src/kusamaAssetHub/runtime.d.ts +++ /dev/null @@ -1,555 +0,0 @@ -// Generated by dedot cli - -import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types'; -import type { - H256, - RuntimeVersion, - Header, - DispatchError, - Result, - UncheckedExtrinsicLike, - UncheckedExtrinsic, - Bytes, - BytesLike, - AccountId32Like, -} from 'dedot/codecs'; -import type { - SpConsensusSlotsSlotDuration, - SpConsensusAuraSr25519AppSr25519Public, - SpConsensusSlotsSlot, - SpRuntimeBlock, - SpCoreOpaqueMetadata, - SpRuntimeTransactionValidityTransactionValidityError, - SpInherentsInherentData, - SpInherentsCheckInherentsResult, - SpRuntimeTransactionValidityValidTransaction, - SpRuntimeTransactionValidityTransactionSource, - SpCoreCryptoKeyTypeId, - StagingXcmV3MultilocationMultiLocation, - PalletTransactionPaymentRuntimeDispatchInfo, - PalletTransactionPaymentFeeDetails, - SpWeightsWeightV2Weight, - AssetHubKusamaRuntimeRuntimeCallLike, - XcmVersionedAssets, - AssetsCommonRuntimeApiFungiblesAccessError, - CumulusPrimitivesCoreCollationInfo, -} from './types'; - -export interface RuntimeApis extends GenericRuntimeApis { - /** - * @runtimeapi: AuraApi - 0xdd718d5cc53262d4 - **/ - auraApi: { - /** - * Returns the slot duration for Aura. - * - * Currently, only the value provided by this type at genesis will be used. - * - * @callname: AuraApi_slot_duration - **/ - slotDuration: GenericRuntimeApiMethod Promise>; - - /** - * Return the current set of authorities. - * - * @callname: AuraApi_authorities - **/ - authorities: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65 - **/ - auraUnincludedSegmentApi: { - /** - * Whether it is legal to extend the chain, assuming the given block is the most - * recently included one as-of the relay parent that will be built against, and - * the given slot. - * - * This should be consistent with the logic the runtime uses when validating blocks to - * avoid issues. - * - * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block - * whose state we are querying against, this must always return `true` as long as the slot - * is more recent than the included block itself. - * - * @callname: AuraUnincludedSegmentApi_can_build_upon - * @param {H256} included_hash - * @param {SpConsensusSlotsSlot} slot - **/ - canBuildUpon: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Core - 0xdf6acb689907609b - **/ - core: { - /** - * Returns the version of the runtime. - * - * @callname: Core_version - **/ - version: GenericRuntimeApiMethod Promise>; - - /** - * Execute the given block. - * - * @callname: Core_execute_block - * @param {SpRuntimeBlock} block - **/ - executeBlock: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Initialize a block with the given header. - * - * @callname: Core_initialize_block - * @param {Header} header - **/ - initializeBlock: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Metadata - 0x37e397fc7c91f5e4 - **/ - metadata: { - /** - * Returns the metadata of a runtime. - * - * @callname: Metadata_metadata - **/ - metadata: GenericRuntimeApiMethod Promise>; - - /** - * Returns the metadata at a given version. - * - * If the given `version` isn't supported, this will return `None`. - * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime. - * - * @callname: Metadata_metadata_at_version - * @param {number} version - **/ - metadataAtVersion: GenericRuntimeApiMethod Promise>; - - /** - * Returns the supported metadata versions. - * - * This can be used to call `metadata_at_version`. - * - * @callname: Metadata_metadata_versions - **/ - metadataVersions: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a - **/ - blockBuilder: { - /** - * Apply the given extrinsic. - * - * Returns an inclusion outcome which specifies if this extrinsic is included in - * this block or not. - * - * @callname: BlockBuilder_apply_extrinsic - * @param {UncheckedExtrinsicLike} extrinsic - **/ - applyExtrinsic: GenericRuntimeApiMethod< - Rv, - ( - extrinsic: UncheckedExtrinsicLike, - ) => Promise, SpRuntimeTransactionValidityTransactionValidityError>> - >; - - /** - * Finish the current block. - * - * @callname: BlockBuilder_finalize_block - **/ - finalizeBlock: GenericRuntimeApiMethod Promise
>; - - /** - * Generate inherent extrinsics. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_inherent_extrinsics - * @param {SpInherentsInherentData} inherent - **/ - inherentExtrinsics: GenericRuntimeApiMethod< - Rv, - (inherent: SpInherentsInherentData) => Promise> - >; - - /** - * Check that the inherents are valid. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_check_inherents - * @param {SpRuntimeBlock} block - * @param {SpInherentsInherentData} data - **/ - checkInherents: GenericRuntimeApiMethod< - Rv, - (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15 - **/ - taggedTransactionQueue: { - /** - * Validate the transaction. - * - * This method is invoked by the transaction pool to learn details about given transaction. - * The implementation should make sure to verify the correctness of the transaction - * against current state. The given `block_hash` corresponds to the hash of the block - * that is used as current state. - * - * Note that this call may be performed by the pool multiple times and transactions - * might be verified in any possible order. - * - * @callname: TaggedTransactionQueue_validate_transaction - * @param {SpRuntimeTransactionValidityTransactionSource} source - * @param {UncheckedExtrinsicLike} tx - * @param {H256} block_hash - **/ - validateTransaction: GenericRuntimeApiMethod< - Rv, - ( - source: SpRuntimeTransactionValidityTransactionSource, - tx: UncheckedExtrinsicLike, - blockHash: H256, - ) => Promise< - Result - > - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c - **/ - offchainWorkerApi: { - /** - * Starts the off-chain task for given block header. - * - * @callname: OffchainWorkerApi_offchain_worker - * @param {Header} header - **/ - offchainWorker: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: SessionKeys - 0xab3c0572291feb8b - **/ - sessionKeys: { - /** - * Generate a set of session keys with optionally using the given seed. - * The keys should be stored within the keystore exposed via runtime - * externalities. - * - * The seed needs to be a valid `utf8` string. - * - * Returns the concatenated SCALE encoded public keys. - * - * @callname: SessionKeys_generate_session_keys - * @param {BytesLike | undefined} seed - **/ - generateSessionKeys: GenericRuntimeApiMethod Promise>; - - /** - * Decode the given public session keys. - * - * Returns the list of public raw public keys + key type. - * - * @callname: SessionKeys_decode_session_keys - * @param {BytesLike} encoded - **/ - decodeSessionKeys: GenericRuntimeApiMethod< - Rv, - (encoded: BytesLike) => Promise | undefined> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f - **/ - accountNonceApi: { - /** - * Get current account nonce of given `AccountId`. - * - * @callname: AccountNonceApi_account_nonce - * @param {AccountId32Like} account - **/ - accountNonce: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec - **/ - assetConversionApi: { - /** - * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`]. - * - * Note that the price may have changed by the time the transaction is executed. - * (Use `amount_in_max` to control slippage.) - * - * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount - * @param {boolean} include_fee - **/ - quotePriceTokensForExactTokens: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount: bigint, - includeFee: boolean, - ) => Promise - >; - - /** - * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`]. - * - * Note that the price may have changed by the time the transaction is executed. - * (Use `amount_out_min` to control slippage.) - * - * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount - * @param {boolean} include_fee - **/ - quotePriceExactTokensForTokens: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount: bigint, - includeFee: boolean, - ) => Promise - >; - - /** - * Returns the size of the liquidity pool for the given asset pair. - * - * @callname: AssetConversionApi_get_reserves - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - getReserves: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => Promise<[bigint, bigint] | undefined> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8 - **/ - transactionPaymentApi: { - /** - * - * @callname: TransactionPaymentApi_query_info - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryInfo: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_fee_details - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryFeeDetails: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * - * @callname: TransactionPaymentApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059 - **/ - transactionPaymentCallApi: { - /** - * Query information of a dispatch class, weight, and fee of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_info - * @param {AssetHubKusamaRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallInfo: GenericRuntimeApiMethod< - Rv, - (call: AssetHubKusamaRuntimeRuntimeCallLike, len: number) => Promise - >; - - /** - * Query fee details of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_fee_details - * @param {AssetHubKusamaRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallFeeDetails: GenericRuntimeApiMethod< - Rv, - (call: AssetHubKusamaRuntimeRuntimeCallLike, len: number) => Promise - >; - - /** - * Query the output of the current `WeightToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * Query the output of the current `LengthToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6 - **/ - fungiblesApi: { - /** - * Returns the list of all [`Asset`] that an `AccountId` has. - * - * @callname: FungiblesApi_query_account_balances - * @param {AccountId32Like} account - **/ - queryAccountBalances: GenericRuntimeApiMethod< - Rv, - (account: AccountId32Like) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962 - **/ - collectCollationInfo: { - /** - * Collect information about a collation. - * - * The given `header` is the header of the built block for that - * we are collecting the collation info for. - * - * @callname: CollectCollationInfo_collect_collation_info - * @param {Header} header - **/ - collectCollationInfo: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6 - **/ - genesisBuilder: { - /** - * Creates the default `GenesisConfig` and returns it as a JSON blob. - * - * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON - * blob. It returns a `Vec` containing the JSON representation of the default `GenesisConfig`. - * - * @callname: GenesisBuilder_create_default_config - **/ - createDefaultConfig: GenericRuntimeApiMethod Promise>; - - /** - * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage. - * - * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage. - * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned. - * It is recommended to log any errors encountered during the process. - * - * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used. - * - * @callname: GenesisBuilder_build_config - * @param {BytesLike} json - **/ - buildConfig: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; -} diff --git a/packages/chaintypes/src/kusamaAssetHub/tx.d.ts b/packages/chaintypes/src/kusamaAssetHub/tx.d.ts deleted file mode 100644 index d25cf9b..0000000 --- a/packages/chaintypes/src/kusamaAssetHub/tx.d.ts +++ /dev/null @@ -1,6364 +0,0 @@ -// Generated by dedot cli - -import type { - GenericChainTx, - GenericTxCall, - ISubmittableExtrinsic, - ISubmittableResult, - IRuntimeTxCall, - RpcVersion, - RpcV2, - ISubmittableExtrinsicLegacy, -} from 'dedot/types'; -import type { MultiAddressLike, Extrinsic, BytesLike, H256, AccountId32Like, FixedBytes } from 'dedot/codecs'; -import type { - AssetHubKusamaRuntimeRuntimeCallLike, - SpRuntimeMultiSignature, - FrameSystemEventRecord, - CumulusPrimitivesParachainInherentParachainInherentData, - PalletBalancesAdjustmentDirection, - PalletVestingVestingInfo, - AssetHubKusamaRuntimeSessionKeys, - XcmVersionedLocation, - XcmVersionedXcm, - XcmVersionedAssets, - SpWeightsWeightV2Weight, - StagingXcmV4Location, - XcmV3WeightLimit, - StagingXcmExecutorAssetTransferTransferType, - XcmVersionedAssetId, - CumulusPrimitivesCoreAggregateMessageOrigin, - AssetHubKusamaRuntimeOriginCaller, - PalletMultisigTimepoint, - AssetHubKusamaRuntimeProxyType, - PalletUniquesDestroyWitness, - PalletNftsCollectionConfig, - PalletNftsDestroyWitness, - PalletNftsMintWitness, - PalletNftsItemConfig, - PalletNftsBitFlags, - PalletNftsAttributeNamespace, - PalletNftsCancelAttributesApprovalWitness, - PalletNftsMintSettings, - PalletNftsItemTip, - PalletNftsPriceWithDirection, - PalletNftsPreSignedMint, - PalletNftsPreSignedAttributes, - StagingXcmV3MultilocationMultiLocation, -} from './types'; - -export type ChainSubmittableExtrinsic< - Rv extends RpcVersion, - T extends IRuntimeTxCall = AssetHubKusamaRuntimeRuntimeCallLike, -> = Extrinsic & - (Rv extends RpcV2 - ? ISubmittableExtrinsic> - : ISubmittableExtrinsicLegacy>); - -export type TxCall = (...args: any[]) => ChainSubmittableExtrinsic; - -export interface ChainTx extends GenericChainTx> { - /** - * Pallet `System`'s transaction calls - **/ - system: { - /** - * See [`Pallet::remark`]. - * - * @param {BytesLike} remark - **/ - remark: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'Remark'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_heap_pages`]. - * - * @param {bigint} pages - **/ - setHeapPages: GenericTxCall< - Rv, - (pages: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetHeapPages'; - params: { pages: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::set_code`]. - * - * @param {BytesLike} code - **/ - setCode: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCode'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_code_without_checks`]. - * - * @param {BytesLike} code - **/ - setCodeWithoutChecks: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCodeWithoutChecks'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_storage`]. - * - * @param {Array<[BytesLike, BytesLike]>} items - **/ - setStorage: GenericTxCall< - Rv, - (items: Array<[BytesLike, BytesLike]>) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetStorage'; - params: { items: Array<[BytesLike, BytesLike]> }; - }; - } - > - >; - - /** - * See [`Pallet::kill_storage`]. - * - * @param {Array} keys - **/ - killStorage: GenericTxCall< - Rv, - (keys: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillStorage'; - params: { keys: Array }; - }; - } - > - >; - - /** - * See [`Pallet::kill_prefix`]. - * - * @param {BytesLike} prefix - * @param {number} subkeys - **/ - killPrefix: GenericTxCall< - Rv, - ( - prefix: BytesLike, - subkeys: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillPrefix'; - params: { prefix: BytesLike; subkeys: number }; - }; - } - > - >; - - /** - * See [`Pallet::remark_with_event`]. - * - * @param {BytesLike} remark - **/ - remarkWithEvent: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'RemarkWithEvent'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::authorize_upgrade`]. - * - * @param {H256} codeHash - **/ - authorizeUpgrade: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::authorize_upgrade_without_checks`]. - * - * @param {H256} codeHash - **/ - authorizeUpgradeWithoutChecks: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgradeWithoutChecks'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::apply_authorized_upgrade`]. - * - * @param {BytesLike} code - **/ - applyAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'ApplyAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainSystem`'s transaction calls - **/ - parachainSystem: { - /** - * See [`Pallet::set_validation_data`]. - * - * @param {CumulusPrimitivesParachainInherentParachainInherentData} data - **/ - setValidationData: GenericTxCall< - Rv, - (data: CumulusPrimitivesParachainInherentParachainInherentData) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SetValidationData'; - params: { data: CumulusPrimitivesParachainInherentParachainInherentData }; - }; - } - > - >; - - /** - * See [`Pallet::sudo_send_upward_message`]. - * - * @param {BytesLike} message - **/ - sudoSendUpwardMessage: GenericTxCall< - Rv, - (message: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SudoSendUpwardMessage'; - params: { message: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::authorize_upgrade`]. - * - * @param {H256} codeHash - * @param {boolean} checkVersion - **/ - authorizeUpgrade: GenericTxCall< - Rv, - ( - codeHash: H256, - checkVersion: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256; checkVersion: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::enact_authorized_upgrade`]. - * - * @param {BytesLike} code - **/ - enactAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'EnactAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Timestamp`'s transaction calls - **/ - timestamp: { - /** - * See [`Pallet::set`]. - * - * @param {bigint} now - **/ - set: GenericTxCall< - Rv, - (now: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Timestamp'; - palletCall: { - name: 'Set'; - params: { now: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainInfo`'s transaction calls - **/ - parachainInfo: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Balances`'s transaction calls - **/ - balances: { - /** - * See [`Pallet::transfer_allow_death`]. - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferAllowDeath: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAllowDeath'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_transfer`]. - * - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - forceTransfer: GenericTxCall< - Rv, - ( - source: MultiAddressLike, - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceTransfer'; - params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_keep_alive`]. - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferKeepAlive'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_all`]. - * - * @param {MultiAddressLike} dest - * @param {boolean} keepAlive - **/ - transferAll: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAll'; - params: { dest: MultiAddressLike; keepAlive: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::force_unreserve`]. - * - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - forceUnreserve: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceUnreserve'; - params: { who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::upgrade_accounts`]. - * - * @param {Array} who - **/ - upgradeAccounts: GenericTxCall< - Rv, - (who: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'UpgradeAccounts'; - params: { who: Array }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_balance`]. - * - * @param {MultiAddressLike} who - * @param {bigint} newFree - **/ - forceSetBalance: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - newFree: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceSetBalance'; - params: { who: MultiAddressLike; newFree: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_adjust_total_issuance`]. - * - * @param {PalletBalancesAdjustmentDirection} direction - * @param {bigint} delta - **/ - forceAdjustTotalIssuance: GenericTxCall< - Rv, - ( - direction: PalletBalancesAdjustmentDirection, - delta: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceAdjustTotalIssuance'; - params: { direction: PalletBalancesAdjustmentDirection; delta: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Vesting`'s transaction calls - **/ - vesting: { - /** - * See [`Pallet::vest`]. - * - **/ - vest: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'Vest'; - }; - } - > - >; - - /** - * See [`Pallet::vest_other`]. - * - * @param {MultiAddressLike} target - **/ - vestOther: GenericTxCall< - Rv, - (target: MultiAddressLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'VestOther'; - params: { target: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::vested_transfer`]. - * - * @param {MultiAddressLike} target - * @param {PalletVestingVestingInfo} schedule - **/ - vestedTransfer: GenericTxCall< - Rv, - ( - target: MultiAddressLike, - schedule: PalletVestingVestingInfo, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'VestedTransfer'; - params: { target: MultiAddressLike; schedule: PalletVestingVestingInfo }; - }; - } - > - >; - - /** - * See [`Pallet::force_vested_transfer`]. - * - * @param {MultiAddressLike} source - * @param {MultiAddressLike} target - * @param {PalletVestingVestingInfo} schedule - **/ - forceVestedTransfer: GenericTxCall< - Rv, - ( - source: MultiAddressLike, - target: MultiAddressLike, - schedule: PalletVestingVestingInfo, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'ForceVestedTransfer'; - params: { source: MultiAddressLike; target: MultiAddressLike; schedule: PalletVestingVestingInfo }; - }; - } - > - >; - - /** - * See [`Pallet::merge_schedules`]. - * - * @param {number} schedule1Index - * @param {number} schedule2Index - **/ - mergeSchedules: GenericTxCall< - Rv, - ( - schedule1Index: number, - schedule2Index: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'MergeSchedules'; - params: { schedule1Index: number; schedule2Index: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_remove_vesting_schedule`]. - * - * @param {MultiAddressLike} target - * @param {number} scheduleIndex - **/ - forceRemoveVestingSchedule: GenericTxCall< - Rv, - ( - target: MultiAddressLike, - scheduleIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'ForceRemoveVestingSchedule'; - params: { target: MultiAddressLike; scheduleIndex: number }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CollatorSelection`'s transaction calls - **/ - collatorSelection: { - /** - * See [`Pallet::set_invulnerables`]. - * - * @param {Array} new_ - **/ - setInvulnerables: GenericTxCall< - Rv, - (new_: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetInvulnerables'; - params: { new: Array }; - }; - } - > - >; - - /** - * See [`Pallet::set_desired_candidates`]. - * - * @param {number} max - **/ - setDesiredCandidates: GenericTxCall< - Rv, - (max: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetDesiredCandidates'; - params: { max: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_candidacy_bond`]. - * - * @param {bigint} bond - **/ - setCandidacyBond: GenericTxCall< - Rv, - (bond: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetCandidacyBond'; - params: { bond: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::register_as_candidate`]. - * - **/ - registerAsCandidate: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RegisterAsCandidate'; - }; - } - > - >; - - /** - * See [`Pallet::leave_intent`]. - * - **/ - leaveIntent: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'LeaveIntent'; - }; - } - > - >; - - /** - * See [`Pallet::add_invulnerable`]. - * - * @param {AccountId32Like} who - **/ - addInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'AddInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * See [`Pallet::remove_invulnerable`]. - * - * @param {AccountId32Like} who - **/ - removeInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RemoveInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * See [`Pallet::update_bond`]. - * - * @param {bigint} newDeposit - **/ - updateBond: GenericTxCall< - Rv, - (newDeposit: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'UpdateBond'; - params: { newDeposit: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::take_candidate_slot`]. - * - * @param {bigint} deposit - * @param {AccountId32Like} target - **/ - takeCandidateSlot: GenericTxCall< - Rv, - ( - deposit: bigint, - target: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'TakeCandidateSlot'; - params: { deposit: bigint; target: AccountId32Like }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Session`'s transaction calls - **/ - session: { - /** - * See [`Pallet::set_keys`]. - * - * @param {AssetHubKusamaRuntimeSessionKeys} keys - * @param {BytesLike} proof - **/ - setKeys: GenericTxCall< - Rv, - ( - keys: AssetHubKusamaRuntimeSessionKeys, - proof: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'SetKeys'; - params: { keys: AssetHubKusamaRuntimeSessionKeys; proof: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::purge_keys`]. - * - **/ - purgeKeys: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'PurgeKeys'; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `XcmpQueue`'s transaction calls - **/ - xcmpQueue: { - /** - * See [`Pallet::suspend_xcm_execution`]. - * - **/ - suspendXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'SuspendXcmExecution'; - }; - } - > - >; - - /** - * See [`Pallet::resume_xcm_execution`]. - * - **/ - resumeXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'ResumeXcmExecution'; - }; - } - > - >; - - /** - * See [`Pallet::update_suspend_threshold`]. - * - * @param {number} new_ - **/ - updateSuspendThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateSuspendThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * See [`Pallet::update_drop_threshold`]. - * - * @param {number} new_ - **/ - updateDropThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateDropThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * See [`Pallet::update_resume_threshold`]. - * - * @param {number} new_ - **/ - updateResumeThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateResumeThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `PolkadotXcm`'s transaction calls - **/ - polkadotXcm: { - /** - * See [`Pallet::send`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedXcm} message - **/ - send: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - message: XcmVersionedXcm, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Send'; - params: { dest: XcmVersionedLocation; message: XcmVersionedXcm }; - }; - } - > - >; - - /** - * See [`Pallet::teleport_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - teleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::reserve_transfer_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - reserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::execute`]. - * - * @param {XcmVersionedXcm} message - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - execute: GenericTxCall< - Rv, - ( - message: XcmVersionedXcm, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Execute'; - params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * See [`Pallet::force_xcm_version`]. - * - * @param {StagingXcmV4Location} location - * @param {number} version - **/ - forceXcmVersion: GenericTxCall< - Rv, - ( - location: StagingXcmV4Location, - version: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceXcmVersion'; - params: { location: StagingXcmV4Location; version: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_default_xcm_version`]. - * - * @param {number | undefined} maybeXcmVersion - **/ - forceDefaultXcmVersion: GenericTxCall< - Rv, - (maybeXcmVersion: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceDefaultXcmVersion'; - params: { maybeXcmVersion: number | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::force_subscribe_version_notify`]. - * - * @param {XcmVersionedLocation} location - **/ - forceSubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * See [`Pallet::force_unsubscribe_version_notify`]. - * - * @param {XcmVersionedLocation} location - **/ - forceUnsubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceUnsubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * See [`Pallet::limited_reserve_transfer_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedReserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * See [`Pallet::limited_teleport_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedTeleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_suspension`]. - * - * @param {boolean} suspended - **/ - forceSuspension: GenericTxCall< - Rv, - (suspended: boolean) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSuspension'; - params: { suspended: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * See [`Pallet::claim_assets`]. - * - * @param {XcmVersionedAssets} assets - * @param {XcmVersionedLocation} beneficiary - **/ - claimAssets: GenericTxCall< - Rv, - ( - assets: XcmVersionedAssets, - beneficiary: XcmVersionedLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ClaimAssets'; - params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_assets_using_type_and_then`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedAssets} assets - * @param {StagingXcmExecutorAssetTransferTransferType} assetsTransferType - * @param {XcmVersionedAssetId} remoteFeesId - * @param {StagingXcmExecutorAssetTransferTransferType} feesTransferType - * @param {XcmVersionedXcm} customXcmOnDest - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssetsUsingTypeAndThen: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - assets: XcmVersionedAssets, - assetsTransferType: StagingXcmExecutorAssetTransferTransferType, - remoteFeesId: XcmVersionedAssetId, - feesTransferType: StagingXcmExecutorAssetTransferTransferType, - customXcmOnDest: XcmVersionedXcm, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CumulusXcm`'s transaction calls - **/ - cumulusXcm: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ToPolkadotXcmRouter`'s transaction calls - **/ - toPolkadotXcmRouter: { - /** - * See [`Pallet::report_bridge_status`]. - * - * @param {H256} bridgeId - * @param {boolean} isCongested - **/ - reportBridgeStatus: GenericTxCall< - Rv, - ( - bridgeId: H256, - isCongested: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ToPolkadotXcmRouter'; - palletCall: { - name: 'ReportBridgeStatus'; - params: { bridgeId: H256; isCongested: boolean }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `MessageQueue`'s transaction calls - **/ - messageQueue: { - /** - * See [`Pallet::reap_page`]. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} pageIndex - **/ - reapPage: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - pageIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ReapPage'; - params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number }; - }; - } - > - >; - - /** - * See [`Pallet::execute_overweight`]. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} page - * @param {number} index - * @param {SpWeightsWeightV2Weight} weightLimit - **/ - executeOverweight: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - page: number, - index: number, - weightLimit: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Utility`'s transaction calls - **/ - utility: { - /** - * See [`Pallet::batch`]. - * - * @param {Array} calls - **/ - batch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'Batch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * See [`Pallet::as_derivative`]. - * - * @param {number} index - * @param {AssetHubKusamaRuntimeRuntimeCallLike} call - **/ - asDerivative: GenericTxCall< - Rv, - ( - index: number, - call: AssetHubKusamaRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'AsDerivative'; - params: { index: number; call: AssetHubKusamaRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * See [`Pallet::batch_all`]. - * - * @param {Array} calls - **/ - batchAll: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'BatchAll'; - params: { calls: Array }; - }; - } - > - >; - - /** - * See [`Pallet::dispatch_as`]. - * - * @param {AssetHubKusamaRuntimeOriginCaller} asOrigin - * @param {AssetHubKusamaRuntimeRuntimeCallLike} call - **/ - dispatchAs: GenericTxCall< - Rv, - ( - asOrigin: AssetHubKusamaRuntimeOriginCaller, - call: AssetHubKusamaRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'DispatchAs'; - params: { asOrigin: AssetHubKusamaRuntimeOriginCaller; call: AssetHubKusamaRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_batch`]. - * - * @param {Array} calls - **/ - forceBatch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'ForceBatch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * See [`Pallet::with_weight`]. - * - * @param {AssetHubKusamaRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} weight - **/ - withWeight: GenericTxCall< - Rv, - ( - call: AssetHubKusamaRuntimeRuntimeCallLike, - weight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'WithWeight'; - params: { call: AssetHubKusamaRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Multisig`'s transaction calls - **/ - multisig: { - /** - * See [`Pallet::as_multi_threshold_1`]. - * - * @param {Array} otherSignatories - * @param {AssetHubKusamaRuntimeRuntimeCallLike} call - **/ - asMultiThreshold1: GenericTxCall< - Rv, - ( - otherSignatories: Array, - call: AssetHubKusamaRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubKusamaRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * See [`Pallet::as_multi`]. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {AssetHubKusamaRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - asMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - call: AssetHubKusamaRuntimeRuntimeCallLike, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - call: AssetHubKusamaRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_as_multi`]. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {FixedBytes<32>} callHash - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - approveAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - callHash: FixedBytes<32>, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_as_multi`]. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint} timepoint - * @param {FixedBytes<32>} callHash - **/ - cancelAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - timepoint: PalletMultisigTimepoint, - callHash: FixedBytes<32>, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Proxy`'s transaction calls - **/ - proxy: { - /** - * See [`Pallet::proxy`]. - * - * @param {MultiAddressLike} real - * @param {AssetHubKusamaRuntimeProxyType | undefined} forceProxyType - * @param {AssetHubKusamaRuntimeRuntimeCallLike} call - **/ - proxy: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - forceProxyType: AssetHubKusamaRuntimeProxyType | undefined, - call: AssetHubKusamaRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'Proxy'; - params: { - real: MultiAddressLike; - forceProxyType: AssetHubKusamaRuntimeProxyType | undefined; - call: AssetHubKusamaRuntimeRuntimeCallLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::add_proxy`]. - * - * @param {MultiAddressLike} delegate - * @param {AssetHubKusamaRuntimeProxyType} proxyType - * @param {number} delay - **/ - addProxy: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - proxyType: AssetHubKusamaRuntimeProxyType, - delay: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'AddProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubKusamaRuntimeProxyType; delay: number }; - }; - } - > - >; - - /** - * See [`Pallet::remove_proxy`]. - * - * @param {MultiAddressLike} delegate - * @param {AssetHubKusamaRuntimeProxyType} proxyType - * @param {number} delay - **/ - removeProxy: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - proxyType: AssetHubKusamaRuntimeProxyType, - delay: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubKusamaRuntimeProxyType; delay: number }; - }; - } - > - >; - - /** - * See [`Pallet::remove_proxies`]. - * - **/ - removeProxies: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveProxies'; - }; - } - > - >; - - /** - * See [`Pallet::create_pure`]. - * - * @param {AssetHubKusamaRuntimeProxyType} proxyType - * @param {number} delay - * @param {number} index - **/ - createPure: GenericTxCall< - Rv, - ( - proxyType: AssetHubKusamaRuntimeProxyType, - delay: number, - index: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'CreatePure'; - params: { proxyType: AssetHubKusamaRuntimeProxyType; delay: number; index: number }; - }; - } - > - >; - - /** - * See [`Pallet::kill_pure`]. - * - * @param {MultiAddressLike} spawner - * @param {AssetHubKusamaRuntimeProxyType} proxyType - * @param {number} index - * @param {number} height - * @param {number} extIndex - **/ - killPure: GenericTxCall< - Rv, - ( - spawner: MultiAddressLike, - proxyType: AssetHubKusamaRuntimeProxyType, - index: number, - height: number, - extIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'KillPure'; - params: { - spawner: MultiAddressLike; - proxyType: AssetHubKusamaRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::announce`]. - * - * @param {MultiAddressLike} real - * @param {H256} callHash - **/ - announce: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'Announce'; - params: { real: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::remove_announcement`]. - * - * @param {MultiAddressLike} real - * @param {H256} callHash - **/ - removeAnnouncement: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveAnnouncement'; - params: { real: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::reject_announcement`]. - * - * @param {MultiAddressLike} delegate - * @param {H256} callHash - **/ - rejectAnnouncement: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RejectAnnouncement'; - params: { delegate: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::proxy_announced`]. - * - * @param {MultiAddressLike} delegate - * @param {MultiAddressLike} real - * @param {AssetHubKusamaRuntimeProxyType | undefined} forceProxyType - * @param {AssetHubKusamaRuntimeRuntimeCallLike} call - **/ - proxyAnnounced: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - real: MultiAddressLike, - forceProxyType: AssetHubKusamaRuntimeProxyType | undefined, - call: AssetHubKusamaRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddressLike; - real: MultiAddressLike; - forceProxyType: AssetHubKusamaRuntimeProxyType | undefined; - call: AssetHubKusamaRuntimeRuntimeCallLike; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Assets`'s transaction calls - **/ - assets: { - /** - * See [`Pallet::create`]. - * - * @param {number} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: number, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Create'; - params: { id: number; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceCreate'; - params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::start_destroy`]. - * - * @param {number} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'StartDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_accounts`]. - * - * @param {number} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_approvals`]. - * - * @param {number} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::finish_destroy`]. - * - * @param {number} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {number} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: number, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Mint'; - params: { id: number; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {number} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Burn'; - params: { id: number; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Transfer'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_keep_alive`]. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: number, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceTransfer'; - params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::freeze`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Freeze'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::thaw`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Thaw'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::freeze_asset`]. - * - * @param {number} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::thaw_asset`]. - * - * @param {number} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ThawAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {number} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {number} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_metadata`]. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::force_clear_metadata`]. - * - * @param {number} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_asset_status`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: number; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {number} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'CancelApproval'; - params: { id: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_cancel_approval`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_approved`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch`]. - * - * @param {number} id - **/ - touch: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Touch'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::refund`]. - * - * @param {number} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: number, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Refund'; - params: { id: number; allowBurn: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::set_min_balance`]. - * - * @param {number} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: number, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: number; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch_other`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TouchOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::refund_other`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'RefundOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::block`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Block'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Uniques`'s transaction calls - **/ - uniques: { - /** - * See [`Pallet::create`]. - * - * @param {number} collection - * @param {MultiAddressLike} admin - **/ - create: GenericTxCall< - Rv, - ( - collection: number, - admin: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Create'; - params: { collection: number; admin: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {number} collection - * @param {MultiAddressLike} owner - * @param {boolean} freeHolding - **/ - forceCreate: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - freeHolding: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ForceCreate'; - params: { collection: number; owner: MultiAddressLike; freeHolding: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::destroy`]. - * - * @param {number} collection - * @param {PalletUniquesDestroyWitness} witness - **/ - destroy: GenericTxCall< - Rv, - ( - collection: number, - witness: PalletUniquesDestroyWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Destroy'; - params: { collection: number; witness: PalletUniquesDestroyWitness }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} owner - **/ - mint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Mint'; - params: { collection: number; item: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike | undefined} checkOwner - **/ - burn: GenericTxCall< - Rv, - ( - collection: number, - item: number, - checkOwner: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Burn'; - params: { collection: number; item: number; checkOwner: MultiAddressLike | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} dest - **/ - transfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - dest: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Transfer'; - params: { collection: number; item: number; dest: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::redeposit`]. - * - * @param {number} collection - * @param {Array} items - **/ - redeposit: GenericTxCall< - Rv, - ( - collection: number, - items: Array, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Redeposit'; - params: { collection: number; items: Array }; - }; - } - > - >; - - /** - * See [`Pallet::freeze`]. - * - * @param {number} collection - * @param {number} item - **/ - freeze: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Freeze'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::thaw`]. - * - * @param {number} collection - * @param {number} item - **/ - thaw: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Thaw'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::freeze_collection`]. - * - * @param {number} collection - **/ - freezeCollection: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'FreezeCollection'; - params: { collection: number }; - }; - } - > - >; - - /** - * See [`Pallet::thaw_collection`]. - * - * @param {number} collection - **/ - thawCollection: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ThawCollection'; - params: { collection: number }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {number} collection - * @param {MultiAddressLike} newOwner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - collection: number, - newOwner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'TransferOwnership'; - params: { collection: number; newOwner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {number} collection - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - collection: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetTeam'; - params: { - collection: number; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - approveTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike | undefined} maybeCheckDelegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - maybeCheckDelegate: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate: MultiAddressLike | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::force_item_status`]. - * - * @param {number} collection - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {boolean} freeHolding - * @param {boolean} isFrozen - **/ - forceItemStatus: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - freeHolding: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - freeHolding: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::set_attribute`]. - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {BytesLike} key - * @param {BytesLike} value - **/ - setAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetAttribute'; - params: { collection: number; maybeItem: number | undefined; key: BytesLike; value: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::clear_attribute`]. - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {BytesLike} key - **/ - clearAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - key: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearAttribute'; - params: { collection: number; maybeItem: number | undefined; key: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {number} collection - * @param {number} item - * @param {BytesLike} data - * @param {boolean} isFrozen - **/ - setMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - data: BytesLike, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetMetadata'; - params: { collection: number; item: number; data: BytesLike; isFrozen: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {number} collection - * @param {number} item - **/ - clearMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearMetadata'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_collection_metadata`]. - * - * @param {number} collection - * @param {BytesLike} data - * @param {boolean} isFrozen - **/ - setCollectionMetadata: GenericTxCall< - Rv, - ( - collection: number, - data: BytesLike, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetCollectionMetadata'; - params: { collection: number; data: BytesLike; isFrozen: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::clear_collection_metadata`]. - * - * @param {number} collection - **/ - clearCollectionMetadata: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearCollectionMetadata'; - params: { collection: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_accept_ownership`]. - * - * @param {number | undefined} maybeCollection - **/ - setAcceptOwnership: GenericTxCall< - Rv, - (maybeCollection: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetAcceptOwnership'; - params: { maybeCollection: number | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::set_collection_max_supply`]. - * - * @param {number} collection - * @param {number} maxSupply - **/ - setCollectionMaxSupply: GenericTxCall< - Rv, - ( - collection: number, - maxSupply: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetCollectionMaxSupply'; - params: { collection: number; maxSupply: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_price`]. - * - * @param {number} collection - * @param {number} item - * @param {bigint | undefined} price - * @param {MultiAddressLike | undefined} whitelistedBuyer - **/ - setPrice: GenericTxCall< - Rv, - ( - collection: number, - item: number, - price: bigint | undefined, - whitelistedBuyer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price: bigint | undefined; - whitelistedBuyer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::buy_item`]. - * - * @param {number} collection - * @param {number} item - * @param {bigint} bidPrice - **/ - buyItem: GenericTxCall< - Rv, - ( - collection: number, - item: number, - bidPrice: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'BuyItem'; - params: { collection: number; item: number; bidPrice: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Nfts`'s transaction calls - **/ - nfts: { - /** - * See [`Pallet::create`]. - * - * @param {MultiAddressLike} admin - * @param {PalletNftsCollectionConfig} config - **/ - create: GenericTxCall< - Rv, - ( - admin: MultiAddressLike, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Create'; - params: { admin: MultiAddressLike; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {MultiAddressLike} owner - * @param {PalletNftsCollectionConfig} config - **/ - forceCreate: GenericTxCall< - Rv, - ( - owner: MultiAddressLike, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCreate'; - params: { owner: MultiAddressLike; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * See [`Pallet::destroy`]. - * - * @param {number} collection - * @param {PalletNftsDestroyWitness} witness - **/ - destroy: GenericTxCall< - Rv, - ( - collection: number, - witness: PalletNftsDestroyWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Destroy'; - params: { collection: number; witness: PalletNftsDestroyWitness }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} mintTo - * @param {PalletNftsMintWitness | undefined} witnessData - **/ - mint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - mintTo: MultiAddressLike, - witnessData: PalletNftsMintWitness | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddressLike; - witnessData: PalletNftsMintWitness | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_mint`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} mintTo - * @param {PalletNftsItemConfig} itemConfig - **/ - forceMint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - mintTo: MultiAddressLike, - itemConfig: PalletNftsItemConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddressLike; itemConfig: PalletNftsItemConfig }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {number} collection - * @param {number} item - **/ - burn: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Burn'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} dest - **/ - transfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - dest: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Transfer'; - params: { collection: number; item: number; dest: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::redeposit`]. - * - * @param {number} collection - * @param {Array} items - **/ - redeposit: GenericTxCall< - Rv, - ( - collection: number, - items: Array, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Redeposit'; - params: { collection: number; items: Array }; - }; - } - > - >; - - /** - * See [`Pallet::lock_item_transfer`]. - * - * @param {number} collection - * @param {number} item - **/ - lockItemTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockItemTransfer'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::unlock_item_transfer`]. - * - * @param {number} collection - * @param {number} item - **/ - unlockItemTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'UnlockItemTransfer'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::lock_collection`]. - * - * @param {number} collection - * @param {PalletNftsBitFlags} lockSettings - **/ - lockCollection: GenericTxCall< - Rv, - ( - collection: number, - lockSettings: PalletNftsBitFlags, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockCollection'; - params: { collection: number; lockSettings: PalletNftsBitFlags }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {number} collection - * @param {MultiAddressLike} newOwner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - collection: number, - newOwner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'TransferOwnership'; - params: { collection: number; newOwner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {number} collection - * @param {MultiAddressLike | undefined} issuer - * @param {MultiAddressLike | undefined} admin - * @param {MultiAddressLike | undefined} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - collection: number, - issuer: MultiAddressLike | undefined, - admin: MultiAddressLike | undefined, - freezer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetTeam'; - params: { - collection: number; - issuer: MultiAddressLike | undefined; - admin: MultiAddressLike | undefined; - freezer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_collection_owner`]. - * - * @param {number} collection - * @param {MultiAddressLike} owner - **/ - forceCollectionOwner: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCollectionOwner'; - params: { collection: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_collection_config`]. - * - * @param {number} collection - * @param {PalletNftsCollectionConfig} config - **/ - forceCollectionConfig: GenericTxCall< - Rv, - ( - collection: number, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCollectionConfig'; - params: { collection: number; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - * @param {number | undefined} maybeDeadline - **/ - approveTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - maybeDeadline: number | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike; maybeDeadline: number | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelApproval'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::clear_all_transfer_approvals`]. - * - * @param {number} collection - * @param {number} item - **/ - clearAllTransferApprovals: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearAllTransferApprovals'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::lock_item_properties`]. - * - * @param {number} collection - * @param {number} item - * @param {boolean} lockMetadata - * @param {boolean} lockAttributes - **/ - lockItemProperties: GenericTxCall< - Rv, - ( - collection: number, - item: number, - lockMetadata: boolean, - lockAttributes: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::set_attribute`]. - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - * @param {BytesLike} value - **/ - setAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_attribute`]. - * - * @param {AccountId32Like | undefined} setAs - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - * @param {BytesLike} value - **/ - forceSetAttribute: GenericTxCall< - Rv, - ( - setAs: AccountId32Like | undefined, - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceSetAttribute'; - params: { - setAs: AccountId32Like | undefined; - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::clear_attribute`]. - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - **/ - clearAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_item_attributes`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - approveItemAttributes: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ApproveItemAttributes'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_item_attributes_approval`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - * @param {PalletNftsCancelAttributesApprovalWitness} witness - **/ - cancelItemAttributesApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - witness: PalletNftsCancelAttributesApprovalWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddressLike; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {number} collection - * @param {number} item - * @param {BytesLike} data - **/ - setMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - data: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetMetadata'; - params: { collection: number; item: number; data: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {number} collection - * @param {number} item - **/ - clearMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearMetadata'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_collection_metadata`]. - * - * @param {number} collection - * @param {BytesLike} data - **/ - setCollectionMetadata: GenericTxCall< - Rv, - ( - collection: number, - data: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetCollectionMetadata'; - params: { collection: number; data: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::clear_collection_metadata`]. - * - * @param {number} collection - **/ - clearCollectionMetadata: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearCollectionMetadata'; - params: { collection: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_accept_ownership`]. - * - * @param {number | undefined} maybeCollection - **/ - setAcceptOwnership: GenericTxCall< - Rv, - (maybeCollection: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAcceptOwnership'; - params: { maybeCollection: number | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::set_collection_max_supply`]. - * - * @param {number} collection - * @param {number} maxSupply - **/ - setCollectionMaxSupply: GenericTxCall< - Rv, - ( - collection: number, - maxSupply: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetCollectionMaxSupply'; - params: { collection: number; maxSupply: number }; - }; - } - > - >; - - /** - * See [`Pallet::update_mint_settings`]. - * - * @param {number} collection - * @param {PalletNftsMintSettings} mintSettings - **/ - updateMintSettings: GenericTxCall< - Rv, - ( - collection: number, - mintSettings: PalletNftsMintSettings, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'UpdateMintSettings'; - params: { collection: number; mintSettings: PalletNftsMintSettings }; - }; - } - > - >; - - /** - * See [`Pallet::set_price`]. - * - * @param {number} collection - * @param {number} item - * @param {bigint | undefined} price - * @param {MultiAddressLike | undefined} whitelistedBuyer - **/ - setPrice: GenericTxCall< - Rv, - ( - collection: number, - item: number, - price: bigint | undefined, - whitelistedBuyer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price: bigint | undefined; - whitelistedBuyer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::buy_item`]. - * - * @param {number} collection - * @param {number} item - * @param {bigint} bidPrice - **/ - buyItem: GenericTxCall< - Rv, - ( - collection: number, - item: number, - bidPrice: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'BuyItem'; - params: { collection: number; item: number; bidPrice: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::pay_tips`]. - * - * @param {Array} tips - **/ - payTips: GenericTxCall< - Rv, - (tips: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'PayTips'; - params: { tips: Array }; - }; - } - > - >; - - /** - * See [`Pallet::create_swap`]. - * - * @param {number} offeredCollection - * @param {number} offeredItem - * @param {number} desiredCollection - * @param {number | undefined} maybeDesiredItem - * @param {PalletNftsPriceWithDirection | undefined} maybePrice - * @param {number} duration - **/ - createSwap: GenericTxCall< - Rv, - ( - offeredCollection: number, - offeredItem: number, - desiredCollection: number, - maybeDesiredItem: number | undefined, - maybePrice: PalletNftsPriceWithDirection | undefined, - duration: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem: number | undefined; - maybePrice: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_swap`]. - * - * @param {number} offeredCollection - * @param {number} offeredItem - **/ - cancelSwap: GenericTxCall< - Rv, - ( - offeredCollection: number, - offeredItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelSwap'; - params: { offeredCollection: number; offeredItem: number }; - }; - } - > - >; - - /** - * See [`Pallet::claim_swap`]. - * - * @param {number} sendCollection - * @param {number} sendItem - * @param {number} receiveCollection - * @param {number} receiveItem - * @param {PalletNftsPriceWithDirection | undefined} witnessPrice - **/ - claimSwap: GenericTxCall< - Rv, - ( - sendCollection: number, - sendItem: number, - receiveCollection: number, - receiveItem: number, - witnessPrice: PalletNftsPriceWithDirection | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice: PalletNftsPriceWithDirection | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::mint_pre_signed`]. - * - * @param {PalletNftsPreSignedMint} mintData - * @param {SpRuntimeMultiSignature} signature - * @param {AccountId32Like} signer - **/ - mintPreSigned: GenericTxCall< - Rv, - ( - mintData: PalletNftsPreSignedMint, - signature: SpRuntimeMultiSignature, - signer: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - }; - } - > - >; - - /** - * See [`Pallet::set_attributes_pre_signed`]. - * - * @param {PalletNftsPreSignedAttributes} data - * @param {SpRuntimeMultiSignature} signature - * @param {AccountId32Like} signer - **/ - setAttributesPreSigned: GenericTxCall< - Rv, - ( - data: PalletNftsPreSignedAttributes, - signature: SpRuntimeMultiSignature, - signer: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAttributesPreSigned'; - params: { - data: PalletNftsPreSignedAttributes; - signature: SpRuntimeMultiSignature; - signer: AccountId32Like; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ForeignAssets`'s transaction calls - **/ - foreignAssets: { - /** - * See [`Pallet::create`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Create'; - params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - isSufficient: boolean; - minBalance: bigint; - }; - }; - } - > - >; - - /** - * See [`Pallet::start_destroy`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'StartDestroy'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_accounts`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_approvals`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::finish_destroy`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Mint'; - params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Burn'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Transfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_keep_alive`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_transfer`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceTransfer'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - source: MultiAddressLike; - dest: MultiAddressLike; - amount: bigint; - }; - }; - } - > - >; - - /** - * See [`Pallet::freeze`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Freeze'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::thaw`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Thaw'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::freeze_asset`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::thaw_asset`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ThawAsset'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_metadata`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_clear_metadata`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::force_asset_status`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'CancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_cancel_approval`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_approved`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - destination: MultiAddressLike; - amount: bigint; - }; - }; - } - > - >; - - /** - * See [`Pallet::touch`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - touch: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Touch'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::refund`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Refund'; - params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::set_min_balance`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch_other`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TouchOther'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::refund_other`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'RefundOther'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::block`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Block'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `NftFractionalization`'s transaction calls - **/ - nftFractionalization: { - /** - * See [`Pallet::fractionalize`]. - * - * @param {number} nftCollectionId - * @param {number} nftId - * @param {number} assetId - * @param {MultiAddressLike} beneficiary - * @param {bigint} fractions - **/ - fractionalize: GenericTxCall< - Rv, - ( - nftCollectionId: number, - nftId: number, - assetId: number, - beneficiary: MultiAddressLike, - fractions: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'NftFractionalization'; - palletCall: { - name: 'Fractionalize'; - params: { - nftCollectionId: number; - nftId: number; - assetId: number; - beneficiary: MultiAddressLike; - fractions: bigint; - }; - }; - } - > - >; - - /** - * See [`Pallet::unify`]. - * - * @param {number} nftCollectionId - * @param {number} nftId - * @param {number} assetId - * @param {MultiAddressLike} beneficiary - **/ - unify: GenericTxCall< - Rv, - ( - nftCollectionId: number, - nftId: number, - assetId: number, - beneficiary: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'NftFractionalization'; - palletCall: { - name: 'Unify'; - params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `PoolAssets`'s transaction calls - **/ - poolAssets: { - /** - * See [`Pallet::create`]. - * - * @param {number} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: number, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Create'; - params: { id: number; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceCreate'; - params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::start_destroy`]. - * - * @param {number} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'StartDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_accounts`]. - * - * @param {number} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_approvals`]. - * - * @param {number} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::finish_destroy`]. - * - * @param {number} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {number} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: number, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Mint'; - params: { id: number; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {number} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Burn'; - params: { id: number; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Transfer'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_keep_alive`]. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: number, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceTransfer'; - params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::freeze`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Freeze'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::thaw`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Thaw'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::freeze_asset`]. - * - * @param {number} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::thaw_asset`]. - * - * @param {number} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ThawAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {number} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {number} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_metadata`]. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::force_clear_metadata`]. - * - * @param {number} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_asset_status`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: number; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {number} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'CancelApproval'; - params: { id: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_cancel_approval`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_approved`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch`]. - * - * @param {number} id - **/ - touch: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Touch'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::refund`]. - * - * @param {number} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: number, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Refund'; - params: { id: number; allowBurn: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::set_min_balance`]. - * - * @param {number} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: number, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: number; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch_other`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TouchOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::refund_other`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'RefundOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::block`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Block'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `AssetConversion`'s transaction calls - **/ - assetConversion: { - /** - * See [`Pallet::create_pool`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - createPool: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::add_liquidity`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount1Desired - * @param {bigint} amount2Desired - * @param {bigint} amount1Min - * @param {bigint} amount2Min - * @param {AccountId32Like} mintTo - **/ - addLiquidity: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount1Desired: bigint, - amount2Desired: bigint, - amount1Min: bigint, - amount2Min: bigint, - mintTo: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32Like; - }; - }; - } - > - >; - - /** - * See [`Pallet::remove_liquidity`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} lpTokenBurn - * @param {bigint} amount1MinReceive - * @param {bigint} amount2MinReceive - * @param {AccountId32Like} withdrawTo - **/ - removeLiquidity: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - lpTokenBurn: bigint, - amount1MinReceive: bigint, - amount2MinReceive: bigint, - withdrawTo: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32Like; - }; - }; - } - > - >; - - /** - * See [`Pallet::swap_exact_tokens_for_tokens`]. - * - * @param {Array} path - * @param {bigint} amountIn - * @param {bigint} amountOutMin - * @param {AccountId32Like} sendTo - * @param {boolean} keepAlive - **/ - swapExactTokensForTokens: GenericTxCall< - Rv, - ( - path: Array, - amountIn: bigint, - amountOutMin: bigint, - sendTo: AccountId32Like, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::swap_tokens_for_exact_tokens`]. - * - * @param {Array} path - * @param {bigint} amountOut - * @param {bigint} amountInMax - * @param {AccountId32Like} sendTo - * @param {boolean} keepAlive - **/ - swapTokensForExactTokens: GenericTxCall< - Rv, - ( - path: Array, - amountOut: bigint, - amountInMax: bigint, - sendTo: AccountId32Like, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; -} diff --git a/packages/chaintypes/src/kusamaAssetHub/types.d.ts b/packages/chaintypes/src/kusamaAssetHub/types.d.ts deleted file mode 100644 index b8e3aab..0000000 --- a/packages/chaintypes/src/kusamaAssetHub/types.d.ts +++ /dev/null @@ -1,6921 +0,0 @@ -// Generated by dedot cli - -import type { - Phase, - H256, - DispatchInfo, - DispatchError, - AccountId32, - FixedBytes, - FixedArray, - Bytes, - Result, - Permill, - BytesLike, - MultiAddress, - MultiAddressLike, - AccountId32Like, - FixedU128, - Era, - Header, - UncheckedExtrinsic, -} from 'dedot/codecs'; - -export type FrameSystemAccountInfo = { - nonce: number; - consumers: number; - providers: number; - sufficients: number; - data: PalletBalancesAccountData; -}; - -export type PalletBalancesAccountData = { - free: bigint; - reserved: bigint; - frozen: bigint; - flags: PalletBalancesExtraFlags; -}; - -export type PalletBalancesExtraFlags = bigint; - -export type FrameSupportDispatchPerDispatchClass = { - normal: SpWeightsWeightV2Weight; - operational: SpWeightsWeightV2Weight; - mandatory: SpWeightsWeightV2Weight; -}; - -export type SpWeightsWeightV2Weight = { refTime: bigint; proofSize: bigint }; - -export type FrameSystemEventRecord = { phase: Phase; event: AssetHubKusamaRuntimeRuntimeEvent; topics: Array }; - -export type AssetHubKusamaRuntimeRuntimeEvent = - | { pallet: 'System'; palletEvent: FrameSystemEvent } - | { pallet: 'ParachainSystem'; palletEvent: CumulusPalletParachainSystemEvent } - | { pallet: 'Balances'; palletEvent: PalletBalancesEvent } - | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent } - | { pallet: 'AssetTxPayment'; palletEvent: PalletAssetConversionTxPaymentEvent } - | { pallet: 'Vesting'; palletEvent: PalletVestingEvent } - | { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent } - | { pallet: 'Session'; palletEvent: PalletSessionEvent } - | { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent } - | { pallet: 'PolkadotXcm'; palletEvent: PalletXcmEvent } - | { pallet: 'CumulusXcm'; palletEvent: CumulusPalletXcmEvent } - | { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent } - | { pallet: 'Utility'; palletEvent: PalletUtilityEvent } - | { pallet: 'Multisig'; palletEvent: PalletMultisigEvent } - | { pallet: 'Proxy'; palletEvent: PalletProxyEvent } - | { pallet: 'Assets'; palletEvent: PalletAssetsEvent } - | { pallet: 'Uniques'; palletEvent: PalletUniquesEvent } - | { pallet: 'Nfts'; palletEvent: PalletNftsEvent } - | { pallet: 'ForeignAssets'; palletEvent: PalletAssetsEvent002 } - | { pallet: 'NftFractionalization'; palletEvent: PalletNftFractionalizationEvent } - | { pallet: 'PoolAssets'; palletEvent: PalletAssetsEvent } - | { pallet: 'AssetConversion'; palletEvent: PalletAssetConversionEvent }; - -/** - * Event for the System pallet. - **/ -export type FrameSystemEvent = - /** - * An extrinsic completed successfully. - **/ - | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: DispatchInfo } } - /** - * An extrinsic failed. - **/ - | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: DispatchInfo } } - /** - * `:code` was updated. - **/ - | { name: 'CodeUpdated' } - /** - * A new account was created. - **/ - | { name: 'NewAccount'; data: { account: AccountId32 } } - /** - * An account was reaped. - **/ - | { name: 'KilledAccount'; data: { account: AccountId32 } } - /** - * On on-chain remark happened. - **/ - | { name: 'Remarked'; data: { sender: AccountId32; hash: H256 } } - /** - * An upgrade was authorized. - **/ - | { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } }; - -export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory'; - -export type FrameSupportDispatchPays = 'Yes' | 'No'; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletParachainSystemEvent = - /** - * The validation function has been scheduled to apply. - **/ - | { name: 'ValidationFunctionStored' } - /** - * The validation function was applied as of the contained relay chain block number. - **/ - | { name: 'ValidationFunctionApplied'; data: { relayChainBlockNum: number } } - /** - * The relay-chain aborted the upgrade process. - **/ - | { name: 'ValidationFunctionDiscarded' } - /** - * Some downward messages have been received and will be processed. - **/ - | { name: 'DownwardMessagesReceived'; data: { count: number } } - /** - * Downward messages were processed using the given weight. - **/ - | { name: 'DownwardMessagesProcessed'; data: { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } } - /** - * An upward message was sent to the relay chain. - **/ - | { name: 'UpwardMessageSent'; data: { messageHash?: FixedBytes<32> | undefined } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletBalancesEvent = - /** - * An account was created with some free balance. - **/ - | { name: 'Endowed'; data: { account: AccountId32; freeBalance: bigint } } - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - | { name: 'DustLost'; data: { account: AccountId32; amount: bigint } } - /** - * Transfer succeeded. - **/ - | { name: 'Transfer'; data: { from: AccountId32; to: AccountId32; amount: bigint } } - /** - * A balance was set by root. - **/ - | { name: 'BalanceSet'; data: { who: AccountId32; free: bigint } } - /** - * Some balance was reserved (moved from free to reserved). - **/ - | { name: 'Reserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unreserved (moved from reserved to free). - **/ - | { name: 'Unreserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - | { - name: 'ReserveRepatriated'; - data: { - from: AccountId32; - to: AccountId32; - amount: bigint; - destinationStatus: FrameSupportTokensMiscBalanceStatus; - }; - } - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - | { name: 'Deposit'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - | { name: 'Withdraw'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - | { name: 'Slashed'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was minted into an account. - **/ - | { name: 'Minted'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was burned from an account. - **/ - | { name: 'Burned'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was suspended from an account (it can be restored later). - **/ - | { name: 'Suspended'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was restored into an account. - **/ - | { name: 'Restored'; data: { who: AccountId32; amount: bigint } } - /** - * An account was upgraded. - **/ - | { name: 'Upgraded'; data: { who: AccountId32 } } - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - | { name: 'Issued'; data: { amount: bigint } } - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - | { name: 'Rescinded'; data: { amount: bigint } } - /** - * Some balance was locked. - **/ - | { name: 'Locked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unlocked. - **/ - | { name: 'Unlocked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was frozen. - **/ - | { name: 'Frozen'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was thawed. - **/ - | { name: 'Thawed'; data: { who: AccountId32; amount: bigint } } - /** - * The `TotalIssuance` was forcefully changed. - **/ - | { name: 'TotalIssuanceForced'; data: { old: bigint; new: bigint } }; - -export type FrameSupportTokensMiscBalanceStatus = 'Free' | 'Reserved'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletTransactionPaymentEvent = - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - { name: 'TransactionFeePaid'; data: { who: AccountId32; actualFee: bigint; tip: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionTxPaymentEvent = - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who` in an asset `asset_id`. - **/ - | { - name: 'AssetTxFeePaid'; - data: { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV3MultilocationMultiLocation }; - } - /** - * A swap of the refund in native currency back to asset failed. - **/ - | { name: 'AssetRefundFailed'; data: { nativeAmountKept: bigint } }; - -export type StagingXcmV3MultilocationMultiLocation = { parents: number; interior: XcmV3Junctions }; - -export type XcmV3Junctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV3Junction } - | { type: 'X2'; value: [XcmV3Junction, XcmV3Junction] } - | { type: 'X3'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X4'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X5'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X6'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { - type: 'X7'; - value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]; - } - | { - type: 'X8'; - value: [ - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - ]; - }; - -export type XcmV3Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: XcmV3JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: XcmV3JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: XcmV3JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: XcmV3JunctionNetworkId }; - -export type XcmV3JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type XcmV3JunctionBodyId = - | { type: 'Unit' } - | { type: 'Moniker'; value: FixedBytes<4> } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV3JunctionBodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletVestingEvent = - /** - * The amount vested has been updated. This could indicate a change in funds available. - * The balance given is the amount which is left unvested (and thus locked). - **/ - | { name: 'VestingUpdated'; data: { account: AccountId32; unvested: bigint } } - /** - * An \[account\] has become fully vested. - **/ - | { name: 'VestingCompleted'; data: { account: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletCollatorSelectionEvent = - /** - * New Invulnerables were set. - **/ - | { name: 'NewInvulnerables'; data: { invulnerables: Array } } - /** - * A new Invulnerable was added. - **/ - | { name: 'InvulnerableAdded'; data: { accountId: AccountId32 } } - /** - * An Invulnerable was removed. - **/ - | { name: 'InvulnerableRemoved'; data: { accountId: AccountId32 } } - /** - * The number of desired candidates was set. - **/ - | { name: 'NewDesiredCandidates'; data: { desiredCandidates: number } } - /** - * The candidacy bond was set. - **/ - | { name: 'NewCandidacyBond'; data: { bondAmount: bigint } } - /** - * A new candidate joined. - **/ - | { name: 'CandidateAdded'; data: { accountId: AccountId32; deposit: bigint } } - /** - * Bond of a candidate updated. - **/ - | { name: 'CandidateBondUpdated'; data: { accountId: AccountId32; deposit: bigint } } - /** - * A candidate was removed. - **/ - | { name: 'CandidateRemoved'; data: { accountId: AccountId32 } } - /** - * An account was replaced in the candidate list by another one. - **/ - | { name: 'CandidateReplaced'; data: { old: AccountId32; new: AccountId32; deposit: bigint } } - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - | { name: 'InvalidInvulnerableSkipped'; data: { accountId: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletSessionEvent = - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - { name: 'NewSession'; data: { sessionIndex: number } }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmpQueueEvent = - /** - * An HRMP message was sent to a sibling parachain. - **/ - { name: 'XcmpMessageSent'; data: { messageHash: FixedBytes<32> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletXcmEvent = - /** - * Execution of an XCM message was attempted. - **/ - | { name: 'Attempted'; data: { outcome: StagingXcmV4TraitsOutcome } } - /** - * A XCM message was sent. - **/ - | { - name: 'Sent'; - data: { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - }; - } - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - | { name: 'UnexpectedResponse'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - | { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV4Response } } - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - | { name: 'Notified'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - | { - name: 'NotifyOverweight'; - data: { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - | { name: 'NotifyDispatchError'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - | { name: 'NotifyDecodeFailed'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidResponder'; - data: { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined }; - } - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Received query response has been read and removed. - **/ - | { name: 'ResponseTaken'; data: { queryId: bigint } } - /** - * Some assets have been placed in an asset trap. - **/ - | { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - | { - name: 'VersionChangeNotified'; - data: { - destination: StagingXcmV4Location; - result: number; - cost: StagingXcmV4AssetAssets; - messageId: FixedBytes<32>; - }; - } - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - | { name: 'SupportedVersionChanged'; data: { location: StagingXcmV4Location; version: number } } - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - | { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } } - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - | { name: 'NotifyTargetMigrationFail'; data: { location: XcmVersionedLocation; queryId: bigint } } - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidQuerier'; - data: { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - }; - } - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - | { - name: 'VersionNotifyStarted'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - | { - name: 'VersionNotifyRequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - | { - name: 'VersionNotifyUnrequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - | { name: 'FeesPaid'; data: { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } } - /** - * Some assets have been claimed from an asset trap - **/ - | { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * A XCM version migration finished. - **/ - | { name: 'VersionMigrationFinished'; data: { version: number } }; - -export type StagingXcmV4TraitsOutcome = - | { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } } - | { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV3TraitsError } } - | { type: 'Error'; value: { error: XcmV3TraitsError } }; - -export type XcmV3TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'LocationFull' } - | { type: 'LocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'ExpectationFalse' } - | { type: 'PalletNotFound' } - | { type: 'NameMismatch' } - | { type: 'VersionIncompatible' } - | { type: 'HoldingWouldOverflow' } - | { type: 'ExportError' } - | { type: 'ReanchorFailed' } - | { type: 'NoDeal' } - | { type: 'FeesNotMet' } - | { type: 'LockError' } - | { type: 'NoPermission' } - | { type: 'Unanchored' } - | { type: 'NotDepositable' } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' } - | { type: 'ExceedsStackLimit' }; - -export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions }; - -export type StagingXcmV4Junctions = - | { type: 'Here' } - | { type: 'X1'; value: FixedArray } - | { type: 'X2'; value: FixedArray } - | { type: 'X3'; value: FixedArray } - | { type: 'X4'; value: FixedArray } - | { type: 'X5'; value: FixedArray } - | { type: 'X6'; value: FixedArray } - | { type: 'X7'; value: FixedArray } - | { type: 'X8'; value: FixedArray }; - -export type StagingXcmV4Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId }; - -export type StagingXcmV4JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type StagingXcmV4Xcm = Array; - -export type StagingXcmV4Instruction = - | { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets } - | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: StagingXcmV4Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV4Location | undefined; - }; - } - | { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } } - | { - type: 'TransferReserveAsset'; - value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV2OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: StagingXcmV4Junctions } - | { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo } - | { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } } - | { - type: 'DepositReserveAsset'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ReportHolding'; - value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter }; - } - | { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: StagingXcmV4Xcm } - | { type: 'SetAppendix'; value: StagingXcmV4Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: StagingXcmV4Junction } - | { - type: 'ExportMessage'; - value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm }; - } - | { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } } - | { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } } - | { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } } - | { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV4Location } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined }; - }; - -export type StagingXcmV4AssetAssets = Array; - -export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility }; - -export type StagingXcmV4AssetAssetId = StagingXcmV4Location; - -export type StagingXcmV4AssetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance }; - -export type StagingXcmV4AssetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type StagingXcmV4Response = - | { type: 'Null' } - | { type: 'Assets'; value: StagingXcmV4AssetAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type StagingXcmV4PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type XcmV3MaybeErrorCode = - | { type: 'Success' } - | { type: 'Error'; value: Bytes } - | { type: 'TruncatedError'; value: Bytes }; - -export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; - -export type XcmDoubleEncoded = { encoded: Bytes }; - -export type StagingXcmV4QueryResponseInfo = { - destination: StagingXcmV4Location; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type StagingXcmV4AssetAssetFilter = - | { type: 'Definite'; value: StagingXcmV4AssetAssets } - | { type: 'Wild'; value: StagingXcmV4AssetWildAsset }; - -export type StagingXcmV4AssetWildAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { - type: 'AllOfCounted'; - value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number }; - }; - -export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight }; - -export type XcmVersionedAssets = - | { type: 'V2'; value: XcmV2MultiassetMultiAssets } - | { type: 'V3'; value: XcmV3MultiassetMultiAssets } - | { type: 'V4'; value: StagingXcmV4AssetAssets }; - -export type XcmV2MultiassetMultiAssets = Array; - -export type XcmV2MultiassetMultiAsset = { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetFungibility }; - -export type XcmV2MultiassetAssetId = - | { type: 'Concrete'; value: XcmV2MultilocationMultiLocation } - | { type: 'Abstract'; value: Bytes }; - -export type XcmV2MultilocationMultiLocation = { parents: number; interior: XcmV2MultilocationJunctions }; - -export type XcmV2MultilocationJunctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV2Junction } - | { type: 'X2'; value: [XcmV2Junction, XcmV2Junction] } - | { type: 'X3'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X4'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X5'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X6'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { - type: 'X7'; - value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]; - } - | { - type: 'X8'; - value: [ - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - ]; - }; - -export type XcmV2Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network: XcmV2NetworkId; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network: XcmV2NetworkId; index: bigint } } - | { type: 'AccountKey20'; value: { network: XcmV2NetworkId; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: Bytes } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV2BodyId; part: XcmV2BodyPart } }; - -export type XcmV2NetworkId = - | { type: 'Any' } - | { type: 'Named'; value: Bytes } - | { type: 'Polkadot' } - | { type: 'Kusama' }; - -export type XcmV2BodyId = - | { type: 'Unit' } - | { type: 'Named'; value: Bytes } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV2BodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -export type XcmV2MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV2MultiassetAssetInstance }; - -export type XcmV2MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> } - | { type: 'Blob'; value: Bytes }; - -export type XcmV3MultiassetMultiAssets = Array; - -export type XcmV3MultiassetMultiAsset = { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetFungibility }; - -export type XcmV3MultiassetAssetId = - | { type: 'Concrete'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'Abstract'; value: FixedBytes<32> }; - -export type XcmV3MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV3MultiassetAssetInstance }; - -export type XcmV3MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type XcmVersionedLocation = - | { type: 'V2'; value: XcmV2MultilocationMultiLocation } - | { type: 'V3'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'V4'; value: StagingXcmV4Location }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmEvent = - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - | { name: 'InvalidFormat'; data: FixedBytes<32> } - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - | { name: 'UnsupportedVersion'; data: FixedBytes<32> } - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - | { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV4TraitsOutcome] }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMessageQueueEvent = - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - | { - name: 'ProcessingFailed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - }; - } - /** - * Message is processed. - **/ - | { - name: 'Processed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - }; - } - /** - * Message placed in overweight queue. - **/ - | { - name: 'OverweightEnqueued'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - }; - } - /** - * This page was reaped. - **/ - | { - name: 'PageReaped'; - data: { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - }; - }; - -export type CumulusPrimitivesCoreAggregateMessageOrigin = - | { type: 'Here' } - | { type: 'Parent' } - | { type: 'Sibling'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type PolkadotParachainPrimitivesPrimitivesId = number; - -export type FrameSupportMessagesProcessMessageError = - | { type: 'BadFormat' } - | { type: 'Corrupt' } - | { type: 'Unsupported' } - | { type: 'Overweight'; value: SpWeightsWeightV2Weight } - | { type: 'Yield' }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletUtilityEvent = - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - | { name: 'BatchInterrupted'; data: { index: number; error: DispatchError } } - /** - * Batch of dispatches completed fully with no error. - **/ - | { name: 'BatchCompleted' } - /** - * Batch of dispatches completed but has errors. - **/ - | { name: 'BatchCompletedWithErrors' } - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - | { name: 'ItemCompleted' } - /** - * A single item within a Batch of dispatches has completed with error. - **/ - | { name: 'ItemFailed'; data: { error: DispatchError } } - /** - * A call was dispatched. - **/ - | { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMultisigEvent = - /** - * A new multisig operation has begun. - **/ - | { name: 'NewMultisig'; data: { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } } - /** - * A multisig operation has been approved by someone. - **/ - | { - name: 'MultisigApproval'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - } - /** - * A multisig operation has been executed. - **/ - | { - name: 'MultisigExecuted'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - }; - } - /** - * A multisig operation has been cancelled. - **/ - | { - name: 'MultisigCancelled'; - data: { - cancelling: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigTimepoint = { height: number; index: number }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletProxyEvent = - /** - * A proxy was executed correctly, with the given. - **/ - | { name: 'ProxyExecuted'; data: { result: Result<[], DispatchError> } } - /** - * A pure account has been created by new proxy with given - * disambiguation index and proxy type. - **/ - | { - name: 'PureCreated'; - data: { - pure: AccountId32; - who: AccountId32; - proxyType: AssetHubKusamaRuntimeProxyType; - disambiguationIndex: number; - }; - } - /** - * An announcement was placed to make a call in the future. - **/ - | { name: 'Announced'; data: { real: AccountId32; proxy: AccountId32; callHash: H256 } } - /** - * A proxy was added. - **/ - | { - name: 'ProxyAdded'; - data: { - delegator: AccountId32; - delegatee: AccountId32; - proxyType: AssetHubKusamaRuntimeProxyType; - delay: number; - }; - } - /** - * A proxy was removed. - **/ - | { - name: 'ProxyRemoved'; - data: { - delegator: AccountId32; - delegatee: AccountId32; - proxyType: AssetHubKusamaRuntimeProxyType; - delay: number; - }; - }; - -export type AssetHubKusamaRuntimeProxyType = - | 'Any' - | 'NonTransfer' - | 'CancelProxy' - | 'Assets' - | 'AssetOwner' - | 'AssetManager' - | 'Collator'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsEvent = - /** - * Some asset class was created. - **/ - | { name: 'Created'; data: { assetId: number; creator: AccountId32; owner: AccountId32 } } - /** - * Some assets were issued. - **/ - | { name: 'Issued'; data: { assetId: number; owner: AccountId32; amount: bigint } } - /** - * Some assets were transferred. - **/ - | { name: 'Transferred'; data: { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } } - /** - * Some assets were destroyed. - **/ - | { name: 'Burned'; data: { assetId: number; owner: AccountId32; balance: bigint } } - /** - * The management team changed. - **/ - | { name: 'TeamChanged'; data: { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { assetId: number; owner: AccountId32 } } - /** - * Some account `who` was frozen. - **/ - | { name: 'Frozen'; data: { assetId: number; who: AccountId32 } } - /** - * Some account `who` was thawed. - **/ - | { name: 'Thawed'; data: { assetId: number; who: AccountId32 } } - /** - * Some asset `asset_id` was frozen. - **/ - | { name: 'AssetFrozen'; data: { assetId: number } } - /** - * Some asset `asset_id` was thawed. - **/ - | { name: 'AssetThawed'; data: { assetId: number } } - /** - * Accounts were destroyed for given asset. - **/ - | { name: 'AccountsDestroyed'; data: { assetId: number; accountsDestroyed: number; accountsRemaining: number } } - /** - * Approvals were destroyed for given asset. - **/ - | { name: 'ApprovalsDestroyed'; data: { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } } - /** - * An asset class is in the process of being destroyed. - **/ - | { name: 'DestructionStarted'; data: { assetId: number } } - /** - * An asset class was destroyed. - **/ - | { name: 'Destroyed'; data: { assetId: number } } - /** - * Some asset class was force-created. - **/ - | { name: 'ForceCreated'; data: { assetId: number; owner: AccountId32 } } - /** - * New metadata has been set for an asset. - **/ - | { name: 'MetadataSet'; data: { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } } - /** - * Metadata has been cleared for an asset. - **/ - | { name: 'MetadataCleared'; data: { assetId: number } } - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - | { name: 'ApprovedTransfer'; data: { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } } - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { assetId: number; owner: AccountId32; delegate: AccountId32 } } - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - | { - name: 'TransferredApproved'; - data: { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint }; - } - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - | { name: 'AssetStatusChanged'; data: { assetId: number } } - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - | { name: 'AssetMinBalanceChanged'; data: { assetId: number; newMinBalance: bigint } } - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - | { name: 'Touched'; data: { assetId: number; who: AccountId32; depositor: AccountId32 } } - /** - * Some account `who` was blocked. - **/ - | { name: 'Blocked'; data: { assetId: number; who: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletUniquesEvent = - /** - * A `collection` was created. - **/ - | { name: 'Created'; data: { collection: number; creator: AccountId32; owner: AccountId32 } } - /** - * A `collection` was force-created. - **/ - | { name: 'ForceCreated'; data: { collection: number; owner: AccountId32 } } - /** - * A `collection` was destroyed. - **/ - | { name: 'Destroyed'; data: { collection: number } } - /** - * An `item` was issued. - **/ - | { name: 'Issued'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` was transferred. - **/ - | { name: 'Transferred'; data: { collection: number; item: number; from: AccountId32; to: AccountId32 } } - /** - * An `item` was destroyed. - **/ - | { name: 'Burned'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * Some `item` was frozen. - **/ - | { name: 'Frozen'; data: { collection: number; item: number } } - /** - * Some `item` was thawed. - **/ - | { name: 'Thawed'; data: { collection: number; item: number } } - /** - * Some `collection` was frozen. - **/ - | { name: 'CollectionFrozen'; data: { collection: number } } - /** - * Some `collection` was thawed. - **/ - | { name: 'CollectionThawed'; data: { collection: number } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { collection: number; newOwner: AccountId32 } } - /** - * The management team changed. - **/ - | { name: 'TeamChanged'; data: { collection: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } } - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - | { name: 'ApprovedTransfer'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * A `collection` has had its attributes changed by the `Force` origin. - **/ - | { name: 'ItemStatusChanged'; data: { collection: number } } - /** - * New metadata has been set for a `collection`. - **/ - | { name: 'CollectionMetadataSet'; data: { collection: number; data: Bytes; isFrozen: boolean } } - /** - * Metadata has been cleared for a `collection`. - **/ - | { name: 'CollectionMetadataCleared'; data: { collection: number } } - /** - * New metadata has been set for an item. - **/ - | { name: 'MetadataSet'; data: { collection: number; item: number; data: Bytes; isFrozen: boolean } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'MetadataCleared'; data: { collection: number; item: number } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'Redeposited'; data: { collection: number; successfulItems: Array } } - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - | { name: 'AttributeSet'; data: { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } } - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - | { name: 'AttributeCleared'; data: { collection: number; maybeItem?: number | undefined; key: Bytes } } - /** - * Ownership acceptance has changed for an account. - **/ - | { name: 'OwnershipAcceptanceChanged'; data: { who: AccountId32; maybeCollection?: number | undefined } } - /** - * Max supply has been set for a collection. - **/ - | { name: 'CollectionMaxSupplySet'; data: { collection: number; maxSupply: number } } - /** - * The price was set for the instance. - **/ - | { - name: 'ItemPriceSet'; - data: { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined }; - } - /** - * The price for the instance was removed. - **/ - | { name: 'ItemPriceRemoved'; data: { collection: number; item: number } } - /** - * An item was bought. - **/ - | { - name: 'ItemBought'; - data: { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 }; - }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletNftsEvent = - /** - * A `collection` was created. - **/ - | { name: 'Created'; data: { collection: number; creator: AccountId32; owner: AccountId32 } } - /** - * A `collection` was force-created. - **/ - | { name: 'ForceCreated'; data: { collection: number; owner: AccountId32 } } - /** - * A `collection` was destroyed. - **/ - | { name: 'Destroyed'; data: { collection: number } } - /** - * An `item` was issued. - **/ - | { name: 'Issued'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` was transferred. - **/ - | { name: 'Transferred'; data: { collection: number; item: number; from: AccountId32; to: AccountId32 } } - /** - * An `item` was destroyed. - **/ - | { name: 'Burned'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` became non-transferable. - **/ - | { name: 'ItemTransferLocked'; data: { collection: number; item: number } } - /** - * An `item` became transferable. - **/ - | { name: 'ItemTransferUnlocked'; data: { collection: number; item: number } } - /** - * `item` metadata or attributes were locked. - **/ - | { - name: 'ItemPropertiesLocked'; - data: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * Some `collection` was locked. - **/ - | { name: 'CollectionLocked'; data: { collection: number } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { collection: number; newOwner: AccountId32 } } - /** - * The management team changed. - **/ - | { - name: 'TeamChanged'; - data: { - collection: number; - issuer?: AccountId32 | undefined; - admin?: AccountId32 | undefined; - freezer?: AccountId32 | undefined; - }; - } - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - | { - name: 'TransferApproved'; - data: { - collection: number; - item: number; - owner: AccountId32; - delegate: AccountId32; - deadline?: number | undefined; - }; - } - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * All approvals of an item got cancelled. - **/ - | { name: 'AllApprovalsCancelled'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * A `collection` has had its config changed by the `Force` origin. - **/ - | { name: 'CollectionConfigChanged'; data: { collection: number } } - /** - * New metadata has been set for a `collection`. - **/ - | { name: 'CollectionMetadataSet'; data: { collection: number; data: Bytes } } - /** - * Metadata has been cleared for a `collection`. - **/ - | { name: 'CollectionMetadataCleared'; data: { collection: number } } - /** - * New metadata has been set for an item. - **/ - | { name: 'ItemMetadataSet'; data: { collection: number; item: number; data: Bytes } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'ItemMetadataCleared'; data: { collection: number; item: number } } - /** - * The deposit for a set of `item`s within a `collection` has been updated. - **/ - | { name: 'Redeposited'; data: { collection: number; successfulItems: Array } } - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - | { - name: 'AttributeSet'; - data: { - collection: number; - maybeItem?: number | undefined; - key: Bytes; - value: Bytes; - namespace: PalletNftsAttributeNamespace; - }; - } - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - | { - name: 'AttributeCleared'; - data: { collection: number; maybeItem?: number | undefined; key: Bytes; namespace: PalletNftsAttributeNamespace }; - } - /** - * A new approval to modify item attributes was added. - **/ - | { name: 'ItemAttributesApprovalAdded'; data: { collection: number; item: number; delegate: AccountId32 } } - /** - * A new approval to modify item attributes was removed. - **/ - | { name: 'ItemAttributesApprovalRemoved'; data: { collection: number; item: number; delegate: AccountId32 } } - /** - * Ownership acceptance has changed for an account. - **/ - | { name: 'OwnershipAcceptanceChanged'; data: { who: AccountId32; maybeCollection?: number | undefined } } - /** - * Max supply has been set for a collection. - **/ - | { name: 'CollectionMaxSupplySet'; data: { collection: number; maxSupply: number } } - /** - * Mint settings for a collection had changed. - **/ - | { name: 'CollectionMintSettingsUpdated'; data: { collection: number } } - /** - * Event gets emitted when the `NextCollectionId` gets incremented. - **/ - | { name: 'NextCollectionIdIncremented'; data: { nextId?: number | undefined } } - /** - * The price was set for the item. - **/ - | { - name: 'ItemPriceSet'; - data: { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined }; - } - /** - * The price for the item was removed. - **/ - | { name: 'ItemPriceRemoved'; data: { collection: number; item: number } } - /** - * An item was bought. - **/ - | { - name: 'ItemBought'; - data: { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 }; - } - /** - * A tip was sent. - **/ - | { - name: 'TipSent'; - data: { collection: number; item: number; sender: AccountId32; receiver: AccountId32; amount: bigint }; - } - /** - * An `item` swap intent was created. - **/ - | { - name: 'SwapCreated'; - data: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * The swap was cancelled. - **/ - | { - name: 'SwapCancelled'; - data: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * The swap has been claimed. - **/ - | { - name: 'SwapClaimed'; - data: { - sentCollection: number; - sentItem: number; - sentItemOwner: AccountId32; - receivedCollection: number; - receivedItem: number; - receivedItemOwner: AccountId32; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * New attributes have been set for an `item` of the `collection`. - **/ - | { - name: 'PreSignedAttributesSet'; - data: { collection: number; item: number; namespace: PalletNftsAttributeNamespace }; - } - /** - * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` - * within that `collection`. - **/ - | { - name: 'PalletAttributeSet'; - data: { collection: number; item?: number | undefined; attribute: PalletNftsPalletAttributes; value: Bytes }; - }; - -export type PalletNftsAttributeNamespace = - | { type: 'Pallet' } - | { type: 'CollectionOwner' } - | { type: 'ItemOwner' } - | { type: 'Account'; value: AccountId32 }; - -export type PalletNftsPriceWithDirection = { amount: bigint; direction: PalletNftsPriceDirection }; - -export type PalletNftsPriceDirection = 'Send' | 'Receive'; - -export type PalletNftsPalletAttributes = { type: 'UsedToClaim'; value: number } | { type: 'TransferDisabled' }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsEvent002 = - /** - * Some asset class was created. - **/ - | { - name: 'Created'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; creator: AccountId32; owner: AccountId32 }; - } - /** - * Some assets were issued. - **/ - | { name: 'Issued'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; amount: bigint } } - /** - * Some assets were transferred. - **/ - | { - name: 'Transferred'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; from: AccountId32; to: AccountId32; amount: bigint }; - } - /** - * Some assets were destroyed. - **/ - | { name: 'Burned'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; balance: bigint } } - /** - * The management team changed. - **/ - | { - name: 'TeamChanged'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - }; - } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } } - /** - * Some account `who` was frozen. - **/ - | { name: 'Frozen'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some account `who` was thawed. - **/ - | { name: 'Thawed'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some asset `asset_id` was frozen. - **/ - | { name: 'AssetFrozen'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Some asset `asset_id` was thawed. - **/ - | { name: 'AssetThawed'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Accounts were destroyed for given asset. - **/ - | { - name: 'AccountsDestroyed'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; accountsDestroyed: number; accountsRemaining: number }; - } - /** - * Approvals were destroyed for given asset. - **/ - | { - name: 'ApprovalsDestroyed'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; approvalsDestroyed: number; approvalsRemaining: number }; - } - /** - * An asset class is in the process of being destroyed. - **/ - | { name: 'DestructionStarted'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * An asset class was destroyed. - **/ - | { name: 'Destroyed'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Some asset class was force-created. - **/ - | { name: 'ForceCreated'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } } - /** - * New metadata has been set for an asset. - **/ - | { - name: 'MetadataSet'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - }; - } - /** - * Metadata has been cleared for an asset. - **/ - | { name: 'MetadataCleared'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - | { - name: 'ApprovedTransfer'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - source: AccountId32; - delegate: AccountId32; - amount: bigint; - }; - } - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - | { - name: 'ApprovalCancelled'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; delegate: AccountId32 }; - } - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - | { - name: 'TransferredApproved'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - owner: AccountId32; - delegate: AccountId32; - destination: AccountId32; - amount: bigint; - }; - } - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - | { name: 'AssetStatusChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - | { name: 'AssetMinBalanceChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation; newMinBalance: bigint } } - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - | { - name: 'Touched'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; depositor: AccountId32 }; - } - /** - * Some account `who` was blocked. - **/ - | { name: 'Blocked'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletNftFractionalizationEvent = - /** - * An NFT was successfully fractionalized. - **/ - | { - name: 'NftFractionalized'; - data: { nftCollection: number; nft: number; fractions: bigint; asset: number; beneficiary: AccountId32 }; - } - /** - * An NFT was successfully returned back. - **/ - | { name: 'NftUnified'; data: { nftCollection: number; nft: number; asset: number; beneficiary: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionEvent = - /** - * A successful call of the `CretaPool` extrinsic will create this event. - **/ - | { - name: 'PoolCreated'; - data: { - /** - * The account that created the pool. - **/ - creator: AccountId32; - - /** - * The pool id associated with the pool. Note that the order of the assets may not be - * the same as the order specified in the create pool extrinsic. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account ID of the pool. - **/ - poolAccount: AccountId32; - - /** - * The id of the liquidity tokens that will be minted when assets are added to this - * pool. - **/ - lpToken: number; - }; - } - /** - * A successful call of the `AddLiquidity` extrinsic will create this event. - **/ - | { - name: 'LiquidityAdded'; - data: { - /** - * The account that the liquidity was taken from. - **/ - who: AccountId32; - - /** - * The account that the liquidity tokens were minted to. - **/ - mintTo: AccountId32; - - /** - * The pool id of the pool that the liquidity was added to. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was added to the pool. - **/ - amount1Provided: bigint; - - /** - * The amount of the second asset that was added to the pool. - **/ - amount2Provided: bigint; - - /** - * The id of the lp token that was minted. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were minted of that id. - **/ - lpTokenMinted: bigint; - }; - } - /** - * A successful call of the `RemoveLiquidity` extrinsic will create this event. - **/ - | { - name: 'LiquidityRemoved'; - data: { - /** - * The account that the liquidity tokens were burned from. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - withdrawTo: AccountId32; - - /** - * The pool id that the liquidity was removed from. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was removed from the pool. - **/ - amount1: bigint; - - /** - * The amount of the second asset that was removed from the pool. - **/ - amount2: bigint; - - /** - * The id of the lp token that was burned. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were burned of that id. - **/ - lpTokenBurned: bigint; - - /** - * Liquidity withdrawal fee (%). - **/ - withdrawalFee: Permill; - }; - } - /** - * Assets have been converted from one to another. Both `SwapExactTokenForToken` - * and `SwapTokenForExactToken` will generate this event. - **/ - | { - name: 'SwapExecuted'; - data: { - /** - * Which account was the instigator of the swap. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - sendTo: AccountId32; - - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - }; - } - /** - * Assets have been converted from one to another. - **/ - | { - name: 'SwapCreditExecuted'; - data: { - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - }; - }; - -export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string }; - -export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type FrameSystemCall = - /** - * See [`Pallet::remark`]. - **/ - | { name: 'Remark'; params: { remark: Bytes } } - /** - * See [`Pallet::set_heap_pages`]. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * See [`Pallet::set_code`]. - **/ - | { name: 'SetCode'; params: { code: Bytes } } - /** - * See [`Pallet::set_code_without_checks`]. - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: Bytes } } - /** - * See [`Pallet::set_storage`]. - **/ - | { name: 'SetStorage'; params: { items: Array<[Bytes, Bytes]> } } - /** - * See [`Pallet::kill_storage`]. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * See [`Pallet::kill_prefix`]. - **/ - | { name: 'KillPrefix'; params: { prefix: Bytes; subkeys: number } } - /** - * See [`Pallet::remark_with_event`]. - **/ - | { name: 'RemarkWithEvent'; params: { remark: Bytes } } - /** - * See [`Pallet::authorize_upgrade`]. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * See [`Pallet::authorize_upgrade_without_checks`]. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * See [`Pallet::apply_authorized_upgrade`]. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: Bytes } }; - -export type FrameSystemCallLike = - /** - * See [`Pallet::remark`]. - **/ - | { name: 'Remark'; params: { remark: BytesLike } } - /** - * See [`Pallet::set_heap_pages`]. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * See [`Pallet::set_code`]. - **/ - | { name: 'SetCode'; params: { code: BytesLike } } - /** - * See [`Pallet::set_code_without_checks`]. - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: BytesLike } } - /** - * See [`Pallet::set_storage`]. - **/ - | { name: 'SetStorage'; params: { items: Array<[BytesLike, BytesLike]> } } - /** - * See [`Pallet::kill_storage`]. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * See [`Pallet::kill_prefix`]. - **/ - | { name: 'KillPrefix'; params: { prefix: BytesLike; subkeys: number } } - /** - * See [`Pallet::remark_with_event`]. - **/ - | { name: 'RemarkWithEvent'; params: { remark: BytesLike } } - /** - * See [`Pallet::authorize_upgrade`]. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * See [`Pallet::authorize_upgrade_without_checks`]. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * See [`Pallet::apply_authorized_upgrade`]. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type FrameSystemLimitsBlockWeights = { - baseBlock: SpWeightsWeightV2Weight; - maxBlock: SpWeightsWeightV2Weight; - perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; -}; - -export type FrameSupportDispatchPerDispatchClassWeightsPerClass = { - normal: FrameSystemLimitsWeightsPerClass; - operational: FrameSystemLimitsWeightsPerClass; - mandatory: FrameSystemLimitsWeightsPerClass; -}; - -export type FrameSystemLimitsWeightsPerClass = { - baseExtrinsic: SpWeightsWeightV2Weight; - maxExtrinsic?: SpWeightsWeightV2Weight | undefined; - maxTotal?: SpWeightsWeightV2Weight | undefined; - reserved?: SpWeightsWeightV2Weight | undefined; -}; - -export type FrameSystemLimitsBlockLength = { max: FrameSupportDispatchPerDispatchClassU32 }; - -export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number }; - -export type SpWeightsRuntimeDbWeight = { read: bigint; write: bigint }; - -/** - * Error for the System pallet - **/ -export type FrameSystemError = - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - | 'InvalidSpecName' - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - | 'SpecVersionNeedsToIncrease' - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - | 'FailedToExtractRuntimeVersion' - /** - * Suicide called when the account has non-default composite data. - **/ - | 'NonDefaultComposite' - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - | 'NonZeroRefCount' - /** - * The origin filter prevent the call to be dispatched. - **/ - | 'CallFiltered' - /** - * No upgrade authorized. - **/ - | 'NothingAuthorized' - /** - * The submitted code is not authorized. - **/ - | 'Unauthorized'; - -export type CumulusPalletParachainSystemUnincludedSegmentAncestor = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - paraHeadHash?: H256 | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV6UpgradeGoAhead | undefined; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = { - umpMsgCount: number; - umpTotalBytes: number; - hrmpOutgoing: Array< - [PolkadotParachainPrimitivesPrimitivesId, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate] - >; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number }; - -export type PolkadotPrimitivesV6UpgradeGoAhead = 'Abort' | 'GoAhead'; - -export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - hrmpWatermark?: number | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV6UpgradeGoAhead | undefined; -}; - -export type PolkadotPrimitivesV6PersistedValidationData = { - parentHead: PolkadotParachainPrimitivesPrimitivesHeadData; - relayParentNumber: number; - relayParentStorageRoot: H256; - maxPovSize: number; -}; - -export type PolkadotParachainPrimitivesPrimitivesHeadData = Bytes; - -export type PolkadotPrimitivesV6UpgradeRestriction = 'Present'; - -export type SpTrieStorageProof = { trieNodes: Array }; - -export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = { - dmqMqcHead: H256; - relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; - ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV6AbridgedHrmpChannel]>; - egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV6AbridgedHrmpChannel]>; -}; - -export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = { - remainingCount: number; - remainingSize: number; -}; - -export type PolkadotPrimitivesV6AbridgedHrmpChannel = { - maxCapacity: number; - maxTotalSize: number; - maxMessageSize: number; - msgCount: number; - totalSize: number; - mqcHead?: H256 | undefined; -}; - -export type PolkadotPrimitivesV6AbridgedHostConfiguration = { - maxCodeSize: number; - maxHeadDataSize: number; - maxUpwardQueueCount: number; - maxUpwardQueueSize: number; - maxUpwardMessageSize: number; - maxUpwardMessageNumPerCandidate: number; - hrmpMaxMessageNumPerCandidate: number; - validationUpgradeCooldown: number; - validationUpgradeDelay: number; - asyncBackingParams: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams; -}; - -export type PolkadotPrimitivesV6AsyncBackingAsyncBackingParams = { - maxCandidateDepth: number; - allowedAncestryLen: number; -}; - -export type CumulusPrimitivesParachainInherentMessageQueueChain = H256; - -export type PolkadotCorePrimitivesOutboundHrmpMessage = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - data: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletParachainSystemCall = - /** - * See [`Pallet::set_validation_data`]. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - /** - * See [`Pallet::sudo_send_upward_message`]. - **/ - | { name: 'SudoSendUpwardMessage'; params: { message: Bytes } } - /** - * See [`Pallet::authorize_upgrade`]. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * See [`Pallet::enact_authorized_upgrade`]. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: Bytes } }; - -export type CumulusPalletParachainSystemCallLike = - /** - * See [`Pallet::set_validation_data`]. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - /** - * See [`Pallet::sudo_send_upward_message`]. - **/ - | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } } - /** - * See [`Pallet::authorize_upgrade`]. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * See [`Pallet::enact_authorized_upgrade`]. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type CumulusPrimitivesParachainInherentParachainInherentData = { - validationData: PolkadotPrimitivesV6PersistedValidationData; - relayChainState: SpTrieStorageProof; - downwardMessages: Array; - horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array]>; -}; - -export type PolkadotCorePrimitivesInboundDownwardMessage = { sentAt: number; msg: Bytes }; - -export type PolkadotCorePrimitivesInboundHrmpMessage = { sentAt: number; data: Bytes }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletParachainSystemError = - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - | 'OverlappingUpgrades' - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - | 'ProhibitedByPolkadot' - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - | 'TooBig' - /** - * The inherent which supplies the validation data did not run this block. - **/ - | 'ValidationDataNotAvailable' - /** - * The inherent which supplies the host configuration did not run this block. - **/ - | 'HostConfigurationNotAvailable' - /** - * No validation function upgrade is currently scheduled. - **/ - | 'NotScheduled' - /** - * No code upgrade has been authorized. - **/ - | 'NothingAuthorized' - /** - * The given code upgrade has not been authorized. - **/ - | 'Unauthorized'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletTimestampCall = - /** - * See [`Pallet::set`]. - **/ - { name: 'Set'; params: { now: bigint } }; - -export type PalletTimestampCallLike = - /** - * See [`Pallet::set`]. - **/ - { name: 'Set'; params: { now: bigint } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type StagingParachainInfoCall = null; - -export type StagingParachainInfoCallLike = null; - -export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons }; - -export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All'; - -export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint }; - -export type PalletBalancesIdAmount = { id: AssetHubKusamaRuntimeRuntimeHoldReason; amount: bigint }; - -export type AssetHubKusamaRuntimeRuntimeHoldReason = - | { type: 'NftFractionalization'; value: PalletNftFractionalizationHoldReason } - | { type: 'StateTrieMigration'; value: PalletStateTrieMigrationHoldReason }; - -export type PalletNftFractionalizationHoldReason = 'Fractionalized'; - -export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate'; - -export type PalletBalancesIdAmount002 = { id: []; amount: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletBalancesCall = - /** - * See [`Pallet::transfer_allow_death`]. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddress; value: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddress; dest: MultiAddress; value: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddress; value: bigint } } - /** - * See [`Pallet::transfer_all`]. - **/ - | { name: 'TransferAll'; params: { dest: MultiAddress; keepAlive: boolean } } - /** - * See [`Pallet::force_unreserve`]. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddress; amount: bigint } } - /** - * See [`Pallet::upgrade_accounts`]. - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * See [`Pallet::force_set_balance`]. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddress; newFree: bigint } } - /** - * See [`Pallet::force_adjust_total_issuance`]. - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }; - -export type PalletBalancesCallLike = - /** - * See [`Pallet::transfer_allow_death`]. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddressLike; value: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddressLike; value: bigint } } - /** - * See [`Pallet::transfer_all`]. - **/ - | { name: 'TransferAll'; params: { dest: MultiAddressLike; keepAlive: boolean } } - /** - * See [`Pallet::force_unreserve`]. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::upgrade_accounts`]. - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * See [`Pallet::force_set_balance`]. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddressLike; newFree: bigint } } - /** - * See [`Pallet::force_adjust_total_issuance`]. - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }; - -export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletBalancesError = - /** - * Vesting balance too high to send value. - **/ - | 'VestingBalance' - /** - * Account liquidity restrictions prevent withdrawal. - **/ - | 'LiquidityRestrictions' - /** - * Balance too low to send value. - **/ - | 'InsufficientBalance' - /** - * Value too low to create account due to existential deposit. - **/ - | 'ExistentialDeposit' - /** - * Transfer/payment would kill account. - **/ - | 'Expendability' - /** - * A vesting schedule already exists for this account. - **/ - | 'ExistingVestingSchedule' - /** - * Beneficiary account must pre-exist. - **/ - | 'DeadAccount' - /** - * Number of named reserves exceed `MaxReserves`. - **/ - | 'TooManyReserves' - /** - * Number of holds exceed `VariantCountOf`. - **/ - | 'TooManyHolds' - /** - * Number of freezes exceed `MaxFreezes`. - **/ - | 'TooManyFreezes' - /** - * The issuance cannot be modified since it is already deactivated. - **/ - | 'IssuanceDeactivated' - /** - * The delta cannot be zero. - **/ - | 'DeltaZero'; - -export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2'; - -export type PalletVestingVestingInfo = { locked: bigint; perBlock: bigint; startingBlock: number }; - -export type PalletVestingReleases = 'V0' | 'V1'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletVestingCall = - /** - * See [`Pallet::vest`]. - **/ - | { name: 'Vest' } - /** - * See [`Pallet::vest_other`]. - **/ - | { name: 'VestOther'; params: { target: MultiAddress } } - /** - * See [`Pallet::vested_transfer`]. - **/ - | { name: 'VestedTransfer'; params: { target: MultiAddress; schedule: PalletVestingVestingInfo } } - /** - * See [`Pallet::force_vested_transfer`]. - **/ - | { - name: 'ForceVestedTransfer'; - params: { source: MultiAddress; target: MultiAddress; schedule: PalletVestingVestingInfo }; - } - /** - * See [`Pallet::merge_schedules`]. - **/ - | { name: 'MergeSchedules'; params: { schedule1Index: number; schedule2Index: number } } - /** - * See [`Pallet::force_remove_vesting_schedule`]. - **/ - | { name: 'ForceRemoveVestingSchedule'; params: { target: MultiAddress; scheduleIndex: number } }; - -export type PalletVestingCallLike = - /** - * See [`Pallet::vest`]. - **/ - | { name: 'Vest' } - /** - * See [`Pallet::vest_other`]. - **/ - | { name: 'VestOther'; params: { target: MultiAddressLike } } - /** - * See [`Pallet::vested_transfer`]. - **/ - | { name: 'VestedTransfer'; params: { target: MultiAddressLike; schedule: PalletVestingVestingInfo } } - /** - * See [`Pallet::force_vested_transfer`]. - **/ - | { - name: 'ForceVestedTransfer'; - params: { source: MultiAddressLike; target: MultiAddressLike; schedule: PalletVestingVestingInfo }; - } - /** - * See [`Pallet::merge_schedules`]. - **/ - | { name: 'MergeSchedules'; params: { schedule1Index: number; schedule2Index: number } } - /** - * See [`Pallet::force_remove_vesting_schedule`]. - **/ - | { name: 'ForceRemoveVestingSchedule'; params: { target: MultiAddressLike; scheduleIndex: number } }; - -/** - * Error for the vesting pallet. - **/ -export type PalletVestingError = - /** - * The account given is not vesting. - **/ - | 'NotVesting' - /** - * The account already has `MaxVestingSchedules` count of schedules and thus - * cannot add another one. Consider merging existing schedules in order to add another. - **/ - | 'AtMaxVestingSchedules' - /** - * Amount being transferred is too low to create a vesting schedule. - **/ - | 'AmountLow' - /** - * An index was out of bounds of the vesting schedules. - **/ - | 'ScheduleIndexOutOfBounds' - /** - * Failed to create a new schedule because some parameter was invalid. - **/ - | 'InvalidScheduleParams'; - -export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletCollatorSelectionCall = - /** - * See [`Pallet::set_invulnerables`]. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * See [`Pallet::set_desired_candidates`]. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * See [`Pallet::set_candidacy_bond`]. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * See [`Pallet::register_as_candidate`]. - **/ - | { name: 'RegisterAsCandidate' } - /** - * See [`Pallet::leave_intent`]. - **/ - | { name: 'LeaveIntent' } - /** - * See [`Pallet::add_invulnerable`]. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32 } } - /** - * See [`Pallet::remove_invulnerable`]. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32 } } - /** - * See [`Pallet::update_bond`]. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * See [`Pallet::take_candidate_slot`]. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32 } }; - -export type PalletCollatorSelectionCallLike = - /** - * See [`Pallet::set_invulnerables`]. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * See [`Pallet::set_desired_candidates`]. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * See [`Pallet::set_candidacy_bond`]. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * See [`Pallet::register_as_candidate`]. - **/ - | { name: 'RegisterAsCandidate' } - /** - * See [`Pallet::leave_intent`]. - **/ - | { name: 'LeaveIntent' } - /** - * See [`Pallet::add_invulnerable`]. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32Like } } - /** - * See [`Pallet::remove_invulnerable`]. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32Like } } - /** - * See [`Pallet::update_bond`]. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * See [`Pallet::take_candidate_slot`]. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32Like } }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletCollatorSelectionError = - /** - * The pallet has too many candidates. - **/ - | 'TooManyCandidates' - /** - * Leaving would result in too few candidates. - **/ - | 'TooFewEligibleCollators' - /** - * Account is already a candidate. - **/ - | 'AlreadyCandidate' - /** - * Account is not a candidate. - **/ - | 'NotCandidate' - /** - * There are too many Invulnerables. - **/ - | 'TooManyInvulnerables' - /** - * Account is already an Invulnerable. - **/ - | 'AlreadyInvulnerable' - /** - * Account is not an Invulnerable. - **/ - | 'NotInvulnerable' - /** - * Account has no associated validator ID. - **/ - | 'NoAssociatedValidatorId' - /** - * Validator ID is not yet registered. - **/ - | 'ValidatorNotRegistered' - /** - * Could not insert in the candidate list. - **/ - | 'InsertToCandidateListFailed' - /** - * Could not remove from the candidate list. - **/ - | 'RemoveFromCandidateListFailed' - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - | 'DepositTooLow' - /** - * Could not update the candidate list. - **/ - | 'UpdateCandidateListFailed' - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - | 'InsufficientBond' - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - | 'TargetIsNotCandidate' - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - | 'IdenticalDeposit' - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - | 'InvalidUnreserve'; - -export type AssetHubKusamaRuntimeSessionKeys = { aura: SpConsensusAuraSr25519AppSr25519Public }; - -export type SpConsensusAuraSr25519AppSr25519Public = SpCoreSr25519Public; - -export type SpCoreSr25519Public = FixedBytes<32>; - -export type SpCoreCryptoKeyTypeId = FixedBytes<4>; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletSessionCall = - /** - * See [`Pallet::set_keys`]. - **/ - | { name: 'SetKeys'; params: { keys: AssetHubKusamaRuntimeSessionKeys; proof: Bytes } } - /** - * See [`Pallet::purge_keys`]. - **/ - | { name: 'PurgeKeys' }; - -export type PalletSessionCallLike = - /** - * See [`Pallet::set_keys`]. - **/ - | { name: 'SetKeys'; params: { keys: AssetHubKusamaRuntimeSessionKeys; proof: BytesLike } } - /** - * See [`Pallet::purge_keys`]. - **/ - | { name: 'PurgeKeys' }; - -/** - * Error for the session pallet. - **/ -export type PalletSessionError = - /** - * Invalid ownership proof. - **/ - | 'InvalidProof' - /** - * No associated validator ID for account. - **/ - | 'NoAssociatedValidatorId' - /** - * Registered duplicate key. - **/ - | 'DuplicatedKey' - /** - * No keys are associated with this account. - **/ - | 'NoKeys' - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - | 'NoAccount'; - -export type SpConsensusSlotsSlot = bigint; - -export type CumulusPalletXcmpQueueOutboundChannelDetails = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - state: CumulusPalletXcmpQueueOutboundState; - signalsExist: boolean; - firstIndex: number; - lastIndex: number; -}; - -export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended'; - -export type CumulusPalletXcmpQueueQueueConfigData = { - suspendThreshold: number; - dropThreshold: number; - resumeThreshold: number; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmpQueueCall = - /** - * See [`Pallet::suspend_xcm_execution`]. - **/ - | { name: 'SuspendXcmExecution' } - /** - * See [`Pallet::resume_xcm_execution`]. - **/ - | { name: 'ResumeXcmExecution' } - /** - * See [`Pallet::update_suspend_threshold`]. - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * See [`Pallet::update_drop_threshold`]. - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * See [`Pallet::update_resume_threshold`]. - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -export type CumulusPalletXcmpQueueCallLike = - /** - * See [`Pallet::suspend_xcm_execution`]. - **/ - | { name: 'SuspendXcmExecution' } - /** - * See [`Pallet::resume_xcm_execution`]. - **/ - | { name: 'ResumeXcmExecution' } - /** - * See [`Pallet::update_suspend_threshold`]. - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * See [`Pallet::update_drop_threshold`]. - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * See [`Pallet::update_resume_threshold`]. - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletXcmpQueueError = - /** - * Setting the queue config failed since one of its values was invalid. - **/ - | 'BadQueueConfig' - /** - * The execution is already suspended. - **/ - | 'AlreadySuspended' - /** - * The execution is already resumed. - **/ - | 'AlreadyResumed'; - -export type PalletXcmQueryStatus = - | { - type: 'Pending'; - value: { - responder: XcmVersionedLocation; - maybeMatchQuerier?: XcmVersionedLocation | undefined; - maybeNotify?: [number, number] | undefined; - timeout: number; - }; - } - | { type: 'VersionNotifier'; value: { origin: XcmVersionedLocation; isActive: boolean } } - | { type: 'Ready'; value: { response: XcmVersionedResponse; at: number } }; - -export type XcmVersionedResponse = - | { type: 'V2'; value: XcmV2Response } - | { type: 'V3'; value: XcmV3Response } - | { type: 'V4'; value: StagingXcmV4Response }; - -export type XcmV2Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV2MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV2TraitsError] | undefined } - | { type: 'Version'; value: number }; - -export type XcmV2TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'MultiLocationFull' } - | { type: 'MultiLocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: bigint } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' }; - -export type XcmV3Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type XcmV3PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type PalletXcmVersionMigrationStage = - | { type: 'MigrateSupportedVersion' } - | { type: 'MigrateVersionNotifiers' } - | { type: 'NotifyCurrentTargets'; value?: Bytes | undefined } - | { type: 'MigrateAndNotifyOldTargets' }; - -export type XcmVersionedAssetId = - | { type: 'V3'; value: XcmV3MultiassetAssetId } - | { type: 'V4'; value: StagingXcmV4AssetAssetId }; - -export type PalletXcmRemoteLockedFungibleRecord = { - amount: bigint; - owner: XcmVersionedLocation; - locker: XcmVersionedLocation; - consumers: Array<[[], bigint]>; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletXcmCall = - /** - * See [`Pallet::send`]. - **/ - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * See [`Pallet::teleport_assets`]. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * See [`Pallet::reserve_transfer_assets`]. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * See [`Pallet::execute`]. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * See [`Pallet::force_xcm_version`]. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * See [`Pallet::force_default_xcm_version`]. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * See [`Pallet::force_subscribe_version_notify`]. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * See [`Pallet::force_unsubscribe_version_notify`]. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * See [`Pallet::limited_reserve_transfer_assets`]. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::limited_teleport_assets`]. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::force_suspension`]. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * See [`Pallet::transfer_assets`]. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::claim_assets`]. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * See [`Pallet::transfer_assets_using_type_and_then`]. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type PalletXcmCallLike = - /** - * See [`Pallet::send`]. - **/ - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * See [`Pallet::teleport_assets`]. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * See [`Pallet::reserve_transfer_assets`]. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * See [`Pallet::execute`]. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * See [`Pallet::force_xcm_version`]. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * See [`Pallet::force_default_xcm_version`]. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * See [`Pallet::force_subscribe_version_notify`]. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * See [`Pallet::force_unsubscribe_version_notify`]. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * See [`Pallet::limited_reserve_transfer_assets`]. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::limited_teleport_assets`]. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::force_suspension`]. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * See [`Pallet::transfer_assets`]. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::claim_assets`]. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * See [`Pallet::transfer_assets_using_type_and_then`]. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type XcmVersionedXcm = - | { type: 'V2'; value: XcmV2Xcm } - | { type: 'V3'; value: XcmV3Xcm } - | { type: 'V4'; value: StagingXcmV4Xcm }; - -export type XcmV2Xcm = Array; - -export type XcmV2Instruction = - | { type: 'WithdrawAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'QueryResponse'; value: { queryId: bigint; response: XcmV2Response; maxWeight: bigint } } - | { - type: 'TransferAsset'; - value: { assets: XcmV2MultiassetMultiAssets; beneficiary: XcmV2MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV2MultiassetMultiAssets; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { type: 'Transact'; value: { originType: XcmV2OriginKind; requireWeightAtMost: bigint; call: XcmDoubleEncoded } } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV2MultilocationJunctions } - | { - type: 'ReportError'; - value: { queryId: bigint; dest: XcmV2MultilocationMultiLocation; maxResponseWeight: bigint }; - } - | { - type: 'DepositAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - beneficiary: XcmV2MultilocationMultiLocation; - }; - } - | { - type: 'DepositReserveAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - dest: XcmV2MultilocationMultiLocation; - xcm: XcmV2Xcm; - }; - } - | { type: 'ExchangeAsset'; value: { give: XcmV2MultiassetMultiAssetFilter; receive: XcmV2MultiassetMultiAssets } } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: XcmV2MultiassetMultiAssetFilter; reserve: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV2MultiassetMultiAssetFilter; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'QueryHolding'; - value: { - queryId: bigint; - dest: XcmV2MultilocationMultiLocation; - assets: XcmV2MultiassetMultiAssetFilter; - maxResponseWeight: bigint; - }; - } - | { type: 'BuyExecution'; value: { fees: XcmV2MultiassetMultiAsset; weightLimit: XcmV2WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV2Xcm } - | { type: 'SetAppendix'; value: XcmV2Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: XcmV2MultiassetMultiAssets; ticket: XcmV2MultilocationMultiLocation } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } } - | { type: 'UnsubscribeVersion' }; - -export type XcmV2MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV2MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset }; - -export type XcmV2MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetWildFungibility } }; - -export type XcmV2MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV2WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: bigint }; - -export type XcmV3Xcm = Array; - -export type XcmV3Instruction = - | { type: 'WithdrawAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV3MultiassetMultiAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: XcmV3Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV3MultilocationMultiLocation | undefined; - }; - } - | { - type: 'TransferAsset'; - value: { assets: XcmV3MultiassetMultiAssets; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssets; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV2OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV3Junctions } - | { type: 'ReportError'; value: XcmV3QueryResponseInfo } - | { - type: 'DepositAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'DepositReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: XcmV3MultiassetMultiAssetFilter; want: XcmV3MultiassetMultiAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { - assets: XcmV3MultiassetMultiAssetFilter; - reserve: StagingXcmV3MultilocationMultiLocation; - xcm: XcmV3Xcm; - }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { type: 'ReportHolding'; value: { responseInfo: XcmV3QueryResponseInfo; assets: XcmV3MultiassetMultiAssetFilter } } - | { type: 'BuyExecution'; value: { fees: XcmV3MultiassetMultiAsset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV3Xcm } - | { type: 'SetAppendix'; value: XcmV3Xcm } - | { type: 'ClearError' } - | { - type: 'ClaimAsset'; - value: { assets: XcmV3MultiassetMultiAssets; ticket: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV3MultilocationMultiLocation | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: XcmV3QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: XcmV3QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: XcmV3Junction } - | { type: 'ExportMessage'; value: { network: XcmV3JunctionNetworkId; destination: XcmV3Junctions; xcm: XcmV3Xcm } } - | { type: 'LockAsset'; value: { asset: XcmV3MultiassetMultiAsset; unlocker: StagingXcmV3MultilocationMultiLocation } } - | { type: 'UnlockAsset'; value: { asset: XcmV3MultiassetMultiAsset; target: StagingXcmV3MultilocationMultiLocation } } - | { - type: 'NoteUnlockable'; - value: { asset: XcmV3MultiassetMultiAsset; owner: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'RequestUnlock'; - value: { asset: XcmV3MultiassetMultiAsset; locker: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV3MultilocationMultiLocation } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV3MultilocationMultiLocation | undefined }; - }; - -export type XcmV3QueryResponseInfo = { - destination: StagingXcmV3MultilocationMultiLocation; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type XcmV3MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV3MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV3MultiassetWildMultiAsset }; - -export type XcmV3MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { type: 'AllOfCounted'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility; count: number } }; - -export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type StagingXcmExecutorAssetTransferTransferType = - | { type: 'Teleport' } - | { type: 'LocalReserve' } - | { type: 'DestinationReserve' } - | { type: 'RemoteReserve'; value: XcmVersionedLocation }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletXcmError = - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - | 'Unreachable' - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - | 'SendFailure' - /** - * The message execution fails the filter. - **/ - | 'Filtered' - /** - * The message's weight could not be determined. - **/ - | 'UnweighableMessage' - /** - * The destination `Location` provided cannot be inverted. - **/ - | 'DestinationNotInvertible' - /** - * The assets to be sent are empty. - **/ - | 'Empty' - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - | 'CannotReanchor' - /** - * Too many assets have been attempted for transfer. - **/ - | 'TooManyAssets' - /** - * Origin is invalid for sending. - **/ - | 'InvalidOrigin' - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - | 'BadVersion' - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - | 'BadLocation' - /** - * The referenced subscription could not be found. - **/ - | 'NoSubscription' - /** - * The location is invalid since it already has a subscription from us. - **/ - | 'AlreadySubscribed' - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - | 'CannotCheckOutTeleport' - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - | 'LowBalance' - /** - * The asset owner has too many locks on the asset. - **/ - | 'TooManyLocks' - /** - * The given account is not an identifiable sovereign account for any location. - **/ - | 'AccountNotSovereign' - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - | 'FeesNotMet' - /** - * A remote lock with the corresponding data could not be found. - **/ - | 'LockNotFound' - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - | 'InUse' - /** - * Invalid non-concrete asset. - **/ - | 'InvalidAssetNotConcrete' - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - | 'InvalidAssetUnknownReserve' - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - | 'InvalidAssetUnsupportedReserve' - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - | 'TooManyReserves' - /** - * Local XCM execution incomplete. - **/ - | 'LocalExecutionIncomplete'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmCall = null; - -export type CumulusPalletXcmCallLike = null; - -export type BpXcmBridgeHubRouterBridgeState = { deliveryFeeFactor: FixedU128; isCongested: boolean }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletXcmBridgeHubRouterCall = - /** - * See [`Pallet::report_bridge_status`]. - **/ - { name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } }; - -export type PalletXcmBridgeHubRouterCallLike = - /** - * See [`Pallet::report_bridge_status`]. - **/ - { name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } }; - -export type PalletMessageQueueBookState = { - begin: number; - end: number; - count: number; - readyNeighbours?: PalletMessageQueueNeighbours | undefined; - messageCount: bigint; - size: bigint; -}; - -export type PalletMessageQueueNeighbours = { - prev: CumulusPrimitivesCoreAggregateMessageOrigin; - next: CumulusPrimitivesCoreAggregateMessageOrigin; -}; - -export type PalletMessageQueuePage = { - remaining: number; - remainingSize: number; - firstIndex: number; - first: number; - last: number; - heap: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMessageQueueCall = - /** - * See [`Pallet::reap_page`]. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * See [`Pallet::execute_overweight`]. - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -export type PalletMessageQueueCallLike = - /** - * See [`Pallet::reap_page`]. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * See [`Pallet::execute_overweight`]. - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMessageQueueError = - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - | 'NotReapable' - /** - * Page to be reaped does not exist. - **/ - | 'NoPage' - /** - * The referenced message could not be found. - **/ - | 'NoMessage' - /** - * The message was already processed and cannot be processed again. - **/ - | 'AlreadyProcessed' - /** - * The message is queued for future execution. - **/ - | 'Queued' - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - | 'InsufficientWeight' - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - | 'TemporarilyUnprocessable' - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - | 'QueuePaused' - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - | 'RecursiveDisallowed'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletUtilityCall = - /** - * See [`Pallet::batch`]. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * See [`Pallet::as_derivative`]. - **/ - | { name: 'AsDerivative'; params: { index: number; call: AssetHubKusamaRuntimeRuntimeCall } } - /** - * See [`Pallet::batch_all`]. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * See [`Pallet::dispatch_as`]. - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: AssetHubKusamaRuntimeOriginCaller; call: AssetHubKusamaRuntimeRuntimeCall }; - } - /** - * See [`Pallet::force_batch`]. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * See [`Pallet::with_weight`]. - **/ - | { name: 'WithWeight'; params: { call: AssetHubKusamaRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }; - -export type PalletUtilityCallLike = - /** - * See [`Pallet::batch`]. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * See [`Pallet::as_derivative`]. - **/ - | { name: 'AsDerivative'; params: { index: number; call: AssetHubKusamaRuntimeRuntimeCallLike } } - /** - * See [`Pallet::batch_all`]. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * See [`Pallet::dispatch_as`]. - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: AssetHubKusamaRuntimeOriginCaller; call: AssetHubKusamaRuntimeRuntimeCallLike }; - } - /** - * See [`Pallet::force_batch`]. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * See [`Pallet::with_weight`]. - **/ - | { name: 'WithWeight'; params: { call: AssetHubKusamaRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }; - -export type AssetHubKusamaRuntimeRuntimeCall = - | { pallet: 'System'; palletCall: FrameSystemCall } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCall } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCall } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall } - | { pallet: 'Balances'; palletCall: PalletBalancesCall } - | { pallet: 'Vesting'; palletCall: PalletVestingCall } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall } - | { pallet: 'Session'; palletCall: PalletSessionCall } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCall } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCall } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCall } - | { pallet: 'ToPolkadotXcmRouter'; palletCall: PalletXcmBridgeHubRouterCall } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall } - | { pallet: 'Utility'; palletCall: PalletUtilityCall } - | { pallet: 'Multisig'; palletCall: PalletMultisigCall } - | { pallet: 'Proxy'; palletCall: PalletProxyCall } - | { pallet: 'Assets'; palletCall: PalletAssetsCall } - | { pallet: 'Uniques'; palletCall: PalletUniquesCall } - | { pallet: 'Nfts'; palletCall: PalletNftsCall } - | { pallet: 'ForeignAssets'; palletCall: PalletAssetsCall002 } - | { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCall } - | { pallet: 'PoolAssets'; palletCall: PalletAssetsCall003 } - | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCall }; - -export type AssetHubKusamaRuntimeRuntimeCallLike = - | { pallet: 'System'; palletCall: FrameSystemCallLike } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCallLike } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike } - | { pallet: 'Balances'; palletCall: PalletBalancesCallLike } - | { pallet: 'Vesting'; palletCall: PalletVestingCallLike } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike } - | { pallet: 'Session'; palletCall: PalletSessionCallLike } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCallLike } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCallLike } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCallLike } - | { pallet: 'ToPolkadotXcmRouter'; palletCall: PalletXcmBridgeHubRouterCallLike } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike } - | { pallet: 'Utility'; palletCall: PalletUtilityCallLike } - | { pallet: 'Multisig'; palletCall: PalletMultisigCallLike } - | { pallet: 'Proxy'; palletCall: PalletProxyCallLike } - | { pallet: 'Assets'; palletCall: PalletAssetsCallLike } - | { pallet: 'Uniques'; palletCall: PalletUniquesCallLike } - | { pallet: 'Nfts'; palletCall: PalletNftsCallLike } - | { pallet: 'ForeignAssets'; palletCall: PalletAssetsCallLike002 } - | { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCallLike } - | { pallet: 'PoolAssets'; palletCall: PalletAssetsCallLike003 } - | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCallLike }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMultisigCall = - /** - * See [`Pallet::as_multi_threshold_1`]. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubKusamaRuntimeRuntimeCall }; - } - /** - * See [`Pallet::as_multi`]. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: AssetHubKusamaRuntimeRuntimeCall; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * See [`Pallet::approve_as_multi`]. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * See [`Pallet::cancel_as_multi`]. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigCallLike = - /** - * See [`Pallet::as_multi_threshold_1`]. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubKusamaRuntimeRuntimeCallLike }; - } - /** - * See [`Pallet::as_multi`]. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: AssetHubKusamaRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * See [`Pallet::approve_as_multi`]. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * See [`Pallet::cancel_as_multi`]. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletProxyCall = - /** - * See [`Pallet::proxy`]. - **/ - | { - name: 'Proxy'; - params: { - real: MultiAddress; - forceProxyType?: AssetHubKusamaRuntimeProxyType | undefined; - call: AssetHubKusamaRuntimeRuntimeCall; - }; - } - /** - * See [`Pallet::add_proxy`]. - **/ - | { name: 'AddProxy'; params: { delegate: MultiAddress; proxyType: AssetHubKusamaRuntimeProxyType; delay: number } } - /** - * See [`Pallet::remove_proxy`]. - **/ - | { - name: 'RemoveProxy'; - params: { delegate: MultiAddress; proxyType: AssetHubKusamaRuntimeProxyType; delay: number }; - } - /** - * See [`Pallet::remove_proxies`]. - **/ - | { name: 'RemoveProxies' } - /** - * See [`Pallet::create_pure`]. - **/ - | { name: 'CreatePure'; params: { proxyType: AssetHubKusamaRuntimeProxyType; delay: number; index: number } } - /** - * See [`Pallet::kill_pure`]. - **/ - | { - name: 'KillPure'; - params: { - spawner: MultiAddress; - proxyType: AssetHubKusamaRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - } - /** - * See [`Pallet::announce`]. - **/ - | { name: 'Announce'; params: { real: MultiAddress; callHash: H256 } } - /** - * See [`Pallet::remove_announcement`]. - **/ - | { name: 'RemoveAnnouncement'; params: { real: MultiAddress; callHash: H256 } } - /** - * See [`Pallet::reject_announcement`]. - **/ - | { name: 'RejectAnnouncement'; params: { delegate: MultiAddress; callHash: H256 } } - /** - * See [`Pallet::proxy_announced`]. - **/ - | { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddress; - real: MultiAddress; - forceProxyType?: AssetHubKusamaRuntimeProxyType | undefined; - call: AssetHubKusamaRuntimeRuntimeCall; - }; - }; - -export type PalletProxyCallLike = - /** - * See [`Pallet::proxy`]. - **/ - | { - name: 'Proxy'; - params: { - real: MultiAddressLike; - forceProxyType?: AssetHubKusamaRuntimeProxyType | undefined; - call: AssetHubKusamaRuntimeRuntimeCallLike; - }; - } - /** - * See [`Pallet::add_proxy`]. - **/ - | { - name: 'AddProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubKusamaRuntimeProxyType; delay: number }; - } - /** - * See [`Pallet::remove_proxy`]. - **/ - | { - name: 'RemoveProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubKusamaRuntimeProxyType; delay: number }; - } - /** - * See [`Pallet::remove_proxies`]. - **/ - | { name: 'RemoveProxies' } - /** - * See [`Pallet::create_pure`]. - **/ - | { name: 'CreatePure'; params: { proxyType: AssetHubKusamaRuntimeProxyType; delay: number; index: number } } - /** - * See [`Pallet::kill_pure`]. - **/ - | { - name: 'KillPure'; - params: { - spawner: MultiAddressLike; - proxyType: AssetHubKusamaRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - } - /** - * See [`Pallet::announce`]. - **/ - | { name: 'Announce'; params: { real: MultiAddressLike; callHash: H256 } } - /** - * See [`Pallet::remove_announcement`]. - **/ - | { name: 'RemoveAnnouncement'; params: { real: MultiAddressLike; callHash: H256 } } - /** - * See [`Pallet::reject_announcement`]. - **/ - | { name: 'RejectAnnouncement'; params: { delegate: MultiAddressLike; callHash: H256 } } - /** - * See [`Pallet::proxy_announced`]. - **/ - | { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddressLike; - real: MultiAddressLike; - forceProxyType?: AssetHubKusamaRuntimeProxyType | undefined; - call: AssetHubKusamaRuntimeRuntimeCallLike; - }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddress; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddress; isSufficient: boolean; minBalance: bigint } } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddress; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddress; dest: MultiAddress; amount: bigint } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { name: 'SetTeam'; params: { id: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress } } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { id: number; name: Bytes; symbol: Bytes; decimals: number } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddress; amount: bigint } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddress } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddress; delegate: MultiAddress } } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { name: 'TransferApproved'; params: { id: number; owner: MultiAddress; destination: MultiAddress; amount: bigint } } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: number; who: MultiAddress } }; - -export type PalletAssetsCallLike = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddressLike; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint } } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike } } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: number; who: MultiAddressLike } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletUniquesCall = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { collection: number; admin: MultiAddress } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { collection: number; owner: MultiAddress; freeHolding: boolean } } - /** - * See [`Pallet::destroy`]. - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletUniquesDestroyWitness } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { collection: number; item: number; owner: MultiAddress } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { collection: number; item: number; checkOwner?: MultiAddress | undefined } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddress } } - /** - * See [`Pallet::redeposit`]. - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { collection: number; item: number } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { collection: number; item: number } } - /** - * See [`Pallet::freeze_collection`]. - **/ - | { name: 'FreezeCollection'; params: { collection: number } } - /** - * See [`Pallet::thaw_collection`]. - **/ - | { name: 'ThawCollection'; params: { collection: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { collection: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate?: MultiAddress | undefined }; - } - /** - * See [`Pallet::force_item_status`]. - **/ - | { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - freeHolding: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::set_attribute`]. - **/ - | { name: 'SetAttribute'; params: { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } } - /** - * See [`Pallet::clear_attribute`]. - **/ - | { name: 'ClearAttribute'; params: { collection: number; maybeItem?: number | undefined; key: Bytes } } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: Bytes; isFrozen: boolean } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * See [`Pallet::set_collection_metadata`]. - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: Bytes; isFrozen: boolean } } - /** - * See [`Pallet::clear_collection_metadata`]. - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * See [`Pallet::set_accept_ownership`]. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * See [`Pallet::set_collection_max_supply`]. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * See [`Pallet::set_price`]. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddress | undefined; - }; - } - /** - * See [`Pallet::buy_item`]. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } }; - -export type PalletUniquesCallLike = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { collection: number; admin: MultiAddressLike } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { collection: number; owner: MultiAddressLike; freeHolding: boolean } } - /** - * See [`Pallet::destroy`]. - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletUniquesDestroyWitness } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { collection: number; item: number; owner: MultiAddressLike } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { collection: number; item: number; checkOwner?: MultiAddressLike | undefined } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddressLike } } - /** - * See [`Pallet::redeposit`]. - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { collection: number; item: number } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { collection: number; item: number } } - /** - * See [`Pallet::freeze_collection`]. - **/ - | { name: 'FreezeCollection'; params: { collection: number } } - /** - * See [`Pallet::thaw_collection`]. - **/ - | { name: 'ThawCollection'; params: { collection: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { collection: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate?: MultiAddressLike | undefined }; - } - /** - * See [`Pallet::force_item_status`]. - **/ - | { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - freeHolding: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::set_attribute`]. - **/ - | { - name: 'SetAttribute'; - params: { collection: number; maybeItem?: number | undefined; key: BytesLike; value: BytesLike }; - } - /** - * See [`Pallet::clear_attribute`]. - **/ - | { name: 'ClearAttribute'; params: { collection: number; maybeItem?: number | undefined; key: BytesLike } } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: BytesLike; isFrozen: boolean } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * See [`Pallet::set_collection_metadata`]. - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: BytesLike; isFrozen: boolean } } - /** - * See [`Pallet::clear_collection_metadata`]. - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * See [`Pallet::set_accept_ownership`]. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * See [`Pallet::set_collection_max_supply`]. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * See [`Pallet::set_price`]. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddressLike | undefined; - }; - } - /** - * See [`Pallet::buy_item`]. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } }; - -export type PalletUniquesDestroyWitness = { items: number; itemMetadatas: number; attributes: number }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletNftsCall = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { admin: MultiAddress; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { owner: MultiAddress; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::destroy`]. - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletNftsDestroyWitness } } - /** - * See [`Pallet::mint`]. - **/ - | { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddress; - witnessData?: PalletNftsMintWitness | undefined; - }; - } - /** - * See [`Pallet::force_mint`]. - **/ - | { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddress; itemConfig: PalletNftsItemConfig }; - } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { collection: number; item: number } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddress } } - /** - * See [`Pallet::redeposit`]. - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * See [`Pallet::lock_item_transfer`]. - **/ - | { name: 'LockItemTransfer'; params: { collection: number; item: number } } - /** - * See [`Pallet::unlock_item_transfer`]. - **/ - | { name: 'UnlockItemTransfer'; params: { collection: number; item: number } } - /** - * See [`Pallet::lock_collection`]. - **/ - | { name: 'LockCollection'; params: { collection: number; lockSettings: PalletNftsBitFlags } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { - collection: number; - issuer?: MultiAddress | undefined; - admin?: MultiAddress | undefined; - freezer?: MultiAddress | undefined; - }; - } - /** - * See [`Pallet::force_collection_owner`]. - **/ - | { name: 'ForceCollectionOwner'; params: { collection: number; owner: MultiAddress } } - /** - * See [`Pallet::force_collection_config`]. - **/ - | { name: 'ForceCollectionConfig'; params: { collection: number; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddress; maybeDeadline?: number | undefined }; - } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * See [`Pallet::clear_all_transfer_approvals`]. - **/ - | { name: 'ClearAllTransferApprovals'; params: { collection: number; item: number } } - /** - * See [`Pallet::lock_item_properties`]. - **/ - | { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * See [`Pallet::set_attribute`]. - **/ - | { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - value: Bytes; - }; - } - /** - * See [`Pallet::force_set_attribute`]. - **/ - | { - name: 'ForceSetAttribute'; - params: { - setAs?: AccountId32 | undefined; - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - value: Bytes; - }; - } - /** - * See [`Pallet::clear_attribute`]. - **/ - | { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - }; - } - /** - * See [`Pallet::approve_item_attributes`]. - **/ - | { name: 'ApproveItemAttributes'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * See [`Pallet::cancel_item_attributes_approval`]. - **/ - | { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddress; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: Bytes } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * See [`Pallet::set_collection_metadata`]. - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: Bytes } } - /** - * See [`Pallet::clear_collection_metadata`]. - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * See [`Pallet::set_accept_ownership`]. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * See [`Pallet::set_collection_max_supply`]. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * See [`Pallet::update_mint_settings`]. - **/ - | { name: 'UpdateMintSettings'; params: { collection: number; mintSettings: PalletNftsMintSettings } } - /** - * See [`Pallet::set_price`]. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddress | undefined; - }; - } - /** - * See [`Pallet::buy_item`]. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } } - /** - * See [`Pallet::pay_tips`]. - **/ - | { name: 'PayTips'; params: { tips: Array } } - /** - * See [`Pallet::create_swap`]. - **/ - | { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem?: number | undefined; - maybePrice?: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - } - /** - * See [`Pallet::cancel_swap`]. - **/ - | { name: 'CancelSwap'; params: { offeredCollection: number; offeredItem: number } } - /** - * See [`Pallet::claim_swap`]. - **/ - | { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice?: PalletNftsPriceWithDirection | undefined; - }; - } - /** - * See [`Pallet::mint_pre_signed`]. - **/ - | { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32 }; - } - /** - * See [`Pallet::set_attributes_pre_signed`]. - **/ - | { - name: 'SetAttributesPreSigned'; - params: { data: PalletNftsPreSignedAttributes; signature: SpRuntimeMultiSignature; signer: AccountId32 }; - }; - -export type PalletNftsCallLike = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { admin: MultiAddressLike; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { owner: MultiAddressLike; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::destroy`]. - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletNftsDestroyWitness } } - /** - * See [`Pallet::mint`]. - **/ - | { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddressLike; - witnessData?: PalletNftsMintWitness | undefined; - }; - } - /** - * See [`Pallet::force_mint`]. - **/ - | { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddressLike; itemConfig: PalletNftsItemConfig }; - } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { collection: number; item: number } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddressLike } } - /** - * See [`Pallet::redeposit`]. - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * See [`Pallet::lock_item_transfer`]. - **/ - | { name: 'LockItemTransfer'; params: { collection: number; item: number } } - /** - * See [`Pallet::unlock_item_transfer`]. - **/ - | { name: 'UnlockItemTransfer'; params: { collection: number; item: number } } - /** - * See [`Pallet::lock_collection`]. - **/ - | { name: 'LockCollection'; params: { collection: number; lockSettings: PalletNftsBitFlags } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { - collection: number; - issuer?: MultiAddressLike | undefined; - admin?: MultiAddressLike | undefined; - freezer?: MultiAddressLike | undefined; - }; - } - /** - * See [`Pallet::force_collection_owner`]. - **/ - | { name: 'ForceCollectionOwner'; params: { collection: number; owner: MultiAddressLike } } - /** - * See [`Pallet::force_collection_config`]. - **/ - | { name: 'ForceCollectionConfig'; params: { collection: number; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike; maybeDeadline?: number | undefined }; - } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::clear_all_transfer_approvals`]. - **/ - | { name: 'ClearAllTransferApprovals'; params: { collection: number; item: number } } - /** - * See [`Pallet::lock_item_properties`]. - **/ - | { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * See [`Pallet::set_attribute`]. - **/ - | { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - } - /** - * See [`Pallet::force_set_attribute`]. - **/ - | { - name: 'ForceSetAttribute'; - params: { - setAs?: AccountId32Like | undefined; - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - } - /** - * See [`Pallet::clear_attribute`]. - **/ - | { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - }; - } - /** - * See [`Pallet::approve_item_attributes`]. - **/ - | { name: 'ApproveItemAttributes'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::cancel_item_attributes_approval`]. - **/ - | { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddressLike; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: BytesLike } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * See [`Pallet::set_collection_metadata`]. - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: BytesLike } } - /** - * See [`Pallet::clear_collection_metadata`]. - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * See [`Pallet::set_accept_ownership`]. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * See [`Pallet::set_collection_max_supply`]. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * See [`Pallet::update_mint_settings`]. - **/ - | { name: 'UpdateMintSettings'; params: { collection: number; mintSettings: PalletNftsMintSettings } } - /** - * See [`Pallet::set_price`]. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddressLike | undefined; - }; - } - /** - * See [`Pallet::buy_item`]. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } } - /** - * See [`Pallet::pay_tips`]. - **/ - | { name: 'PayTips'; params: { tips: Array } } - /** - * See [`Pallet::create_swap`]. - **/ - | { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem?: number | undefined; - maybePrice?: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - } - /** - * See [`Pallet::cancel_swap`]. - **/ - | { name: 'CancelSwap'; params: { offeredCollection: number; offeredItem: number } } - /** - * See [`Pallet::claim_swap`]. - **/ - | { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice?: PalletNftsPriceWithDirection | undefined; - }; - } - /** - * See [`Pallet::mint_pre_signed`]. - **/ - | { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - } - /** - * See [`Pallet::set_attributes_pre_signed`]. - **/ - | { - name: 'SetAttributesPreSigned'; - params: { data: PalletNftsPreSignedAttributes; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - }; - -export type PalletNftsCollectionConfig = { - settings: PalletNftsBitFlags; - maxSupply?: number | undefined; - mintSettings: PalletNftsMintSettings; -}; - -export type PalletNftsBitFlags = bigint; - -export type PalletNftsCollectionSetting = - | 'TransferableItems' - | 'UnlockedMetadata' - | 'UnlockedAttributes' - | 'UnlockedMaxSupply' - | 'DepositRequired'; - -export type PalletNftsMintSettings = { - mintType: PalletNftsMintType; - price?: bigint | undefined; - startBlock?: number | undefined; - endBlock?: number | undefined; - defaultItemSettings: PalletNftsBitFlagsItemSetting; -}; - -export type PalletNftsMintType = { type: 'Issuer' } | { type: 'Public' } | { type: 'HolderOf'; value: number }; - -export type PalletNftsBitFlagsItemSetting = bigint; - -export type PalletNftsItemSetting = 'Transferable' | 'UnlockedMetadata' | 'UnlockedAttributes'; - -export type PalletNftsDestroyWitness = { itemMetadatas: number; itemConfigs: number; attributes: number }; - -export type PalletNftsMintWitness = { ownedItem?: number | undefined; mintPrice?: bigint | undefined }; - -export type PalletNftsItemConfig = { settings: PalletNftsBitFlagsItemSetting }; - -export type PalletNftsCancelAttributesApprovalWitness = { accountAttributes: number }; - -export type PalletNftsItemTip = { collection: number; item: number; receiver: AccountId32; amount: bigint }; - -export type PalletNftsPreSignedMint = { - collection: number; - item: number; - attributes: Array<[Bytes, Bytes]>; - metadata: Bytes; - onlyAccount?: AccountId32 | undefined; - deadline: number; - mintPrice?: bigint | undefined; -}; - -export type SpRuntimeMultiSignature = - | { type: 'Ed25519'; value: SpCoreEd25519Signature } - | { type: 'Sr25519'; value: SpCoreSr25519Signature } - | { type: 'Ecdsa'; value: SpCoreEcdsaSignature }; - -export type SpCoreEd25519Signature = FixedBytes<64>; - -export type SpCoreSr25519Signature = FixedBytes<64>; - -export type SpCoreEcdsaSignature = FixedBytes<65>; - -export type PalletNftsPreSignedAttributes = { - collection: number; - item: number; - attributes: Array<[Bytes, Bytes]>; - namespace: PalletNftsAttributeNamespace; - deadline: number; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall002 = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddress; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - isSufficient: boolean; - minBalance: bigint; - }; - } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddress; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddress; amount: bigint }; - } - /** - * See [`Pallet::force_transfer`]. - **/ - | { - name: 'ForceTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; source: MultiAddress; dest: MultiAddress; amount: bigint }; - } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { - name: 'SetMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation; name: Bytes; symbol: Bytes; decimals: number }; - } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddress; amount: bigint }; - } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddress } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddress; delegate: MultiAddress }; - } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - destination: MultiAddress; - amount: bigint; - }; - } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } }; - -export type PalletAssetsCallLike002 = - /** - * See [`Pallet::create`]. - **/ - | { - name: 'Create'; - params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddressLike; minBalance: bigint }; - } - /** - * See [`Pallet::force_create`]. - **/ - | { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - isSufficient: boolean; - minBalance: bigint; - }; - } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::mint`]. - **/ - | { - name: 'Mint'; - params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { - name: 'Transfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::force_transfer`]. - **/ - | { - name: 'ForceTransfer'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - source: MultiAddressLike; - dest: MultiAddressLike; - amount: bigint; - }; - } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { - name: 'SetMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation; name: BytesLike; symbol: BytesLike; decimals: number }; - } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike; delegate: MultiAddressLike }; - } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - destination: MultiAddressLike; - amount: bigint; - }; - } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletNftFractionalizationCall = - /** - * See [`Pallet::fractionalize`]. - **/ - | { - name: 'Fractionalize'; - params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddress; fractions: bigint }; - } - /** - * See [`Pallet::unify`]. - **/ - | { name: 'Unify'; params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddress } }; - -export type PalletNftFractionalizationCallLike = - /** - * See [`Pallet::fractionalize`]. - **/ - | { - name: 'Fractionalize'; - params: { - nftCollectionId: number; - nftId: number; - assetId: number; - beneficiary: MultiAddressLike; - fractions: bigint; - }; - } - /** - * See [`Pallet::unify`]. - **/ - | { - name: 'Unify'; - params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddressLike }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall003 = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddress; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddress; isSufficient: boolean; minBalance: bigint } } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddress; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddress; dest: MultiAddress; amount: bigint } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { name: 'SetTeam'; params: { id: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress } } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { id: number; name: Bytes; symbol: Bytes; decimals: number } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddress; amount: bigint } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddress } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddress; delegate: MultiAddress } } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { name: 'TransferApproved'; params: { id: number; owner: MultiAddress; destination: MultiAddress; amount: bigint } } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: number; who: MultiAddress } }; - -export type PalletAssetsCallLike003 = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddressLike; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint } } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike } } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: number; who: MultiAddressLike } }; - -/** - * Pallet's callable functions. - **/ -export type PalletAssetConversionCall = - /** - * See [`Pallet::create_pool`]. - **/ - | { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - } - /** - * See [`Pallet::add_liquidity`]. - **/ - | { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32; - }; - } - /** - * See [`Pallet::remove_liquidity`]. - **/ - | { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32; - }; - } - /** - * See [`Pallet::swap_exact_tokens_for_tokens`]. - **/ - | { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32; - keepAlive: boolean; - }; - } - /** - * See [`Pallet::swap_tokens_for_exact_tokens`]. - **/ - | { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32; - keepAlive: boolean; - }; - }; - -export type PalletAssetConversionCallLike = - /** - * See [`Pallet::create_pool`]. - **/ - | { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - } - /** - * See [`Pallet::add_liquidity`]. - **/ - | { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32Like; - }; - } - /** - * See [`Pallet::remove_liquidity`]. - **/ - | { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32Like; - }; - } - /** - * See [`Pallet::swap_exact_tokens_for_tokens`]. - **/ - | { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - } - /** - * See [`Pallet::swap_tokens_for_exact_tokens`]. - **/ - | { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - -export type AssetHubKusamaRuntimeOriginCaller = - | { type: 'System'; value: FrameSupportDispatchRawOrigin } - | { type: 'PolkadotXcm'; value: PalletXcmOrigin } - | { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin } - | { type: 'Void'; value: SpCoreVoid }; - -export type FrameSupportDispatchRawOrigin = - | { type: 'Root' } - | { type: 'Signed'; value: AccountId32 } - | { type: 'None' }; - -export type PalletXcmOrigin = - | { type: 'Xcm'; value: StagingXcmV4Location } - | { type: 'Response'; value: StagingXcmV4Location }; - -export type CumulusPalletXcmOrigin = - | { type: 'Relay' } - | { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type SpCoreVoid = null; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletUtilityError = - /** - * Too many calls batched. - **/ - 'TooManyCalls'; - -export type PalletMultisigMultisig = { - when: PalletMultisigTimepoint; - deposit: bigint; - depositor: AccountId32; - approvals: Array; -}; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMultisigError = - /** - * Threshold must be 2 or greater. - **/ - | 'MinimumThreshold' - /** - * Call is already approved by this signatory. - **/ - | 'AlreadyApproved' - /** - * Call doesn't need any (more) approvals. - **/ - | 'NoApprovalsNeeded' - /** - * There are too few signatories in the list. - **/ - | 'TooFewSignatories' - /** - * There are too many signatories in the list. - **/ - | 'TooManySignatories' - /** - * The signatories were provided out of order; they should be ordered. - **/ - | 'SignatoriesOutOfOrder' - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - | 'SenderInSignatories' - /** - * Multisig operation not found when attempting to cancel. - **/ - | 'NotFound' - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - | 'NotOwner' - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - | 'NoTimepoint' - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - | 'WrongTimepoint' - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - | 'UnexpectedTimepoint' - /** - * The maximum weight information provided was too low. - **/ - | 'MaxWeightTooLow' - /** - * The data to be stored is already stored. - **/ - | 'AlreadyStored'; - -export type PalletProxyProxyDefinition = { - delegate: AccountId32; - proxyType: AssetHubKusamaRuntimeProxyType; - delay: number; -}; - -export type PalletProxyAnnouncement = { real: AccountId32; callHash: H256; height: number }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletProxyError = - /** - * There are too many proxies registered or too many announcements pending. - **/ - | 'TooMany' - /** - * Proxy registration not found. - **/ - | 'NotFound' - /** - * Sender is not a proxy of the account to be proxied. - **/ - | 'NotProxy' - /** - * A call which is incompatible with the proxy type's filter was attempted. - **/ - | 'Unproxyable' - /** - * Account is already a proxy. - **/ - | 'Duplicate' - /** - * Call may not be made by proxy because it may escalate its privileges. - **/ - | 'NoPermission' - /** - * Announcement, if made at all, was made too recently. - **/ - | 'Unannounced' - /** - * Cannot add self as proxy. - **/ - | 'NoSelfProxy'; - -export type PalletAssetsAssetDetails = { - owner: AccountId32; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - supply: bigint; - deposit: bigint; - minBalance: bigint; - isSufficient: boolean; - accounts: number; - sufficients: number; - approvals: number; - status: PalletAssetsAssetStatus; -}; - -export type PalletAssetsAssetStatus = 'Live' | 'Frozen' | 'Destroying'; - -export type PalletAssetsAssetAccount = { - balance: bigint; - status: PalletAssetsAccountStatus; - reason: PalletAssetsExistenceReason; - extra: []; -}; - -export type PalletAssetsAccountStatus = 'Liquid' | 'Frozen' | 'Blocked'; - -export type PalletAssetsExistenceReason = - | { type: 'Consumer' } - | { type: 'Sufficient' } - | { type: 'DepositHeld'; value: bigint } - | { type: 'DepositRefunded' } - | { type: 'DepositFrom'; value: [AccountId32, bigint] }; - -export type PalletAssetsApproval = { amount: bigint; deposit: bigint }; - -export type PalletAssetsAssetMetadata = { - deposit: bigint; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; -}; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetsError = - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - | 'BalanceLow' - /** - * The account to alter does not exist. - **/ - | 'NoAccount' - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given asset ID is unknown. - **/ - | 'Unknown' - /** - * The origin account is frozen. - **/ - | 'Frozen' - /** - * The asset ID is already taken. - **/ - | 'InUse' - /** - * Invalid witness data given. - **/ - | 'BadWitness' - /** - * Minimum balance should be non-zero. - **/ - | 'MinBalanceZero' - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - | 'UnavailableConsumer' - /** - * Invalid metadata given. - **/ - | 'BadMetadata' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - | 'WouldDie' - /** - * The asset-account already exists. - **/ - | 'AlreadyExists' - /** - * The asset-account doesn't have an associated deposit. - **/ - | 'NoDeposit' - /** - * The operation would result in funds being burned. - **/ - | 'WouldBurn' - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - | 'LiveAsset' - /** - * The asset is not live, and likely being destroyed. - **/ - | 'AssetNotLive' - /** - * The asset status is not the expected status. - **/ - | 'IncorrectStatus' - /** - * The asset should be frozen before the given operation. - **/ - | 'NotFrozen' - /** - * Callback action resulted in error - **/ - | 'CallbackFailed'; - -export type PalletUniquesCollectionDetails = { - owner: AccountId32; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - totalDeposit: bigint; - freeHolding: boolean; - items: number; - itemMetadatas: number; - attributes: number; - isFrozen: boolean; -}; - -export type PalletUniquesItemDetails = { - owner: AccountId32; - approved?: AccountId32 | undefined; - isFrozen: boolean; - deposit: bigint; -}; - -export type PalletUniquesCollectionMetadata = { deposit: bigint; data: Bytes; isFrozen: boolean }; - -export type PalletUniquesItemMetadata = { deposit: bigint; data: Bytes; isFrozen: boolean }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletUniquesError = - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given item ID is unknown. - **/ - | 'UnknownCollection' - /** - * The item ID has already been used for an item. - **/ - | 'AlreadyExists' - /** - * The owner turned out to be different to what was expected. - **/ - | 'WrongOwner' - /** - * Invalid witness data given. - **/ - | 'BadWitness' - /** - * The item ID is already taken. - **/ - | 'InUse' - /** - * The item or collection is frozen. - **/ - | 'Frozen' - /** - * The delegate turned out to be different to what was expected. - **/ - | 'WrongDelegate' - /** - * There is no delegate approved. - **/ - | 'NoDelegate' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The named owner has not signed ownership of the collection is acceptable. - **/ - | 'Unaccepted' - /** - * The item is locked. - **/ - | 'Locked' - /** - * All items have been minted. - **/ - | 'MaxSupplyReached' - /** - * The max supply has already been set. - **/ - | 'MaxSupplyAlreadySet' - /** - * The provided max supply is less to the amount of items a collection already has. - **/ - | 'MaxSupplyTooSmall' - /** - * The given item ID is unknown. - **/ - | 'UnknownItem' - /** - * Item is not for sale. - **/ - | 'NotForSale' - /** - * The provided bid is too low. - **/ - | 'BidTooLow'; - -export type PalletNftsCollectionDetails = { - owner: AccountId32; - ownerDeposit: bigint; - items: number; - itemMetadatas: number; - itemConfigs: number; - attributes: number; -}; - -export type PalletNftsBitFlagsCollectionRole = number; - -export type PalletNftsCollectionRole = 'Issuer' | 'Freezer' | 'Admin'; - -export type PalletNftsItemDetails = { - owner: AccountId32; - approvals: Array<[AccountId32, number | undefined]>; - deposit: PalletNftsItemDeposit; -}; - -export type PalletNftsItemDeposit = { account: AccountId32; amount: bigint }; - -export type PalletNftsCollectionMetadata = { deposit: bigint; data: Bytes }; - -export type PalletNftsItemMetadata = { deposit: PalletNftsItemMetadataDeposit; data: Bytes }; - -export type PalletNftsItemMetadataDeposit = { account?: AccountId32 | undefined; amount: bigint }; - -export type PalletNftsAttributeDeposit = { account?: AccountId32 | undefined; amount: bigint }; - -export type PalletNftsPendingSwap = { - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; -}; - -export type PalletNftsBitFlagsPalletFeature = bigint; - -export type PalletNftsPalletFeature = 'Trading' | 'Attributes' | 'Approvals' | 'Swaps'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletNftsError = - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given item ID is unknown. - **/ - | 'UnknownCollection' - /** - * The item ID has already been used for an item. - **/ - | 'AlreadyExists' - /** - * The approval had a deadline that expired, so the approval isn't valid anymore. - **/ - | 'ApprovalExpired' - /** - * The owner turned out to be different to what was expected. - **/ - | 'WrongOwner' - /** - * The witness data given does not match the current state of the chain. - **/ - | 'BadWitness' - /** - * Collection ID is already taken. - **/ - | 'CollectionIdInUse' - /** - * Items within that collection are non-transferable. - **/ - | 'ItemsNonTransferable' - /** - * The provided account is not a delegate. - **/ - | 'NotDelegate' - /** - * The delegate turned out to be different to what was expected. - **/ - | 'WrongDelegate' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The named owner has not signed ownership acceptance of the collection. - **/ - | 'Unaccepted' - /** - * The item is locked (non-transferable). - **/ - | 'ItemLocked' - /** - * Item's attributes are locked. - **/ - | 'LockedItemAttributes' - /** - * Collection's attributes are locked. - **/ - | 'LockedCollectionAttributes' - /** - * Item's metadata is locked. - **/ - | 'LockedItemMetadata' - /** - * Collection's metadata is locked. - **/ - | 'LockedCollectionMetadata' - /** - * All items have been minted. - **/ - | 'MaxSupplyReached' - /** - * The max supply is locked and can't be changed. - **/ - | 'MaxSupplyLocked' - /** - * The provided max supply is less than the number of items a collection already has. - **/ - | 'MaxSupplyTooSmall' - /** - * The given item ID is unknown. - **/ - | 'UnknownItem' - /** - * Swap doesn't exist. - **/ - | 'UnknownSwap' - /** - * The given item has no metadata set. - **/ - | 'MetadataNotFound' - /** - * The provided attribute can't be found. - **/ - | 'AttributeNotFound' - /** - * Item is not for sale. - **/ - | 'NotForSale' - /** - * The provided bid is too low. - **/ - | 'BidTooLow' - /** - * The item has reached its approval limit. - **/ - | 'ReachedApprovalLimit' - /** - * The deadline has already expired. - **/ - | 'DeadlineExpired' - /** - * The duration provided should be less than or equal to `MaxDeadlineDuration`. - **/ - | 'WrongDuration' - /** - * The method is disabled by system settings. - **/ - | 'MethodDisabled' - /** - * The provided setting can't be set. - **/ - | 'WrongSetting' - /** - * Item's config already exists and should be equal to the provided one. - **/ - | 'InconsistentItemConfig' - /** - * Config for a collection or an item can't be found. - **/ - | 'NoConfig' - /** - * Some roles were not cleared. - **/ - | 'RolesNotCleared' - /** - * Mint has not started yet. - **/ - | 'MintNotStarted' - /** - * Mint has already ended. - **/ - | 'MintEnded' - /** - * The provided Item was already used for claiming. - **/ - | 'AlreadyClaimed' - /** - * The provided data is incorrect. - **/ - | 'IncorrectData' - /** - * The extrinsic was sent by the wrong origin. - **/ - | 'WrongOrigin' - /** - * The provided signature is incorrect. - **/ - | 'WrongSignature' - /** - * The provided metadata might be too long. - **/ - | 'IncorrectMetadata' - /** - * Can't set more attributes per one call. - **/ - | 'MaxAttributesLimitReached' - /** - * The provided namespace isn't supported in this call. - **/ - | 'WrongNamespace' - /** - * Can't delete non-empty collections. - **/ - | 'CollectionNotEmpty' - /** - * The witness data should be provided. - **/ - | 'WitnessRequired'; - -export type PalletNftFractionalizationDetails = { - asset: number; - fractions: bigint; - deposit: bigint; - assetCreator: AccountId32; -}; - -export type FrameSupportPalletId = FixedBytes<8>; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletNftFractionalizationError = - /** - * Asset ID does not correspond to locked NFT. - **/ - | 'IncorrectAssetId' - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * NFT doesn't exist. - **/ - | 'NftNotFound' - /** - * NFT has not yet been fractionalised. - **/ - | 'NftNotFractionalized'; - -export type PalletAssetConversionPoolInfo = { lpToken: number }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetConversionError = - /** - * Provided asset pair is not supported for pool. - **/ - | 'InvalidAssetPair' - /** - * Pool already exists. - **/ - | 'PoolExists' - /** - * Desired amount can't be zero. - **/ - | 'WrongDesiredAmount' - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'AmountOneLessThanMinimal' - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'AmountTwoLessThanMinimal' - /** - * Reserve needs to always be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'ReserveLeftLessThanMinimal' - /** - * Desired amount can't be equal to the pool reserve. - **/ - | 'AmountOutTooHigh' - /** - * The pool doesn't exist. - **/ - | 'PoolNotFound' - /** - * An overflow happened. - **/ - | 'Overflow' - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - | 'AssetOneDepositDidNotMeetMinimum' - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - | 'AssetTwoDepositDidNotMeetMinimum' - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - | 'AssetOneWithdrawalDidNotMeetMinimum' - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - | 'AssetTwoWithdrawalDidNotMeetMinimum' - /** - * Optimal calculated amount is less than desired. - **/ - | 'OptimalAmountLessThanDesired' - /** - * Insufficient liquidity minted. - **/ - | 'InsufficientLiquidityMinted' - /** - * Requested liquidity can't be zero. - **/ - | 'ZeroLiquidity' - /** - * Amount can't be zero. - **/ - | 'ZeroAmount' - /** - * Calculated amount out is less than provided minimum amount. - **/ - | 'ProvidedMinimumNotSufficientForSwap' - /** - * Provided maximum amount is not sufficient for swap. - **/ - | 'ProvidedMaximumNotSufficientForSwap' - /** - * The provided path must consists of 2 assets at least. - **/ - | 'InvalidPath' - /** - * The provided path must consists of unique assets. - **/ - | 'NonUniquePath' - /** - * It was not possible to get or increment the Id of the pool. - **/ - | 'IncorrectPoolAssetId' - /** - * The destination account cannot exist with the swapped funds. - **/ - | 'BelowMinimum'; - -export type FrameSystemExtensionsCheckNonZeroSender = {}; - -export type FrameSystemExtensionsCheckSpecVersion = {}; - -export type FrameSystemExtensionsCheckTxVersion = {}; - -export type FrameSystemExtensionsCheckGenesis = {}; - -export type FrameSystemExtensionsCheckMortality = Era; - -export type FrameSystemExtensionsCheckNonce = number; - -export type FrameSystemExtensionsCheckWeight = {}; - -export type PalletAssetConversionTxPaymentChargeAssetTxPayment = { - tip: bigint; - assetId?: StagingXcmV3MultilocationMultiLocation | undefined; -}; - -export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode }; - -export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled'; - -export type AssetHubKusamaRuntimeRuntime = {}; - -export type SpConsensusSlotsSlotDuration = bigint; - -export type SpRuntimeBlock = { header: Header; extrinsics: Array }; - -export type SpCoreOpaqueMetadata = Bytes; - -export type SpRuntimeTransactionValidityTransactionValidityError = - | { type: 'Invalid'; value: SpRuntimeTransactionValidityInvalidTransaction } - | { type: 'Unknown'; value: SpRuntimeTransactionValidityUnknownTransaction }; - -export type SpRuntimeTransactionValidityInvalidTransaction = - | { type: 'Call' } - | { type: 'Payment' } - | { type: 'Future' } - | { type: 'Stale' } - | { type: 'BadProof' } - | { type: 'AncientBirthBlock' } - | { type: 'ExhaustsResources' } - | { type: 'Custom'; value: number } - | { type: 'BadMandatory' } - | { type: 'MandatoryValidation' } - | { type: 'BadSigner' }; - -export type SpRuntimeTransactionValidityUnknownTransaction = - | { type: 'CannotLookup' } - | { type: 'NoUnsignedValidator' } - | { type: 'Custom'; value: number }; - -export type SpInherentsInherentData = { data: Array<[FixedBytes<8>, Bytes]> }; - -export type SpInherentsCheckInherentsResult = { okay: boolean; fatalError: boolean; errors: SpInherentsInherentData }; - -export type SpRuntimeTransactionValidityTransactionSource = 'InBlock' | 'Local' | 'External'; - -export type SpRuntimeTransactionValidityValidTransaction = { - priority: bigint; - requires: Array; - provides: Array; - longevity: bigint; - propagate: boolean; -}; - -export type PalletTransactionPaymentRuntimeDispatchInfo = { - weight: SpWeightsWeightV2Weight; - class: FrameSupportDispatchDispatchClass; - partialFee: bigint; -}; - -export type PalletTransactionPaymentFeeDetails = { - inclusionFee?: PalletTransactionPaymentInclusionFee | undefined; - tip: bigint; -}; - -export type PalletTransactionPaymentInclusionFee = { baseFee: bigint; lenFee: bigint; adjustedWeightFee: bigint }; - -export type AssetsCommonRuntimeApiFungiblesAccessError = 'AssetIdConversionFailed' | 'AmountToBalanceConversionFailed'; - -export type CumulusPrimitivesCoreCollationInfo = { - upwardMessages: Array; - horizontalMessages: Array; - newValidationCode?: PolkadotParachainPrimitivesPrimitivesValidationCode | undefined; - processedDownwardMessages: number; - hrmpWatermark: number; - headData: PolkadotParachainPrimitivesPrimitivesHeadData; -}; - -export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes; - -export type AssetHubKusamaRuntimeRuntimeError = - | { pallet: 'System'; palletError: FrameSystemError } - | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError } - | { pallet: 'Balances'; palletError: PalletBalancesError } - | { pallet: 'Vesting'; palletError: PalletVestingError } - | { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError } - | { pallet: 'Session'; palletError: PalletSessionError } - | { pallet: 'XcmpQueue'; palletError: CumulusPalletXcmpQueueError } - | { pallet: 'PolkadotXcm'; palletError: PalletXcmError } - | { pallet: 'MessageQueue'; palletError: PalletMessageQueueError } - | { pallet: 'Utility'; palletError: PalletUtilityError } - | { pallet: 'Multisig'; palletError: PalletMultisigError } - | { pallet: 'Proxy'; palletError: PalletProxyError } - | { pallet: 'Assets'; palletError: PalletAssetsError } - | { pallet: 'Uniques'; palletError: PalletUniquesError } - | { pallet: 'Nfts'; palletError: PalletNftsError } - | { pallet: 'ForeignAssets'; palletError: PalletAssetsError } - | { pallet: 'NftFractionalization'; palletError: PalletNftFractionalizationError } - | { pallet: 'PoolAssets'; palletError: PalletAssetsError } - | { pallet: 'AssetConversion'; palletError: PalletAssetConversionError }; diff --git a/packages/chaintypes/src/polkadotAssetHub/consts.d.ts b/packages/chaintypes/src/polkadotAssetHub/consts.d.ts deleted file mode 100644 index f0980d9..0000000 --- a/packages/chaintypes/src/polkadotAssetHub/consts.d.ts +++ /dev/null @@ -1,730 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainConsts, RpcVersion } from 'dedot/types'; -import type { RuntimeVersion, Permill } from 'dedot/codecs'; -import type { - FrameSystemLimitsBlockWeights, - FrameSystemLimitsBlockLength, - SpWeightsRuntimeDbWeight, - SpWeightsWeightV2Weight, - PalletNftsBitFlagsPalletFeature, - StagingXcmV3MultilocationMultiLocation, - FrameSupportPalletId, -} from './types'; - -export interface ChainConsts extends GenericChainConsts { - /** - * Pallet `System`'s constants - **/ - system: { - /** - * Block & extrinsics weights: base values and limits. - **/ - blockWeights: FrameSystemLimitsBlockWeights; - - /** - * The maximum length of a block (in bytes). - **/ - blockLength: FrameSystemLimitsBlockLength; - - /** - * Maximum number of block number to block hash mappings to keep (oldest pruned first). - **/ - blockHashCount: number; - - /** - * The weight of runtime database operations the runtime can invoke. - **/ - dbWeight: SpWeightsRuntimeDbWeight; - - /** - * Get the chain's current version. - **/ - version: RuntimeVersion; - - /** - * The designated SS58 prefix of this chain. - * - * This replaces the "ss58Format" property declared in the chain spec. Reason is - * that the runtime should know about the prefix in order to make use of it as - * an identifier of the chain. - **/ - ss58Prefix: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainSystem`'s constants - **/ - parachainSystem: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Timestamp`'s constants - **/ - timestamp: { - /** - * The minimum period between blocks. - * - * Be aware that this is different to the *expected* period that the block production - * apparatus provides. Your chosen consensus system will generally work with this to - * determine a sensible block time. For example, in the Aura pallet it will be double this - * period on default settings. - **/ - minimumPeriod: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainInfo`'s constants - **/ - parachainInfo: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Balances`'s constants - **/ - balances: { - /** - * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! - * - * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for - * this pallet. However, you do so at your own risk: this will open up a major DoS vector. - * In case you have multiple sources of provider references, you may also get unexpected - * behaviour if you set this to zero. - * - * Bottom line: Do yourself a favour and make it at least one! - **/ - existentialDeposit: bigint; - - /** - * The maximum number of locks that should exist on an account. - * Not strictly enforced, but used for weight estimation. - **/ - maxLocks: number; - - /** - * The maximum number of named reserves that can exist on an account. - **/ - maxReserves: number; - - /** - * The maximum number of individual freeze locks that can exist on an account at any time. - **/ - maxFreezes: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `TransactionPayment`'s constants - **/ - transactionPayment: { - /** - * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their - * `priority` - * - * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later - * added to a tip component in regular `priority` calculations. - * It means that a `Normal` transaction can front-run a similarly-sized `Operational` - * extrinsic (with no tip), by including a tip value greater than the virtual tip. - * - * ```rust,ignore - * // For `Normal` - * let priority = priority_calc(tip); - * - * // For `Operational` - * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; - * let priority = priority_calc(tip + virtual_tip); - * ``` - * - * Note that since we use `final_fee` the multiplier applies also to the regular `tip` - * sent with the transaction. So, not only does the transaction get a priority bump based - * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational` - * transactions. - **/ - operationalFeeMultiplier: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetTxPayment`'s constants - **/ - assetTxPayment: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Vesting`'s constants - **/ - vesting: { - /** - * The minimum amount transferred to call `vested_transfer`. - **/ - minVestedTransfer: bigint; - maxVestingSchedules: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Authorship`'s constants - **/ - authorship: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CollatorSelection`'s constants - **/ - collatorSelection: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Session`'s constants - **/ - session: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Aura`'s constants - **/ - aura: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AuraExt`'s constants - **/ - auraExt: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `XcmpQueue`'s constants - **/ - xcmpQueue: { - /** - * The maximum number of inbound XCMP channels that can be suspended simultaneously. - * - * Any further channel suspensions will fail and messages may get dropped without further - * notice. Choosing a high value (1000) is okay; the trade-off that is described in - * [`InboundXcmpSuspended`] still applies at that scale. - **/ - maxInboundSuspended: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PolkadotXcm`'s constants - **/ - polkadotXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CumulusXcm`'s constants - **/ - cumulusXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ToKusamaXcmRouter`'s constants - **/ - toKusamaXcmRouter: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `MessageQueue`'s constants - **/ - messageQueue: { - /** - * The size of the page; this implies the maximum message size which can be sent. - * - * A good value depends on the expected message sizes, their weights, the weight that is - * available for processing them and the maximal needed message size. The maximal message - * size is slightly lower than this as defined by [`MaxMessageLenOf`]. - **/ - heapSize: number; - - /** - * The maximum number of stale pages (i.e. of overweight messages) allowed before culling - * can happen. Once there are more stale pages than this, then historical pages may be - * dropped, even if they contain unprocessed overweight messages. - **/ - maxStale: number; - - /** - * The amount of weight (if any) which should be provided to the message queue for - * servicing enqueued items. - * - * This may be legitimately `None` in the case that you will call - * `ServiceQueues::service_queues` manually. - **/ - serviceWeight: SpWeightsWeightV2Weight | undefined; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Utility`'s constants - **/ - utility: { - /** - * The limit on the number of batched calls. - **/ - batchedCallsLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Multisig`'s constants - **/ - multisig: { - /** - * The base amount of currency needed to reserve for creating a multisig execution or to - * store a dispatch call for later. - * - * This is held for an additional storage item whose value size is - * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is - * `32 + sizeof(AccountId)` bytes. - **/ - depositBase: bigint; - - /** - * The amount of currency needed per unit threshold when creating a multisig execution. - * - * This is held for adding 32 bytes more into a pre-existing storage value. - **/ - depositFactor: bigint; - - /** - * The maximum amount of signatories allowed in the multisig. - **/ - maxSignatories: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Proxy`'s constants - **/ - proxy: { - /** - * The base amount of currency needed to reserve for creating a proxy. - * - * This is held for an additional storage item whose value size is - * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes. - **/ - proxyDepositBase: bigint; - - /** - * The amount of currency needed per proxy added. - * - * This is held for adding 32 bytes plus an instance of `ProxyType` more into a - * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take - * into account `32 + proxy_type.encode().len()` bytes of data. - **/ - proxyDepositFactor: bigint; - - /** - * The maximum amount of proxies allowed for a single account. - **/ - maxProxies: number; - - /** - * The maximum amount of time-delayed announcements that are allowed to be pending. - **/ - maxPending: number; - - /** - * The base amount of currency needed to reserve for creating an announcement. - * - * This is held when a new storage item holding a `Balance` is created (typically 16 - * bytes). - **/ - announcementDepositBase: bigint; - - /** - * The amount of currency needed per announcement made. - * - * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes) - * into a pre-existing storage value. - **/ - announcementDepositFactor: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Assets`'s constants - **/ - assets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Uniques`'s constants - **/ - uniques: { - /** - * The basic amount of funds that must be reserved for collection. - **/ - collectionDeposit: bigint; - - /** - * The basic amount of funds that must be reserved for an item. - **/ - itemDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your item. - **/ - metadataDepositBase: bigint; - - /** - * The basic amount of funds that must be reserved when adding an attribute to an item. - **/ - attributeDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes store in metadata, - * either "normal" metadata or attribute metadata. - **/ - depositPerByte: bigint; - - /** - * The maximum length of data stored on-chain. - **/ - stringLimit: number; - - /** - * The maximum length of an attribute key. - **/ - keyLimit: number; - - /** - * The maximum length of an attribute value. - **/ - valueLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Nfts`'s constants - **/ - nfts: { - /** - * The basic amount of funds that must be reserved for collection. - **/ - collectionDeposit: bigint; - - /** - * The basic amount of funds that must be reserved for an item. - **/ - itemDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your item. - **/ - metadataDepositBase: bigint; - - /** - * The basic amount of funds that must be reserved when adding an attribute to an item. - **/ - attributeDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes store in metadata, - * either "normal" metadata or attribute metadata. - **/ - depositPerByte: bigint; - - /** - * The maximum length of data stored on-chain. - **/ - stringLimit: number; - - /** - * The maximum length of an attribute key. - **/ - keyLimit: number; - - /** - * The maximum length of an attribute value. - **/ - valueLimit: number; - - /** - * The maximum approvals an item could have. - **/ - approvalsLimit: number; - - /** - * The maximum attributes approvals an item could have. - **/ - itemAttributesApprovalsLimit: number; - - /** - * The max number of tips a user could send. - **/ - maxTips: number; - - /** - * The max duration in blocks for deadlines. - **/ - maxDeadlineDuration: number; - - /** - * The max number of attributes a user could set per call. - **/ - maxAttributesPerCall: number; - - /** - * Disables some of pallet's features. - **/ - features: PalletNftsBitFlagsPalletFeature; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ForeignAssets`'s constants - **/ - foreignAssets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PoolAssets`'s constants - **/ - poolAssets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetConversion`'s constants - **/ - assetConversion: { - /** - * A % the liquidity providers will take of every swap. Represents 10ths of a percent. - **/ - lpFee: number; - - /** - * A one-time fee to setup the pool. - **/ - poolSetupFee: bigint; - - /** - * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`]. - **/ - poolSetupFeeAsset: StagingXcmV3MultilocationMultiLocation; - - /** - * A fee to withdraw the liquidity. - **/ - liquidityWithdrawalFee: Permill; - - /** - * The minimum LP token amount that could be minted. Ameliorates rounding errors. - **/ - mintMinLiquidity: bigint; - - /** - * The max number of hops in a swap. - **/ - maxSwapPathLength: number; - - /** - * The pallet's id, used for deriving its sovereign account ID. - **/ - palletId: FrameSupportPalletId; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; -} diff --git a/packages/chaintypes/src/polkadotAssetHub/errors.d.ts b/packages/chaintypes/src/polkadotAssetHub/errors.d.ts deleted file mode 100644 index 1055bd0..0000000 --- a/packages/chaintypes/src/polkadotAssetHub/errors.d.ts +++ /dev/null @@ -1,1500 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainErrors, GenericPalletError, RpcVersion } from 'dedot/types'; - -export interface ChainErrors extends GenericChainErrors { - /** - * Pallet `System`'s errors - **/ - system: { - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - InvalidSpecName: GenericPalletError; - - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - SpecVersionNeedsToIncrease: GenericPalletError; - - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - FailedToExtractRuntimeVersion: GenericPalletError; - - /** - * Suicide called when the account has non-default composite data. - **/ - NonDefaultComposite: GenericPalletError; - - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - NonZeroRefCount: GenericPalletError; - - /** - * The origin filter prevent the call to be dispatched. - **/ - CallFiltered: GenericPalletError; - - /** - * No upgrade authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The submitted code is not authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ParachainSystem`'s errors - **/ - parachainSystem: { - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - OverlappingUpgrades: GenericPalletError; - - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - ProhibitedByPolkadot: GenericPalletError; - - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - TooBig: GenericPalletError; - - /** - * The inherent which supplies the validation data did not run this block. - **/ - ValidationDataNotAvailable: GenericPalletError; - - /** - * The inherent which supplies the host configuration did not run this block. - **/ - HostConfigurationNotAvailable: GenericPalletError; - - /** - * No validation function upgrade is currently scheduled. - **/ - NotScheduled: GenericPalletError; - - /** - * No code upgrade has been authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The given code upgrade has not been authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Balances`'s errors - **/ - balances: { - /** - * Vesting balance too high to send value. - **/ - VestingBalance: GenericPalletError; - - /** - * Account liquidity restrictions prevent withdrawal. - **/ - LiquidityRestrictions: GenericPalletError; - - /** - * Balance too low to send value. - **/ - InsufficientBalance: GenericPalletError; - - /** - * Value too low to create account due to existential deposit. - **/ - ExistentialDeposit: GenericPalletError; - - /** - * Transfer/payment would kill account. - **/ - Expendability: GenericPalletError; - - /** - * A vesting schedule already exists for this account. - **/ - ExistingVestingSchedule: GenericPalletError; - - /** - * Beneficiary account must pre-exist. - **/ - DeadAccount: GenericPalletError; - - /** - * Number of named reserves exceed `MaxReserves`. - **/ - TooManyReserves: GenericPalletError; - - /** - * Number of holds exceed `VariantCountOf`. - **/ - TooManyHolds: GenericPalletError; - - /** - * Number of freezes exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * The issuance cannot be modified since it is already deactivated. - **/ - IssuanceDeactivated: GenericPalletError; - - /** - * The delta cannot be zero. - **/ - DeltaZero: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Vesting`'s errors - **/ - vesting: { - /** - * The account given is not vesting. - **/ - NotVesting: GenericPalletError; - - /** - * The account already has `MaxVestingSchedules` count of schedules and thus - * cannot add another one. Consider merging existing schedules in order to add another. - **/ - AtMaxVestingSchedules: GenericPalletError; - - /** - * Amount being transferred is too low to create a vesting schedule. - **/ - AmountLow: GenericPalletError; - - /** - * An index was out of bounds of the vesting schedules. - **/ - ScheduleIndexOutOfBounds: GenericPalletError; - - /** - * Failed to create a new schedule because some parameter was invalid. - **/ - InvalidScheduleParams: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `CollatorSelection`'s errors - **/ - collatorSelection: { - /** - * The pallet has too many candidates. - **/ - TooManyCandidates: GenericPalletError; - - /** - * Leaving would result in too few candidates. - **/ - TooFewEligibleCollators: GenericPalletError; - - /** - * Account is already a candidate. - **/ - AlreadyCandidate: GenericPalletError; - - /** - * Account is not a candidate. - **/ - NotCandidate: GenericPalletError; - - /** - * There are too many Invulnerables. - **/ - TooManyInvulnerables: GenericPalletError; - - /** - * Account is already an Invulnerable. - **/ - AlreadyInvulnerable: GenericPalletError; - - /** - * Account is not an Invulnerable. - **/ - NotInvulnerable: GenericPalletError; - - /** - * Account has no associated validator ID. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Validator ID is not yet registered. - **/ - ValidatorNotRegistered: GenericPalletError; - - /** - * Could not insert in the candidate list. - **/ - InsertToCandidateListFailed: GenericPalletError; - - /** - * Could not remove from the candidate list. - **/ - RemoveFromCandidateListFailed: GenericPalletError; - - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - DepositTooLow: GenericPalletError; - - /** - * Could not update the candidate list. - **/ - UpdateCandidateListFailed: GenericPalletError; - - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - InsufficientBond: GenericPalletError; - - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - TargetIsNotCandidate: GenericPalletError; - - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - IdenticalDeposit: GenericPalletError; - - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - InvalidUnreserve: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Session`'s errors - **/ - session: { - /** - * Invalid ownership proof. - **/ - InvalidProof: GenericPalletError; - - /** - * No associated validator ID for account. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Registered duplicate key. - **/ - DuplicatedKey: GenericPalletError; - - /** - * No keys are associated with this account. - **/ - NoKeys: GenericPalletError; - - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - NoAccount: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `XcmpQueue`'s errors - **/ - xcmpQueue: { - /** - * Setting the queue config failed since one of its values was invalid. - **/ - BadQueueConfig: GenericPalletError; - - /** - * The execution is already suspended. - **/ - AlreadySuspended: GenericPalletError; - - /** - * The execution is already resumed. - **/ - AlreadyResumed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PolkadotXcm`'s errors - **/ - polkadotXcm: { - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - Unreachable: GenericPalletError; - - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - SendFailure: GenericPalletError; - - /** - * The message execution fails the filter. - **/ - Filtered: GenericPalletError; - - /** - * The message's weight could not be determined. - **/ - UnweighableMessage: GenericPalletError; - - /** - * The destination `Location` provided cannot be inverted. - **/ - DestinationNotInvertible: GenericPalletError; - - /** - * The assets to be sent are empty. - **/ - Empty: GenericPalletError; - - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - CannotReanchor: GenericPalletError; - - /** - * Too many assets have been attempted for transfer. - **/ - TooManyAssets: GenericPalletError; - - /** - * Origin is invalid for sending. - **/ - InvalidOrigin: GenericPalletError; - - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - BadVersion: GenericPalletError; - - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - BadLocation: GenericPalletError; - - /** - * The referenced subscription could not be found. - **/ - NoSubscription: GenericPalletError; - - /** - * The location is invalid since it already has a subscription from us. - **/ - AlreadySubscribed: GenericPalletError; - - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - CannotCheckOutTeleport: GenericPalletError; - - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - LowBalance: GenericPalletError; - - /** - * The asset owner has too many locks on the asset. - **/ - TooManyLocks: GenericPalletError; - - /** - * The given account is not an identifiable sovereign account for any location. - **/ - AccountNotSovereign: GenericPalletError; - - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - FeesNotMet: GenericPalletError; - - /** - * A remote lock with the corresponding data could not be found. - **/ - LockNotFound: GenericPalletError; - - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - InUse: GenericPalletError; - - /** - * Invalid non-concrete asset. - **/ - InvalidAssetNotConcrete: GenericPalletError; - - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - InvalidAssetUnknownReserve: GenericPalletError; - - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - InvalidAssetUnsupportedReserve: GenericPalletError; - - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - TooManyReserves: GenericPalletError; - - /** - * Local XCM execution incomplete. - **/ - LocalExecutionIncomplete: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `MessageQueue`'s errors - **/ - messageQueue: { - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - NotReapable: GenericPalletError; - - /** - * Page to be reaped does not exist. - **/ - NoPage: GenericPalletError; - - /** - * The referenced message could not be found. - **/ - NoMessage: GenericPalletError; - - /** - * The message was already processed and cannot be processed again. - **/ - AlreadyProcessed: GenericPalletError; - - /** - * The message is queued for future execution. - **/ - Queued: GenericPalletError; - - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - InsufficientWeight: GenericPalletError; - - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - TemporarilyUnprocessable: GenericPalletError; - - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - QueuePaused: GenericPalletError; - - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - RecursiveDisallowed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Utility`'s errors - **/ - utility: { - /** - * Too many calls batched. - **/ - TooManyCalls: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Multisig`'s errors - **/ - multisig: { - /** - * Threshold must be 2 or greater. - **/ - MinimumThreshold: GenericPalletError; - - /** - * Call is already approved by this signatory. - **/ - AlreadyApproved: GenericPalletError; - - /** - * Call doesn't need any (more) approvals. - **/ - NoApprovalsNeeded: GenericPalletError; - - /** - * There are too few signatories in the list. - **/ - TooFewSignatories: GenericPalletError; - - /** - * There are too many signatories in the list. - **/ - TooManySignatories: GenericPalletError; - - /** - * The signatories were provided out of order; they should be ordered. - **/ - SignatoriesOutOfOrder: GenericPalletError; - - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - SenderInSignatories: GenericPalletError; - - /** - * Multisig operation not found when attempting to cancel. - **/ - NotFound: GenericPalletError; - - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - NotOwner: GenericPalletError; - - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - NoTimepoint: GenericPalletError; - - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - WrongTimepoint: GenericPalletError; - - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - UnexpectedTimepoint: GenericPalletError; - - /** - * The maximum weight information provided was too low. - **/ - MaxWeightTooLow: GenericPalletError; - - /** - * The data to be stored is already stored. - **/ - AlreadyStored: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Proxy`'s errors - **/ - proxy: { - /** - * There are too many proxies registered or too many announcements pending. - **/ - TooMany: GenericPalletError; - - /** - * Proxy registration not found. - **/ - NotFound: GenericPalletError; - - /** - * Sender is not a proxy of the account to be proxied. - **/ - NotProxy: GenericPalletError; - - /** - * A call which is incompatible with the proxy type's filter was attempted. - **/ - Unproxyable: GenericPalletError; - - /** - * Account is already a proxy. - **/ - Duplicate: GenericPalletError; - - /** - * Call may not be made by proxy because it may escalate its privileges. - **/ - NoPermission: GenericPalletError; - - /** - * Announcement, if made at all, was made too recently. - **/ - Unannounced: GenericPalletError; - - /** - * Cannot add self as proxy. - **/ - NoSelfProxy: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Assets`'s errors - **/ - assets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Uniques`'s errors - **/ - uniques: { - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownCollection: GenericPalletError; - - /** - * The item ID has already been used for an item. - **/ - AlreadyExists: GenericPalletError; - - /** - * The owner turned out to be different to what was expected. - **/ - WrongOwner: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * The item ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * The item or collection is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The delegate turned out to be different to what was expected. - **/ - WrongDelegate: GenericPalletError; - - /** - * There is no delegate approved. - **/ - NoDelegate: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The named owner has not signed ownership of the collection is acceptable. - **/ - Unaccepted: GenericPalletError; - - /** - * The item is locked. - **/ - Locked: GenericPalletError; - - /** - * All items have been minted. - **/ - MaxSupplyReached: GenericPalletError; - - /** - * The max supply has already been set. - **/ - MaxSupplyAlreadySet: GenericPalletError; - - /** - * The provided max supply is less to the amount of items a collection already has. - **/ - MaxSupplyTooSmall: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownItem: GenericPalletError; - - /** - * Item is not for sale. - **/ - NotForSale: GenericPalletError; - - /** - * The provided bid is too low. - **/ - BidTooLow: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Nfts`'s errors - **/ - nfts: { - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownCollection: GenericPalletError; - - /** - * The item ID has already been used for an item. - **/ - AlreadyExists: GenericPalletError; - - /** - * The approval had a deadline that expired, so the approval isn't valid anymore. - **/ - ApprovalExpired: GenericPalletError; - - /** - * The owner turned out to be different to what was expected. - **/ - WrongOwner: GenericPalletError; - - /** - * The witness data given does not match the current state of the chain. - **/ - BadWitness: GenericPalletError; - - /** - * Collection ID is already taken. - **/ - CollectionIdInUse: GenericPalletError; - - /** - * Items within that collection are non-transferable. - **/ - ItemsNonTransferable: GenericPalletError; - - /** - * The provided account is not a delegate. - **/ - NotDelegate: GenericPalletError; - - /** - * The delegate turned out to be different to what was expected. - **/ - WrongDelegate: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The named owner has not signed ownership acceptance of the collection. - **/ - Unaccepted: GenericPalletError; - - /** - * The item is locked (non-transferable). - **/ - ItemLocked: GenericPalletError; - - /** - * Item's attributes are locked. - **/ - LockedItemAttributes: GenericPalletError; - - /** - * Collection's attributes are locked. - **/ - LockedCollectionAttributes: GenericPalletError; - - /** - * Item's metadata is locked. - **/ - LockedItemMetadata: GenericPalletError; - - /** - * Collection's metadata is locked. - **/ - LockedCollectionMetadata: GenericPalletError; - - /** - * All items have been minted. - **/ - MaxSupplyReached: GenericPalletError; - - /** - * The max supply is locked and can't be changed. - **/ - MaxSupplyLocked: GenericPalletError; - - /** - * The provided max supply is less than the number of items a collection already has. - **/ - MaxSupplyTooSmall: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownItem: GenericPalletError; - - /** - * Swap doesn't exist. - **/ - UnknownSwap: GenericPalletError; - - /** - * The given item has no metadata set. - **/ - MetadataNotFound: GenericPalletError; - - /** - * The provided attribute can't be found. - **/ - AttributeNotFound: GenericPalletError; - - /** - * Item is not for sale. - **/ - NotForSale: GenericPalletError; - - /** - * The provided bid is too low. - **/ - BidTooLow: GenericPalletError; - - /** - * The item has reached its approval limit. - **/ - ReachedApprovalLimit: GenericPalletError; - - /** - * The deadline has already expired. - **/ - DeadlineExpired: GenericPalletError; - - /** - * The duration provided should be less than or equal to `MaxDeadlineDuration`. - **/ - WrongDuration: GenericPalletError; - - /** - * The method is disabled by system settings. - **/ - MethodDisabled: GenericPalletError; - - /** - * The provided setting can't be set. - **/ - WrongSetting: GenericPalletError; - - /** - * Item's config already exists and should be equal to the provided one. - **/ - InconsistentItemConfig: GenericPalletError; - - /** - * Config for a collection or an item can't be found. - **/ - NoConfig: GenericPalletError; - - /** - * Some roles were not cleared. - **/ - RolesNotCleared: GenericPalletError; - - /** - * Mint has not started yet. - **/ - MintNotStarted: GenericPalletError; - - /** - * Mint has already ended. - **/ - MintEnded: GenericPalletError; - - /** - * The provided Item was already used for claiming. - **/ - AlreadyClaimed: GenericPalletError; - - /** - * The provided data is incorrect. - **/ - IncorrectData: GenericPalletError; - - /** - * The extrinsic was sent by the wrong origin. - **/ - WrongOrigin: GenericPalletError; - - /** - * The provided signature is incorrect. - **/ - WrongSignature: GenericPalletError; - - /** - * The provided metadata might be too long. - **/ - IncorrectMetadata: GenericPalletError; - - /** - * Can't set more attributes per one call. - **/ - MaxAttributesLimitReached: GenericPalletError; - - /** - * The provided namespace isn't supported in this call. - **/ - WrongNamespace: GenericPalletError; - - /** - * Can't delete non-empty collections. - **/ - CollectionNotEmpty: GenericPalletError; - - /** - * The witness data should be provided. - **/ - WitnessRequired: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ForeignAssets`'s errors - **/ - foreignAssets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PoolAssets`'s errors - **/ - poolAssets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `AssetConversion`'s errors - **/ - assetConversion: { - /** - * Provided asset pair is not supported for pool. - **/ - InvalidAssetPair: GenericPalletError; - - /** - * Pool already exists. - **/ - PoolExists: GenericPalletError; - - /** - * Desired amount can't be zero. - **/ - WrongDesiredAmount: GenericPalletError; - - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - AmountOneLessThanMinimal: GenericPalletError; - - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - AmountTwoLessThanMinimal: GenericPalletError; - - /** - * Reserve needs to always be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - ReserveLeftLessThanMinimal: GenericPalletError; - - /** - * Desired amount can't be equal to the pool reserve. - **/ - AmountOutTooHigh: GenericPalletError; - - /** - * The pool doesn't exist. - **/ - PoolNotFound: GenericPalletError; - - /** - * An overflow happened. - **/ - Overflow: GenericPalletError; - - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - AssetOneDepositDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - AssetTwoDepositDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - AssetOneWithdrawalDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - AssetTwoWithdrawalDidNotMeetMinimum: GenericPalletError; - - /** - * Optimal calculated amount is less than desired. - **/ - OptimalAmountLessThanDesired: GenericPalletError; - - /** - * Insufficient liquidity minted. - **/ - InsufficientLiquidityMinted: GenericPalletError; - - /** - * Requested liquidity can't be zero. - **/ - ZeroLiquidity: GenericPalletError; - - /** - * Amount can't be zero. - **/ - ZeroAmount: GenericPalletError; - - /** - * Calculated amount out is less than provided minimum amount. - **/ - ProvidedMinimumNotSufficientForSwap: GenericPalletError; - - /** - * Provided maximum amount is not sufficient for swap. - **/ - ProvidedMaximumNotSufficientForSwap: GenericPalletError; - - /** - * The provided path must consists of 2 assets at least. - **/ - InvalidPath: GenericPalletError; - - /** - * The provided path must consists of unique assets. - **/ - NonUniquePath: GenericPalletError; - - /** - * It was not possible to get or increment the Id of the pool. - **/ - IncorrectPoolAssetId: GenericPalletError; - - /** - * The destination account cannot exist with the swapped funds. - **/ - BelowMinimum: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; -} diff --git a/packages/chaintypes/src/polkadotAssetHub/events.d.ts b/packages/chaintypes/src/polkadotAssetHub/events.d.ts deleted file mode 100644 index 045f8d3..0000000 --- a/packages/chaintypes/src/polkadotAssetHub/events.d.ts +++ /dev/null @@ -1,2414 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types'; -import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result, Bytes, Permill } from 'dedot/codecs'; -import type { - SpWeightsWeightV2Weight, - FrameSupportTokensMiscBalanceStatus, - StagingXcmV3MultilocationMultiLocation, - StagingXcmV4TraitsOutcome, - StagingXcmV4Location, - StagingXcmV4Xcm, - StagingXcmV4Response, - XcmVersionedAssets, - StagingXcmV4AssetAssets, - XcmV3TraitsError, - XcmVersionedLocation, - CumulusPrimitivesCoreAggregateMessageOrigin, - FrameSupportMessagesProcessMessageError, - PalletMultisigTimepoint, - AssetHubPolkadotRuntimeProxyType, - PalletNftsAttributeNamespace, - PalletNftsPriceWithDirection, - PalletNftsPalletAttributes, -} from './types'; - -export interface ChainEvents extends GenericChainEvents { - /** - * Pallet `System`'s events - **/ - system: { - /** - * An extrinsic completed successfully. - **/ - ExtrinsicSuccess: GenericPalletEvent; - - /** - * An extrinsic failed. - **/ - ExtrinsicFailed: GenericPalletEvent< - Rv, - 'System', - 'ExtrinsicFailed', - { dispatchError: DispatchError; dispatchInfo: DispatchInfo } - >; - - /** - * `:code` was updated. - **/ - CodeUpdated: GenericPalletEvent; - - /** - * A new account was created. - **/ - NewAccount: GenericPalletEvent; - - /** - * An account was reaped. - **/ - KilledAccount: GenericPalletEvent; - - /** - * On on-chain remark happened. - **/ - Remarked: GenericPalletEvent; - - /** - * An upgrade was authorized. - **/ - UpgradeAuthorized: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ParachainSystem`'s events - **/ - parachainSystem: { - /** - * The validation function has been scheduled to apply. - **/ - ValidationFunctionStored: GenericPalletEvent; - - /** - * The validation function was applied as of the contained relay chain block number. - **/ - ValidationFunctionApplied: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'ValidationFunctionApplied', - { relayChainBlockNum: number } - >; - - /** - * The relay-chain aborted the upgrade process. - **/ - ValidationFunctionDiscarded: GenericPalletEvent; - - /** - * Some downward messages have been received and will be processed. - **/ - DownwardMessagesReceived: GenericPalletEvent; - - /** - * Downward messages were processed using the given weight. - **/ - DownwardMessagesProcessed: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'DownwardMessagesProcessed', - { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } - >; - - /** - * An upward message was sent to the relay chain. - **/ - UpwardMessageSent: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'UpwardMessageSent', - { messageHash?: FixedBytes<32> | undefined } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Balances`'s events - **/ - balances: { - /** - * An account was created with some free balance. - **/ - Endowed: GenericPalletEvent; - - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - DustLost: GenericPalletEvent; - - /** - * Transfer succeeded. - **/ - Transfer: GenericPalletEvent; - - /** - * A balance was set by root. - **/ - BalanceSet: GenericPalletEvent; - - /** - * Some balance was reserved (moved from free to reserved). - **/ - Reserved: GenericPalletEvent; - - /** - * Some balance was unreserved (moved from reserved to free). - **/ - Unreserved: GenericPalletEvent; - - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - ReserveRepatriated: GenericPalletEvent< - Rv, - 'Balances', - 'ReserveRepatriated', - { from: AccountId32; to: AccountId32; amount: bigint; destinationStatus: FrameSupportTokensMiscBalanceStatus } - >; - - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - Deposit: GenericPalletEvent; - - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - Withdraw: GenericPalletEvent; - - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - Slashed: GenericPalletEvent; - - /** - * Some amount was minted into an account. - **/ - Minted: GenericPalletEvent; - - /** - * Some amount was burned from an account. - **/ - Burned: GenericPalletEvent; - - /** - * Some amount was suspended from an account (it can be restored later). - **/ - Suspended: GenericPalletEvent; - - /** - * Some amount was restored into an account. - **/ - Restored: GenericPalletEvent; - - /** - * An account was upgraded. - **/ - Upgraded: GenericPalletEvent; - - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - Issued: GenericPalletEvent; - - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - Rescinded: GenericPalletEvent; - - /** - * Some balance was locked. - **/ - Locked: GenericPalletEvent; - - /** - * Some balance was unlocked. - **/ - Unlocked: GenericPalletEvent; - - /** - * Some balance was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some balance was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * The `TotalIssuance` was forcefully changed. - **/ - TotalIssuanceForced: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `TransactionPayment`'s events - **/ - transactionPayment: { - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - TransactionFeePaid: GenericPalletEvent< - Rv, - 'TransactionPayment', - 'TransactionFeePaid', - { who: AccountId32; actualFee: bigint; tip: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetTxPayment`'s events - **/ - assetTxPayment: { - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who` in an asset `asset_id`. - **/ - AssetTxFeePaid: GenericPalletEvent< - Rv, - 'AssetTxPayment', - 'AssetTxFeePaid', - { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * A swap of the refund in native currency back to asset failed. - **/ - AssetRefundFailed: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Vesting`'s events - **/ - vesting: { - /** - * The amount vested has been updated. This could indicate a change in funds available. - * The balance given is the amount which is left unvested (and thus locked). - **/ - VestingUpdated: GenericPalletEvent; - - /** - * An \[account\] has become fully vested. - **/ - VestingCompleted: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CollatorSelection`'s events - **/ - collatorSelection: { - /** - * New Invulnerables were set. - **/ - NewInvulnerables: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewInvulnerables', - { invulnerables: Array } - >; - - /** - * A new Invulnerable was added. - **/ - InvulnerableAdded: GenericPalletEvent; - - /** - * An Invulnerable was removed. - **/ - InvulnerableRemoved: GenericPalletEvent; - - /** - * The number of desired candidates was set. - **/ - NewDesiredCandidates: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewDesiredCandidates', - { desiredCandidates: number } - >; - - /** - * The candidacy bond was set. - **/ - NewCandidacyBond: GenericPalletEvent; - - /** - * A new candidate joined. - **/ - CandidateAdded: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateAdded', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * Bond of a candidate updated. - **/ - CandidateBondUpdated: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateBondUpdated', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * A candidate was removed. - **/ - CandidateRemoved: GenericPalletEvent; - - /** - * An account was replaced in the candidate list by another one. - **/ - CandidateReplaced: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateReplaced', - { old: AccountId32; new: AccountId32; deposit: bigint } - >; - - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - InvalidInvulnerableSkipped: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'InvalidInvulnerableSkipped', - { accountId: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Session`'s events - **/ - session: { - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - NewSession: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `XcmpQueue`'s events - **/ - xcmpQueue: { - /** - * An HRMP message was sent to a sibling parachain. - **/ - XcmpMessageSent: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PolkadotXcm`'s events - **/ - polkadotXcm: { - /** - * Execution of an XCM message was attempted. - **/ - Attempted: GenericPalletEvent; - - /** - * A XCM message was sent. - **/ - Sent: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Sent', - { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - } - >; - - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - UnexpectedResponse: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'UnexpectedResponse', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - ResponseReady: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'ResponseReady', - { queryId: bigint; response: StagingXcmV4Response } - >; - - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - Notified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Notified', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - NotifyOverweight: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyOverweight', - { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - } - >; - - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - NotifyDispatchError: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDispatchError', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - NotifyDecodeFailed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDecodeFailed', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidResponder: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponder', - { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined } - >; - - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidResponderVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponderVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Received query response has been read and removed. - **/ - ResponseTaken: GenericPalletEvent; - - /** - * Some assets have been placed in an asset trap. - **/ - AssetsTrapped: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsTrapped', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - VersionChangeNotified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionChangeNotified', - { destination: StagingXcmV4Location; result: number; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - SupportedVersionChanged: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'SupportedVersionChanged', - { location: StagingXcmV4Location; version: number } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - NotifyTargetSendFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetSendFail', - { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - NotifyTargetMigrationFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetMigrationFail', - { location: XcmVersionedLocation; queryId: bigint } - >; - - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidQuerierVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerierVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidQuerier: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerier', - { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - } - >; - - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - VersionNotifyStarted: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyStarted', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - VersionNotifyRequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyRequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - VersionNotifyUnrequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyUnrequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - FeesPaid: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'FeesPaid', - { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } - >; - - /** - * Some assets have been claimed from an asset trap - **/ - AssetsClaimed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsClaimed', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * A XCM version migration finished. - **/ - VersionMigrationFinished: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CumulusXcm`'s events - **/ - cumulusXcm: { - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - InvalidFormat: GenericPalletEvent>; - - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - UnsupportedVersion: GenericPalletEvent>; - - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - ExecutedDownward: GenericPalletEvent< - Rv, - 'CumulusXcm', - 'ExecutedDownward', - [FixedBytes<32>, StagingXcmV4TraitsOutcome] - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `MessageQueue`'s events - **/ - messageQueue: { - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - ProcessingFailed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'ProcessingFailed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - } - >; - - /** - * Message is processed. - **/ - Processed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'Processed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - } - >; - - /** - * Message placed in overweight queue. - **/ - OverweightEnqueued: GenericPalletEvent< - Rv, - 'MessageQueue', - 'OverweightEnqueued', - { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - } - >; - - /** - * This page was reaped. - **/ - PageReaped: GenericPalletEvent< - Rv, - 'MessageQueue', - 'PageReaped', - { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Utility`'s events - **/ - utility: { - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - BatchInterrupted: GenericPalletEvent; - - /** - * Batch of dispatches completed fully with no error. - **/ - BatchCompleted: GenericPalletEvent; - - /** - * Batch of dispatches completed but has errors. - **/ - BatchCompletedWithErrors: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - ItemCompleted: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with error. - **/ - ItemFailed: GenericPalletEvent; - - /** - * A call was dispatched. - **/ - DispatchedAs: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Multisig`'s events - **/ - multisig: { - /** - * A new multisig operation has begun. - **/ - NewMultisig: GenericPalletEvent< - Rv, - 'Multisig', - 'NewMultisig', - { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been approved by someone. - **/ - MultisigApproval: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigApproval', - { approving: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been executed. - **/ - MultisigExecuted: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigExecuted', - { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - } - >; - - /** - * A multisig operation has been cancelled. - **/ - MultisigCancelled: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigCancelled', - { cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Proxy`'s events - **/ - proxy: { - /** - * A proxy was executed correctly, with the given. - **/ - ProxyExecuted: GenericPalletEvent }>; - - /** - * A pure account has been created by new proxy with given - * disambiguation index and proxy type. - **/ - PureCreated: GenericPalletEvent< - Rv, - 'Proxy', - 'PureCreated', - { pure: AccountId32; who: AccountId32; proxyType: AssetHubPolkadotRuntimeProxyType; disambiguationIndex: number } - >; - - /** - * An announcement was placed to make a call in the future. - **/ - Announced: GenericPalletEvent; - - /** - * A proxy was added. - **/ - ProxyAdded: GenericPalletEvent< - Rv, - 'Proxy', - 'ProxyAdded', - { delegator: AccountId32; delegatee: AccountId32; proxyType: AssetHubPolkadotRuntimeProxyType; delay: number } - >; - - /** - * A proxy was removed. - **/ - ProxyRemoved: GenericPalletEvent< - Rv, - 'Proxy', - 'ProxyRemoved', - { delegator: AccountId32; delegatee: AccountId32; proxyType: AssetHubPolkadotRuntimeProxyType; delay: number } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Assets`'s events - **/ - assets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Assets', - 'Transferred', - { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Assets', - 'TeamChanged', - { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'Assets', - 'AccountsDestroyed', - { assetId: number; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovalsDestroyed', - { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'Assets', - 'MetadataSet', - { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovedTransfer', - { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovalCancelled', - { assetId: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'Assets', - 'TransferredApproved', - { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'Assets', - 'AssetMinBalanceChanged', - { assetId: number; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Uniques`'s events - **/ - uniques: { - /** - * A `collection` was created. - **/ - Created: GenericPalletEvent< - Rv, - 'Uniques', - 'Created', - { collection: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * A `collection` was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * A `collection` was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * An `item` was issued. - **/ - Issued: GenericPalletEvent; - - /** - * An `item` was transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Uniques', - 'Transferred', - { collection: number; item: number; from: AccountId32; to: AccountId32 } - >; - - /** - * An `item` was destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * Some `item` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some `item` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some `collection` was frozen. - **/ - CollectionFrozen: GenericPalletEvent; - - /** - * Some `collection` was thawed. - **/ - CollectionThawed: GenericPalletEvent; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Uniques', - 'TeamChanged', - { collection: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'Uniques', - 'ApprovedTransfer', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Uniques', - 'ApprovalCancelled', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * A `collection` has had its attributes changed by the `Force` origin. - **/ - ItemStatusChanged: GenericPalletEvent; - - /** - * New metadata has been set for a `collection`. - **/ - CollectionMetadataSet: GenericPalletEvent< - Rv, - 'Uniques', - 'CollectionMetadataSet', - { collection: number; data: Bytes; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for a `collection`. - **/ - CollectionMetadataCleared: GenericPalletEvent; - - /** - * New metadata has been set for an item. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'Uniques', - 'MetadataSet', - { collection: number; item: number; data: Bytes; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an item. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * Metadata has been cleared for an item. - **/ - Redeposited: GenericPalletEvent< - Rv, - 'Uniques', - 'Redeposited', - { collection: number; successfulItems: Array } - >; - - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - AttributeSet: GenericPalletEvent< - Rv, - 'Uniques', - 'AttributeSet', - { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } - >; - - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - AttributeCleared: GenericPalletEvent< - Rv, - 'Uniques', - 'AttributeCleared', - { collection: number; maybeItem?: number | undefined; key: Bytes } - >; - - /** - * Ownership acceptance has changed for an account. - **/ - OwnershipAcceptanceChanged: GenericPalletEvent< - Rv, - 'Uniques', - 'OwnershipAcceptanceChanged', - { who: AccountId32; maybeCollection?: number | undefined } - >; - - /** - * Max supply has been set for a collection. - **/ - CollectionMaxSupplySet: GenericPalletEvent< - Rv, - 'Uniques', - 'CollectionMaxSupplySet', - { collection: number; maxSupply: number } - >; - - /** - * The price was set for the instance. - **/ - ItemPriceSet: GenericPalletEvent< - Rv, - 'Uniques', - 'ItemPriceSet', - { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined } - >; - - /** - * The price for the instance was removed. - **/ - ItemPriceRemoved: GenericPalletEvent; - - /** - * An item was bought. - **/ - ItemBought: GenericPalletEvent< - Rv, - 'Uniques', - 'ItemBought', - { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Nfts`'s events - **/ - nfts: { - /** - * A `collection` was created. - **/ - Created: GenericPalletEvent< - Rv, - 'Nfts', - 'Created', - { collection: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * A `collection` was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * A `collection` was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * An `item` was issued. - **/ - Issued: GenericPalletEvent; - - /** - * An `item` was transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Nfts', - 'Transferred', - { collection: number; item: number; from: AccountId32; to: AccountId32 } - >; - - /** - * An `item` was destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * An `item` became non-transferable. - **/ - ItemTransferLocked: GenericPalletEvent; - - /** - * An `item` became transferable. - **/ - ItemTransferUnlocked: GenericPalletEvent; - - /** - * `item` metadata or attributes were locked. - **/ - ItemPropertiesLocked: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemPropertiesLocked', - { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean } - >; - - /** - * Some `collection` was locked. - **/ - CollectionLocked: GenericPalletEvent; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Nfts', - 'TeamChanged', - { - collection: number; - issuer?: AccountId32 | undefined; - admin?: AccountId32 | undefined; - freezer?: AccountId32 | undefined; - } - >; - - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - TransferApproved: GenericPalletEvent< - Rv, - 'Nfts', - 'TransferApproved', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32; deadline?: number | undefined } - >; - - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'ApprovalCancelled', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * All approvals of an item got cancelled. - **/ - AllApprovalsCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'AllApprovalsCancelled', - { collection: number; item: number; owner: AccountId32 } - >; - - /** - * A `collection` has had its config changed by the `Force` origin. - **/ - CollectionConfigChanged: GenericPalletEvent; - - /** - * New metadata has been set for a `collection`. - **/ - CollectionMetadataSet: GenericPalletEvent; - - /** - * Metadata has been cleared for a `collection`. - **/ - CollectionMetadataCleared: GenericPalletEvent; - - /** - * New metadata has been set for an item. - **/ - ItemMetadataSet: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemMetadataSet', - { collection: number; item: number; data: Bytes } - >; - - /** - * Metadata has been cleared for an item. - **/ - ItemMetadataCleared: GenericPalletEvent; - - /** - * The deposit for a set of `item`s within a `collection` has been updated. - **/ - Redeposited: GenericPalletEvent }>; - - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - AttributeSet: GenericPalletEvent< - Rv, - 'Nfts', - 'AttributeSet', - { - collection: number; - maybeItem?: number | undefined; - key: Bytes; - value: Bytes; - namespace: PalletNftsAttributeNamespace; - } - >; - - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - AttributeCleared: GenericPalletEvent< - Rv, - 'Nfts', - 'AttributeCleared', - { collection: number; maybeItem?: number | undefined; key: Bytes; namespace: PalletNftsAttributeNamespace } - >; - - /** - * A new approval to modify item attributes was added. - **/ - ItemAttributesApprovalAdded: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemAttributesApprovalAdded', - { collection: number; item: number; delegate: AccountId32 } - >; - - /** - * A new approval to modify item attributes was removed. - **/ - ItemAttributesApprovalRemoved: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemAttributesApprovalRemoved', - { collection: number; item: number; delegate: AccountId32 } - >; - - /** - * Ownership acceptance has changed for an account. - **/ - OwnershipAcceptanceChanged: GenericPalletEvent< - Rv, - 'Nfts', - 'OwnershipAcceptanceChanged', - { who: AccountId32; maybeCollection?: number | undefined } - >; - - /** - * Max supply has been set for a collection. - **/ - CollectionMaxSupplySet: GenericPalletEvent< - Rv, - 'Nfts', - 'CollectionMaxSupplySet', - { collection: number; maxSupply: number } - >; - - /** - * Mint settings for a collection had changed. - **/ - CollectionMintSettingsUpdated: GenericPalletEvent< - Rv, - 'Nfts', - 'CollectionMintSettingsUpdated', - { collection: number } - >; - - /** - * Event gets emitted when the `NextCollectionId` gets incremented. - **/ - NextCollectionIdIncremented: GenericPalletEvent< - Rv, - 'Nfts', - 'NextCollectionIdIncremented', - { nextId?: number | undefined } - >; - - /** - * The price was set for the item. - **/ - ItemPriceSet: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemPriceSet', - { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined } - >; - - /** - * The price for the item was removed. - **/ - ItemPriceRemoved: GenericPalletEvent; - - /** - * An item was bought. - **/ - ItemBought: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemBought', - { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 } - >; - - /** - * A tip was sent. - **/ - TipSent: GenericPalletEvent< - Rv, - 'Nfts', - 'TipSent', - { collection: number; item: number; sender: AccountId32; receiver: AccountId32; amount: bigint } - >; - - /** - * An `item` swap intent was created. - **/ - SwapCreated: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapCreated', - { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * The swap was cancelled. - **/ - SwapCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapCancelled', - { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * The swap has been claimed. - **/ - SwapClaimed: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapClaimed', - { - sentCollection: number; - sentItem: number; - sentItemOwner: AccountId32; - receivedCollection: number; - receivedItem: number; - receivedItemOwner: AccountId32; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * New attributes have been set for an `item` of the `collection`. - **/ - PreSignedAttributesSet: GenericPalletEvent< - Rv, - 'Nfts', - 'PreSignedAttributesSet', - { collection: number; item: number; namespace: PalletNftsAttributeNamespace } - >; - - /** - * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` - * within that `collection`. - **/ - PalletAttributeSet: GenericPalletEvent< - Rv, - 'Nfts', - 'PalletAttributeSet', - { collection: number; item?: number | undefined; attribute: PalletNftsPalletAttributes; value: Bytes } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ForeignAssets`'s events - **/ - foreignAssets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Created', - { assetId: StagingXcmV3MultilocationMultiLocation; creator: AccountId32; owner: AccountId32 } - >; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Issued', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; amount: bigint } - >; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Transferred', - { assetId: StagingXcmV3MultilocationMultiLocation; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Burned', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; balance: bigint } - >; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'TeamChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'OwnerChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } - >; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Frozen', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Thawed', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetFrozen', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetThawed', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AccountsDestroyed', - { assetId: StagingXcmV3MultilocationMultiLocation; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovalsDestroyed', - { assetId: StagingXcmV3MultilocationMultiLocation; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'DestructionStarted', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Destroyed', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ForceCreated', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } - >; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'MetadataSet', - { - assetId: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'MetadataCleared', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovedTransfer', - { assetId: StagingXcmV3MultilocationMultiLocation; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovalCancelled', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'TransferredApproved', - { - assetId: StagingXcmV3MultilocationMultiLocation; - owner: AccountId32; - delegate: AccountId32; - destination: AccountId32; - amount: bigint; - } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetStatusChanged', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetMinBalanceChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Touched', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; depositor: AccountId32 } - >; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Blocked', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PoolAssets`'s events - **/ - poolAssets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Created', - { assetId: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Transferred', - { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'PoolAssets', - 'TeamChanged', - { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'PoolAssets', - 'AccountsDestroyed', - { assetId: number; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovalsDestroyed', - { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'PoolAssets', - 'MetadataSet', - { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovedTransfer', - { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovalCancelled', - { assetId: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'PoolAssets', - 'TransferredApproved', - { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'PoolAssets', - 'AssetMinBalanceChanged', - { assetId: number; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Touched', - { assetId: number; who: AccountId32; depositor: AccountId32 } - >; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetConversion`'s events - **/ - assetConversion: { - /** - * A successful call of the `CretaPool` extrinsic will create this event. - **/ - PoolCreated: GenericPalletEvent< - Rv, - 'AssetConversion', - 'PoolCreated', - { - /** - * The account that created the pool. - **/ - creator: AccountId32; - - /** - * The pool id associated with the pool. Note that the order of the assets may not be - * the same as the order specified in the create pool extrinsic. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account ID of the pool. - **/ - poolAccount: AccountId32; - - /** - * The id of the liquidity tokens that will be minted when assets are added to this - * pool. - **/ - lpToken: number; - } - >; - - /** - * A successful call of the `AddLiquidity` extrinsic will create this event. - **/ - LiquidityAdded: GenericPalletEvent< - Rv, - 'AssetConversion', - 'LiquidityAdded', - { - /** - * The account that the liquidity was taken from. - **/ - who: AccountId32; - - /** - * The account that the liquidity tokens were minted to. - **/ - mintTo: AccountId32; - - /** - * The pool id of the pool that the liquidity was added to. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was added to the pool. - **/ - amount1Provided: bigint; - - /** - * The amount of the second asset that was added to the pool. - **/ - amount2Provided: bigint; - - /** - * The id of the lp token that was minted. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were minted of that id. - **/ - lpTokenMinted: bigint; - } - >; - - /** - * A successful call of the `RemoveLiquidity` extrinsic will create this event. - **/ - LiquidityRemoved: GenericPalletEvent< - Rv, - 'AssetConversion', - 'LiquidityRemoved', - { - /** - * The account that the liquidity tokens were burned from. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - withdrawTo: AccountId32; - - /** - * The pool id that the liquidity was removed from. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was removed from the pool. - **/ - amount1: bigint; - - /** - * The amount of the second asset that was removed from the pool. - **/ - amount2: bigint; - - /** - * The id of the lp token that was burned. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were burned of that id. - **/ - lpTokenBurned: bigint; - - /** - * Liquidity withdrawal fee (%). - **/ - withdrawalFee: Permill; - } - >; - - /** - * Assets have been converted from one to another. Both `SwapExactTokenForToken` - * and `SwapTokenForExactToken` will generate this event. - **/ - SwapExecuted: GenericPalletEvent< - Rv, - 'AssetConversion', - 'SwapExecuted', - { - /** - * Which account was the instigator of the swap. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - sendTo: AccountId32; - - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - } - >; - - /** - * Assets have been converted from one to another. - **/ - SwapCreditExecuted: GenericPalletEvent< - Rv, - 'AssetConversion', - 'SwapCreditExecuted', - { - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; -} diff --git a/packages/chaintypes/src/polkadotAssetHub/index.d.ts b/packages/chaintypes/src/polkadotAssetHub/index.d.ts deleted file mode 100644 index 4b3cb71..0000000 --- a/packages/chaintypes/src/polkadotAssetHub/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by dedot cli - -import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types'; -import { ChainConsts } from './consts'; -import { ChainStorage } from './query'; -import { ChainJsonRpcApis } from './json-rpc'; -import { ChainErrors } from './errors'; -import { ChainEvents } from './events'; -import { RuntimeApis } from './runtime'; -import { ChainTx } from './tx'; - -export * from './types'; - -export interface VersionedPolkadotAssetHubApi extends GenericSubstrateApi { - rpc: ChainJsonRpcApis; - consts: ChainConsts; - query: ChainStorage; - errors: ChainErrors; - events: ChainEvents; - call: RuntimeApis; - tx: ChainTx; -} - -export interface PolkadotAssetHubApi { - legacy: VersionedPolkadotAssetHubApi; - v2: VersionedPolkadotAssetHubApi; -} diff --git a/packages/chaintypes/src/polkadotAssetHub/json-rpc.d.ts b/packages/chaintypes/src/polkadotAssetHub/json-rpc.d.ts deleted file mode 100644 index d5e1288..0000000 --- a/packages/chaintypes/src/polkadotAssetHub/json-rpc.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by dedot cli - -import type { GenericJsonRpcApis, RpcVersion } from 'dedot/types'; -import type { JsonRpcApis } from 'dedot/types/json-rpc'; - -export type ChainJsonRpcApis = Pick< - JsonRpcApis, - | 'archive_unstable_body' - | 'archive_unstable_call' - | 'archive_unstable_finalizedHeight' - | 'archive_unstable_genesisHash' - | 'archive_unstable_hashByHeight' - | 'archive_unstable_header' - | 'archive_unstable_storage' - | 'author_hasKey' - | 'author_hasSessionKeys' - | 'author_insertKey' - | 'author_pendingExtrinsics' - | 'author_removeExtrinsic' - | 'author_rotateKeys' - | 'author_submitAndWatchExtrinsic' - | 'author_submitExtrinsic' - | 'chainHead_v1_body' - | 'chainHead_v1_call' - | 'chainHead_v1_continue' - | 'chainHead_v1_follow' - | 'chainHead_v1_header' - | 'chainHead_v1_stopOperation' - | 'chainHead_v1_storage' - | 'chainHead_v1_unpin' - | 'chain_getBlock' - | 'chain_getBlockHash' - | 'chain_getFinalizedHead' - | 'chain_getHeader' - | 'chain_subscribeAllHeads' - | 'chain_subscribeFinalizedHeads' - | 'chain_subscribeNewHeads' - | 'childstate_getKeys' - | 'childstate_getKeysPaged' - | 'childstate_getStorage' - | 'childstate_getStorageEntries' - | 'childstate_getStorageHash' - | 'childstate_getStorageSize' - | 'dev_getBlockStats' - | 'offchain_localStorageGet' - | 'offchain_localStorageSet' - | 'payment_queryFeeDetails' - | 'payment_queryInfo' - | 'rpc_methods' - | 'state_call' - | 'state_getChildReadProof' - | 'state_getKeys' - | 'state_getKeysPaged' - | 'state_getMetadata' - | 'state_getPairs' - | 'state_getReadProof' - | 'state_getRuntimeVersion' - | 'state_getStorage' - | 'state_getStorageHash' - | 'state_getStorageSize' - | 'state_queryStorage' - | 'state_queryStorageAt' - | 'state_subscribeRuntimeVersion' - | 'state_subscribeStorage' - | 'state_traceBlock' - | 'state_trieMigrationStatus' - | 'system_accountNextIndex' - | 'system_addLogFilter' - | 'system_addReservedPeer' - | 'system_chain' - | 'system_chainType' - | 'system_dryRun' - | 'system_health' - | 'system_localListenAddresses' - | 'system_localPeerId' - | 'system_name' - | 'system_nodeRoles' - | 'system_peers' - | 'system_properties' - | 'system_removeReservedPeer' - | 'system_reservedPeers' - | 'system_resetLogFilter' - | 'system_syncState' - | 'system_unstable_networkState' - | 'system_version' - | 'transactionWatch_v1_submitAndWatch' - | 'transaction_v1_broadcast' - | 'transaction_v1_stop' -> & - GenericJsonRpcApis; diff --git a/packages/chaintypes/src/polkadotAssetHub/query.d.ts b/packages/chaintypes/src/polkadotAssetHub/query.d.ts deleted file mode 100644 index dc7c135..0000000 --- a/packages/chaintypes/src/polkadotAssetHub/query.d.ts +++ /dev/null @@ -1,1655 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types'; -import type { - AccountId32, - AccountId32Like, - H256, - Bytes, - Digest, - Phase, - FixedU128, - BytesLike, - FixedBytes, -} from 'dedot/codecs'; -import type { - FrameSystemAccountInfo, - FrameSupportDispatchPerDispatchClass, - FrameSystemEventRecord, - FrameSystemLastRuntimeUpgradeInfo, - FrameSystemCodeUpgradeAuthorization, - CumulusPalletParachainSystemUnincludedSegmentAncestor, - CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, - PolkadotPrimitivesV6PersistedValidationData, - PolkadotPrimitivesV6UpgradeRestriction, - PolkadotPrimitivesV6UpgradeGoAhead, - SpTrieStorageProof, - CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, - PolkadotPrimitivesV6AbridgedHostConfiguration, - CumulusPrimitivesParachainInherentMessageQueueChain, - PolkadotParachainPrimitivesPrimitivesId, - PolkadotCorePrimitivesOutboundHrmpMessage, - SpWeightsWeightV2Weight, - PalletBalancesAccountData, - PalletBalancesBalanceLock, - PalletBalancesReserveData, - PalletBalancesIdAmount, - PalletBalancesIdAmount002, - PalletTransactionPaymentReleases, - PalletVestingVestingInfo, - PalletVestingReleases, - PalletCollatorSelectionCandidateInfo, - AssetHubPolkadotRuntimeSessionKeys, - SpCoreCryptoKeyTypeId, - SpConsensusAuraEd25519AppEd25519Public, - SpConsensusSlotsSlot, - CumulusPalletXcmpQueueOutboundChannelDetails, - CumulusPalletXcmpQueueQueueConfigData, - PalletXcmQueryStatus, - XcmVersionedLocation, - PalletXcmVersionMigrationStage, - PalletXcmRemoteLockedFungibleRecord, - XcmVersionedAssetId, - BpXcmBridgeHubRouterBridgeState, - PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin, - PalletMessageQueuePage, - PalletMultisigMultisig, - PalletProxyProxyDefinition, - PalletProxyAnnouncement, - PalletAssetsAssetDetails, - PalletAssetsAssetAccount, - PalletAssetsApproval, - PalletAssetsAssetMetadata, - PalletUniquesCollectionDetails, - PalletUniquesItemDetails, - PalletUniquesCollectionMetadata, - PalletUniquesItemMetadata, - PalletNftsCollectionDetails, - PalletNftsBitFlagsCollectionRole, - PalletNftsItemDetails, - PalletNftsCollectionMetadata, - PalletNftsItemMetadata, - PalletNftsAttributeDeposit, - PalletNftsAttributeNamespace, - PalletNftsPendingSwap, - PalletNftsCollectionConfig, - PalletNftsItemConfig, - StagingXcmV3MultilocationMultiLocation, - PalletAssetConversionPoolInfo, -} from './types'; - -export interface ChainStorage extends GenericChainStorage { - /** - * Pallet `System`'s storage queries - **/ - system: { - /** - * The full account information for a particular account ID. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery FrameSystemAccountInfo, AccountId32>; - - /** - * Total extrinsics count for the current block. - * - * @param {Callback =} callback - **/ - extrinsicCount: GenericStorageQuery number | undefined>; - - /** - * The current weight for the block. - * - * @param {Callback =} callback - **/ - blockWeight: GenericStorageQuery FrameSupportDispatchPerDispatchClass>; - - /** - * Total length (in bytes) for all extrinsics put together, for the current block. - * - * @param {Callback =} callback - **/ - allExtrinsicsLen: GenericStorageQuery number | undefined>; - - /** - * Map of block numbers to block hashes. - * - * @param {number} arg - * @param {Callback =} callback - **/ - blockHash: GenericStorageQuery H256, number>; - - /** - * Extrinsics data for the current block (maps an extrinsic's index to its data). - * - * @param {number} arg - * @param {Callback =} callback - **/ - extrinsicData: GenericStorageQuery Bytes, number>; - - /** - * The current block number being processed. Set by `execute_block`. - * - * @param {Callback =} callback - **/ - number: GenericStorageQuery number>; - - /** - * Hash of the previous block. - * - * @param {Callback =} callback - **/ - parentHash: GenericStorageQuery H256>; - - /** - * Digest of the current block, also part of the block header. - * - * @param {Callback =} callback - **/ - digest: GenericStorageQuery Digest>; - - /** - * Events deposited for the current block. - * - * NOTE: The item is unbound and should therefore never be read on chain. - * It could otherwise inflate the PoV size of a block. - * - * Events have a large in-memory size. Box the events to not go out-of-memory - * just in case someone still reads them from within the runtime. - * - * @param {Callback> =} callback - **/ - events: GenericStorageQuery Array>; - - /** - * The number of events in the `Events` list. - * - * @param {Callback =} callback - **/ - eventCount: GenericStorageQuery number>; - - /** - * Mapping between a topic (represented by T::Hash) and a vector of indexes - * of events in the `>` list. - * - * All topic vectors have deterministic storage locations depending on the topic. This - * allows light-clients to leverage the changes trie storage tracking mechanism and - * in case of changes fetch the list of events of interest. - * - * The value has the type `(BlockNumberFor, EventIndex)` because if we used only just - * the `EventIndex` then in case if the topic has the same contents on the next block - * no notification will be triggered thus the event might be lost. - * - * @param {H256} arg - * @param {Callback> =} callback - **/ - eventTopics: GenericStorageQuery Array<[number, number]>, H256>; - - /** - * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. - * - * @param {Callback =} callback - **/ - lastRuntimeUpgrade: GenericStorageQuery FrameSystemLastRuntimeUpgradeInfo | undefined>; - - /** - * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToU32RefCount: GenericStorageQuery boolean>; - - /** - * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False - * (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToTripleRefCount: GenericStorageQuery boolean>; - - /** - * The execution phase of the block. - * - * @param {Callback =} callback - **/ - executionPhase: GenericStorageQuery Phase | undefined>; - - /** - * `Some` if a code upgrade has been authorized. - * - * @param {Callback =} callback - **/ - authorizedUpgrade: GenericStorageQuery FrameSystemCodeUpgradeAuthorization | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainSystem`'s storage queries - **/ - parachainSystem: { - /** - * Latest included block descendants the runtime accepted. In other words, these are - * ancestors of the currently executing block which have not been included in the observed - * relay-chain state. - * - * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured - * in the pallet. - * - * @param {Callback> =} callback - **/ - unincludedSegment: GenericStorageQuery Array>; - - /** - * Storage field that keeps track of bandwidth used by the unincluded segment along with the - * latest HRMP watermark. Used for limiting the acceptance of new blocks with - * respect to relay chain constraints. - * - * @param {Callback =} callback - **/ - aggregatedUnincludedSegment: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined - >; - - /** - * In case of a scheduled upgrade, this storage field contains the validation code to be - * applied. - * - * As soon as the relay chain gives us the go-ahead signal, we will overwrite the - * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process - * with the new validation code. This concludes the upgrade process. - * - * @param {Callback =} callback - **/ - pendingValidationCode: GenericStorageQuery Bytes>; - - /** - * Validation code that is set by the parachain and is to be communicated to collator and - * consequently the relay-chain. - * - * This will be cleared in `on_initialize` of each new block if no other pallet already set - * the value. - * - * @param {Callback =} callback - **/ - newValidationCode: GenericStorageQuery Bytes | undefined>; - - /** - * The [`PersistedValidationData`] set for this block. - * This value is expected to be set only once per block and it's never stored - * in the trie. - * - * @param {Callback =} callback - **/ - validationData: GenericStorageQuery PolkadotPrimitivesV6PersistedValidationData | undefined>; - - /** - * Were the validation data set to notify the relay chain? - * - * @param {Callback =} callback - **/ - didSetValidationCode: GenericStorageQuery boolean>; - - /** - * The relay chain block number associated with the last parachain block. - * - * This is updated in `on_finalize`. - * - * @param {Callback =} callback - **/ - lastRelayChainBlockNumber: GenericStorageQuery number>; - - /** - * An option which indicates if the relay-chain restricts signalling a validation code upgrade. - * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced - * candidate will be invalid. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeRestrictionSignal: GenericStorageQuery PolkadotPrimitivesV6UpgradeRestriction | undefined>; - - /** - * Optional upgrade go-ahead signal from the relay-chain. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeGoAhead: GenericStorageQuery PolkadotPrimitivesV6UpgradeGoAhead | undefined>; - - /** - * The state proof for the last relay parent block. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relayStateProof: GenericStorageQuery SpTrieStorageProof | undefined>; - - /** - * The snapshot of some state related to messaging relevant to the current parachain as per - * the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relevantMessagingState: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined - >; - - /** - * The parachain host configuration that was obtained from the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - hostConfiguration: GenericStorageQuery PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>; - - /** - * The last downward message queue chain head we have observed. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback =} callback - **/ - lastDmqMqcHead: GenericStorageQuery CumulusPrimitivesParachainInherentMessageQueueChain>; - - /** - * The message queue chain heads we have observed per each channel incoming channel. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback> =} callback - **/ - lastHrmpMqcHeads: GenericStorageQuery< - Rv, - () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]> - >; - - /** - * Number of downward messages processed in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - processedDownwardMessages: GenericStorageQuery number>; - - /** - * HRMP watermark that was set in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - hrmpWatermark: GenericStorageQuery number>; - - /** - * HRMP messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - hrmpOutboundMessages: GenericStorageQuery Array>; - - /** - * Upward messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - upwardMessages: GenericStorageQuery Array>; - - /** - * Upward messages that are still pending and not yet send to the relay chain. - * - * @param {Callback> =} callback - **/ - pendingUpwardMessages: GenericStorageQuery Array>; - - /** - * The factor to multiply the base delivery fee by for UMP. - * - * @param {Callback =} callback - **/ - upwardDeliveryFeeFactor: GenericStorageQuery FixedU128>; - - /** - * The number of HRMP messages we observed in `on_initialize` and thus used that number for - * announcing the weight of `on_initialize` and `on_finalize`. - * - * @param {Callback =} callback - **/ - announcedHrmpMessagesPerCandidate: GenericStorageQuery number>; - - /** - * The weight we reserve at the beginning of the block for processing XCMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedXcmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * The weight we reserve at the beginning of the block for processing DMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedDmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * A custom head data that should be returned as result of `validate_block`. - * - * See `Pallet::set_custom_validation_head_data` for more information. - * - * @param {Callback =} callback - **/ - customValidationHeadData: GenericStorageQuery Bytes | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Timestamp`'s storage queries - **/ - timestamp: { - /** - * The current time for the current block. - * - * @param {Callback =} callback - **/ - now: GenericStorageQuery bigint>; - - /** - * Whether the timestamp has been updated in this block. - * - * This value is updated to `true` upon successful submission of a timestamp by a node. - * It is then checked at the end of each block execution in the `on_finalize` hook. - * - * @param {Callback =} callback - **/ - didUpdate: GenericStorageQuery boolean>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainInfo`'s storage queries - **/ - parachainInfo: { - /** - * - * @param {Callback =} callback - **/ - parachainId: GenericStorageQuery PolkadotParachainPrimitivesPrimitivesId>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Balances`'s storage queries - **/ - balances: { - /** - * The total units issued in the system. - * - * @param {Callback =} callback - **/ - totalIssuance: GenericStorageQuery bigint>; - - /** - * The total units of outstanding deactivated balance in the system. - * - * @param {Callback =} callback - **/ - inactiveIssuance: GenericStorageQuery bigint>; - - /** - * The Balances pallet example of storing the balance of an account. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> - * } - * ``` - * - * You can also store the balance of an account in the `System` pallet. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = System - * } - * ``` - * - * But this comes with tradeoffs, storing account balances in the system pallet stores - * `frame_system` data alongside the account data contrary to storing account balances in the - * `Balances` pallet, which uses a `StorageMap` to store balances data only. - * NOTE: This is only used in the case that this pallet is used to store balances. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery PalletBalancesAccountData, AccountId32>; - - /** - * Any liquidity locks on some account balances. - * NOTE: Should only be accessed when setting, changing and freeing a lock. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - locks: GenericStorageQuery Array, AccountId32>; - - /** - * Named reserves on some account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - reserves: GenericStorageQuery Array, AccountId32>; - - /** - * Holds on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - holds: GenericStorageQuery Array, AccountId32>; - - /** - * Freeze locks on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery Array, AccountId32>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `TransactionPayment`'s storage queries - **/ - transactionPayment: { - /** - * - * @param {Callback =} callback - **/ - nextFeeMultiplier: GenericStorageQuery FixedU128>; - - /** - * - * @param {Callback =} callback - **/ - storageVersion: GenericStorageQuery PalletTransactionPaymentReleases>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Vesting`'s storage queries - **/ - vesting: { - /** - * Information regarding the vesting of a given account. - * - * @param {AccountId32Like} arg - * @param {Callback | undefined> =} callback - **/ - vesting: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => Array | undefined, - AccountId32 - >; - - /** - * Storage version of the pallet. - * - * New networks start with latest version, as determined by the genesis build. - * - * @param {Callback =} callback - **/ - storageVersion: GenericStorageQuery PalletVestingReleases>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Authorship`'s storage queries - **/ - authorship: { - /** - * Author of current block. - * - * @param {Callback =} callback - **/ - author: GenericStorageQuery AccountId32 | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `CollatorSelection`'s storage queries - **/ - collatorSelection: { - /** - * The invulnerable, permissioned collators. This list must be sorted. - * - * @param {Callback> =} callback - **/ - invulnerables: GenericStorageQuery Array>; - - /** - * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be - * mutually exclusive. - * - * This list is sorted in ascending order by deposit and when the deposits are equal, the least - * recently updated is considered greater. - * - * @param {Callback> =} callback - **/ - candidateList: GenericStorageQuery Array>; - - /** - * Last block authored by collator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - lastAuthoredBlock: GenericStorageQuery number, AccountId32>; - - /** - * Desired number of candidates. - * - * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct. - * - * @param {Callback =} callback - **/ - desiredCandidates: GenericStorageQuery number>; - - /** - * Fixed amount to deposit to become a collator. - * - * When a collator calls `leave_intent` they immediately receive the deposit back. - * - * @param {Callback =} callback - **/ - candidacyBond: GenericStorageQuery bigint>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Session`'s storage queries - **/ - session: { - /** - * The current set of validators. - * - * @param {Callback> =} callback - **/ - validators: GenericStorageQuery Array>; - - /** - * Current index of the session. - * - * @param {Callback =} callback - **/ - currentIndex: GenericStorageQuery number>; - - /** - * True if the underlying economic identities or weighting behind the validators - * has changed in the queued validator set. - * - * @param {Callback =} callback - **/ - queuedChanged: GenericStorageQuery boolean>; - - /** - * The queued keys for the next session. When the next session begins, these keys - * will be used to determine the validator's session keys. - * - * @param {Callback> =} callback - **/ - queuedKeys: GenericStorageQuery Array<[AccountId32, AssetHubPolkadotRuntimeSessionKeys]>>; - - /** - * Indices of disabled validators. - * - * The vec is always kept sorted so that we can find whether a given validator is - * disabled using binary search. It gets cleared when `on_session_ending` returns - * a new set of identities. - * - * @param {Callback> =} callback - **/ - disabledValidators: GenericStorageQuery Array>; - - /** - * The next session keys for a validator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - nextKeys: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => AssetHubPolkadotRuntimeSessionKeys | undefined, - AccountId32 - >; - - /** - * The owner of a key. The key is the `KeyTypeId` + the encoded key. - * - * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg - * @param {Callback =} callback - **/ - keyOwner: GenericStorageQuery< - Rv, - (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined, - [SpCoreCryptoKeyTypeId, Bytes] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Aura`'s storage queries - **/ - aura: { - /** - * The current authority set. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * The current slot of this block. - * - * This will be set in `on_initialize`. - * - * @param {Callback =} callback - **/ - currentSlot: GenericStorageQuery SpConsensusSlotsSlot>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AuraExt`'s storage queries - **/ - auraExt: { - /** - * Serves as cache for the authorities. - * - * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session, - * but we require the old authorities to verify the seal when validating a PoV. This will - * always be updated to the latest AuRa authorities in `on_finalize`. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * Current slot paired with a number of authored blocks. - * - * Updated on each block initialization. - * - * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback - **/ - slotInfo: GenericStorageQuery [SpConsensusSlotsSlot, number] | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `XcmpQueue`'s storage queries - **/ - xcmpQueue: { - /** - * The suspended inbound XCMP channels. All others are not suspended. - * - * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block - * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached - * within the block and therefore only included once in the proof size. - * - * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof - * will be smaller. - * - * @param {Callback> =} callback - **/ - inboundXcmpSuspended: GenericStorageQuery Array>; - - /** - * The non-empty XCMP channels in order of becoming non-empty, and the index of the first - * and last outbound message. If the two indices are equal, then it indicates an empty - * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater - * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in - * case of the need to send a high-priority signal message this block. - * The bool is true if there is a signal message waiting to be sent. - * - * @param {Callback> =} callback - **/ - outboundXcmpStatus: GenericStorageQuery Array>; - - /** - * The messages outbound in a given XCMP channel. - * - * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg - * @param {Callback =} callback - **/ - outboundXcmpMessages: GenericStorageQuery< - Rv, - (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes, - [PolkadotParachainPrimitivesPrimitivesId, number] - >; - - /** - * Any signal messages waiting to be sent. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - signalMessages: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * The configuration which controls the dynamics of the outbound queue. - * - * @param {Callback =} callback - **/ - queueConfig: GenericStorageQuery CumulusPalletXcmpQueueQueueConfigData>; - - /** - * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. - * - * @param {Callback =} callback - **/ - queueSuspended: GenericStorageQuery boolean>; - - /** - * The factor to multiply the base delivery fee by. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - deliveryFeeFactor: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PolkadotXcm`'s storage queries - **/ - polkadotXcm: { - /** - * The latest available query index. - * - * @param {Callback =} callback - **/ - queryCounter: GenericStorageQuery bigint>; - - /** - * The ongoing queries. - * - * @param {bigint} arg - * @param {Callback =} callback - **/ - queries: GenericStorageQuery PalletXcmQueryStatus | undefined, bigint>; - - /** - * The existing asset traps. - * - * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of - * times this pair has been trapped (usually just 1 if it exists at all). - * - * @param {H256} arg - * @param {Callback =} callback - **/ - assetTraps: GenericStorageQuery number, H256>; - - /** - * Default version to encode XCM when latest version of destination is unknown. If `None`, - * then the destinations whose XCM version is unknown are considered unreachable. - * - * @param {Callback =} callback - **/ - safeXcmVersion: GenericStorageQuery number | undefined>; - - /** - * The Latest versions that we know various locations support. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - supportedVersion: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => number | undefined, - [number, XcmVersionedLocation] - >; - - /** - * All locations that we have requested version notifications from. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - versionNotifiers: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => bigint | undefined, - [number, XcmVersionedLocation] - >; - - /** - * The target locations that are subscribed to our version changes, as well as the most recent - * of our versions we informed them of. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback - **/ - versionNotifyTargets: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined, - [number, XcmVersionedLocation] - >; - - /** - * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and - * the `u32` counter is the number of times that a send to the destination has been attempted, - * which is used as a prioritization. - * - * @param {Callback> =} callback - **/ - versionDiscoveryQueue: GenericStorageQuery Array<[XcmVersionedLocation, number]>>; - - /** - * The current migration's stage, if any. - * - * @param {Callback =} callback - **/ - currentMigration: GenericStorageQuery PalletXcmVersionMigrationStage | undefined>; - - /** - * Fungible assets which we know are locked on a remote chain. - * - * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg - * @param {Callback =} callback - **/ - remoteLockedFungibles: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined, - [number, AccountId32, XcmVersionedAssetId] - >; - - /** - * Fungible assets which we know are locked on this chain. - * - * @param {AccountId32Like} arg - * @param {Callback | undefined> =} callback - **/ - lockedFungibles: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined, - AccountId32 - >; - - /** - * Global suspension state of the XCM executor. - * - * @param {Callback =} callback - **/ - xcmExecutionSuspended: GenericStorageQuery boolean>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ToKusamaXcmRouter`'s storage queries - **/ - toKusamaXcmRouter: { - /** - * Bridge that we are using. - * - * **bridges-v1** assumptions: all outbound messages through this router are using single lane - * and to single remote consensus. If there is some other remote consensus that uses the same - * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required - * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges - * by the same pallet instance. - * - * @param {Callback =} callback - **/ - bridge: GenericStorageQuery BpXcmBridgeHubRouterBridgeState>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `MessageQueue`'s storage queries - **/ - messageQueue: { - /** - * The index of the first and last (non-empty) pages. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg - * @param {Callback =} callback - **/ - bookStateFor: GenericStorageQuery< - Rv, - (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin - >; - - /** - * The origin at which we should begin servicing. - * - * @param {Callback =} callback - **/ - serviceHead: GenericStorageQuery CumulusPrimitivesCoreAggregateMessageOrigin | undefined>; - - /** - * The map of page indices to pages. - * - * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg - * @param {Callback =} callback - **/ - pages: GenericStorageQuery< - Rv, - (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined, - [CumulusPrimitivesCoreAggregateMessageOrigin, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Multisig`'s storage queries - **/ - multisig: { - /** - * The set of open multisig operations. - * - * @param {[AccountId32Like, FixedBytes<32>]} arg - * @param {Callback =} callback - **/ - multisigs: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined, - [AccountId32, FixedBytes<32>] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Proxy`'s storage queries - **/ - proxy: { - /** - * The set of account proxies. Maps the account which has delegated to the accounts - * which are being delegated to, together with the amount held on deposit. - * - * @param {AccountId32Like} arg - * @param {Callback<[Array, bigint]> =} callback - **/ - proxies: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => [Array, bigint], - AccountId32 - >; - - /** - * The announcements made by the proxy (key). - * - * @param {AccountId32Like} arg - * @param {Callback<[Array, bigint]> =} callback - **/ - announcements: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => [Array, bigint], - AccountId32 - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Assets`'s storage queries - **/ - assets: { - /** - * Details of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletAssetsAssetDetails | undefined, number>; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [number, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[number, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, - [number, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery PalletAssetsAssetMetadata, number>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Uniques`'s storage queries - **/ - uniques: { - /** - * Details of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - class: GenericStorageQuery PalletUniquesCollectionDetails | undefined, number>; - - /** - * The collection, if any, of which an account is willing to take ownership. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - ownershipAcceptance: GenericStorageQuery number | undefined, AccountId32>; - - /** - * The items held by any given account; set out this way so that items owned by a single - * account can be enumerated. - * - * @param {[AccountId32Like, number, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number, number]) => [] | undefined, - [AccountId32, number, number] - >; - - /** - * The collections owned by any given account; set out this way so that collections owned by - * a single account can be enumerated. - * - * @param {[AccountId32Like, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - classAccount: GenericStorageQuery [] | undefined, [AccountId32, number]>; - - /** - * The items in existence and their ownership details. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletUniquesItemDetails | undefined, [number, number]>; - - /** - * Metadata of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - classMetadataOf: GenericStorageQuery PalletUniquesCollectionMetadata | undefined, number>; - - /** - * Metadata of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - instanceMetadataOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletUniquesItemMetadata | undefined, - [number, number] - >; - - /** - * Attributes of a collection. - * - * @param {[number, number | undefined, BytesLike]} arg - * @param {Callback<[Bytes, bigint] | undefined> =} callback - **/ - attribute: GenericStorageQuery< - Rv, - (arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined, - [number, number | undefined, Bytes] - >; - - /** - * Price of an asset instance. - * - * @param {[number, number]} arg - * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback - **/ - itemPriceOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, - [number, number] - >; - - /** - * Keeps track of the number of items a collection might have. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionMaxSupply: GenericStorageQuery number | undefined, number>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Nfts`'s storage queries - **/ - nfts: { - /** - * Details of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collection: GenericStorageQuery PalletNftsCollectionDetails | undefined, number>; - - /** - * The collection, if any, of which an account is willing to take ownership. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - ownershipAcceptance: GenericStorageQuery number | undefined, AccountId32>; - - /** - * The items held by any given account; set out this way so that items owned by a single - * account can be enumerated. - * - * @param {[AccountId32Like, number, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number, number]) => [] | undefined, - [AccountId32, number, number] - >; - - /** - * The collections owned by any given account; set out this way so that collections owned by - * a single account can be enumerated. - * - * @param {[AccountId32Like, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - collectionAccount: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number]) => [] | undefined, - [AccountId32, number] - >; - - /** - * The items in existence and their ownership details. - * Stores collection roles as per account. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - collectionRoleOf: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined, - [number, AccountId32] - >; - - /** - * The items in existence and their ownership details. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - item: GenericStorageQuery PalletNftsItemDetails | undefined, [number, number]>; - - /** - * Metadata of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionMetadataOf: GenericStorageQuery PalletNftsCollectionMetadata | undefined, number>; - - /** - * Metadata of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - itemMetadataOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsItemMetadata | undefined, - [number, number] - >; - - /** - * Attributes of a collection. - * - * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg - * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback - **/ - attribute: GenericStorageQuery< - Rv, - ( - arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike], - ) => [Bytes, PalletNftsAttributeDeposit] | undefined, - [number, number | undefined, PalletNftsAttributeNamespace, Bytes] - >; - - /** - * A price of an item. - * - * @param {[number, number]} arg - * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback - **/ - itemPriceOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, - [number, number] - >; - - /** - * Item attribute approvals. - * - * @param {[number, number]} arg - * @param {Callback> =} callback - **/ - itemAttributesApprovalsOf: GenericStorageQuery Array, [number, number]>; - - /** - * Stores the `CollectionId` that is going to be used for the next collection. - * This gets incremented whenever a new collection is created. - * - * @param {Callback =} callback - **/ - nextCollectionId: GenericStorageQuery number | undefined>; - - /** - * Handles all the pending swaps. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - pendingSwapOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsPendingSwap | undefined, - [number, number] - >; - - /** - * Config of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionConfigOf: GenericStorageQuery PalletNftsCollectionConfig | undefined, number>; - - /** - * Config of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - itemConfigOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsItemConfig | undefined, - [number, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ForeignAssets`'s storage queries - **/ - foreignAssets: { - /** - * Details of an asset. - * - * @param {StagingXcmV3MultilocationMultiLocation} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery< - Rv, - (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined, - StagingXcmV3MultilocationMultiLocation - >; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like], - ) => PalletAssetsApproval | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {StagingXcmV3MultilocationMultiLocation} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery< - Rv, - (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata, - StagingXcmV3MultilocationMultiLocation - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PoolAssets`'s storage queries - **/ - poolAssets: { - /** - * Details of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletAssetsAssetDetails | undefined, number>; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [number, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[number, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, - [number, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery PalletAssetsAssetMetadata, number>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AssetConversion`'s storage queries - **/ - assetConversion: { - /** - * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially - * created rather than people sending tokens directly to a pool's public account. - * - * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg - * @param {Callback =} callback - **/ - pools: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation], - ) => PalletAssetConversionPoolInfo | undefined, - [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation] - >; - - /** - * Stores the `PoolAssetId` that is going to be used for the next lp token. - * This gets incremented whenever a new lp pool is created. - * - * @param {Callback =} callback - **/ - nextPoolAssetId: GenericStorageQuery number | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; -} diff --git a/packages/chaintypes/src/polkadotAssetHub/runtime.d.ts b/packages/chaintypes/src/polkadotAssetHub/runtime.d.ts deleted file mode 100644 index 5ccd1fa..0000000 --- a/packages/chaintypes/src/polkadotAssetHub/runtime.d.ts +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by dedot cli - -import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types'; -import type { - H256, - RuntimeVersion, - Header, - DispatchError, - Result, - UncheckedExtrinsicLike, - UncheckedExtrinsic, - Bytes, - BytesLike, - AccountId32Like, -} from 'dedot/codecs'; -import type { - SpConsensusSlotsSlotDuration, - SpConsensusAuraEd25519AppEd25519Public, - SpConsensusSlotsSlot, - SpRuntimeBlock, - SpCoreOpaqueMetadata, - SpRuntimeTransactionValidityTransactionValidityError, - SpInherentsInherentData, - SpInherentsCheckInherentsResult, - SpRuntimeTransactionValidityValidTransaction, - SpRuntimeTransactionValidityTransactionSource, - SpCoreCryptoKeyTypeId, - PalletTransactionPaymentRuntimeDispatchInfo, - PalletTransactionPaymentFeeDetails, - SpWeightsWeightV2Weight, - AssetHubPolkadotRuntimeRuntimeCallLike, - XcmVersionedAssets, - AssetsCommonRuntimeApiFungiblesAccessError, - CumulusPrimitivesCoreCollationInfo, - StagingXcmV3MultilocationMultiLocation, -} from './types'; - -export interface RuntimeApis extends GenericRuntimeApis { - /** - * @runtimeapi: AuraApi - 0xdd718d5cc53262d4 - **/ - auraApi: { - /** - * Returns the slot duration for Aura. - * - * Currently, only the value provided by this type at genesis will be used. - * - * @callname: AuraApi_slot_duration - **/ - slotDuration: GenericRuntimeApiMethod Promise>; - - /** - * Return the current set of authorities. - * - * @callname: AuraApi_authorities - **/ - authorities: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65 - **/ - auraUnincludedSegmentApi: { - /** - * Whether it is legal to extend the chain, assuming the given block is the most - * recently included one as-of the relay parent that will be built against, and - * the given slot. - * - * This should be consistent with the logic the runtime uses when validating blocks to - * avoid issues. - * - * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block - * whose state we are querying against, this must always return `true` as long as the slot - * is more recent than the included block itself. - * - * @callname: AuraUnincludedSegmentApi_can_build_upon - * @param {H256} included_hash - * @param {SpConsensusSlotsSlot} slot - **/ - canBuildUpon: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Core - 0xdf6acb689907609b - **/ - core: { - /** - * Returns the version of the runtime. - * - * @callname: Core_version - **/ - version: GenericRuntimeApiMethod Promise>; - - /** - * Execute the given block. - * - * @callname: Core_execute_block - * @param {SpRuntimeBlock} block - **/ - executeBlock: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Initialize a block with the given header. - * - * @callname: Core_initialize_block - * @param {Header} header - **/ - initializeBlock: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Metadata - 0x37e397fc7c91f5e4 - **/ - metadata: { - /** - * Returns the metadata of a runtime. - * - * @callname: Metadata_metadata - **/ - metadata: GenericRuntimeApiMethod Promise>; - - /** - * Returns the metadata at a given version. - * - * If the given `version` isn't supported, this will return `None`. - * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime. - * - * @callname: Metadata_metadata_at_version - * @param {number} version - **/ - metadataAtVersion: GenericRuntimeApiMethod Promise>; - - /** - * Returns the supported metadata versions. - * - * This can be used to call `metadata_at_version`. - * - * @callname: Metadata_metadata_versions - **/ - metadataVersions: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a - **/ - blockBuilder: { - /** - * Apply the given extrinsic. - * - * Returns an inclusion outcome which specifies if this extrinsic is included in - * this block or not. - * - * @callname: BlockBuilder_apply_extrinsic - * @param {UncheckedExtrinsicLike} extrinsic - **/ - applyExtrinsic: GenericRuntimeApiMethod< - Rv, - ( - extrinsic: UncheckedExtrinsicLike, - ) => Promise, SpRuntimeTransactionValidityTransactionValidityError>> - >; - - /** - * Finish the current block. - * - * @callname: BlockBuilder_finalize_block - **/ - finalizeBlock: GenericRuntimeApiMethod Promise
>; - - /** - * Generate inherent extrinsics. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_inherent_extrinsics - * @param {SpInherentsInherentData} inherent - **/ - inherentExtrinsics: GenericRuntimeApiMethod< - Rv, - (inherent: SpInherentsInherentData) => Promise> - >; - - /** - * Check that the inherents are valid. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_check_inherents - * @param {SpRuntimeBlock} block - * @param {SpInherentsInherentData} data - **/ - checkInherents: GenericRuntimeApiMethod< - Rv, - (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15 - **/ - taggedTransactionQueue: { - /** - * Validate the transaction. - * - * This method is invoked by the transaction pool to learn details about given transaction. - * The implementation should make sure to verify the correctness of the transaction - * against current state. The given `block_hash` corresponds to the hash of the block - * that is used as current state. - * - * Note that this call may be performed by the pool multiple times and transactions - * might be verified in any possible order. - * - * @callname: TaggedTransactionQueue_validate_transaction - * @param {SpRuntimeTransactionValidityTransactionSource} source - * @param {UncheckedExtrinsicLike} tx - * @param {H256} block_hash - **/ - validateTransaction: GenericRuntimeApiMethod< - Rv, - ( - source: SpRuntimeTransactionValidityTransactionSource, - tx: UncheckedExtrinsicLike, - blockHash: H256, - ) => Promise< - Result - > - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c - **/ - offchainWorkerApi: { - /** - * Starts the off-chain task for given block header. - * - * @callname: OffchainWorkerApi_offchain_worker - * @param {Header} header - **/ - offchainWorker: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: SessionKeys - 0xab3c0572291feb8b - **/ - sessionKeys: { - /** - * Generate a set of session keys with optionally using the given seed. - * The keys should be stored within the keystore exposed via runtime - * externalities. - * - * The seed needs to be a valid `utf8` string. - * - * Returns the concatenated SCALE encoded public keys. - * - * @callname: SessionKeys_generate_session_keys - * @param {BytesLike | undefined} seed - **/ - generateSessionKeys: GenericRuntimeApiMethod Promise>; - - /** - * Decode the given public session keys. - * - * Returns the list of public raw public keys + key type. - * - * @callname: SessionKeys_decode_session_keys - * @param {BytesLike} encoded - **/ - decodeSessionKeys: GenericRuntimeApiMethod< - Rv, - (encoded: BytesLike) => Promise | undefined> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f - **/ - accountNonceApi: { - /** - * Get current account nonce of given `AccountId`. - * - * @callname: AccountNonceApi_account_nonce - * @param {AccountId32Like} account - **/ - accountNonce: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8 - **/ - transactionPaymentApi: { - /** - * - * @callname: TransactionPaymentApi_query_info - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryInfo: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_fee_details - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryFeeDetails: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * - * @callname: TransactionPaymentApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059 - **/ - transactionPaymentCallApi: { - /** - * Query information of a dispatch class, weight, and fee of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_info - * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallInfo: GenericRuntimeApiMethod< - Rv, - ( - call: AssetHubPolkadotRuntimeRuntimeCallLike, - len: number, - ) => Promise - >; - - /** - * Query fee details of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_fee_details - * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallFeeDetails: GenericRuntimeApiMethod< - Rv, - (call: AssetHubPolkadotRuntimeRuntimeCallLike, len: number) => Promise - >; - - /** - * Query the output of the current `WeightToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * Query the output of the current `LengthToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6 - **/ - fungiblesApi: { - /** - * Returns the list of all [`Asset`] that an `AccountId` has. - * - * @callname: FungiblesApi_query_account_balances - * @param {AccountId32Like} account - **/ - queryAccountBalances: GenericRuntimeApiMethod< - Rv, - (account: AccountId32Like) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962 - **/ - collectCollationInfo: { - /** - * Collect information about a collation. - * - * The given `header` is the header of the built block for that - * we are collecting the collation info for. - * - * @callname: CollectCollationInfo_collect_collation_info - * @param {Header} header - **/ - collectCollationInfo: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6 - **/ - genesisBuilder: { - /** - * Creates the default `GenesisConfig` and returns it as a JSON blob. - * - * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON - * blob. It returns a `Vec` containing the JSON representation of the default `GenesisConfig`. - * - * @callname: GenesisBuilder_create_default_config - **/ - createDefaultConfig: GenericRuntimeApiMethod Promise>; - - /** - * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage. - * - * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage. - * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned. - * It is recommended to log any errors encountered during the process. - * - * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used. - * - * @callname: GenesisBuilder_build_config - * @param {BytesLike} json - **/ - buildConfig: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec - **/ - assetConversionApi: { - /** - * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`]. - * - * Note that the price may have changed by the time the transaction is executed. - * (Use `amount_in_max` to control slippage.) - * - * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount - * @param {boolean} include_fee - **/ - quotePriceTokensForExactTokens: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount: bigint, - includeFee: boolean, - ) => Promise - >; - - /** - * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`]. - * - * Note that the price may have changed by the time the transaction is executed. - * (Use `amount_out_min` to control slippage.) - * - * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount - * @param {boolean} include_fee - **/ - quotePriceExactTokensForTokens: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount: bigint, - includeFee: boolean, - ) => Promise - >; - - /** - * Returns the size of the liquidity pool for the given asset pair. - * - * @callname: AssetConversionApi_get_reserves - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - getReserves: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => Promise<[bigint, bigint] | undefined> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; -} diff --git a/packages/chaintypes/src/polkadotAssetHub/tx.d.ts b/packages/chaintypes/src/polkadotAssetHub/tx.d.ts deleted file mode 100644 index dd9e36c..0000000 --- a/packages/chaintypes/src/polkadotAssetHub/tx.d.ts +++ /dev/null @@ -1,6293 +0,0 @@ -// Generated by dedot cli - -import type { - GenericChainTx, - GenericTxCall, - ISubmittableExtrinsic, - ISubmittableResult, - IRuntimeTxCall, - RpcVersion, - RpcV2, - ISubmittableExtrinsicLegacy, -} from 'dedot/types'; -import type { MultiAddressLike, Extrinsic, BytesLike, H256, AccountId32Like, FixedBytes } from 'dedot/codecs'; -import type { - AssetHubPolkadotRuntimeRuntimeCallLike, - SpRuntimeMultiSignature, - FrameSystemEventRecord, - CumulusPrimitivesParachainInherentParachainInherentData, - PalletBalancesAdjustmentDirection, - PalletVestingVestingInfo, - AssetHubPolkadotRuntimeSessionKeys, - XcmVersionedLocation, - XcmVersionedXcm, - XcmVersionedAssets, - SpWeightsWeightV2Weight, - StagingXcmV4Location, - XcmV3WeightLimit, - StagingXcmExecutorAssetTransferTransferType, - XcmVersionedAssetId, - CumulusPrimitivesCoreAggregateMessageOrigin, - AssetHubPolkadotRuntimeOriginCaller, - PalletMultisigTimepoint, - AssetHubPolkadotRuntimeProxyType, - PalletUniquesDestroyWitness, - PalletNftsCollectionConfig, - PalletNftsDestroyWitness, - PalletNftsMintWitness, - PalletNftsItemConfig, - PalletNftsBitFlags, - PalletNftsAttributeNamespace, - PalletNftsCancelAttributesApprovalWitness, - PalletNftsMintSettings, - PalletNftsItemTip, - PalletNftsPriceWithDirection, - PalletNftsPreSignedMint, - PalletNftsPreSignedAttributes, - StagingXcmV3MultilocationMultiLocation, -} from './types'; - -export type ChainSubmittableExtrinsic< - Rv extends RpcVersion, - T extends IRuntimeTxCall = AssetHubPolkadotRuntimeRuntimeCallLike, -> = Extrinsic & - (Rv extends RpcV2 - ? ISubmittableExtrinsic> - : ISubmittableExtrinsicLegacy>); - -export type TxCall = (...args: any[]) => ChainSubmittableExtrinsic; - -export interface ChainTx extends GenericChainTx> { - /** - * Pallet `System`'s transaction calls - **/ - system: { - /** - * See [`Pallet::remark`]. - * - * @param {BytesLike} remark - **/ - remark: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'Remark'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_heap_pages`]. - * - * @param {bigint} pages - **/ - setHeapPages: GenericTxCall< - Rv, - (pages: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetHeapPages'; - params: { pages: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::set_code`]. - * - * @param {BytesLike} code - **/ - setCode: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCode'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_code_without_checks`]. - * - * @param {BytesLike} code - **/ - setCodeWithoutChecks: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCodeWithoutChecks'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_storage`]. - * - * @param {Array<[BytesLike, BytesLike]>} items - **/ - setStorage: GenericTxCall< - Rv, - (items: Array<[BytesLike, BytesLike]>) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetStorage'; - params: { items: Array<[BytesLike, BytesLike]> }; - }; - } - > - >; - - /** - * See [`Pallet::kill_storage`]. - * - * @param {Array} keys - **/ - killStorage: GenericTxCall< - Rv, - (keys: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillStorage'; - params: { keys: Array }; - }; - } - > - >; - - /** - * See [`Pallet::kill_prefix`]. - * - * @param {BytesLike} prefix - * @param {number} subkeys - **/ - killPrefix: GenericTxCall< - Rv, - ( - prefix: BytesLike, - subkeys: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillPrefix'; - params: { prefix: BytesLike; subkeys: number }; - }; - } - > - >; - - /** - * See [`Pallet::remark_with_event`]. - * - * @param {BytesLike} remark - **/ - remarkWithEvent: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'RemarkWithEvent'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::authorize_upgrade`]. - * - * @param {H256} codeHash - **/ - authorizeUpgrade: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::authorize_upgrade_without_checks`]. - * - * @param {H256} codeHash - **/ - authorizeUpgradeWithoutChecks: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgradeWithoutChecks'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::apply_authorized_upgrade`]. - * - * @param {BytesLike} code - **/ - applyAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'ApplyAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainSystem`'s transaction calls - **/ - parachainSystem: { - /** - * See [`Pallet::set_validation_data`]. - * - * @param {CumulusPrimitivesParachainInherentParachainInherentData} data - **/ - setValidationData: GenericTxCall< - Rv, - (data: CumulusPrimitivesParachainInherentParachainInherentData) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SetValidationData'; - params: { data: CumulusPrimitivesParachainInherentParachainInherentData }; - }; - } - > - >; - - /** - * See [`Pallet::sudo_send_upward_message`]. - * - * @param {BytesLike} message - **/ - sudoSendUpwardMessage: GenericTxCall< - Rv, - (message: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SudoSendUpwardMessage'; - params: { message: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::authorize_upgrade`]. - * - * @param {H256} codeHash - * @param {boolean} checkVersion - **/ - authorizeUpgrade: GenericTxCall< - Rv, - ( - codeHash: H256, - checkVersion: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256; checkVersion: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::enact_authorized_upgrade`]. - * - * @param {BytesLike} code - **/ - enactAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'EnactAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Timestamp`'s transaction calls - **/ - timestamp: { - /** - * See [`Pallet::set`]. - * - * @param {bigint} now - **/ - set: GenericTxCall< - Rv, - (now: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Timestamp'; - palletCall: { - name: 'Set'; - params: { now: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainInfo`'s transaction calls - **/ - parachainInfo: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Balances`'s transaction calls - **/ - balances: { - /** - * See [`Pallet::transfer_allow_death`]. - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferAllowDeath: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAllowDeath'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_transfer`]. - * - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - forceTransfer: GenericTxCall< - Rv, - ( - source: MultiAddressLike, - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceTransfer'; - params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_keep_alive`]. - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferKeepAlive'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_all`]. - * - * @param {MultiAddressLike} dest - * @param {boolean} keepAlive - **/ - transferAll: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAll'; - params: { dest: MultiAddressLike; keepAlive: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::force_unreserve`]. - * - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - forceUnreserve: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceUnreserve'; - params: { who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::upgrade_accounts`]. - * - * @param {Array} who - **/ - upgradeAccounts: GenericTxCall< - Rv, - (who: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'UpgradeAccounts'; - params: { who: Array }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_balance`]. - * - * @param {MultiAddressLike} who - * @param {bigint} newFree - **/ - forceSetBalance: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - newFree: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceSetBalance'; - params: { who: MultiAddressLike; newFree: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_adjust_total_issuance`]. - * - * @param {PalletBalancesAdjustmentDirection} direction - * @param {bigint} delta - **/ - forceAdjustTotalIssuance: GenericTxCall< - Rv, - ( - direction: PalletBalancesAdjustmentDirection, - delta: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceAdjustTotalIssuance'; - params: { direction: PalletBalancesAdjustmentDirection; delta: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Vesting`'s transaction calls - **/ - vesting: { - /** - * See [`Pallet::vest`]. - * - **/ - vest: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'Vest'; - }; - } - > - >; - - /** - * See [`Pallet::vest_other`]. - * - * @param {MultiAddressLike} target - **/ - vestOther: GenericTxCall< - Rv, - (target: MultiAddressLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'VestOther'; - params: { target: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::vested_transfer`]. - * - * @param {MultiAddressLike} target - * @param {PalletVestingVestingInfo} schedule - **/ - vestedTransfer: GenericTxCall< - Rv, - ( - target: MultiAddressLike, - schedule: PalletVestingVestingInfo, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'VestedTransfer'; - params: { target: MultiAddressLike; schedule: PalletVestingVestingInfo }; - }; - } - > - >; - - /** - * See [`Pallet::force_vested_transfer`]. - * - * @param {MultiAddressLike} source - * @param {MultiAddressLike} target - * @param {PalletVestingVestingInfo} schedule - **/ - forceVestedTransfer: GenericTxCall< - Rv, - ( - source: MultiAddressLike, - target: MultiAddressLike, - schedule: PalletVestingVestingInfo, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'ForceVestedTransfer'; - params: { source: MultiAddressLike; target: MultiAddressLike; schedule: PalletVestingVestingInfo }; - }; - } - > - >; - - /** - * See [`Pallet::merge_schedules`]. - * - * @param {number} schedule1Index - * @param {number} schedule2Index - **/ - mergeSchedules: GenericTxCall< - Rv, - ( - schedule1Index: number, - schedule2Index: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'MergeSchedules'; - params: { schedule1Index: number; schedule2Index: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_remove_vesting_schedule`]. - * - * @param {MultiAddressLike} target - * @param {number} scheduleIndex - **/ - forceRemoveVestingSchedule: GenericTxCall< - Rv, - ( - target: MultiAddressLike, - scheduleIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Vesting'; - palletCall: { - name: 'ForceRemoveVestingSchedule'; - params: { target: MultiAddressLike; scheduleIndex: number }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CollatorSelection`'s transaction calls - **/ - collatorSelection: { - /** - * See [`Pallet::set_invulnerables`]. - * - * @param {Array} new_ - **/ - setInvulnerables: GenericTxCall< - Rv, - (new_: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetInvulnerables'; - params: { new: Array }; - }; - } - > - >; - - /** - * See [`Pallet::set_desired_candidates`]. - * - * @param {number} max - **/ - setDesiredCandidates: GenericTxCall< - Rv, - (max: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetDesiredCandidates'; - params: { max: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_candidacy_bond`]. - * - * @param {bigint} bond - **/ - setCandidacyBond: GenericTxCall< - Rv, - (bond: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetCandidacyBond'; - params: { bond: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::register_as_candidate`]. - * - **/ - registerAsCandidate: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RegisterAsCandidate'; - }; - } - > - >; - - /** - * See [`Pallet::leave_intent`]. - * - **/ - leaveIntent: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'LeaveIntent'; - }; - } - > - >; - - /** - * See [`Pallet::add_invulnerable`]. - * - * @param {AccountId32Like} who - **/ - addInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'AddInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * See [`Pallet::remove_invulnerable`]. - * - * @param {AccountId32Like} who - **/ - removeInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RemoveInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * See [`Pallet::update_bond`]. - * - * @param {bigint} newDeposit - **/ - updateBond: GenericTxCall< - Rv, - (newDeposit: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'UpdateBond'; - params: { newDeposit: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::take_candidate_slot`]. - * - * @param {bigint} deposit - * @param {AccountId32Like} target - **/ - takeCandidateSlot: GenericTxCall< - Rv, - ( - deposit: bigint, - target: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'TakeCandidateSlot'; - params: { deposit: bigint; target: AccountId32Like }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Session`'s transaction calls - **/ - session: { - /** - * See [`Pallet::set_keys`]. - * - * @param {AssetHubPolkadotRuntimeSessionKeys} keys - * @param {BytesLike} proof - **/ - setKeys: GenericTxCall< - Rv, - ( - keys: AssetHubPolkadotRuntimeSessionKeys, - proof: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'SetKeys'; - params: { keys: AssetHubPolkadotRuntimeSessionKeys; proof: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::purge_keys`]. - * - **/ - purgeKeys: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'PurgeKeys'; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `XcmpQueue`'s transaction calls - **/ - xcmpQueue: { - /** - * See [`Pallet::suspend_xcm_execution`]. - * - **/ - suspendXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'SuspendXcmExecution'; - }; - } - > - >; - - /** - * See [`Pallet::resume_xcm_execution`]. - * - **/ - resumeXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'ResumeXcmExecution'; - }; - } - > - >; - - /** - * See [`Pallet::update_suspend_threshold`]. - * - * @param {number} new_ - **/ - updateSuspendThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateSuspendThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * See [`Pallet::update_drop_threshold`]. - * - * @param {number} new_ - **/ - updateDropThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateDropThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * See [`Pallet::update_resume_threshold`]. - * - * @param {number} new_ - **/ - updateResumeThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateResumeThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `PolkadotXcm`'s transaction calls - **/ - polkadotXcm: { - /** - * See [`Pallet::send`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedXcm} message - **/ - send: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - message: XcmVersionedXcm, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Send'; - params: { dest: XcmVersionedLocation; message: XcmVersionedXcm }; - }; - } - > - >; - - /** - * See [`Pallet::teleport_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - teleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::reserve_transfer_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - reserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::execute`]. - * - * @param {XcmVersionedXcm} message - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - execute: GenericTxCall< - Rv, - ( - message: XcmVersionedXcm, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Execute'; - params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * See [`Pallet::force_xcm_version`]. - * - * @param {StagingXcmV4Location} location - * @param {number} version - **/ - forceXcmVersion: GenericTxCall< - Rv, - ( - location: StagingXcmV4Location, - version: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceXcmVersion'; - params: { location: StagingXcmV4Location; version: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_default_xcm_version`]. - * - * @param {number | undefined} maybeXcmVersion - **/ - forceDefaultXcmVersion: GenericTxCall< - Rv, - (maybeXcmVersion: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceDefaultXcmVersion'; - params: { maybeXcmVersion: number | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::force_subscribe_version_notify`]. - * - * @param {XcmVersionedLocation} location - **/ - forceSubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * See [`Pallet::force_unsubscribe_version_notify`]. - * - * @param {XcmVersionedLocation} location - **/ - forceUnsubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceUnsubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * See [`Pallet::limited_reserve_transfer_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedReserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * See [`Pallet::limited_teleport_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedTeleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_suspension`]. - * - * @param {boolean} suspended - **/ - forceSuspension: GenericTxCall< - Rv, - (suspended: boolean) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSuspension'; - params: { suspended: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_assets`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * See [`Pallet::claim_assets`]. - * - * @param {XcmVersionedAssets} assets - * @param {XcmVersionedLocation} beneficiary - **/ - claimAssets: GenericTxCall< - Rv, - ( - assets: XcmVersionedAssets, - beneficiary: XcmVersionedLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ClaimAssets'; - params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_assets_using_type_and_then`]. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedAssets} assets - * @param {StagingXcmExecutorAssetTransferTransferType} assetsTransferType - * @param {XcmVersionedAssetId} remoteFeesId - * @param {StagingXcmExecutorAssetTransferTransferType} feesTransferType - * @param {XcmVersionedXcm} customXcmOnDest - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssetsUsingTypeAndThen: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - assets: XcmVersionedAssets, - assetsTransferType: StagingXcmExecutorAssetTransferTransferType, - remoteFeesId: XcmVersionedAssetId, - feesTransferType: StagingXcmExecutorAssetTransferTransferType, - customXcmOnDest: XcmVersionedXcm, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CumulusXcm`'s transaction calls - **/ - cumulusXcm: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ToKusamaXcmRouter`'s transaction calls - **/ - toKusamaXcmRouter: { - /** - * See [`Pallet::report_bridge_status`]. - * - * @param {H256} bridgeId - * @param {boolean} isCongested - **/ - reportBridgeStatus: GenericTxCall< - Rv, - ( - bridgeId: H256, - isCongested: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ToKusamaXcmRouter'; - palletCall: { - name: 'ReportBridgeStatus'; - params: { bridgeId: H256; isCongested: boolean }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `MessageQueue`'s transaction calls - **/ - messageQueue: { - /** - * See [`Pallet::reap_page`]. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} pageIndex - **/ - reapPage: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - pageIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ReapPage'; - params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number }; - }; - } - > - >; - - /** - * See [`Pallet::execute_overweight`]. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} page - * @param {number} index - * @param {SpWeightsWeightV2Weight} weightLimit - **/ - executeOverweight: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - page: number, - index: number, - weightLimit: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Utility`'s transaction calls - **/ - utility: { - /** - * See [`Pallet::batch`]. - * - * @param {Array} calls - **/ - batch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'Batch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * See [`Pallet::as_derivative`]. - * - * @param {number} index - * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call - **/ - asDerivative: GenericTxCall< - Rv, - ( - index: number, - call: AssetHubPolkadotRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'AsDerivative'; - params: { index: number; call: AssetHubPolkadotRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * See [`Pallet::batch_all`]. - * - * @param {Array} calls - **/ - batchAll: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'BatchAll'; - params: { calls: Array }; - }; - } - > - >; - - /** - * See [`Pallet::dispatch_as`]. - * - * @param {AssetHubPolkadotRuntimeOriginCaller} asOrigin - * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call - **/ - dispatchAs: GenericTxCall< - Rv, - ( - asOrigin: AssetHubPolkadotRuntimeOriginCaller, - call: AssetHubPolkadotRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'DispatchAs'; - params: { asOrigin: AssetHubPolkadotRuntimeOriginCaller; call: AssetHubPolkadotRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_batch`]. - * - * @param {Array} calls - **/ - forceBatch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'ForceBatch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * See [`Pallet::with_weight`]. - * - * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} weight - **/ - withWeight: GenericTxCall< - Rv, - ( - call: AssetHubPolkadotRuntimeRuntimeCallLike, - weight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'WithWeight'; - params: { call: AssetHubPolkadotRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Multisig`'s transaction calls - **/ - multisig: { - /** - * See [`Pallet::as_multi_threshold_1`]. - * - * @param {Array} otherSignatories - * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call - **/ - asMultiThreshold1: GenericTxCall< - Rv, - ( - otherSignatories: Array, - call: AssetHubPolkadotRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubPolkadotRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * See [`Pallet::as_multi`]. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - asMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - call: AssetHubPolkadotRuntimeRuntimeCallLike, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - call: AssetHubPolkadotRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_as_multi`]. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {FixedBytes<32>} callHash - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - approveAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - callHash: FixedBytes<32>, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_as_multi`]. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint} timepoint - * @param {FixedBytes<32>} callHash - **/ - cancelAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - timepoint: PalletMultisigTimepoint, - callHash: FixedBytes<32>, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Proxy`'s transaction calls - **/ - proxy: { - /** - * See [`Pallet::proxy`]. - * - * @param {MultiAddressLike} real - * @param {AssetHubPolkadotRuntimeProxyType | undefined} forceProxyType - * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call - **/ - proxy: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - forceProxyType: AssetHubPolkadotRuntimeProxyType | undefined, - call: AssetHubPolkadotRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'Proxy'; - params: { - real: MultiAddressLike; - forceProxyType: AssetHubPolkadotRuntimeProxyType | undefined; - call: AssetHubPolkadotRuntimeRuntimeCallLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::add_proxy`]. - * - * @param {MultiAddressLike} delegate - * @param {AssetHubPolkadotRuntimeProxyType} proxyType - * @param {number} delay - **/ - addProxy: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - proxyType: AssetHubPolkadotRuntimeProxyType, - delay: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'AddProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubPolkadotRuntimeProxyType; delay: number }; - }; - } - > - >; - - /** - * See [`Pallet::remove_proxy`]. - * - * @param {MultiAddressLike} delegate - * @param {AssetHubPolkadotRuntimeProxyType} proxyType - * @param {number} delay - **/ - removeProxy: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - proxyType: AssetHubPolkadotRuntimeProxyType, - delay: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubPolkadotRuntimeProxyType; delay: number }; - }; - } - > - >; - - /** - * See [`Pallet::remove_proxies`]. - * - **/ - removeProxies: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveProxies'; - }; - } - > - >; - - /** - * See [`Pallet::create_pure`]. - * - * @param {AssetHubPolkadotRuntimeProxyType} proxyType - * @param {number} delay - * @param {number} index - **/ - createPure: GenericTxCall< - Rv, - ( - proxyType: AssetHubPolkadotRuntimeProxyType, - delay: number, - index: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'CreatePure'; - params: { proxyType: AssetHubPolkadotRuntimeProxyType; delay: number; index: number }; - }; - } - > - >; - - /** - * See [`Pallet::kill_pure`]. - * - * @param {MultiAddressLike} spawner - * @param {AssetHubPolkadotRuntimeProxyType} proxyType - * @param {number} index - * @param {number} height - * @param {number} extIndex - **/ - killPure: GenericTxCall< - Rv, - ( - spawner: MultiAddressLike, - proxyType: AssetHubPolkadotRuntimeProxyType, - index: number, - height: number, - extIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'KillPure'; - params: { - spawner: MultiAddressLike; - proxyType: AssetHubPolkadotRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::announce`]. - * - * @param {MultiAddressLike} real - * @param {H256} callHash - **/ - announce: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'Announce'; - params: { real: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::remove_announcement`]. - * - * @param {MultiAddressLike} real - * @param {H256} callHash - **/ - removeAnnouncement: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveAnnouncement'; - params: { real: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::reject_announcement`]. - * - * @param {MultiAddressLike} delegate - * @param {H256} callHash - **/ - rejectAnnouncement: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RejectAnnouncement'; - params: { delegate: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * See [`Pallet::proxy_announced`]. - * - * @param {MultiAddressLike} delegate - * @param {MultiAddressLike} real - * @param {AssetHubPolkadotRuntimeProxyType | undefined} forceProxyType - * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call - **/ - proxyAnnounced: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - real: MultiAddressLike, - forceProxyType: AssetHubPolkadotRuntimeProxyType | undefined, - call: AssetHubPolkadotRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddressLike; - real: MultiAddressLike; - forceProxyType: AssetHubPolkadotRuntimeProxyType | undefined; - call: AssetHubPolkadotRuntimeRuntimeCallLike; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Assets`'s transaction calls - **/ - assets: { - /** - * See [`Pallet::create`]. - * - * @param {number} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: number, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Create'; - params: { id: number; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceCreate'; - params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::start_destroy`]. - * - * @param {number} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'StartDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_accounts`]. - * - * @param {number} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_approvals`]. - * - * @param {number} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::finish_destroy`]. - * - * @param {number} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {number} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: number, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Mint'; - params: { id: number; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {number} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Burn'; - params: { id: number; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Transfer'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_keep_alive`]. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: number, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceTransfer'; - params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::freeze`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Freeze'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::thaw`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Thaw'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::freeze_asset`]. - * - * @param {number} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::thaw_asset`]. - * - * @param {number} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ThawAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {number} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {number} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_metadata`]. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::force_clear_metadata`]. - * - * @param {number} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_asset_status`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: number; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {number} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'CancelApproval'; - params: { id: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_cancel_approval`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_approved`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch`]. - * - * @param {number} id - **/ - touch: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Touch'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::refund`]. - * - * @param {number} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: number, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Refund'; - params: { id: number; allowBurn: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::set_min_balance`]. - * - * @param {number} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: number, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: number; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch_other`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TouchOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::refund_other`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'RefundOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::block`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Block'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Uniques`'s transaction calls - **/ - uniques: { - /** - * See [`Pallet::create`]. - * - * @param {number} collection - * @param {MultiAddressLike} admin - **/ - create: GenericTxCall< - Rv, - ( - collection: number, - admin: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Create'; - params: { collection: number; admin: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {number} collection - * @param {MultiAddressLike} owner - * @param {boolean} freeHolding - **/ - forceCreate: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - freeHolding: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ForceCreate'; - params: { collection: number; owner: MultiAddressLike; freeHolding: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::destroy`]. - * - * @param {number} collection - * @param {PalletUniquesDestroyWitness} witness - **/ - destroy: GenericTxCall< - Rv, - ( - collection: number, - witness: PalletUniquesDestroyWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Destroy'; - params: { collection: number; witness: PalletUniquesDestroyWitness }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} owner - **/ - mint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Mint'; - params: { collection: number; item: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike | undefined} checkOwner - **/ - burn: GenericTxCall< - Rv, - ( - collection: number, - item: number, - checkOwner: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Burn'; - params: { collection: number; item: number; checkOwner: MultiAddressLike | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} dest - **/ - transfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - dest: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Transfer'; - params: { collection: number; item: number; dest: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::redeposit`]. - * - * @param {number} collection - * @param {Array} items - **/ - redeposit: GenericTxCall< - Rv, - ( - collection: number, - items: Array, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Redeposit'; - params: { collection: number; items: Array }; - }; - } - > - >; - - /** - * See [`Pallet::freeze`]. - * - * @param {number} collection - * @param {number} item - **/ - freeze: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Freeze'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::thaw`]. - * - * @param {number} collection - * @param {number} item - **/ - thaw: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Thaw'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::freeze_collection`]. - * - * @param {number} collection - **/ - freezeCollection: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'FreezeCollection'; - params: { collection: number }; - }; - } - > - >; - - /** - * See [`Pallet::thaw_collection`]. - * - * @param {number} collection - **/ - thawCollection: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ThawCollection'; - params: { collection: number }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {number} collection - * @param {MultiAddressLike} newOwner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - collection: number, - newOwner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'TransferOwnership'; - params: { collection: number; newOwner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {number} collection - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - collection: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetTeam'; - params: { - collection: number; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - approveTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike | undefined} maybeCheckDelegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - maybeCheckDelegate: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate: MultiAddressLike | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::force_item_status`]. - * - * @param {number} collection - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {boolean} freeHolding - * @param {boolean} isFrozen - **/ - forceItemStatus: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - freeHolding: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - freeHolding: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::set_attribute`]. - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {BytesLike} key - * @param {BytesLike} value - **/ - setAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetAttribute'; - params: { collection: number; maybeItem: number | undefined; key: BytesLike; value: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::clear_attribute`]. - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {BytesLike} key - **/ - clearAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - key: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearAttribute'; - params: { collection: number; maybeItem: number | undefined; key: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {number} collection - * @param {number} item - * @param {BytesLike} data - * @param {boolean} isFrozen - **/ - setMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - data: BytesLike, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetMetadata'; - params: { collection: number; item: number; data: BytesLike; isFrozen: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {number} collection - * @param {number} item - **/ - clearMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearMetadata'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_collection_metadata`]. - * - * @param {number} collection - * @param {BytesLike} data - * @param {boolean} isFrozen - **/ - setCollectionMetadata: GenericTxCall< - Rv, - ( - collection: number, - data: BytesLike, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetCollectionMetadata'; - params: { collection: number; data: BytesLike; isFrozen: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::clear_collection_metadata`]. - * - * @param {number} collection - **/ - clearCollectionMetadata: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearCollectionMetadata'; - params: { collection: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_accept_ownership`]. - * - * @param {number | undefined} maybeCollection - **/ - setAcceptOwnership: GenericTxCall< - Rv, - (maybeCollection: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetAcceptOwnership'; - params: { maybeCollection: number | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::set_collection_max_supply`]. - * - * @param {number} collection - * @param {number} maxSupply - **/ - setCollectionMaxSupply: GenericTxCall< - Rv, - ( - collection: number, - maxSupply: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetCollectionMaxSupply'; - params: { collection: number; maxSupply: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_price`]. - * - * @param {number} collection - * @param {number} item - * @param {bigint | undefined} price - * @param {MultiAddressLike | undefined} whitelistedBuyer - **/ - setPrice: GenericTxCall< - Rv, - ( - collection: number, - item: number, - price: bigint | undefined, - whitelistedBuyer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price: bigint | undefined; - whitelistedBuyer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::buy_item`]. - * - * @param {number} collection - * @param {number} item - * @param {bigint} bidPrice - **/ - buyItem: GenericTxCall< - Rv, - ( - collection: number, - item: number, - bidPrice: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'BuyItem'; - params: { collection: number; item: number; bidPrice: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Nfts`'s transaction calls - **/ - nfts: { - /** - * See [`Pallet::create`]. - * - * @param {MultiAddressLike} admin - * @param {PalletNftsCollectionConfig} config - **/ - create: GenericTxCall< - Rv, - ( - admin: MultiAddressLike, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Create'; - params: { admin: MultiAddressLike; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {MultiAddressLike} owner - * @param {PalletNftsCollectionConfig} config - **/ - forceCreate: GenericTxCall< - Rv, - ( - owner: MultiAddressLike, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCreate'; - params: { owner: MultiAddressLike; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * See [`Pallet::destroy`]. - * - * @param {number} collection - * @param {PalletNftsDestroyWitness} witness - **/ - destroy: GenericTxCall< - Rv, - ( - collection: number, - witness: PalletNftsDestroyWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Destroy'; - params: { collection: number; witness: PalletNftsDestroyWitness }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} mintTo - * @param {PalletNftsMintWitness | undefined} witnessData - **/ - mint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - mintTo: MultiAddressLike, - witnessData: PalletNftsMintWitness | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddressLike; - witnessData: PalletNftsMintWitness | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_mint`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} mintTo - * @param {PalletNftsItemConfig} itemConfig - **/ - forceMint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - mintTo: MultiAddressLike, - itemConfig: PalletNftsItemConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddressLike; itemConfig: PalletNftsItemConfig }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {number} collection - * @param {number} item - **/ - burn: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Burn'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} dest - **/ - transfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - dest: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Transfer'; - params: { collection: number; item: number; dest: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::redeposit`]. - * - * @param {number} collection - * @param {Array} items - **/ - redeposit: GenericTxCall< - Rv, - ( - collection: number, - items: Array, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Redeposit'; - params: { collection: number; items: Array }; - }; - } - > - >; - - /** - * See [`Pallet::lock_item_transfer`]. - * - * @param {number} collection - * @param {number} item - **/ - lockItemTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockItemTransfer'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::unlock_item_transfer`]. - * - * @param {number} collection - * @param {number} item - **/ - unlockItemTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'UnlockItemTransfer'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::lock_collection`]. - * - * @param {number} collection - * @param {PalletNftsBitFlags} lockSettings - **/ - lockCollection: GenericTxCall< - Rv, - ( - collection: number, - lockSettings: PalletNftsBitFlags, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockCollection'; - params: { collection: number; lockSettings: PalletNftsBitFlags }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {number} collection - * @param {MultiAddressLike} newOwner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - collection: number, - newOwner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'TransferOwnership'; - params: { collection: number; newOwner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {number} collection - * @param {MultiAddressLike | undefined} issuer - * @param {MultiAddressLike | undefined} admin - * @param {MultiAddressLike | undefined} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - collection: number, - issuer: MultiAddressLike | undefined, - admin: MultiAddressLike | undefined, - freezer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetTeam'; - params: { - collection: number; - issuer: MultiAddressLike | undefined; - admin: MultiAddressLike | undefined; - freezer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_collection_owner`]. - * - * @param {number} collection - * @param {MultiAddressLike} owner - **/ - forceCollectionOwner: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCollectionOwner'; - params: { collection: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_collection_config`]. - * - * @param {number} collection - * @param {PalletNftsCollectionConfig} config - **/ - forceCollectionConfig: GenericTxCall< - Rv, - ( - collection: number, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCollectionConfig'; - params: { collection: number; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - * @param {number | undefined} maybeDeadline - **/ - approveTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - maybeDeadline: number | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike; maybeDeadline: number | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelApproval'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::clear_all_transfer_approvals`]. - * - * @param {number} collection - * @param {number} item - **/ - clearAllTransferApprovals: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearAllTransferApprovals'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::lock_item_properties`]. - * - * @param {number} collection - * @param {number} item - * @param {boolean} lockMetadata - * @param {boolean} lockAttributes - **/ - lockItemProperties: GenericTxCall< - Rv, - ( - collection: number, - item: number, - lockMetadata: boolean, - lockAttributes: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::set_attribute`]. - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - * @param {BytesLike} value - **/ - setAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_attribute`]. - * - * @param {AccountId32Like | undefined} setAs - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - * @param {BytesLike} value - **/ - forceSetAttribute: GenericTxCall< - Rv, - ( - setAs: AccountId32Like | undefined, - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceSetAttribute'; - params: { - setAs: AccountId32Like | undefined; - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::clear_attribute`]. - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - **/ - clearAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_item_attributes`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - approveItemAttributes: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ApproveItemAttributes'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_item_attributes_approval`]. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - * @param {PalletNftsCancelAttributesApprovalWitness} witness - **/ - cancelItemAttributesApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - witness: PalletNftsCancelAttributesApprovalWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddressLike; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {number} collection - * @param {number} item - * @param {BytesLike} data - **/ - setMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - data: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetMetadata'; - params: { collection: number; item: number; data: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {number} collection - * @param {number} item - **/ - clearMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearMetadata'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_collection_metadata`]. - * - * @param {number} collection - * @param {BytesLike} data - **/ - setCollectionMetadata: GenericTxCall< - Rv, - ( - collection: number, - data: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetCollectionMetadata'; - params: { collection: number; data: BytesLike }; - }; - } - > - >; - - /** - * See [`Pallet::clear_collection_metadata`]. - * - * @param {number} collection - **/ - clearCollectionMetadata: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearCollectionMetadata'; - params: { collection: number }; - }; - } - > - >; - - /** - * See [`Pallet::set_accept_ownership`]. - * - * @param {number | undefined} maybeCollection - **/ - setAcceptOwnership: GenericTxCall< - Rv, - (maybeCollection: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAcceptOwnership'; - params: { maybeCollection: number | undefined }; - }; - } - > - >; - - /** - * See [`Pallet::set_collection_max_supply`]. - * - * @param {number} collection - * @param {number} maxSupply - **/ - setCollectionMaxSupply: GenericTxCall< - Rv, - ( - collection: number, - maxSupply: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetCollectionMaxSupply'; - params: { collection: number; maxSupply: number }; - }; - } - > - >; - - /** - * See [`Pallet::update_mint_settings`]. - * - * @param {number} collection - * @param {PalletNftsMintSettings} mintSettings - **/ - updateMintSettings: GenericTxCall< - Rv, - ( - collection: number, - mintSettings: PalletNftsMintSettings, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'UpdateMintSettings'; - params: { collection: number; mintSettings: PalletNftsMintSettings }; - }; - } - > - >; - - /** - * See [`Pallet::set_price`]. - * - * @param {number} collection - * @param {number} item - * @param {bigint | undefined} price - * @param {MultiAddressLike | undefined} whitelistedBuyer - **/ - setPrice: GenericTxCall< - Rv, - ( - collection: number, - item: number, - price: bigint | undefined, - whitelistedBuyer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price: bigint | undefined; - whitelistedBuyer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::buy_item`]. - * - * @param {number} collection - * @param {number} item - * @param {bigint} bidPrice - **/ - buyItem: GenericTxCall< - Rv, - ( - collection: number, - item: number, - bidPrice: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'BuyItem'; - params: { collection: number; item: number; bidPrice: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::pay_tips`]. - * - * @param {Array} tips - **/ - payTips: GenericTxCall< - Rv, - (tips: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'PayTips'; - params: { tips: Array }; - }; - } - > - >; - - /** - * See [`Pallet::create_swap`]. - * - * @param {number} offeredCollection - * @param {number} offeredItem - * @param {number} desiredCollection - * @param {number | undefined} maybeDesiredItem - * @param {PalletNftsPriceWithDirection | undefined} maybePrice - * @param {number} duration - **/ - createSwap: GenericTxCall< - Rv, - ( - offeredCollection: number, - offeredItem: number, - desiredCollection: number, - maybeDesiredItem: number | undefined, - maybePrice: PalletNftsPriceWithDirection | undefined, - duration: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem: number | undefined; - maybePrice: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_swap`]. - * - * @param {number} offeredCollection - * @param {number} offeredItem - **/ - cancelSwap: GenericTxCall< - Rv, - ( - offeredCollection: number, - offeredItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelSwap'; - params: { offeredCollection: number; offeredItem: number }; - }; - } - > - >; - - /** - * See [`Pallet::claim_swap`]. - * - * @param {number} sendCollection - * @param {number} sendItem - * @param {number} receiveCollection - * @param {number} receiveItem - * @param {PalletNftsPriceWithDirection | undefined} witnessPrice - **/ - claimSwap: GenericTxCall< - Rv, - ( - sendCollection: number, - sendItem: number, - receiveCollection: number, - receiveItem: number, - witnessPrice: PalletNftsPriceWithDirection | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice: PalletNftsPriceWithDirection | undefined; - }; - }; - } - > - >; - - /** - * See [`Pallet::mint_pre_signed`]. - * - * @param {PalletNftsPreSignedMint} mintData - * @param {SpRuntimeMultiSignature} signature - * @param {AccountId32Like} signer - **/ - mintPreSigned: GenericTxCall< - Rv, - ( - mintData: PalletNftsPreSignedMint, - signature: SpRuntimeMultiSignature, - signer: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - }; - } - > - >; - - /** - * See [`Pallet::set_attributes_pre_signed`]. - * - * @param {PalletNftsPreSignedAttributes} data - * @param {SpRuntimeMultiSignature} signature - * @param {AccountId32Like} signer - **/ - setAttributesPreSigned: GenericTxCall< - Rv, - ( - data: PalletNftsPreSignedAttributes, - signature: SpRuntimeMultiSignature, - signer: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAttributesPreSigned'; - params: { - data: PalletNftsPreSignedAttributes; - signature: SpRuntimeMultiSignature; - signer: AccountId32Like; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ForeignAssets`'s transaction calls - **/ - foreignAssets: { - /** - * See [`Pallet::create`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Create'; - params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - isSufficient: boolean; - minBalance: bigint; - }; - }; - } - > - >; - - /** - * See [`Pallet::start_destroy`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'StartDestroy'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_accounts`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_approvals`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::finish_destroy`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Mint'; - params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Burn'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Transfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_keep_alive`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_transfer`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceTransfer'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - source: MultiAddressLike; - dest: MultiAddressLike; - amount: bigint; - }; - }; - } - > - >; - - /** - * See [`Pallet::freeze`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Freeze'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::thaw`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Thaw'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::freeze_asset`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::thaw_asset`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ThawAsset'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_metadata`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::force_clear_metadata`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::force_asset_status`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'CancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_cancel_approval`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_approved`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - destination: MultiAddressLike; - amount: bigint; - }; - }; - } - > - >; - - /** - * See [`Pallet::touch`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - touch: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Touch'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::refund`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Refund'; - params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::set_min_balance`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch_other`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TouchOther'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::refund_other`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'RefundOther'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::block`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Block'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `PoolAssets`'s transaction calls - **/ - poolAssets: { - /** - * See [`Pallet::create`]. - * - * @param {number} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: number, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Create'; - params: { id: number; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_create`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceCreate'; - params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::start_destroy`]. - * - * @param {number} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'StartDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_accounts`]. - * - * @param {number} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::destroy_approvals`]. - * - * @param {number} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::finish_destroy`]. - * - * @param {number} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::mint`]. - * - * @param {number} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: number, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Mint'; - params: { id: number; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::burn`]. - * - * @param {number} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Burn'; - params: { id: number; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Transfer'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_keep_alive`]. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::force_transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: number, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceTransfer'; - params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::freeze`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Freeze'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::thaw`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Thaw'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::freeze_asset`]. - * - * @param {number} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::thaw_asset`]. - * - * @param {number} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ThawAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_ownership`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_team`]. - * - * @param {number} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::set_metadata`]. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number }; - }; - } - > - >; - - /** - * See [`Pallet::clear_metadata`]. - * - * @param {number} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_set_metadata`]. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::force_clear_metadata`]. - * - * @param {number} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::force_asset_status`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::approve_transfer`]. - * - * @param {number} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: number; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::cancel_approval`]. - * - * @param {number} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'CancelApproval'; - params: { id: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::force_cancel_approval`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::transfer_approved`]. - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch`]. - * - * @param {number} id - **/ - touch: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Touch'; - params: { id: number }; - }; - } - > - >; - - /** - * See [`Pallet::refund`]. - * - * @param {number} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: number, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Refund'; - params: { id: number; allowBurn: boolean }; - }; - } - > - >; - - /** - * See [`Pallet::set_min_balance`]. - * - * @param {number} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: number, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: number; minBalance: bigint }; - }; - } - > - >; - - /** - * See [`Pallet::touch_other`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TouchOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::refund_other`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'RefundOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * See [`Pallet::block`]. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Block'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `AssetConversion`'s transaction calls - **/ - assetConversion: { - /** - * See [`Pallet::create_pool`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - createPool: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * See [`Pallet::add_liquidity`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount1Desired - * @param {bigint} amount2Desired - * @param {bigint} amount1Min - * @param {bigint} amount2Min - * @param {AccountId32Like} mintTo - **/ - addLiquidity: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount1Desired: bigint, - amount2Desired: bigint, - amount1Min: bigint, - amount2Min: bigint, - mintTo: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32Like; - }; - }; - } - > - >; - - /** - * See [`Pallet::remove_liquidity`]. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} lpTokenBurn - * @param {bigint} amount1MinReceive - * @param {bigint} amount2MinReceive - * @param {AccountId32Like} withdrawTo - **/ - removeLiquidity: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - lpTokenBurn: bigint, - amount1MinReceive: bigint, - amount2MinReceive: bigint, - withdrawTo: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32Like; - }; - }; - } - > - >; - - /** - * See [`Pallet::swap_exact_tokens_for_tokens`]. - * - * @param {Array} path - * @param {bigint} amountIn - * @param {bigint} amountOutMin - * @param {AccountId32Like} sendTo - * @param {boolean} keepAlive - **/ - swapExactTokensForTokens: GenericTxCall< - Rv, - ( - path: Array, - amountIn: bigint, - amountOutMin: bigint, - sendTo: AccountId32Like, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - } - > - >; - - /** - * See [`Pallet::swap_tokens_for_exact_tokens`]. - * - * @param {Array} path - * @param {bigint} amountOut - * @param {bigint} amountInMax - * @param {AccountId32Like} sendTo - * @param {boolean} keepAlive - **/ - swapTokensForExactTokens: GenericTxCall< - Rv, - ( - path: Array, - amountOut: bigint, - amountInMax: bigint, - sendTo: AccountId32Like, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; -} diff --git a/packages/chaintypes/src/polkadotAssetHub/types.d.ts b/packages/chaintypes/src/polkadotAssetHub/types.d.ts deleted file mode 100644 index 56f8f63..0000000 --- a/packages/chaintypes/src/polkadotAssetHub/types.d.ts +++ /dev/null @@ -1,6829 +0,0 @@ -// Generated by dedot cli - -import type { - Phase, - H256, - DispatchInfo, - DispatchError, - AccountId32, - FixedBytes, - FixedArray, - Bytes, - Result, - Permill, - BytesLike, - MultiAddress, - MultiAddressLike, - AccountId32Like, - FixedU128, - Era, - Header, - UncheckedExtrinsic, -} from 'dedot/codecs'; - -export type FrameSystemAccountInfo = { - nonce: number; - consumers: number; - providers: number; - sufficients: number; - data: PalletBalancesAccountData; -}; - -export type PalletBalancesAccountData = { - free: bigint; - reserved: bigint; - frozen: bigint; - flags: PalletBalancesExtraFlags; -}; - -export type PalletBalancesExtraFlags = bigint; - -export type FrameSupportDispatchPerDispatchClass = { - normal: SpWeightsWeightV2Weight; - operational: SpWeightsWeightV2Weight; - mandatory: SpWeightsWeightV2Weight; -}; - -export type SpWeightsWeightV2Weight = { refTime: bigint; proofSize: bigint }; - -export type FrameSystemEventRecord = { phase: Phase; event: AssetHubPolkadotRuntimeRuntimeEvent; topics: Array }; - -export type AssetHubPolkadotRuntimeRuntimeEvent = - | { pallet: 'System'; palletEvent: FrameSystemEvent } - | { pallet: 'ParachainSystem'; palletEvent: CumulusPalletParachainSystemEvent } - | { pallet: 'Balances'; palletEvent: PalletBalancesEvent } - | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent } - | { pallet: 'AssetTxPayment'; palletEvent: PalletAssetConversionTxPaymentEvent } - | { pallet: 'Vesting'; palletEvent: PalletVestingEvent } - | { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent } - | { pallet: 'Session'; palletEvent: PalletSessionEvent } - | { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent } - | { pallet: 'PolkadotXcm'; palletEvent: PalletXcmEvent } - | { pallet: 'CumulusXcm'; palletEvent: CumulusPalletXcmEvent } - | { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent } - | { pallet: 'Utility'; palletEvent: PalletUtilityEvent } - | { pallet: 'Multisig'; palletEvent: PalletMultisigEvent } - | { pallet: 'Proxy'; palletEvent: PalletProxyEvent } - | { pallet: 'Assets'; palletEvent: PalletAssetsEvent } - | { pallet: 'Uniques'; palletEvent: PalletUniquesEvent } - | { pallet: 'Nfts'; palletEvent: PalletNftsEvent } - | { pallet: 'ForeignAssets'; palletEvent: PalletAssetsEvent002 } - | { pallet: 'PoolAssets'; palletEvent: PalletAssetsEvent } - | { pallet: 'AssetConversion'; palletEvent: PalletAssetConversionEvent }; - -/** - * Event for the System pallet. - **/ -export type FrameSystemEvent = - /** - * An extrinsic completed successfully. - **/ - | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: DispatchInfo } } - /** - * An extrinsic failed. - **/ - | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: DispatchInfo } } - /** - * `:code` was updated. - **/ - | { name: 'CodeUpdated' } - /** - * A new account was created. - **/ - | { name: 'NewAccount'; data: { account: AccountId32 } } - /** - * An account was reaped. - **/ - | { name: 'KilledAccount'; data: { account: AccountId32 } } - /** - * On on-chain remark happened. - **/ - | { name: 'Remarked'; data: { sender: AccountId32; hash: H256 } } - /** - * An upgrade was authorized. - **/ - | { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } }; - -export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory'; - -export type FrameSupportDispatchPays = 'Yes' | 'No'; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletParachainSystemEvent = - /** - * The validation function has been scheduled to apply. - **/ - | { name: 'ValidationFunctionStored' } - /** - * The validation function was applied as of the contained relay chain block number. - **/ - | { name: 'ValidationFunctionApplied'; data: { relayChainBlockNum: number } } - /** - * The relay-chain aborted the upgrade process. - **/ - | { name: 'ValidationFunctionDiscarded' } - /** - * Some downward messages have been received and will be processed. - **/ - | { name: 'DownwardMessagesReceived'; data: { count: number } } - /** - * Downward messages were processed using the given weight. - **/ - | { name: 'DownwardMessagesProcessed'; data: { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } } - /** - * An upward message was sent to the relay chain. - **/ - | { name: 'UpwardMessageSent'; data: { messageHash?: FixedBytes<32> | undefined } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletBalancesEvent = - /** - * An account was created with some free balance. - **/ - | { name: 'Endowed'; data: { account: AccountId32; freeBalance: bigint } } - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - | { name: 'DustLost'; data: { account: AccountId32; amount: bigint } } - /** - * Transfer succeeded. - **/ - | { name: 'Transfer'; data: { from: AccountId32; to: AccountId32; amount: bigint } } - /** - * A balance was set by root. - **/ - | { name: 'BalanceSet'; data: { who: AccountId32; free: bigint } } - /** - * Some balance was reserved (moved from free to reserved). - **/ - | { name: 'Reserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unreserved (moved from reserved to free). - **/ - | { name: 'Unreserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - | { - name: 'ReserveRepatriated'; - data: { - from: AccountId32; - to: AccountId32; - amount: bigint; - destinationStatus: FrameSupportTokensMiscBalanceStatus; - }; - } - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - | { name: 'Deposit'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - | { name: 'Withdraw'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - | { name: 'Slashed'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was minted into an account. - **/ - | { name: 'Minted'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was burned from an account. - **/ - | { name: 'Burned'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was suspended from an account (it can be restored later). - **/ - | { name: 'Suspended'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was restored into an account. - **/ - | { name: 'Restored'; data: { who: AccountId32; amount: bigint } } - /** - * An account was upgraded. - **/ - | { name: 'Upgraded'; data: { who: AccountId32 } } - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - | { name: 'Issued'; data: { amount: bigint } } - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - | { name: 'Rescinded'; data: { amount: bigint } } - /** - * Some balance was locked. - **/ - | { name: 'Locked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unlocked. - **/ - | { name: 'Unlocked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was frozen. - **/ - | { name: 'Frozen'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was thawed. - **/ - | { name: 'Thawed'; data: { who: AccountId32; amount: bigint } } - /** - * The `TotalIssuance` was forcefully changed. - **/ - | { name: 'TotalIssuanceForced'; data: { old: bigint; new: bigint } }; - -export type FrameSupportTokensMiscBalanceStatus = 'Free' | 'Reserved'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletTransactionPaymentEvent = - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - { name: 'TransactionFeePaid'; data: { who: AccountId32; actualFee: bigint; tip: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionTxPaymentEvent = - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who` in an asset `asset_id`. - **/ - | { - name: 'AssetTxFeePaid'; - data: { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV3MultilocationMultiLocation }; - } - /** - * A swap of the refund in native currency back to asset failed. - **/ - | { name: 'AssetRefundFailed'; data: { nativeAmountKept: bigint } }; - -export type StagingXcmV3MultilocationMultiLocation = { parents: number; interior: XcmV3Junctions }; - -export type XcmV3Junctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV3Junction } - | { type: 'X2'; value: [XcmV3Junction, XcmV3Junction] } - | { type: 'X3'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X4'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X5'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X6'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { - type: 'X7'; - value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]; - } - | { - type: 'X8'; - value: [ - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - ]; - }; - -export type XcmV3Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: XcmV3JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: XcmV3JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: XcmV3JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: XcmV3JunctionNetworkId }; - -export type XcmV3JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type XcmV3JunctionBodyId = - | { type: 'Unit' } - | { type: 'Moniker'; value: FixedBytes<4> } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV3JunctionBodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletVestingEvent = - /** - * The amount vested has been updated. This could indicate a change in funds available. - * The balance given is the amount which is left unvested (and thus locked). - **/ - | { name: 'VestingUpdated'; data: { account: AccountId32; unvested: bigint } } - /** - * An \[account\] has become fully vested. - **/ - | { name: 'VestingCompleted'; data: { account: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletCollatorSelectionEvent = - /** - * New Invulnerables were set. - **/ - | { name: 'NewInvulnerables'; data: { invulnerables: Array } } - /** - * A new Invulnerable was added. - **/ - | { name: 'InvulnerableAdded'; data: { accountId: AccountId32 } } - /** - * An Invulnerable was removed. - **/ - | { name: 'InvulnerableRemoved'; data: { accountId: AccountId32 } } - /** - * The number of desired candidates was set. - **/ - | { name: 'NewDesiredCandidates'; data: { desiredCandidates: number } } - /** - * The candidacy bond was set. - **/ - | { name: 'NewCandidacyBond'; data: { bondAmount: bigint } } - /** - * A new candidate joined. - **/ - | { name: 'CandidateAdded'; data: { accountId: AccountId32; deposit: bigint } } - /** - * Bond of a candidate updated. - **/ - | { name: 'CandidateBondUpdated'; data: { accountId: AccountId32; deposit: bigint } } - /** - * A candidate was removed. - **/ - | { name: 'CandidateRemoved'; data: { accountId: AccountId32 } } - /** - * An account was replaced in the candidate list by another one. - **/ - | { name: 'CandidateReplaced'; data: { old: AccountId32; new: AccountId32; deposit: bigint } } - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - | { name: 'InvalidInvulnerableSkipped'; data: { accountId: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletSessionEvent = - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - { name: 'NewSession'; data: { sessionIndex: number } }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmpQueueEvent = - /** - * An HRMP message was sent to a sibling parachain. - **/ - { name: 'XcmpMessageSent'; data: { messageHash: FixedBytes<32> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletXcmEvent = - /** - * Execution of an XCM message was attempted. - **/ - | { name: 'Attempted'; data: { outcome: StagingXcmV4TraitsOutcome } } - /** - * A XCM message was sent. - **/ - | { - name: 'Sent'; - data: { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - }; - } - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - | { name: 'UnexpectedResponse'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - | { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV4Response } } - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - | { name: 'Notified'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - | { - name: 'NotifyOverweight'; - data: { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - | { name: 'NotifyDispatchError'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - | { name: 'NotifyDecodeFailed'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidResponder'; - data: { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined }; - } - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Received query response has been read and removed. - **/ - | { name: 'ResponseTaken'; data: { queryId: bigint } } - /** - * Some assets have been placed in an asset trap. - **/ - | { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - | { - name: 'VersionChangeNotified'; - data: { - destination: StagingXcmV4Location; - result: number; - cost: StagingXcmV4AssetAssets; - messageId: FixedBytes<32>; - }; - } - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - | { name: 'SupportedVersionChanged'; data: { location: StagingXcmV4Location; version: number } } - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - | { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } } - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - | { name: 'NotifyTargetMigrationFail'; data: { location: XcmVersionedLocation; queryId: bigint } } - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidQuerier'; - data: { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - }; - } - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - | { - name: 'VersionNotifyStarted'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - | { - name: 'VersionNotifyRequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - | { - name: 'VersionNotifyUnrequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - | { name: 'FeesPaid'; data: { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } } - /** - * Some assets have been claimed from an asset trap - **/ - | { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * A XCM version migration finished. - **/ - | { name: 'VersionMigrationFinished'; data: { version: number } }; - -export type StagingXcmV4TraitsOutcome = - | { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } } - | { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV3TraitsError } } - | { type: 'Error'; value: { error: XcmV3TraitsError } }; - -export type XcmV3TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'LocationFull' } - | { type: 'LocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'ExpectationFalse' } - | { type: 'PalletNotFound' } - | { type: 'NameMismatch' } - | { type: 'VersionIncompatible' } - | { type: 'HoldingWouldOverflow' } - | { type: 'ExportError' } - | { type: 'ReanchorFailed' } - | { type: 'NoDeal' } - | { type: 'FeesNotMet' } - | { type: 'LockError' } - | { type: 'NoPermission' } - | { type: 'Unanchored' } - | { type: 'NotDepositable' } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' } - | { type: 'ExceedsStackLimit' }; - -export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions }; - -export type StagingXcmV4Junctions = - | { type: 'Here' } - | { type: 'X1'; value: FixedArray } - | { type: 'X2'; value: FixedArray } - | { type: 'X3'; value: FixedArray } - | { type: 'X4'; value: FixedArray } - | { type: 'X5'; value: FixedArray } - | { type: 'X6'; value: FixedArray } - | { type: 'X7'; value: FixedArray } - | { type: 'X8'; value: FixedArray }; - -export type StagingXcmV4Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId }; - -export type StagingXcmV4JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type StagingXcmV4Xcm = Array; - -export type StagingXcmV4Instruction = - | { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets } - | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: StagingXcmV4Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV4Location | undefined; - }; - } - | { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } } - | { - type: 'TransferReserveAsset'; - value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV2OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: StagingXcmV4Junctions } - | { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo } - | { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } } - | { - type: 'DepositReserveAsset'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ReportHolding'; - value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter }; - } - | { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: StagingXcmV4Xcm } - | { type: 'SetAppendix'; value: StagingXcmV4Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: StagingXcmV4Junction } - | { - type: 'ExportMessage'; - value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm }; - } - | { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } } - | { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } } - | { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } } - | { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV4Location } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined }; - }; - -export type StagingXcmV4AssetAssets = Array; - -export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility }; - -export type StagingXcmV4AssetAssetId = StagingXcmV4Location; - -export type StagingXcmV4AssetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance }; - -export type StagingXcmV4AssetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type StagingXcmV4Response = - | { type: 'Null' } - | { type: 'Assets'; value: StagingXcmV4AssetAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type StagingXcmV4PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type XcmV3MaybeErrorCode = - | { type: 'Success' } - | { type: 'Error'; value: Bytes } - | { type: 'TruncatedError'; value: Bytes }; - -export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; - -export type XcmDoubleEncoded = { encoded: Bytes }; - -export type StagingXcmV4QueryResponseInfo = { - destination: StagingXcmV4Location; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type StagingXcmV4AssetAssetFilter = - | { type: 'Definite'; value: StagingXcmV4AssetAssets } - | { type: 'Wild'; value: StagingXcmV4AssetWildAsset }; - -export type StagingXcmV4AssetWildAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { - type: 'AllOfCounted'; - value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number }; - }; - -export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight }; - -export type XcmVersionedAssets = - | { type: 'V2'; value: XcmV2MultiassetMultiAssets } - | { type: 'V3'; value: XcmV3MultiassetMultiAssets } - | { type: 'V4'; value: StagingXcmV4AssetAssets }; - -export type XcmV2MultiassetMultiAssets = Array; - -export type XcmV2MultiassetMultiAsset = { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetFungibility }; - -export type XcmV2MultiassetAssetId = - | { type: 'Concrete'; value: XcmV2MultilocationMultiLocation } - | { type: 'Abstract'; value: Bytes }; - -export type XcmV2MultilocationMultiLocation = { parents: number; interior: XcmV2MultilocationJunctions }; - -export type XcmV2MultilocationJunctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV2Junction } - | { type: 'X2'; value: [XcmV2Junction, XcmV2Junction] } - | { type: 'X3'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X4'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X5'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X6'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { - type: 'X7'; - value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]; - } - | { - type: 'X8'; - value: [ - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - ]; - }; - -export type XcmV2Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network: XcmV2NetworkId; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network: XcmV2NetworkId; index: bigint } } - | { type: 'AccountKey20'; value: { network: XcmV2NetworkId; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: Bytes } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV2BodyId; part: XcmV2BodyPart } }; - -export type XcmV2NetworkId = - | { type: 'Any' } - | { type: 'Named'; value: Bytes } - | { type: 'Polkadot' } - | { type: 'Kusama' }; - -export type XcmV2BodyId = - | { type: 'Unit' } - | { type: 'Named'; value: Bytes } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV2BodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -export type XcmV2MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV2MultiassetAssetInstance }; - -export type XcmV2MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> } - | { type: 'Blob'; value: Bytes }; - -export type XcmV3MultiassetMultiAssets = Array; - -export type XcmV3MultiassetMultiAsset = { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetFungibility }; - -export type XcmV3MultiassetAssetId = - | { type: 'Concrete'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'Abstract'; value: FixedBytes<32> }; - -export type XcmV3MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV3MultiassetAssetInstance }; - -export type XcmV3MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type XcmVersionedLocation = - | { type: 'V2'; value: XcmV2MultilocationMultiLocation } - | { type: 'V3'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'V4'; value: StagingXcmV4Location }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmEvent = - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - | { name: 'InvalidFormat'; data: FixedBytes<32> } - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - | { name: 'UnsupportedVersion'; data: FixedBytes<32> } - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - | { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV4TraitsOutcome] }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMessageQueueEvent = - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - | { - name: 'ProcessingFailed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - }; - } - /** - * Message is processed. - **/ - | { - name: 'Processed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - }; - } - /** - * Message placed in overweight queue. - **/ - | { - name: 'OverweightEnqueued'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - }; - } - /** - * This page was reaped. - **/ - | { - name: 'PageReaped'; - data: { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - }; - }; - -export type CumulusPrimitivesCoreAggregateMessageOrigin = - | { type: 'Here' } - | { type: 'Parent' } - | { type: 'Sibling'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type PolkadotParachainPrimitivesPrimitivesId = number; - -export type FrameSupportMessagesProcessMessageError = - | { type: 'BadFormat' } - | { type: 'Corrupt' } - | { type: 'Unsupported' } - | { type: 'Overweight'; value: SpWeightsWeightV2Weight } - | { type: 'Yield' }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletUtilityEvent = - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - | { name: 'BatchInterrupted'; data: { index: number; error: DispatchError } } - /** - * Batch of dispatches completed fully with no error. - **/ - | { name: 'BatchCompleted' } - /** - * Batch of dispatches completed but has errors. - **/ - | { name: 'BatchCompletedWithErrors' } - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - | { name: 'ItemCompleted' } - /** - * A single item within a Batch of dispatches has completed with error. - **/ - | { name: 'ItemFailed'; data: { error: DispatchError } } - /** - * A call was dispatched. - **/ - | { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMultisigEvent = - /** - * A new multisig operation has begun. - **/ - | { name: 'NewMultisig'; data: { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } } - /** - * A multisig operation has been approved by someone. - **/ - | { - name: 'MultisigApproval'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - } - /** - * A multisig operation has been executed. - **/ - | { - name: 'MultisigExecuted'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - }; - } - /** - * A multisig operation has been cancelled. - **/ - | { - name: 'MultisigCancelled'; - data: { - cancelling: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigTimepoint = { height: number; index: number }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletProxyEvent = - /** - * A proxy was executed correctly, with the given. - **/ - | { name: 'ProxyExecuted'; data: { result: Result<[], DispatchError> } } - /** - * A pure account has been created by new proxy with given - * disambiguation index and proxy type. - **/ - | { - name: 'PureCreated'; - data: { - pure: AccountId32; - who: AccountId32; - proxyType: AssetHubPolkadotRuntimeProxyType; - disambiguationIndex: number; - }; - } - /** - * An announcement was placed to make a call in the future. - **/ - | { name: 'Announced'; data: { real: AccountId32; proxy: AccountId32; callHash: H256 } } - /** - * A proxy was added. - **/ - | { - name: 'ProxyAdded'; - data: { - delegator: AccountId32; - delegatee: AccountId32; - proxyType: AssetHubPolkadotRuntimeProxyType; - delay: number; - }; - } - /** - * A proxy was removed. - **/ - | { - name: 'ProxyRemoved'; - data: { - delegator: AccountId32; - delegatee: AccountId32; - proxyType: AssetHubPolkadotRuntimeProxyType; - delay: number; - }; - }; - -export type AssetHubPolkadotRuntimeProxyType = - | 'Any' - | 'NonTransfer' - | 'CancelProxy' - | 'Assets' - | 'AssetOwner' - | 'AssetManager' - | 'Collator'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsEvent = - /** - * Some asset class was created. - **/ - | { name: 'Created'; data: { assetId: number; creator: AccountId32; owner: AccountId32 } } - /** - * Some assets were issued. - **/ - | { name: 'Issued'; data: { assetId: number; owner: AccountId32; amount: bigint } } - /** - * Some assets were transferred. - **/ - | { name: 'Transferred'; data: { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } } - /** - * Some assets were destroyed. - **/ - | { name: 'Burned'; data: { assetId: number; owner: AccountId32; balance: bigint } } - /** - * The management team changed. - **/ - | { name: 'TeamChanged'; data: { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { assetId: number; owner: AccountId32 } } - /** - * Some account `who` was frozen. - **/ - | { name: 'Frozen'; data: { assetId: number; who: AccountId32 } } - /** - * Some account `who` was thawed. - **/ - | { name: 'Thawed'; data: { assetId: number; who: AccountId32 } } - /** - * Some asset `asset_id` was frozen. - **/ - | { name: 'AssetFrozen'; data: { assetId: number } } - /** - * Some asset `asset_id` was thawed. - **/ - | { name: 'AssetThawed'; data: { assetId: number } } - /** - * Accounts were destroyed for given asset. - **/ - | { name: 'AccountsDestroyed'; data: { assetId: number; accountsDestroyed: number; accountsRemaining: number } } - /** - * Approvals were destroyed for given asset. - **/ - | { name: 'ApprovalsDestroyed'; data: { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } } - /** - * An asset class is in the process of being destroyed. - **/ - | { name: 'DestructionStarted'; data: { assetId: number } } - /** - * An asset class was destroyed. - **/ - | { name: 'Destroyed'; data: { assetId: number } } - /** - * Some asset class was force-created. - **/ - | { name: 'ForceCreated'; data: { assetId: number; owner: AccountId32 } } - /** - * New metadata has been set for an asset. - **/ - | { name: 'MetadataSet'; data: { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } } - /** - * Metadata has been cleared for an asset. - **/ - | { name: 'MetadataCleared'; data: { assetId: number } } - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - | { name: 'ApprovedTransfer'; data: { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } } - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { assetId: number; owner: AccountId32; delegate: AccountId32 } } - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - | { - name: 'TransferredApproved'; - data: { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint }; - } - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - | { name: 'AssetStatusChanged'; data: { assetId: number } } - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - | { name: 'AssetMinBalanceChanged'; data: { assetId: number; newMinBalance: bigint } } - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - | { name: 'Touched'; data: { assetId: number; who: AccountId32; depositor: AccountId32 } } - /** - * Some account `who` was blocked. - **/ - | { name: 'Blocked'; data: { assetId: number; who: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletUniquesEvent = - /** - * A `collection` was created. - **/ - | { name: 'Created'; data: { collection: number; creator: AccountId32; owner: AccountId32 } } - /** - * A `collection` was force-created. - **/ - | { name: 'ForceCreated'; data: { collection: number; owner: AccountId32 } } - /** - * A `collection` was destroyed. - **/ - | { name: 'Destroyed'; data: { collection: number } } - /** - * An `item` was issued. - **/ - | { name: 'Issued'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` was transferred. - **/ - | { name: 'Transferred'; data: { collection: number; item: number; from: AccountId32; to: AccountId32 } } - /** - * An `item` was destroyed. - **/ - | { name: 'Burned'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * Some `item` was frozen. - **/ - | { name: 'Frozen'; data: { collection: number; item: number } } - /** - * Some `item` was thawed. - **/ - | { name: 'Thawed'; data: { collection: number; item: number } } - /** - * Some `collection` was frozen. - **/ - | { name: 'CollectionFrozen'; data: { collection: number } } - /** - * Some `collection` was thawed. - **/ - | { name: 'CollectionThawed'; data: { collection: number } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { collection: number; newOwner: AccountId32 } } - /** - * The management team changed. - **/ - | { name: 'TeamChanged'; data: { collection: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } } - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - | { name: 'ApprovedTransfer'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * A `collection` has had its attributes changed by the `Force` origin. - **/ - | { name: 'ItemStatusChanged'; data: { collection: number } } - /** - * New metadata has been set for a `collection`. - **/ - | { name: 'CollectionMetadataSet'; data: { collection: number; data: Bytes; isFrozen: boolean } } - /** - * Metadata has been cleared for a `collection`. - **/ - | { name: 'CollectionMetadataCleared'; data: { collection: number } } - /** - * New metadata has been set for an item. - **/ - | { name: 'MetadataSet'; data: { collection: number; item: number; data: Bytes; isFrozen: boolean } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'MetadataCleared'; data: { collection: number; item: number } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'Redeposited'; data: { collection: number; successfulItems: Array } } - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - | { name: 'AttributeSet'; data: { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } } - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - | { name: 'AttributeCleared'; data: { collection: number; maybeItem?: number | undefined; key: Bytes } } - /** - * Ownership acceptance has changed for an account. - **/ - | { name: 'OwnershipAcceptanceChanged'; data: { who: AccountId32; maybeCollection?: number | undefined } } - /** - * Max supply has been set for a collection. - **/ - | { name: 'CollectionMaxSupplySet'; data: { collection: number; maxSupply: number } } - /** - * The price was set for the instance. - **/ - | { - name: 'ItemPriceSet'; - data: { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined }; - } - /** - * The price for the instance was removed. - **/ - | { name: 'ItemPriceRemoved'; data: { collection: number; item: number } } - /** - * An item was bought. - **/ - | { - name: 'ItemBought'; - data: { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 }; - }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletNftsEvent = - /** - * A `collection` was created. - **/ - | { name: 'Created'; data: { collection: number; creator: AccountId32; owner: AccountId32 } } - /** - * A `collection` was force-created. - **/ - | { name: 'ForceCreated'; data: { collection: number; owner: AccountId32 } } - /** - * A `collection` was destroyed. - **/ - | { name: 'Destroyed'; data: { collection: number } } - /** - * An `item` was issued. - **/ - | { name: 'Issued'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` was transferred. - **/ - | { name: 'Transferred'; data: { collection: number; item: number; from: AccountId32; to: AccountId32 } } - /** - * An `item` was destroyed. - **/ - | { name: 'Burned'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` became non-transferable. - **/ - | { name: 'ItemTransferLocked'; data: { collection: number; item: number } } - /** - * An `item` became transferable. - **/ - | { name: 'ItemTransferUnlocked'; data: { collection: number; item: number } } - /** - * `item` metadata or attributes were locked. - **/ - | { - name: 'ItemPropertiesLocked'; - data: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * Some `collection` was locked. - **/ - | { name: 'CollectionLocked'; data: { collection: number } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { collection: number; newOwner: AccountId32 } } - /** - * The management team changed. - **/ - | { - name: 'TeamChanged'; - data: { - collection: number; - issuer?: AccountId32 | undefined; - admin?: AccountId32 | undefined; - freezer?: AccountId32 | undefined; - }; - } - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - | { - name: 'TransferApproved'; - data: { - collection: number; - item: number; - owner: AccountId32; - delegate: AccountId32; - deadline?: number | undefined; - }; - } - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * All approvals of an item got cancelled. - **/ - | { name: 'AllApprovalsCancelled'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * A `collection` has had its config changed by the `Force` origin. - **/ - | { name: 'CollectionConfigChanged'; data: { collection: number } } - /** - * New metadata has been set for a `collection`. - **/ - | { name: 'CollectionMetadataSet'; data: { collection: number; data: Bytes } } - /** - * Metadata has been cleared for a `collection`. - **/ - | { name: 'CollectionMetadataCleared'; data: { collection: number } } - /** - * New metadata has been set for an item. - **/ - | { name: 'ItemMetadataSet'; data: { collection: number; item: number; data: Bytes } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'ItemMetadataCleared'; data: { collection: number; item: number } } - /** - * The deposit for a set of `item`s within a `collection` has been updated. - **/ - | { name: 'Redeposited'; data: { collection: number; successfulItems: Array } } - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - | { - name: 'AttributeSet'; - data: { - collection: number; - maybeItem?: number | undefined; - key: Bytes; - value: Bytes; - namespace: PalletNftsAttributeNamespace; - }; - } - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - | { - name: 'AttributeCleared'; - data: { collection: number; maybeItem?: number | undefined; key: Bytes; namespace: PalletNftsAttributeNamespace }; - } - /** - * A new approval to modify item attributes was added. - **/ - | { name: 'ItemAttributesApprovalAdded'; data: { collection: number; item: number; delegate: AccountId32 } } - /** - * A new approval to modify item attributes was removed. - **/ - | { name: 'ItemAttributesApprovalRemoved'; data: { collection: number; item: number; delegate: AccountId32 } } - /** - * Ownership acceptance has changed for an account. - **/ - | { name: 'OwnershipAcceptanceChanged'; data: { who: AccountId32; maybeCollection?: number | undefined } } - /** - * Max supply has been set for a collection. - **/ - | { name: 'CollectionMaxSupplySet'; data: { collection: number; maxSupply: number } } - /** - * Mint settings for a collection had changed. - **/ - | { name: 'CollectionMintSettingsUpdated'; data: { collection: number } } - /** - * Event gets emitted when the `NextCollectionId` gets incremented. - **/ - | { name: 'NextCollectionIdIncremented'; data: { nextId?: number | undefined } } - /** - * The price was set for the item. - **/ - | { - name: 'ItemPriceSet'; - data: { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined }; - } - /** - * The price for the item was removed. - **/ - | { name: 'ItemPriceRemoved'; data: { collection: number; item: number } } - /** - * An item was bought. - **/ - | { - name: 'ItemBought'; - data: { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 }; - } - /** - * A tip was sent. - **/ - | { - name: 'TipSent'; - data: { collection: number; item: number; sender: AccountId32; receiver: AccountId32; amount: bigint }; - } - /** - * An `item` swap intent was created. - **/ - | { - name: 'SwapCreated'; - data: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * The swap was cancelled. - **/ - | { - name: 'SwapCancelled'; - data: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * The swap has been claimed. - **/ - | { - name: 'SwapClaimed'; - data: { - sentCollection: number; - sentItem: number; - sentItemOwner: AccountId32; - receivedCollection: number; - receivedItem: number; - receivedItemOwner: AccountId32; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * New attributes have been set for an `item` of the `collection`. - **/ - | { - name: 'PreSignedAttributesSet'; - data: { collection: number; item: number; namespace: PalletNftsAttributeNamespace }; - } - /** - * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` - * within that `collection`. - **/ - | { - name: 'PalletAttributeSet'; - data: { collection: number; item?: number | undefined; attribute: PalletNftsPalletAttributes; value: Bytes }; - }; - -export type PalletNftsAttributeNamespace = - | { type: 'Pallet' } - | { type: 'CollectionOwner' } - | { type: 'ItemOwner' } - | { type: 'Account'; value: AccountId32 }; - -export type PalletNftsPriceWithDirection = { amount: bigint; direction: PalletNftsPriceDirection }; - -export type PalletNftsPriceDirection = 'Send' | 'Receive'; - -export type PalletNftsPalletAttributes = { type: 'UsedToClaim'; value: number } | { type: 'TransferDisabled' }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsEvent002 = - /** - * Some asset class was created. - **/ - | { - name: 'Created'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; creator: AccountId32; owner: AccountId32 }; - } - /** - * Some assets were issued. - **/ - | { name: 'Issued'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; amount: bigint } } - /** - * Some assets were transferred. - **/ - | { - name: 'Transferred'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; from: AccountId32; to: AccountId32; amount: bigint }; - } - /** - * Some assets were destroyed. - **/ - | { name: 'Burned'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; balance: bigint } } - /** - * The management team changed. - **/ - | { - name: 'TeamChanged'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - }; - } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } } - /** - * Some account `who` was frozen. - **/ - | { name: 'Frozen'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some account `who` was thawed. - **/ - | { name: 'Thawed'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some asset `asset_id` was frozen. - **/ - | { name: 'AssetFrozen'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Some asset `asset_id` was thawed. - **/ - | { name: 'AssetThawed'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Accounts were destroyed for given asset. - **/ - | { - name: 'AccountsDestroyed'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; accountsDestroyed: number; accountsRemaining: number }; - } - /** - * Approvals were destroyed for given asset. - **/ - | { - name: 'ApprovalsDestroyed'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; approvalsDestroyed: number; approvalsRemaining: number }; - } - /** - * An asset class is in the process of being destroyed. - **/ - | { name: 'DestructionStarted'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * An asset class was destroyed. - **/ - | { name: 'Destroyed'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Some asset class was force-created. - **/ - | { name: 'ForceCreated'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } } - /** - * New metadata has been set for an asset. - **/ - | { - name: 'MetadataSet'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - }; - } - /** - * Metadata has been cleared for an asset. - **/ - | { name: 'MetadataCleared'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - | { - name: 'ApprovedTransfer'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - source: AccountId32; - delegate: AccountId32; - amount: bigint; - }; - } - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - | { - name: 'ApprovalCancelled'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; delegate: AccountId32 }; - } - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - | { - name: 'TransferredApproved'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - owner: AccountId32; - delegate: AccountId32; - destination: AccountId32; - amount: bigint; - }; - } - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - | { name: 'AssetStatusChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - | { name: 'AssetMinBalanceChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation; newMinBalance: bigint } } - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - | { - name: 'Touched'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; depositor: AccountId32 }; - } - /** - * Some account `who` was blocked. - **/ - | { name: 'Blocked'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionEvent = - /** - * A successful call of the `CretaPool` extrinsic will create this event. - **/ - | { - name: 'PoolCreated'; - data: { - /** - * The account that created the pool. - **/ - creator: AccountId32; - - /** - * The pool id associated with the pool. Note that the order of the assets may not be - * the same as the order specified in the create pool extrinsic. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account ID of the pool. - **/ - poolAccount: AccountId32; - - /** - * The id of the liquidity tokens that will be minted when assets are added to this - * pool. - **/ - lpToken: number; - }; - } - /** - * A successful call of the `AddLiquidity` extrinsic will create this event. - **/ - | { - name: 'LiquidityAdded'; - data: { - /** - * The account that the liquidity was taken from. - **/ - who: AccountId32; - - /** - * The account that the liquidity tokens were minted to. - **/ - mintTo: AccountId32; - - /** - * The pool id of the pool that the liquidity was added to. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was added to the pool. - **/ - amount1Provided: bigint; - - /** - * The amount of the second asset that was added to the pool. - **/ - amount2Provided: bigint; - - /** - * The id of the lp token that was minted. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were minted of that id. - **/ - lpTokenMinted: bigint; - }; - } - /** - * A successful call of the `RemoveLiquidity` extrinsic will create this event. - **/ - | { - name: 'LiquidityRemoved'; - data: { - /** - * The account that the liquidity tokens were burned from. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - withdrawTo: AccountId32; - - /** - * The pool id that the liquidity was removed from. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was removed from the pool. - **/ - amount1: bigint; - - /** - * The amount of the second asset that was removed from the pool. - **/ - amount2: bigint; - - /** - * The id of the lp token that was burned. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were burned of that id. - **/ - lpTokenBurned: bigint; - - /** - * Liquidity withdrawal fee (%). - **/ - withdrawalFee: Permill; - }; - } - /** - * Assets have been converted from one to another. Both `SwapExactTokenForToken` - * and `SwapTokenForExactToken` will generate this event. - **/ - | { - name: 'SwapExecuted'; - data: { - /** - * Which account was the instigator of the swap. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - sendTo: AccountId32; - - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - }; - } - /** - * Assets have been converted from one to another. - **/ - | { - name: 'SwapCreditExecuted'; - data: { - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - }; - }; - -export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string }; - -export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type FrameSystemCall = - /** - * See [`Pallet::remark`]. - **/ - | { name: 'Remark'; params: { remark: Bytes } } - /** - * See [`Pallet::set_heap_pages`]. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * See [`Pallet::set_code`]. - **/ - | { name: 'SetCode'; params: { code: Bytes } } - /** - * See [`Pallet::set_code_without_checks`]. - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: Bytes } } - /** - * See [`Pallet::set_storage`]. - **/ - | { name: 'SetStorage'; params: { items: Array<[Bytes, Bytes]> } } - /** - * See [`Pallet::kill_storage`]. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * See [`Pallet::kill_prefix`]. - **/ - | { name: 'KillPrefix'; params: { prefix: Bytes; subkeys: number } } - /** - * See [`Pallet::remark_with_event`]. - **/ - | { name: 'RemarkWithEvent'; params: { remark: Bytes } } - /** - * See [`Pallet::authorize_upgrade`]. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * See [`Pallet::authorize_upgrade_without_checks`]. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * See [`Pallet::apply_authorized_upgrade`]. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: Bytes } }; - -export type FrameSystemCallLike = - /** - * See [`Pallet::remark`]. - **/ - | { name: 'Remark'; params: { remark: BytesLike } } - /** - * See [`Pallet::set_heap_pages`]. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * See [`Pallet::set_code`]. - **/ - | { name: 'SetCode'; params: { code: BytesLike } } - /** - * See [`Pallet::set_code_without_checks`]. - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: BytesLike } } - /** - * See [`Pallet::set_storage`]. - **/ - | { name: 'SetStorage'; params: { items: Array<[BytesLike, BytesLike]> } } - /** - * See [`Pallet::kill_storage`]. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * See [`Pallet::kill_prefix`]. - **/ - | { name: 'KillPrefix'; params: { prefix: BytesLike; subkeys: number } } - /** - * See [`Pallet::remark_with_event`]. - **/ - | { name: 'RemarkWithEvent'; params: { remark: BytesLike } } - /** - * See [`Pallet::authorize_upgrade`]. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * See [`Pallet::authorize_upgrade_without_checks`]. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * See [`Pallet::apply_authorized_upgrade`]. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type FrameSystemLimitsBlockWeights = { - baseBlock: SpWeightsWeightV2Weight; - maxBlock: SpWeightsWeightV2Weight; - perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; -}; - -export type FrameSupportDispatchPerDispatchClassWeightsPerClass = { - normal: FrameSystemLimitsWeightsPerClass; - operational: FrameSystemLimitsWeightsPerClass; - mandatory: FrameSystemLimitsWeightsPerClass; -}; - -export type FrameSystemLimitsWeightsPerClass = { - baseExtrinsic: SpWeightsWeightV2Weight; - maxExtrinsic?: SpWeightsWeightV2Weight | undefined; - maxTotal?: SpWeightsWeightV2Weight | undefined; - reserved?: SpWeightsWeightV2Weight | undefined; -}; - -export type FrameSystemLimitsBlockLength = { max: FrameSupportDispatchPerDispatchClassU32 }; - -export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number }; - -export type SpWeightsRuntimeDbWeight = { read: bigint; write: bigint }; - -/** - * Error for the System pallet - **/ -export type FrameSystemError = - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - | 'InvalidSpecName' - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - | 'SpecVersionNeedsToIncrease' - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - | 'FailedToExtractRuntimeVersion' - /** - * Suicide called when the account has non-default composite data. - **/ - | 'NonDefaultComposite' - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - | 'NonZeroRefCount' - /** - * The origin filter prevent the call to be dispatched. - **/ - | 'CallFiltered' - /** - * No upgrade authorized. - **/ - | 'NothingAuthorized' - /** - * The submitted code is not authorized. - **/ - | 'Unauthorized'; - -export type CumulusPalletParachainSystemUnincludedSegmentAncestor = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - paraHeadHash?: H256 | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV6UpgradeGoAhead | undefined; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = { - umpMsgCount: number; - umpTotalBytes: number; - hrmpOutgoing: Array< - [PolkadotParachainPrimitivesPrimitivesId, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate] - >; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number }; - -export type PolkadotPrimitivesV6UpgradeGoAhead = 'Abort' | 'GoAhead'; - -export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - hrmpWatermark?: number | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV6UpgradeGoAhead | undefined; -}; - -export type PolkadotPrimitivesV6PersistedValidationData = { - parentHead: PolkadotParachainPrimitivesPrimitivesHeadData; - relayParentNumber: number; - relayParentStorageRoot: H256; - maxPovSize: number; -}; - -export type PolkadotParachainPrimitivesPrimitivesHeadData = Bytes; - -export type PolkadotPrimitivesV6UpgradeRestriction = 'Present'; - -export type SpTrieStorageProof = { trieNodes: Array }; - -export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = { - dmqMqcHead: H256; - relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; - ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV6AbridgedHrmpChannel]>; - egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV6AbridgedHrmpChannel]>; -}; - -export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = { - remainingCount: number; - remainingSize: number; -}; - -export type PolkadotPrimitivesV6AbridgedHrmpChannel = { - maxCapacity: number; - maxTotalSize: number; - maxMessageSize: number; - msgCount: number; - totalSize: number; - mqcHead?: H256 | undefined; -}; - -export type PolkadotPrimitivesV6AbridgedHostConfiguration = { - maxCodeSize: number; - maxHeadDataSize: number; - maxUpwardQueueCount: number; - maxUpwardQueueSize: number; - maxUpwardMessageSize: number; - maxUpwardMessageNumPerCandidate: number; - hrmpMaxMessageNumPerCandidate: number; - validationUpgradeCooldown: number; - validationUpgradeDelay: number; - asyncBackingParams: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams; -}; - -export type PolkadotPrimitivesV6AsyncBackingAsyncBackingParams = { - maxCandidateDepth: number; - allowedAncestryLen: number; -}; - -export type CumulusPrimitivesParachainInherentMessageQueueChain = H256; - -export type PolkadotCorePrimitivesOutboundHrmpMessage = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - data: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletParachainSystemCall = - /** - * See [`Pallet::set_validation_data`]. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - /** - * See [`Pallet::sudo_send_upward_message`]. - **/ - | { name: 'SudoSendUpwardMessage'; params: { message: Bytes } } - /** - * See [`Pallet::authorize_upgrade`]. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * See [`Pallet::enact_authorized_upgrade`]. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: Bytes } }; - -export type CumulusPalletParachainSystemCallLike = - /** - * See [`Pallet::set_validation_data`]. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - /** - * See [`Pallet::sudo_send_upward_message`]. - **/ - | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } } - /** - * See [`Pallet::authorize_upgrade`]. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * See [`Pallet::enact_authorized_upgrade`]. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type CumulusPrimitivesParachainInherentParachainInherentData = { - validationData: PolkadotPrimitivesV6PersistedValidationData; - relayChainState: SpTrieStorageProof; - downwardMessages: Array; - horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array]>; -}; - -export type PolkadotCorePrimitivesInboundDownwardMessage = { sentAt: number; msg: Bytes }; - -export type PolkadotCorePrimitivesInboundHrmpMessage = { sentAt: number; data: Bytes }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletParachainSystemError = - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - | 'OverlappingUpgrades' - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - | 'ProhibitedByPolkadot' - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - | 'TooBig' - /** - * The inherent which supplies the validation data did not run this block. - **/ - | 'ValidationDataNotAvailable' - /** - * The inherent which supplies the host configuration did not run this block. - **/ - | 'HostConfigurationNotAvailable' - /** - * No validation function upgrade is currently scheduled. - **/ - | 'NotScheduled' - /** - * No code upgrade has been authorized. - **/ - | 'NothingAuthorized' - /** - * The given code upgrade has not been authorized. - **/ - | 'Unauthorized'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletTimestampCall = - /** - * See [`Pallet::set`]. - **/ - { name: 'Set'; params: { now: bigint } }; - -export type PalletTimestampCallLike = - /** - * See [`Pallet::set`]. - **/ - { name: 'Set'; params: { now: bigint } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type StagingParachainInfoCall = null; - -export type StagingParachainInfoCallLike = null; - -export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons }; - -export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All'; - -export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint }; - -export type PalletBalancesIdAmount = { id: AssetHubPolkadotRuntimeRuntimeHoldReason; amount: bigint }; - -export type AssetHubPolkadotRuntimeRuntimeHoldReason = null; - -export type PalletBalancesIdAmount002 = { id: []; amount: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletBalancesCall = - /** - * See [`Pallet::transfer_allow_death`]. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddress; value: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddress; dest: MultiAddress; value: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddress; value: bigint } } - /** - * See [`Pallet::transfer_all`]. - **/ - | { name: 'TransferAll'; params: { dest: MultiAddress; keepAlive: boolean } } - /** - * See [`Pallet::force_unreserve`]. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddress; amount: bigint } } - /** - * See [`Pallet::upgrade_accounts`]. - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * See [`Pallet::force_set_balance`]. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddress; newFree: bigint } } - /** - * See [`Pallet::force_adjust_total_issuance`]. - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }; - -export type PalletBalancesCallLike = - /** - * See [`Pallet::transfer_allow_death`]. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddressLike; value: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddressLike; value: bigint } } - /** - * See [`Pallet::transfer_all`]. - **/ - | { name: 'TransferAll'; params: { dest: MultiAddressLike; keepAlive: boolean } } - /** - * See [`Pallet::force_unreserve`]. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::upgrade_accounts`]. - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * See [`Pallet::force_set_balance`]. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddressLike; newFree: bigint } } - /** - * See [`Pallet::force_adjust_total_issuance`]. - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }; - -export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletBalancesError = - /** - * Vesting balance too high to send value. - **/ - | 'VestingBalance' - /** - * Account liquidity restrictions prevent withdrawal. - **/ - | 'LiquidityRestrictions' - /** - * Balance too low to send value. - **/ - | 'InsufficientBalance' - /** - * Value too low to create account due to existential deposit. - **/ - | 'ExistentialDeposit' - /** - * Transfer/payment would kill account. - **/ - | 'Expendability' - /** - * A vesting schedule already exists for this account. - **/ - | 'ExistingVestingSchedule' - /** - * Beneficiary account must pre-exist. - **/ - | 'DeadAccount' - /** - * Number of named reserves exceed `MaxReserves`. - **/ - | 'TooManyReserves' - /** - * Number of holds exceed `VariantCountOf`. - **/ - | 'TooManyHolds' - /** - * Number of freezes exceed `MaxFreezes`. - **/ - | 'TooManyFreezes' - /** - * The issuance cannot be modified since it is already deactivated. - **/ - | 'IssuanceDeactivated' - /** - * The delta cannot be zero. - **/ - | 'DeltaZero'; - -export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2'; - -export type PalletVestingVestingInfo = { locked: bigint; perBlock: bigint; startingBlock: number }; - -export type PalletVestingReleases = 'V0' | 'V1'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletVestingCall = - /** - * See [`Pallet::vest`]. - **/ - | { name: 'Vest' } - /** - * See [`Pallet::vest_other`]. - **/ - | { name: 'VestOther'; params: { target: MultiAddress } } - /** - * See [`Pallet::vested_transfer`]. - **/ - | { name: 'VestedTransfer'; params: { target: MultiAddress; schedule: PalletVestingVestingInfo } } - /** - * See [`Pallet::force_vested_transfer`]. - **/ - | { - name: 'ForceVestedTransfer'; - params: { source: MultiAddress; target: MultiAddress; schedule: PalletVestingVestingInfo }; - } - /** - * See [`Pallet::merge_schedules`]. - **/ - | { name: 'MergeSchedules'; params: { schedule1Index: number; schedule2Index: number } } - /** - * See [`Pallet::force_remove_vesting_schedule`]. - **/ - | { name: 'ForceRemoveVestingSchedule'; params: { target: MultiAddress; scheduleIndex: number } }; - -export type PalletVestingCallLike = - /** - * See [`Pallet::vest`]. - **/ - | { name: 'Vest' } - /** - * See [`Pallet::vest_other`]. - **/ - | { name: 'VestOther'; params: { target: MultiAddressLike } } - /** - * See [`Pallet::vested_transfer`]. - **/ - | { name: 'VestedTransfer'; params: { target: MultiAddressLike; schedule: PalletVestingVestingInfo } } - /** - * See [`Pallet::force_vested_transfer`]. - **/ - | { - name: 'ForceVestedTransfer'; - params: { source: MultiAddressLike; target: MultiAddressLike; schedule: PalletVestingVestingInfo }; - } - /** - * See [`Pallet::merge_schedules`]. - **/ - | { name: 'MergeSchedules'; params: { schedule1Index: number; schedule2Index: number } } - /** - * See [`Pallet::force_remove_vesting_schedule`]. - **/ - | { name: 'ForceRemoveVestingSchedule'; params: { target: MultiAddressLike; scheduleIndex: number } }; - -/** - * Error for the vesting pallet. - **/ -export type PalletVestingError = - /** - * The account given is not vesting. - **/ - | 'NotVesting' - /** - * The account already has `MaxVestingSchedules` count of schedules and thus - * cannot add another one. Consider merging existing schedules in order to add another. - **/ - | 'AtMaxVestingSchedules' - /** - * Amount being transferred is too low to create a vesting schedule. - **/ - | 'AmountLow' - /** - * An index was out of bounds of the vesting schedules. - **/ - | 'ScheduleIndexOutOfBounds' - /** - * Failed to create a new schedule because some parameter was invalid. - **/ - | 'InvalidScheduleParams'; - -export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletCollatorSelectionCall = - /** - * See [`Pallet::set_invulnerables`]. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * See [`Pallet::set_desired_candidates`]. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * See [`Pallet::set_candidacy_bond`]. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * See [`Pallet::register_as_candidate`]. - **/ - | { name: 'RegisterAsCandidate' } - /** - * See [`Pallet::leave_intent`]. - **/ - | { name: 'LeaveIntent' } - /** - * See [`Pallet::add_invulnerable`]. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32 } } - /** - * See [`Pallet::remove_invulnerable`]. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32 } } - /** - * See [`Pallet::update_bond`]. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * See [`Pallet::take_candidate_slot`]. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32 } }; - -export type PalletCollatorSelectionCallLike = - /** - * See [`Pallet::set_invulnerables`]. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * See [`Pallet::set_desired_candidates`]. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * See [`Pallet::set_candidacy_bond`]. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * See [`Pallet::register_as_candidate`]. - **/ - | { name: 'RegisterAsCandidate' } - /** - * See [`Pallet::leave_intent`]. - **/ - | { name: 'LeaveIntent' } - /** - * See [`Pallet::add_invulnerable`]. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32Like } } - /** - * See [`Pallet::remove_invulnerable`]. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32Like } } - /** - * See [`Pallet::update_bond`]. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * See [`Pallet::take_candidate_slot`]. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32Like } }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletCollatorSelectionError = - /** - * The pallet has too many candidates. - **/ - | 'TooManyCandidates' - /** - * Leaving would result in too few candidates. - **/ - | 'TooFewEligibleCollators' - /** - * Account is already a candidate. - **/ - | 'AlreadyCandidate' - /** - * Account is not a candidate. - **/ - | 'NotCandidate' - /** - * There are too many Invulnerables. - **/ - | 'TooManyInvulnerables' - /** - * Account is already an Invulnerable. - **/ - | 'AlreadyInvulnerable' - /** - * Account is not an Invulnerable. - **/ - | 'NotInvulnerable' - /** - * Account has no associated validator ID. - **/ - | 'NoAssociatedValidatorId' - /** - * Validator ID is not yet registered. - **/ - | 'ValidatorNotRegistered' - /** - * Could not insert in the candidate list. - **/ - | 'InsertToCandidateListFailed' - /** - * Could not remove from the candidate list. - **/ - | 'RemoveFromCandidateListFailed' - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - | 'DepositTooLow' - /** - * Could not update the candidate list. - **/ - | 'UpdateCandidateListFailed' - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - | 'InsufficientBond' - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - | 'TargetIsNotCandidate' - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - | 'IdenticalDeposit' - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - | 'InvalidUnreserve'; - -export type AssetHubPolkadotRuntimeSessionKeys = { aura: SpConsensusAuraEd25519AppEd25519Public }; - -export type SpConsensusAuraEd25519AppEd25519Public = SpCoreEd25519Public; - -export type SpCoreEd25519Public = FixedBytes<32>; - -export type SpCoreCryptoKeyTypeId = FixedBytes<4>; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletSessionCall = - /** - * See [`Pallet::set_keys`]. - **/ - | { name: 'SetKeys'; params: { keys: AssetHubPolkadotRuntimeSessionKeys; proof: Bytes } } - /** - * See [`Pallet::purge_keys`]. - **/ - | { name: 'PurgeKeys' }; - -export type PalletSessionCallLike = - /** - * See [`Pallet::set_keys`]. - **/ - | { name: 'SetKeys'; params: { keys: AssetHubPolkadotRuntimeSessionKeys; proof: BytesLike } } - /** - * See [`Pallet::purge_keys`]. - **/ - | { name: 'PurgeKeys' }; - -/** - * Error for the session pallet. - **/ -export type PalletSessionError = - /** - * Invalid ownership proof. - **/ - | 'InvalidProof' - /** - * No associated validator ID for account. - **/ - | 'NoAssociatedValidatorId' - /** - * Registered duplicate key. - **/ - | 'DuplicatedKey' - /** - * No keys are associated with this account. - **/ - | 'NoKeys' - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - | 'NoAccount'; - -export type SpConsensusSlotsSlot = bigint; - -export type CumulusPalletXcmpQueueOutboundChannelDetails = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - state: CumulusPalletXcmpQueueOutboundState; - signalsExist: boolean; - firstIndex: number; - lastIndex: number; -}; - -export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended'; - -export type CumulusPalletXcmpQueueQueueConfigData = { - suspendThreshold: number; - dropThreshold: number; - resumeThreshold: number; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmpQueueCall = - /** - * See [`Pallet::suspend_xcm_execution`]. - **/ - | { name: 'SuspendXcmExecution' } - /** - * See [`Pallet::resume_xcm_execution`]. - **/ - | { name: 'ResumeXcmExecution' } - /** - * See [`Pallet::update_suspend_threshold`]. - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * See [`Pallet::update_drop_threshold`]. - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * See [`Pallet::update_resume_threshold`]. - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -export type CumulusPalletXcmpQueueCallLike = - /** - * See [`Pallet::suspend_xcm_execution`]. - **/ - | { name: 'SuspendXcmExecution' } - /** - * See [`Pallet::resume_xcm_execution`]. - **/ - | { name: 'ResumeXcmExecution' } - /** - * See [`Pallet::update_suspend_threshold`]. - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * See [`Pallet::update_drop_threshold`]. - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * See [`Pallet::update_resume_threshold`]. - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletXcmpQueueError = - /** - * Setting the queue config failed since one of its values was invalid. - **/ - | 'BadQueueConfig' - /** - * The execution is already suspended. - **/ - | 'AlreadySuspended' - /** - * The execution is already resumed. - **/ - | 'AlreadyResumed'; - -export type PalletXcmQueryStatus = - | { - type: 'Pending'; - value: { - responder: XcmVersionedLocation; - maybeMatchQuerier?: XcmVersionedLocation | undefined; - maybeNotify?: [number, number] | undefined; - timeout: number; - }; - } - | { type: 'VersionNotifier'; value: { origin: XcmVersionedLocation; isActive: boolean } } - | { type: 'Ready'; value: { response: XcmVersionedResponse; at: number } }; - -export type XcmVersionedResponse = - | { type: 'V2'; value: XcmV2Response } - | { type: 'V3'; value: XcmV3Response } - | { type: 'V4'; value: StagingXcmV4Response }; - -export type XcmV2Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV2MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV2TraitsError] | undefined } - | { type: 'Version'; value: number }; - -export type XcmV2TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'MultiLocationFull' } - | { type: 'MultiLocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: bigint } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' }; - -export type XcmV3Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type XcmV3PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type PalletXcmVersionMigrationStage = - | { type: 'MigrateSupportedVersion' } - | { type: 'MigrateVersionNotifiers' } - | { type: 'NotifyCurrentTargets'; value?: Bytes | undefined } - | { type: 'MigrateAndNotifyOldTargets' }; - -export type XcmVersionedAssetId = - | { type: 'V3'; value: XcmV3MultiassetAssetId } - | { type: 'V4'; value: StagingXcmV4AssetAssetId }; - -export type PalletXcmRemoteLockedFungibleRecord = { - amount: bigint; - owner: XcmVersionedLocation; - locker: XcmVersionedLocation; - consumers: Array<[[], bigint]>; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletXcmCall = - /** - * See [`Pallet::send`]. - **/ - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * See [`Pallet::teleport_assets`]. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * See [`Pallet::reserve_transfer_assets`]. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * See [`Pallet::execute`]. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * See [`Pallet::force_xcm_version`]. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * See [`Pallet::force_default_xcm_version`]. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * See [`Pallet::force_subscribe_version_notify`]. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * See [`Pallet::force_unsubscribe_version_notify`]. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * See [`Pallet::limited_reserve_transfer_assets`]. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::limited_teleport_assets`]. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::force_suspension`]. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * See [`Pallet::transfer_assets`]. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::claim_assets`]. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * See [`Pallet::transfer_assets_using_type_and_then`]. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type PalletXcmCallLike = - /** - * See [`Pallet::send`]. - **/ - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * See [`Pallet::teleport_assets`]. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * See [`Pallet::reserve_transfer_assets`]. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * See [`Pallet::execute`]. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * See [`Pallet::force_xcm_version`]. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * See [`Pallet::force_default_xcm_version`]. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * See [`Pallet::force_subscribe_version_notify`]. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * See [`Pallet::force_unsubscribe_version_notify`]. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * See [`Pallet::limited_reserve_transfer_assets`]. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::limited_teleport_assets`]. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::force_suspension`]. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * See [`Pallet::transfer_assets`]. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * See [`Pallet::claim_assets`]. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * See [`Pallet::transfer_assets_using_type_and_then`]. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type XcmVersionedXcm = - | { type: 'V2'; value: XcmV2Xcm } - | { type: 'V3'; value: XcmV3Xcm } - | { type: 'V4'; value: StagingXcmV4Xcm }; - -export type XcmV2Xcm = Array; - -export type XcmV2Instruction = - | { type: 'WithdrawAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'QueryResponse'; value: { queryId: bigint; response: XcmV2Response; maxWeight: bigint } } - | { - type: 'TransferAsset'; - value: { assets: XcmV2MultiassetMultiAssets; beneficiary: XcmV2MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV2MultiassetMultiAssets; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { type: 'Transact'; value: { originType: XcmV2OriginKind; requireWeightAtMost: bigint; call: XcmDoubleEncoded } } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV2MultilocationJunctions } - | { - type: 'ReportError'; - value: { queryId: bigint; dest: XcmV2MultilocationMultiLocation; maxResponseWeight: bigint }; - } - | { - type: 'DepositAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - beneficiary: XcmV2MultilocationMultiLocation; - }; - } - | { - type: 'DepositReserveAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - dest: XcmV2MultilocationMultiLocation; - xcm: XcmV2Xcm; - }; - } - | { type: 'ExchangeAsset'; value: { give: XcmV2MultiassetMultiAssetFilter; receive: XcmV2MultiassetMultiAssets } } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: XcmV2MultiassetMultiAssetFilter; reserve: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV2MultiassetMultiAssetFilter; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'QueryHolding'; - value: { - queryId: bigint; - dest: XcmV2MultilocationMultiLocation; - assets: XcmV2MultiassetMultiAssetFilter; - maxResponseWeight: bigint; - }; - } - | { type: 'BuyExecution'; value: { fees: XcmV2MultiassetMultiAsset; weightLimit: XcmV2WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV2Xcm } - | { type: 'SetAppendix'; value: XcmV2Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: XcmV2MultiassetMultiAssets; ticket: XcmV2MultilocationMultiLocation } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } } - | { type: 'UnsubscribeVersion' }; - -export type XcmV2MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV2MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset }; - -export type XcmV2MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetWildFungibility } }; - -export type XcmV2MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV2WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: bigint }; - -export type XcmV3Xcm = Array; - -export type XcmV3Instruction = - | { type: 'WithdrawAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV3MultiassetMultiAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: XcmV3Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV3MultilocationMultiLocation | undefined; - }; - } - | { - type: 'TransferAsset'; - value: { assets: XcmV3MultiassetMultiAssets; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssets; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV2OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV3Junctions } - | { type: 'ReportError'; value: XcmV3QueryResponseInfo } - | { - type: 'DepositAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'DepositReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: XcmV3MultiassetMultiAssetFilter; want: XcmV3MultiassetMultiAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { - assets: XcmV3MultiassetMultiAssetFilter; - reserve: StagingXcmV3MultilocationMultiLocation; - xcm: XcmV3Xcm; - }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { type: 'ReportHolding'; value: { responseInfo: XcmV3QueryResponseInfo; assets: XcmV3MultiassetMultiAssetFilter } } - | { type: 'BuyExecution'; value: { fees: XcmV3MultiassetMultiAsset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV3Xcm } - | { type: 'SetAppendix'; value: XcmV3Xcm } - | { type: 'ClearError' } - | { - type: 'ClaimAsset'; - value: { assets: XcmV3MultiassetMultiAssets; ticket: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV3MultilocationMultiLocation | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: XcmV3QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: XcmV3QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: XcmV3Junction } - | { type: 'ExportMessage'; value: { network: XcmV3JunctionNetworkId; destination: XcmV3Junctions; xcm: XcmV3Xcm } } - | { type: 'LockAsset'; value: { asset: XcmV3MultiassetMultiAsset; unlocker: StagingXcmV3MultilocationMultiLocation } } - | { type: 'UnlockAsset'; value: { asset: XcmV3MultiassetMultiAsset; target: StagingXcmV3MultilocationMultiLocation } } - | { - type: 'NoteUnlockable'; - value: { asset: XcmV3MultiassetMultiAsset; owner: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'RequestUnlock'; - value: { asset: XcmV3MultiassetMultiAsset; locker: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV3MultilocationMultiLocation } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV3MultilocationMultiLocation | undefined }; - }; - -export type XcmV3QueryResponseInfo = { - destination: StagingXcmV3MultilocationMultiLocation; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type XcmV3MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV3MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV3MultiassetWildMultiAsset }; - -export type XcmV3MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { type: 'AllOfCounted'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility; count: number } }; - -export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type StagingXcmExecutorAssetTransferTransferType = - | { type: 'Teleport' } - | { type: 'LocalReserve' } - | { type: 'DestinationReserve' } - | { type: 'RemoteReserve'; value: XcmVersionedLocation }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletXcmError = - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - | 'Unreachable' - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - | 'SendFailure' - /** - * The message execution fails the filter. - **/ - | 'Filtered' - /** - * The message's weight could not be determined. - **/ - | 'UnweighableMessage' - /** - * The destination `Location` provided cannot be inverted. - **/ - | 'DestinationNotInvertible' - /** - * The assets to be sent are empty. - **/ - | 'Empty' - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - | 'CannotReanchor' - /** - * Too many assets have been attempted for transfer. - **/ - | 'TooManyAssets' - /** - * Origin is invalid for sending. - **/ - | 'InvalidOrigin' - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - | 'BadVersion' - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - | 'BadLocation' - /** - * The referenced subscription could not be found. - **/ - | 'NoSubscription' - /** - * The location is invalid since it already has a subscription from us. - **/ - | 'AlreadySubscribed' - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - | 'CannotCheckOutTeleport' - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - | 'LowBalance' - /** - * The asset owner has too many locks on the asset. - **/ - | 'TooManyLocks' - /** - * The given account is not an identifiable sovereign account for any location. - **/ - | 'AccountNotSovereign' - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - | 'FeesNotMet' - /** - * A remote lock with the corresponding data could not be found. - **/ - | 'LockNotFound' - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - | 'InUse' - /** - * Invalid non-concrete asset. - **/ - | 'InvalidAssetNotConcrete' - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - | 'InvalidAssetUnknownReserve' - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - | 'InvalidAssetUnsupportedReserve' - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - | 'TooManyReserves' - /** - * Local XCM execution incomplete. - **/ - | 'LocalExecutionIncomplete'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmCall = null; - -export type CumulusPalletXcmCallLike = null; - -export type BpXcmBridgeHubRouterBridgeState = { deliveryFeeFactor: FixedU128; isCongested: boolean }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletXcmBridgeHubRouterCall = - /** - * See [`Pallet::report_bridge_status`]. - **/ - { name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } }; - -export type PalletXcmBridgeHubRouterCallLike = - /** - * See [`Pallet::report_bridge_status`]. - **/ - { name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } }; - -export type PalletMessageQueueBookState = { - begin: number; - end: number; - count: number; - readyNeighbours?: PalletMessageQueueNeighbours | undefined; - messageCount: bigint; - size: bigint; -}; - -export type PalletMessageQueueNeighbours = { - prev: CumulusPrimitivesCoreAggregateMessageOrigin; - next: CumulusPrimitivesCoreAggregateMessageOrigin; -}; - -export type PalletMessageQueuePage = { - remaining: number; - remainingSize: number; - firstIndex: number; - first: number; - last: number; - heap: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMessageQueueCall = - /** - * See [`Pallet::reap_page`]. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * See [`Pallet::execute_overweight`]. - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -export type PalletMessageQueueCallLike = - /** - * See [`Pallet::reap_page`]. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * See [`Pallet::execute_overweight`]. - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMessageQueueError = - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - | 'NotReapable' - /** - * Page to be reaped does not exist. - **/ - | 'NoPage' - /** - * The referenced message could not be found. - **/ - | 'NoMessage' - /** - * The message was already processed and cannot be processed again. - **/ - | 'AlreadyProcessed' - /** - * The message is queued for future execution. - **/ - | 'Queued' - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - | 'InsufficientWeight' - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - | 'TemporarilyUnprocessable' - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - | 'QueuePaused' - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - | 'RecursiveDisallowed'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletUtilityCall = - /** - * See [`Pallet::batch`]. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * See [`Pallet::as_derivative`]. - **/ - | { name: 'AsDerivative'; params: { index: number; call: AssetHubPolkadotRuntimeRuntimeCall } } - /** - * See [`Pallet::batch_all`]. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * See [`Pallet::dispatch_as`]. - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: AssetHubPolkadotRuntimeOriginCaller; call: AssetHubPolkadotRuntimeRuntimeCall }; - } - /** - * See [`Pallet::force_batch`]. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * See [`Pallet::with_weight`]. - **/ - | { name: 'WithWeight'; params: { call: AssetHubPolkadotRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }; - -export type PalletUtilityCallLike = - /** - * See [`Pallet::batch`]. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * See [`Pallet::as_derivative`]. - **/ - | { name: 'AsDerivative'; params: { index: number; call: AssetHubPolkadotRuntimeRuntimeCallLike } } - /** - * See [`Pallet::batch_all`]. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * See [`Pallet::dispatch_as`]. - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: AssetHubPolkadotRuntimeOriginCaller; call: AssetHubPolkadotRuntimeRuntimeCallLike }; - } - /** - * See [`Pallet::force_batch`]. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * See [`Pallet::with_weight`]. - **/ - | { name: 'WithWeight'; params: { call: AssetHubPolkadotRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }; - -export type AssetHubPolkadotRuntimeRuntimeCall = - | { pallet: 'System'; palletCall: FrameSystemCall } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCall } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCall } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall } - | { pallet: 'Balances'; palletCall: PalletBalancesCall } - | { pallet: 'Vesting'; palletCall: PalletVestingCall } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall } - | { pallet: 'Session'; palletCall: PalletSessionCall } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCall } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCall } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCall } - | { pallet: 'ToKusamaXcmRouter'; palletCall: PalletXcmBridgeHubRouterCall } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall } - | { pallet: 'Utility'; palletCall: PalletUtilityCall } - | { pallet: 'Multisig'; palletCall: PalletMultisigCall } - | { pallet: 'Proxy'; palletCall: PalletProxyCall } - | { pallet: 'Assets'; palletCall: PalletAssetsCall } - | { pallet: 'Uniques'; palletCall: PalletUniquesCall } - | { pallet: 'Nfts'; palletCall: PalletNftsCall } - | { pallet: 'ForeignAssets'; palletCall: PalletAssetsCall002 } - | { pallet: 'PoolAssets'; palletCall: PalletAssetsCall003 } - | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCall }; - -export type AssetHubPolkadotRuntimeRuntimeCallLike = - | { pallet: 'System'; palletCall: FrameSystemCallLike } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCallLike } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike } - | { pallet: 'Balances'; palletCall: PalletBalancesCallLike } - | { pallet: 'Vesting'; palletCall: PalletVestingCallLike } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike } - | { pallet: 'Session'; palletCall: PalletSessionCallLike } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCallLike } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCallLike } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCallLike } - | { pallet: 'ToKusamaXcmRouter'; palletCall: PalletXcmBridgeHubRouterCallLike } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike } - | { pallet: 'Utility'; palletCall: PalletUtilityCallLike } - | { pallet: 'Multisig'; palletCall: PalletMultisigCallLike } - | { pallet: 'Proxy'; palletCall: PalletProxyCallLike } - | { pallet: 'Assets'; palletCall: PalletAssetsCallLike } - | { pallet: 'Uniques'; palletCall: PalletUniquesCallLike } - | { pallet: 'Nfts'; palletCall: PalletNftsCallLike } - | { pallet: 'ForeignAssets'; palletCall: PalletAssetsCallLike002 } - | { pallet: 'PoolAssets'; palletCall: PalletAssetsCallLike003 } - | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCallLike }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMultisigCall = - /** - * See [`Pallet::as_multi_threshold_1`]. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubPolkadotRuntimeRuntimeCall }; - } - /** - * See [`Pallet::as_multi`]. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: AssetHubPolkadotRuntimeRuntimeCall; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * See [`Pallet::approve_as_multi`]. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * See [`Pallet::cancel_as_multi`]. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigCallLike = - /** - * See [`Pallet::as_multi_threshold_1`]. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubPolkadotRuntimeRuntimeCallLike }; - } - /** - * See [`Pallet::as_multi`]. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: AssetHubPolkadotRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * See [`Pallet::approve_as_multi`]. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * See [`Pallet::cancel_as_multi`]. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletProxyCall = - /** - * See [`Pallet::proxy`]. - **/ - | { - name: 'Proxy'; - params: { - real: MultiAddress; - forceProxyType?: AssetHubPolkadotRuntimeProxyType | undefined; - call: AssetHubPolkadotRuntimeRuntimeCall; - }; - } - /** - * See [`Pallet::add_proxy`]. - **/ - | { name: 'AddProxy'; params: { delegate: MultiAddress; proxyType: AssetHubPolkadotRuntimeProxyType; delay: number } } - /** - * See [`Pallet::remove_proxy`]. - **/ - | { - name: 'RemoveProxy'; - params: { delegate: MultiAddress; proxyType: AssetHubPolkadotRuntimeProxyType; delay: number }; - } - /** - * See [`Pallet::remove_proxies`]. - **/ - | { name: 'RemoveProxies' } - /** - * See [`Pallet::create_pure`]. - **/ - | { name: 'CreatePure'; params: { proxyType: AssetHubPolkadotRuntimeProxyType; delay: number; index: number } } - /** - * See [`Pallet::kill_pure`]. - **/ - | { - name: 'KillPure'; - params: { - spawner: MultiAddress; - proxyType: AssetHubPolkadotRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - } - /** - * See [`Pallet::announce`]. - **/ - | { name: 'Announce'; params: { real: MultiAddress; callHash: H256 } } - /** - * See [`Pallet::remove_announcement`]. - **/ - | { name: 'RemoveAnnouncement'; params: { real: MultiAddress; callHash: H256 } } - /** - * See [`Pallet::reject_announcement`]. - **/ - | { name: 'RejectAnnouncement'; params: { delegate: MultiAddress; callHash: H256 } } - /** - * See [`Pallet::proxy_announced`]. - **/ - | { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddress; - real: MultiAddress; - forceProxyType?: AssetHubPolkadotRuntimeProxyType | undefined; - call: AssetHubPolkadotRuntimeRuntimeCall; - }; - }; - -export type PalletProxyCallLike = - /** - * See [`Pallet::proxy`]. - **/ - | { - name: 'Proxy'; - params: { - real: MultiAddressLike; - forceProxyType?: AssetHubPolkadotRuntimeProxyType | undefined; - call: AssetHubPolkadotRuntimeRuntimeCallLike; - }; - } - /** - * See [`Pallet::add_proxy`]. - **/ - | { - name: 'AddProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubPolkadotRuntimeProxyType; delay: number }; - } - /** - * See [`Pallet::remove_proxy`]. - **/ - | { - name: 'RemoveProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubPolkadotRuntimeProxyType; delay: number }; - } - /** - * See [`Pallet::remove_proxies`]. - **/ - | { name: 'RemoveProxies' } - /** - * See [`Pallet::create_pure`]. - **/ - | { name: 'CreatePure'; params: { proxyType: AssetHubPolkadotRuntimeProxyType; delay: number; index: number } } - /** - * See [`Pallet::kill_pure`]. - **/ - | { - name: 'KillPure'; - params: { - spawner: MultiAddressLike; - proxyType: AssetHubPolkadotRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - } - /** - * See [`Pallet::announce`]. - **/ - | { name: 'Announce'; params: { real: MultiAddressLike; callHash: H256 } } - /** - * See [`Pallet::remove_announcement`]. - **/ - | { name: 'RemoveAnnouncement'; params: { real: MultiAddressLike; callHash: H256 } } - /** - * See [`Pallet::reject_announcement`]. - **/ - | { name: 'RejectAnnouncement'; params: { delegate: MultiAddressLike; callHash: H256 } } - /** - * See [`Pallet::proxy_announced`]. - **/ - | { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddressLike; - real: MultiAddressLike; - forceProxyType?: AssetHubPolkadotRuntimeProxyType | undefined; - call: AssetHubPolkadotRuntimeRuntimeCallLike; - }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddress; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddress; isSufficient: boolean; minBalance: bigint } } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddress; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddress; dest: MultiAddress; amount: bigint } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { name: 'SetTeam'; params: { id: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress } } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { id: number; name: Bytes; symbol: Bytes; decimals: number } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddress; amount: bigint } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddress } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddress; delegate: MultiAddress } } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { name: 'TransferApproved'; params: { id: number; owner: MultiAddress; destination: MultiAddress; amount: bigint } } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: number; who: MultiAddress } }; - -export type PalletAssetsCallLike = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddressLike; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint } } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike } } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: number; who: MultiAddressLike } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletUniquesCall = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { collection: number; admin: MultiAddress } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { collection: number; owner: MultiAddress; freeHolding: boolean } } - /** - * See [`Pallet::destroy`]. - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletUniquesDestroyWitness } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { collection: number; item: number; owner: MultiAddress } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { collection: number; item: number; checkOwner?: MultiAddress | undefined } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddress } } - /** - * See [`Pallet::redeposit`]. - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { collection: number; item: number } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { collection: number; item: number } } - /** - * See [`Pallet::freeze_collection`]. - **/ - | { name: 'FreezeCollection'; params: { collection: number } } - /** - * See [`Pallet::thaw_collection`]. - **/ - | { name: 'ThawCollection'; params: { collection: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { collection: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate?: MultiAddress | undefined }; - } - /** - * See [`Pallet::force_item_status`]. - **/ - | { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - freeHolding: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::set_attribute`]. - **/ - | { name: 'SetAttribute'; params: { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } } - /** - * See [`Pallet::clear_attribute`]. - **/ - | { name: 'ClearAttribute'; params: { collection: number; maybeItem?: number | undefined; key: Bytes } } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: Bytes; isFrozen: boolean } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * See [`Pallet::set_collection_metadata`]. - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: Bytes; isFrozen: boolean } } - /** - * See [`Pallet::clear_collection_metadata`]. - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * See [`Pallet::set_accept_ownership`]. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * See [`Pallet::set_collection_max_supply`]. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * See [`Pallet::set_price`]. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddress | undefined; - }; - } - /** - * See [`Pallet::buy_item`]. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } }; - -export type PalletUniquesCallLike = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { collection: number; admin: MultiAddressLike } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { collection: number; owner: MultiAddressLike; freeHolding: boolean } } - /** - * See [`Pallet::destroy`]. - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletUniquesDestroyWitness } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { collection: number; item: number; owner: MultiAddressLike } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { collection: number; item: number; checkOwner?: MultiAddressLike | undefined } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddressLike } } - /** - * See [`Pallet::redeposit`]. - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { collection: number; item: number } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { collection: number; item: number } } - /** - * See [`Pallet::freeze_collection`]. - **/ - | { name: 'FreezeCollection'; params: { collection: number } } - /** - * See [`Pallet::thaw_collection`]. - **/ - | { name: 'ThawCollection'; params: { collection: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { collection: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate?: MultiAddressLike | undefined }; - } - /** - * See [`Pallet::force_item_status`]. - **/ - | { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - freeHolding: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::set_attribute`]. - **/ - | { - name: 'SetAttribute'; - params: { collection: number; maybeItem?: number | undefined; key: BytesLike; value: BytesLike }; - } - /** - * See [`Pallet::clear_attribute`]. - **/ - | { name: 'ClearAttribute'; params: { collection: number; maybeItem?: number | undefined; key: BytesLike } } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: BytesLike; isFrozen: boolean } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * See [`Pallet::set_collection_metadata`]. - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: BytesLike; isFrozen: boolean } } - /** - * See [`Pallet::clear_collection_metadata`]. - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * See [`Pallet::set_accept_ownership`]. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * See [`Pallet::set_collection_max_supply`]. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * See [`Pallet::set_price`]. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddressLike | undefined; - }; - } - /** - * See [`Pallet::buy_item`]. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } }; - -export type PalletUniquesDestroyWitness = { items: number; itemMetadatas: number; attributes: number }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletNftsCall = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { admin: MultiAddress; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { owner: MultiAddress; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::destroy`]. - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletNftsDestroyWitness } } - /** - * See [`Pallet::mint`]. - **/ - | { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddress; - witnessData?: PalletNftsMintWitness | undefined; - }; - } - /** - * See [`Pallet::force_mint`]. - **/ - | { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddress; itemConfig: PalletNftsItemConfig }; - } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { collection: number; item: number } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddress } } - /** - * See [`Pallet::redeposit`]. - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * See [`Pallet::lock_item_transfer`]. - **/ - | { name: 'LockItemTransfer'; params: { collection: number; item: number } } - /** - * See [`Pallet::unlock_item_transfer`]. - **/ - | { name: 'UnlockItemTransfer'; params: { collection: number; item: number } } - /** - * See [`Pallet::lock_collection`]. - **/ - | { name: 'LockCollection'; params: { collection: number; lockSettings: PalletNftsBitFlags } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { - collection: number; - issuer?: MultiAddress | undefined; - admin?: MultiAddress | undefined; - freezer?: MultiAddress | undefined; - }; - } - /** - * See [`Pallet::force_collection_owner`]. - **/ - | { name: 'ForceCollectionOwner'; params: { collection: number; owner: MultiAddress } } - /** - * See [`Pallet::force_collection_config`]. - **/ - | { name: 'ForceCollectionConfig'; params: { collection: number; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddress; maybeDeadline?: number | undefined }; - } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * See [`Pallet::clear_all_transfer_approvals`]. - **/ - | { name: 'ClearAllTransferApprovals'; params: { collection: number; item: number } } - /** - * See [`Pallet::lock_item_properties`]. - **/ - | { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * See [`Pallet::set_attribute`]. - **/ - | { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - value: Bytes; - }; - } - /** - * See [`Pallet::force_set_attribute`]. - **/ - | { - name: 'ForceSetAttribute'; - params: { - setAs?: AccountId32 | undefined; - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - value: Bytes; - }; - } - /** - * See [`Pallet::clear_attribute`]. - **/ - | { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - }; - } - /** - * See [`Pallet::approve_item_attributes`]. - **/ - | { name: 'ApproveItemAttributes'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * See [`Pallet::cancel_item_attributes_approval`]. - **/ - | { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddress; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: Bytes } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * See [`Pallet::set_collection_metadata`]. - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: Bytes } } - /** - * See [`Pallet::clear_collection_metadata`]. - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * See [`Pallet::set_accept_ownership`]. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * See [`Pallet::set_collection_max_supply`]. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * See [`Pallet::update_mint_settings`]. - **/ - | { name: 'UpdateMintSettings'; params: { collection: number; mintSettings: PalletNftsMintSettings } } - /** - * See [`Pallet::set_price`]. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddress | undefined; - }; - } - /** - * See [`Pallet::buy_item`]. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } } - /** - * See [`Pallet::pay_tips`]. - **/ - | { name: 'PayTips'; params: { tips: Array } } - /** - * See [`Pallet::create_swap`]. - **/ - | { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem?: number | undefined; - maybePrice?: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - } - /** - * See [`Pallet::cancel_swap`]. - **/ - | { name: 'CancelSwap'; params: { offeredCollection: number; offeredItem: number } } - /** - * See [`Pallet::claim_swap`]. - **/ - | { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice?: PalletNftsPriceWithDirection | undefined; - }; - } - /** - * See [`Pallet::mint_pre_signed`]. - **/ - | { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32 }; - } - /** - * See [`Pallet::set_attributes_pre_signed`]. - **/ - | { - name: 'SetAttributesPreSigned'; - params: { data: PalletNftsPreSignedAttributes; signature: SpRuntimeMultiSignature; signer: AccountId32 }; - }; - -export type PalletNftsCallLike = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { admin: MultiAddressLike; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { owner: MultiAddressLike; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::destroy`]. - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletNftsDestroyWitness } } - /** - * See [`Pallet::mint`]. - **/ - | { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddressLike; - witnessData?: PalletNftsMintWitness | undefined; - }; - } - /** - * See [`Pallet::force_mint`]. - **/ - | { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddressLike; itemConfig: PalletNftsItemConfig }; - } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { collection: number; item: number } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddressLike } } - /** - * See [`Pallet::redeposit`]. - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * See [`Pallet::lock_item_transfer`]. - **/ - | { name: 'LockItemTransfer'; params: { collection: number; item: number } } - /** - * See [`Pallet::unlock_item_transfer`]. - **/ - | { name: 'UnlockItemTransfer'; params: { collection: number; item: number } } - /** - * See [`Pallet::lock_collection`]. - **/ - | { name: 'LockCollection'; params: { collection: number; lockSettings: PalletNftsBitFlags } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { - collection: number; - issuer?: MultiAddressLike | undefined; - admin?: MultiAddressLike | undefined; - freezer?: MultiAddressLike | undefined; - }; - } - /** - * See [`Pallet::force_collection_owner`]. - **/ - | { name: 'ForceCollectionOwner'; params: { collection: number; owner: MultiAddressLike } } - /** - * See [`Pallet::force_collection_config`]. - **/ - | { name: 'ForceCollectionConfig'; params: { collection: number; config: PalletNftsCollectionConfig } } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike; maybeDeadline?: number | undefined }; - } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::clear_all_transfer_approvals`]. - **/ - | { name: 'ClearAllTransferApprovals'; params: { collection: number; item: number } } - /** - * See [`Pallet::lock_item_properties`]. - **/ - | { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * See [`Pallet::set_attribute`]. - **/ - | { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - } - /** - * See [`Pallet::force_set_attribute`]. - **/ - | { - name: 'ForceSetAttribute'; - params: { - setAs?: AccountId32Like | undefined; - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - } - /** - * See [`Pallet::clear_attribute`]. - **/ - | { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - }; - } - /** - * See [`Pallet::approve_item_attributes`]. - **/ - | { name: 'ApproveItemAttributes'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::cancel_item_attributes_approval`]. - **/ - | { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddressLike; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: BytesLike } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * See [`Pallet::set_collection_metadata`]. - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: BytesLike } } - /** - * See [`Pallet::clear_collection_metadata`]. - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * See [`Pallet::set_accept_ownership`]. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * See [`Pallet::set_collection_max_supply`]. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * See [`Pallet::update_mint_settings`]. - **/ - | { name: 'UpdateMintSettings'; params: { collection: number; mintSettings: PalletNftsMintSettings } } - /** - * See [`Pallet::set_price`]. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddressLike | undefined; - }; - } - /** - * See [`Pallet::buy_item`]. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } } - /** - * See [`Pallet::pay_tips`]. - **/ - | { name: 'PayTips'; params: { tips: Array } } - /** - * See [`Pallet::create_swap`]. - **/ - | { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem?: number | undefined; - maybePrice?: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - } - /** - * See [`Pallet::cancel_swap`]. - **/ - | { name: 'CancelSwap'; params: { offeredCollection: number; offeredItem: number } } - /** - * See [`Pallet::claim_swap`]. - **/ - | { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice?: PalletNftsPriceWithDirection | undefined; - }; - } - /** - * See [`Pallet::mint_pre_signed`]. - **/ - | { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - } - /** - * See [`Pallet::set_attributes_pre_signed`]. - **/ - | { - name: 'SetAttributesPreSigned'; - params: { data: PalletNftsPreSignedAttributes; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - }; - -export type PalletNftsCollectionConfig = { - settings: PalletNftsBitFlags; - maxSupply?: number | undefined; - mintSettings: PalletNftsMintSettings; -}; - -export type PalletNftsBitFlags = bigint; - -export type PalletNftsCollectionSetting = - | 'TransferableItems' - | 'UnlockedMetadata' - | 'UnlockedAttributes' - | 'UnlockedMaxSupply' - | 'DepositRequired'; - -export type PalletNftsMintSettings = { - mintType: PalletNftsMintType; - price?: bigint | undefined; - startBlock?: number | undefined; - endBlock?: number | undefined; - defaultItemSettings: PalletNftsBitFlagsItemSetting; -}; - -export type PalletNftsMintType = { type: 'Issuer' } | { type: 'Public' } | { type: 'HolderOf'; value: number }; - -export type PalletNftsBitFlagsItemSetting = bigint; - -export type PalletNftsItemSetting = 'Transferable' | 'UnlockedMetadata' | 'UnlockedAttributes'; - -export type PalletNftsDestroyWitness = { itemMetadatas: number; itemConfigs: number; attributes: number }; - -export type PalletNftsMintWitness = { ownedItem?: number | undefined; mintPrice?: bigint | undefined }; - -export type PalletNftsItemConfig = { settings: PalletNftsBitFlagsItemSetting }; - -export type PalletNftsCancelAttributesApprovalWitness = { accountAttributes: number }; - -export type PalletNftsItemTip = { collection: number; item: number; receiver: AccountId32; amount: bigint }; - -export type PalletNftsPreSignedMint = { - collection: number; - item: number; - attributes: Array<[Bytes, Bytes]>; - metadata: Bytes; - onlyAccount?: AccountId32 | undefined; - deadline: number; - mintPrice?: bigint | undefined; -}; - -export type SpRuntimeMultiSignature = - | { type: 'Ed25519'; value: SpCoreEd25519Signature } - | { type: 'Sr25519'; value: SpCoreSr25519Signature } - | { type: 'Ecdsa'; value: SpCoreEcdsaSignature }; - -export type SpCoreEd25519Signature = FixedBytes<64>; - -export type SpCoreSr25519Signature = FixedBytes<64>; - -export type SpCoreEcdsaSignature = FixedBytes<65>; - -export type PalletNftsPreSignedAttributes = { - collection: number; - item: number; - attributes: Array<[Bytes, Bytes]>; - namespace: PalletNftsAttributeNamespace; - deadline: number; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall002 = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddress; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - isSufficient: boolean; - minBalance: bigint; - }; - } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddress; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddress; amount: bigint }; - } - /** - * See [`Pallet::force_transfer`]. - **/ - | { - name: 'ForceTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; source: MultiAddress; dest: MultiAddress; amount: bigint }; - } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { - name: 'SetMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation; name: Bytes; symbol: Bytes; decimals: number }; - } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddress; amount: bigint }; - } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddress } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddress; delegate: MultiAddress }; - } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - destination: MultiAddress; - amount: bigint; - }; - } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } }; - -export type PalletAssetsCallLike002 = - /** - * See [`Pallet::create`]. - **/ - | { - name: 'Create'; - params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddressLike; minBalance: bigint }; - } - /** - * See [`Pallet::force_create`]. - **/ - | { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - isSufficient: boolean; - minBalance: bigint; - }; - } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::mint`]. - **/ - | { - name: 'Mint'; - params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { - name: 'Transfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::force_transfer`]. - **/ - | { - name: 'ForceTransfer'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - source: MultiAddressLike; - dest: MultiAddressLike; - amount: bigint; - }; - } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { - name: 'SetMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation; name: BytesLike; symbol: BytesLike; decimals: number }; - } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike; delegate: MultiAddressLike }; - } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - destination: MultiAddressLike; - amount: bigint; - }; - } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall003 = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddress; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddress; isSufficient: boolean; minBalance: bigint } } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddress; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddress; dest: MultiAddress; amount: bigint } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddress } } - /** - * See [`Pallet::set_team`]. - **/ - | { name: 'SetTeam'; params: { id: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress } } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { id: number; name: Bytes; symbol: Bytes; decimals: number } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddress; amount: bigint } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddress } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddress; delegate: MultiAddress } } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { name: 'TransferApproved'; params: { id: number; owner: MultiAddress; destination: MultiAddress; amount: bigint } } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddress } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: number; who: MultiAddress } }; - -export type PalletAssetsCallLike003 = - /** - * See [`Pallet::create`]. - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddressLike; minBalance: bigint } } - /** - * See [`Pallet::force_create`]. - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint } } - /** - * See [`Pallet::start_destroy`]. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * See [`Pallet::destroy_accounts`]. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * See [`Pallet::destroy_approvals`]. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * See [`Pallet::finish_destroy`]. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * See [`Pallet::mint`]. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::burn`]. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer`]. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::transfer_keep_alive`]. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::force_transfer`]. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::freeze`]. - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::thaw`]. - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::freeze_asset`]. - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * See [`Pallet::thaw_asset`]. - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * See [`Pallet::transfer_ownership`]. - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddressLike } } - /** - * See [`Pallet::set_team`]. - **/ - | { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * See [`Pallet::set_metadata`]. - **/ - | { name: 'SetMetadata'; params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number } } - /** - * See [`Pallet::clear_metadata`]. - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_set_metadata`]. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - } - /** - * See [`Pallet::force_clear_metadata`]. - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * See [`Pallet::force_asset_status`]. - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * See [`Pallet::approve_transfer`]. - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddressLike; amount: bigint } } - /** - * See [`Pallet::cancel_approval`]. - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddressLike } } - /** - * See [`Pallet::force_cancel_approval`]. - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike } } - /** - * See [`Pallet::transfer_approved`]. - **/ - | { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - } - /** - * See [`Pallet::touch`]. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * See [`Pallet::refund`]. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * See [`Pallet::set_min_balance`]. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * See [`Pallet::touch_other`]. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::refund_other`]. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } } - /** - * See [`Pallet::block`]. - **/ - | { name: 'Block'; params: { id: number; who: MultiAddressLike } }; - -/** - * Pallet's callable functions. - **/ -export type PalletAssetConversionCall = - /** - * See [`Pallet::create_pool`]. - **/ - | { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - } - /** - * See [`Pallet::add_liquidity`]. - **/ - | { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32; - }; - } - /** - * See [`Pallet::remove_liquidity`]. - **/ - | { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32; - }; - } - /** - * See [`Pallet::swap_exact_tokens_for_tokens`]. - **/ - | { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32; - keepAlive: boolean; - }; - } - /** - * See [`Pallet::swap_tokens_for_exact_tokens`]. - **/ - | { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32; - keepAlive: boolean; - }; - }; - -export type PalletAssetConversionCallLike = - /** - * See [`Pallet::create_pool`]. - **/ - | { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - } - /** - * See [`Pallet::add_liquidity`]. - **/ - | { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32Like; - }; - } - /** - * See [`Pallet::remove_liquidity`]. - **/ - | { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32Like; - }; - } - /** - * See [`Pallet::swap_exact_tokens_for_tokens`]. - **/ - | { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - } - /** - * See [`Pallet::swap_tokens_for_exact_tokens`]. - **/ - | { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - -export type AssetHubPolkadotRuntimeOriginCaller = - | { type: 'System'; value: FrameSupportDispatchRawOrigin } - | { type: 'PolkadotXcm'; value: PalletXcmOrigin } - | { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin } - | { type: 'Void'; value: SpCoreVoid }; - -export type FrameSupportDispatchRawOrigin = - | { type: 'Root' } - | { type: 'Signed'; value: AccountId32 } - | { type: 'None' }; - -export type PalletXcmOrigin = - | { type: 'Xcm'; value: StagingXcmV4Location } - | { type: 'Response'; value: StagingXcmV4Location }; - -export type CumulusPalletXcmOrigin = - | { type: 'Relay' } - | { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type SpCoreVoid = null; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletUtilityError = - /** - * Too many calls batched. - **/ - 'TooManyCalls'; - -export type PalletMultisigMultisig = { - when: PalletMultisigTimepoint; - deposit: bigint; - depositor: AccountId32; - approvals: Array; -}; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMultisigError = - /** - * Threshold must be 2 or greater. - **/ - | 'MinimumThreshold' - /** - * Call is already approved by this signatory. - **/ - | 'AlreadyApproved' - /** - * Call doesn't need any (more) approvals. - **/ - | 'NoApprovalsNeeded' - /** - * There are too few signatories in the list. - **/ - | 'TooFewSignatories' - /** - * There are too many signatories in the list. - **/ - | 'TooManySignatories' - /** - * The signatories were provided out of order; they should be ordered. - **/ - | 'SignatoriesOutOfOrder' - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - | 'SenderInSignatories' - /** - * Multisig operation not found when attempting to cancel. - **/ - | 'NotFound' - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - | 'NotOwner' - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - | 'NoTimepoint' - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - | 'WrongTimepoint' - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - | 'UnexpectedTimepoint' - /** - * The maximum weight information provided was too low. - **/ - | 'MaxWeightTooLow' - /** - * The data to be stored is already stored. - **/ - | 'AlreadyStored'; - -export type PalletProxyProxyDefinition = { - delegate: AccountId32; - proxyType: AssetHubPolkadotRuntimeProxyType; - delay: number; -}; - -export type PalletProxyAnnouncement = { real: AccountId32; callHash: H256; height: number }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletProxyError = - /** - * There are too many proxies registered or too many announcements pending. - **/ - | 'TooMany' - /** - * Proxy registration not found. - **/ - | 'NotFound' - /** - * Sender is not a proxy of the account to be proxied. - **/ - | 'NotProxy' - /** - * A call which is incompatible with the proxy type's filter was attempted. - **/ - | 'Unproxyable' - /** - * Account is already a proxy. - **/ - | 'Duplicate' - /** - * Call may not be made by proxy because it may escalate its privileges. - **/ - | 'NoPermission' - /** - * Announcement, if made at all, was made too recently. - **/ - | 'Unannounced' - /** - * Cannot add self as proxy. - **/ - | 'NoSelfProxy'; - -export type PalletAssetsAssetDetails = { - owner: AccountId32; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - supply: bigint; - deposit: bigint; - minBalance: bigint; - isSufficient: boolean; - accounts: number; - sufficients: number; - approvals: number; - status: PalletAssetsAssetStatus; -}; - -export type PalletAssetsAssetStatus = 'Live' | 'Frozen' | 'Destroying'; - -export type PalletAssetsAssetAccount = { - balance: bigint; - status: PalletAssetsAccountStatus; - reason: PalletAssetsExistenceReason; - extra: []; -}; - -export type PalletAssetsAccountStatus = 'Liquid' | 'Frozen' | 'Blocked'; - -export type PalletAssetsExistenceReason = - | { type: 'Consumer' } - | { type: 'Sufficient' } - | { type: 'DepositHeld'; value: bigint } - | { type: 'DepositRefunded' } - | { type: 'DepositFrom'; value: [AccountId32, bigint] }; - -export type PalletAssetsApproval = { amount: bigint; deposit: bigint }; - -export type PalletAssetsAssetMetadata = { - deposit: bigint; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; -}; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetsError = - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - | 'BalanceLow' - /** - * The account to alter does not exist. - **/ - | 'NoAccount' - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given asset ID is unknown. - **/ - | 'Unknown' - /** - * The origin account is frozen. - **/ - | 'Frozen' - /** - * The asset ID is already taken. - **/ - | 'InUse' - /** - * Invalid witness data given. - **/ - | 'BadWitness' - /** - * Minimum balance should be non-zero. - **/ - | 'MinBalanceZero' - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - | 'UnavailableConsumer' - /** - * Invalid metadata given. - **/ - | 'BadMetadata' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - | 'WouldDie' - /** - * The asset-account already exists. - **/ - | 'AlreadyExists' - /** - * The asset-account doesn't have an associated deposit. - **/ - | 'NoDeposit' - /** - * The operation would result in funds being burned. - **/ - | 'WouldBurn' - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - | 'LiveAsset' - /** - * The asset is not live, and likely being destroyed. - **/ - | 'AssetNotLive' - /** - * The asset status is not the expected status. - **/ - | 'IncorrectStatus' - /** - * The asset should be frozen before the given operation. - **/ - | 'NotFrozen' - /** - * Callback action resulted in error - **/ - | 'CallbackFailed'; - -export type PalletUniquesCollectionDetails = { - owner: AccountId32; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - totalDeposit: bigint; - freeHolding: boolean; - items: number; - itemMetadatas: number; - attributes: number; - isFrozen: boolean; -}; - -export type PalletUniquesItemDetails = { - owner: AccountId32; - approved?: AccountId32 | undefined; - isFrozen: boolean; - deposit: bigint; -}; - -export type PalletUniquesCollectionMetadata = { deposit: bigint; data: Bytes; isFrozen: boolean }; - -export type PalletUniquesItemMetadata = { deposit: bigint; data: Bytes; isFrozen: boolean }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletUniquesError = - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given item ID is unknown. - **/ - | 'UnknownCollection' - /** - * The item ID has already been used for an item. - **/ - | 'AlreadyExists' - /** - * The owner turned out to be different to what was expected. - **/ - | 'WrongOwner' - /** - * Invalid witness data given. - **/ - | 'BadWitness' - /** - * The item ID is already taken. - **/ - | 'InUse' - /** - * The item or collection is frozen. - **/ - | 'Frozen' - /** - * The delegate turned out to be different to what was expected. - **/ - | 'WrongDelegate' - /** - * There is no delegate approved. - **/ - | 'NoDelegate' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The named owner has not signed ownership of the collection is acceptable. - **/ - | 'Unaccepted' - /** - * The item is locked. - **/ - | 'Locked' - /** - * All items have been minted. - **/ - | 'MaxSupplyReached' - /** - * The max supply has already been set. - **/ - | 'MaxSupplyAlreadySet' - /** - * The provided max supply is less to the amount of items a collection already has. - **/ - | 'MaxSupplyTooSmall' - /** - * The given item ID is unknown. - **/ - | 'UnknownItem' - /** - * Item is not for sale. - **/ - | 'NotForSale' - /** - * The provided bid is too low. - **/ - | 'BidTooLow'; - -export type PalletNftsCollectionDetails = { - owner: AccountId32; - ownerDeposit: bigint; - items: number; - itemMetadatas: number; - itemConfigs: number; - attributes: number; -}; - -export type PalletNftsBitFlagsCollectionRole = number; - -export type PalletNftsCollectionRole = 'Issuer' | 'Freezer' | 'Admin'; - -export type PalletNftsItemDetails = { - owner: AccountId32; - approvals: Array<[AccountId32, number | undefined]>; - deposit: PalletNftsItemDeposit; -}; - -export type PalletNftsItemDeposit = { account: AccountId32; amount: bigint }; - -export type PalletNftsCollectionMetadata = { deposit: bigint; data: Bytes }; - -export type PalletNftsItemMetadata = { deposit: PalletNftsItemMetadataDeposit; data: Bytes }; - -export type PalletNftsItemMetadataDeposit = { account?: AccountId32 | undefined; amount: bigint }; - -export type PalletNftsAttributeDeposit = { account?: AccountId32 | undefined; amount: bigint }; - -export type PalletNftsPendingSwap = { - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; -}; - -export type PalletNftsBitFlagsPalletFeature = bigint; - -export type PalletNftsPalletFeature = 'Trading' | 'Attributes' | 'Approvals' | 'Swaps'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletNftsError = - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given item ID is unknown. - **/ - | 'UnknownCollection' - /** - * The item ID has already been used for an item. - **/ - | 'AlreadyExists' - /** - * The approval had a deadline that expired, so the approval isn't valid anymore. - **/ - | 'ApprovalExpired' - /** - * The owner turned out to be different to what was expected. - **/ - | 'WrongOwner' - /** - * The witness data given does not match the current state of the chain. - **/ - | 'BadWitness' - /** - * Collection ID is already taken. - **/ - | 'CollectionIdInUse' - /** - * Items within that collection are non-transferable. - **/ - | 'ItemsNonTransferable' - /** - * The provided account is not a delegate. - **/ - | 'NotDelegate' - /** - * The delegate turned out to be different to what was expected. - **/ - | 'WrongDelegate' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The named owner has not signed ownership acceptance of the collection. - **/ - | 'Unaccepted' - /** - * The item is locked (non-transferable). - **/ - | 'ItemLocked' - /** - * Item's attributes are locked. - **/ - | 'LockedItemAttributes' - /** - * Collection's attributes are locked. - **/ - | 'LockedCollectionAttributes' - /** - * Item's metadata is locked. - **/ - | 'LockedItemMetadata' - /** - * Collection's metadata is locked. - **/ - | 'LockedCollectionMetadata' - /** - * All items have been minted. - **/ - | 'MaxSupplyReached' - /** - * The max supply is locked and can't be changed. - **/ - | 'MaxSupplyLocked' - /** - * The provided max supply is less than the number of items a collection already has. - **/ - | 'MaxSupplyTooSmall' - /** - * The given item ID is unknown. - **/ - | 'UnknownItem' - /** - * Swap doesn't exist. - **/ - | 'UnknownSwap' - /** - * The given item has no metadata set. - **/ - | 'MetadataNotFound' - /** - * The provided attribute can't be found. - **/ - | 'AttributeNotFound' - /** - * Item is not for sale. - **/ - | 'NotForSale' - /** - * The provided bid is too low. - **/ - | 'BidTooLow' - /** - * The item has reached its approval limit. - **/ - | 'ReachedApprovalLimit' - /** - * The deadline has already expired. - **/ - | 'DeadlineExpired' - /** - * The duration provided should be less than or equal to `MaxDeadlineDuration`. - **/ - | 'WrongDuration' - /** - * The method is disabled by system settings. - **/ - | 'MethodDisabled' - /** - * The provided setting can't be set. - **/ - | 'WrongSetting' - /** - * Item's config already exists and should be equal to the provided one. - **/ - | 'InconsistentItemConfig' - /** - * Config for a collection or an item can't be found. - **/ - | 'NoConfig' - /** - * Some roles were not cleared. - **/ - | 'RolesNotCleared' - /** - * Mint has not started yet. - **/ - | 'MintNotStarted' - /** - * Mint has already ended. - **/ - | 'MintEnded' - /** - * The provided Item was already used for claiming. - **/ - | 'AlreadyClaimed' - /** - * The provided data is incorrect. - **/ - | 'IncorrectData' - /** - * The extrinsic was sent by the wrong origin. - **/ - | 'WrongOrigin' - /** - * The provided signature is incorrect. - **/ - | 'WrongSignature' - /** - * The provided metadata might be too long. - **/ - | 'IncorrectMetadata' - /** - * Can't set more attributes per one call. - **/ - | 'MaxAttributesLimitReached' - /** - * The provided namespace isn't supported in this call. - **/ - | 'WrongNamespace' - /** - * Can't delete non-empty collections. - **/ - | 'CollectionNotEmpty' - /** - * The witness data should be provided. - **/ - | 'WitnessRequired'; - -export type PalletAssetConversionPoolInfo = { lpToken: number }; - -export type FrameSupportPalletId = FixedBytes<8>; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetConversionError = - /** - * Provided asset pair is not supported for pool. - **/ - | 'InvalidAssetPair' - /** - * Pool already exists. - **/ - | 'PoolExists' - /** - * Desired amount can't be zero. - **/ - | 'WrongDesiredAmount' - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'AmountOneLessThanMinimal' - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'AmountTwoLessThanMinimal' - /** - * Reserve needs to always be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'ReserveLeftLessThanMinimal' - /** - * Desired amount can't be equal to the pool reserve. - **/ - | 'AmountOutTooHigh' - /** - * The pool doesn't exist. - **/ - | 'PoolNotFound' - /** - * An overflow happened. - **/ - | 'Overflow' - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - | 'AssetOneDepositDidNotMeetMinimum' - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - | 'AssetTwoDepositDidNotMeetMinimum' - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - | 'AssetOneWithdrawalDidNotMeetMinimum' - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - | 'AssetTwoWithdrawalDidNotMeetMinimum' - /** - * Optimal calculated amount is less than desired. - **/ - | 'OptimalAmountLessThanDesired' - /** - * Insufficient liquidity minted. - **/ - | 'InsufficientLiquidityMinted' - /** - * Requested liquidity can't be zero. - **/ - | 'ZeroLiquidity' - /** - * Amount can't be zero. - **/ - | 'ZeroAmount' - /** - * Calculated amount out is less than provided minimum amount. - **/ - | 'ProvidedMinimumNotSufficientForSwap' - /** - * Provided maximum amount is not sufficient for swap. - **/ - | 'ProvidedMaximumNotSufficientForSwap' - /** - * The provided path must consists of 2 assets at least. - **/ - | 'InvalidPath' - /** - * The provided path must consists of unique assets. - **/ - | 'NonUniquePath' - /** - * It was not possible to get or increment the Id of the pool. - **/ - | 'IncorrectPoolAssetId' - /** - * The destination account cannot exist with the swapped funds. - **/ - | 'BelowMinimum'; - -export type FrameSystemExtensionsCheckNonZeroSender = {}; - -export type FrameSystemExtensionsCheckSpecVersion = {}; - -export type FrameSystemExtensionsCheckTxVersion = {}; - -export type FrameSystemExtensionsCheckGenesis = {}; - -export type FrameSystemExtensionsCheckMortality = Era; - -export type FrameSystemExtensionsCheckNonce = number; - -export type FrameSystemExtensionsCheckWeight = {}; - -export type PalletAssetConversionTxPaymentChargeAssetTxPayment = { - tip: bigint; - assetId?: StagingXcmV3MultilocationMultiLocation | undefined; -}; - -export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode }; - -export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled'; - -export type AssetHubPolkadotRuntimeRuntime = {}; - -export type SpConsensusSlotsSlotDuration = bigint; - -export type SpRuntimeBlock = { header: Header; extrinsics: Array }; - -export type SpCoreOpaqueMetadata = Bytes; - -export type SpRuntimeTransactionValidityTransactionValidityError = - | { type: 'Invalid'; value: SpRuntimeTransactionValidityInvalidTransaction } - | { type: 'Unknown'; value: SpRuntimeTransactionValidityUnknownTransaction }; - -export type SpRuntimeTransactionValidityInvalidTransaction = - | { type: 'Call' } - | { type: 'Payment' } - | { type: 'Future' } - | { type: 'Stale' } - | { type: 'BadProof' } - | { type: 'AncientBirthBlock' } - | { type: 'ExhaustsResources' } - | { type: 'Custom'; value: number } - | { type: 'BadMandatory' } - | { type: 'MandatoryValidation' } - | { type: 'BadSigner' }; - -export type SpRuntimeTransactionValidityUnknownTransaction = - | { type: 'CannotLookup' } - | { type: 'NoUnsignedValidator' } - | { type: 'Custom'; value: number }; - -export type SpInherentsInherentData = { data: Array<[FixedBytes<8>, Bytes]> }; - -export type SpInherentsCheckInherentsResult = { okay: boolean; fatalError: boolean; errors: SpInherentsInherentData }; - -export type SpRuntimeTransactionValidityTransactionSource = 'InBlock' | 'Local' | 'External'; - -export type SpRuntimeTransactionValidityValidTransaction = { - priority: bigint; - requires: Array; - provides: Array; - longevity: bigint; - propagate: boolean; -}; - -export type PalletTransactionPaymentRuntimeDispatchInfo = { - weight: SpWeightsWeightV2Weight; - class: FrameSupportDispatchDispatchClass; - partialFee: bigint; -}; - -export type PalletTransactionPaymentFeeDetails = { - inclusionFee?: PalletTransactionPaymentInclusionFee | undefined; - tip: bigint; -}; - -export type PalletTransactionPaymentInclusionFee = { baseFee: bigint; lenFee: bigint; adjustedWeightFee: bigint }; - -export type AssetsCommonRuntimeApiFungiblesAccessError = 'AssetIdConversionFailed' | 'AmountToBalanceConversionFailed'; - -export type CumulusPrimitivesCoreCollationInfo = { - upwardMessages: Array; - horizontalMessages: Array; - newValidationCode?: PolkadotParachainPrimitivesPrimitivesValidationCode | undefined; - processedDownwardMessages: number; - hrmpWatermark: number; - headData: PolkadotParachainPrimitivesPrimitivesHeadData; -}; - -export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes; - -export type AssetHubPolkadotRuntimeRuntimeError = - | { pallet: 'System'; palletError: FrameSystemError } - | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError } - | { pallet: 'Balances'; palletError: PalletBalancesError } - | { pallet: 'Vesting'; palletError: PalletVestingError } - | { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError } - | { pallet: 'Session'; palletError: PalletSessionError } - | { pallet: 'XcmpQueue'; palletError: CumulusPalletXcmpQueueError } - | { pallet: 'PolkadotXcm'; palletError: PalletXcmError } - | { pallet: 'MessageQueue'; palletError: PalletMessageQueueError } - | { pallet: 'Utility'; palletError: PalletUtilityError } - | { pallet: 'Multisig'; palletError: PalletMultisigError } - | { pallet: 'Proxy'; palletError: PalletProxyError } - | { pallet: 'Assets'; palletError: PalletAssetsError } - | { pallet: 'Uniques'; palletError: PalletUniquesError } - | { pallet: 'Nfts'; palletError: PalletNftsError } - | { pallet: 'ForeignAssets'; palletError: PalletAssetsError } - | { pallet: 'PoolAssets'; palletError: PalletAssetsError } - | { pallet: 'AssetConversion'; palletError: PalletAssetConversionError }; diff --git a/packages/chaintypes/src/rococoAssetHub/consts.d.ts b/packages/chaintypes/src/rococoAssetHub/consts.d.ts deleted file mode 100644 index ec70597..0000000 --- a/packages/chaintypes/src/rococoAssetHub/consts.d.ts +++ /dev/null @@ -1,835 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainConsts, RpcVersion } from 'dedot/types'; -import type { RuntimeVersion, Bytes, Permill } from 'dedot/codecs'; -import type { - FrameSystemLimitsBlockWeights, - FrameSystemLimitsBlockLength, - SpWeightsRuntimeDbWeight, - PolkadotParachainPrimitivesPrimitivesId, - SpWeightsWeightV2Weight, - PalletNftsBitFlagsPalletFeature, - FrameSupportPalletId, - StagingXcmV3MultilocationMultiLocation, -} from './types'; - -export interface ChainConsts extends GenericChainConsts { - /** - * Pallet `System`'s constants - **/ - system: { - /** - * Block & extrinsics weights: base values and limits. - **/ - blockWeights: FrameSystemLimitsBlockWeights; - - /** - * The maximum length of a block (in bytes). - **/ - blockLength: FrameSystemLimitsBlockLength; - - /** - * Maximum number of block number to block hash mappings to keep (oldest pruned first). - **/ - blockHashCount: number; - - /** - * The weight of runtime database operations the runtime can invoke. - **/ - dbWeight: SpWeightsRuntimeDbWeight; - - /** - * Get the chain's in-code version. - **/ - version: RuntimeVersion; - - /** - * The designated SS58 prefix of this chain. - * - * This replaces the "ss58Format" property declared in the chain spec. Reason is - * that the runtime should know about the prefix in order to make use of it as - * an identifier of the chain. - **/ - ss58Prefix: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainSystem`'s constants - **/ - parachainSystem: { - /** - * Returns the parachain ID we are running with. - **/ - selfParaId: PolkadotParachainPrimitivesPrimitivesId; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Timestamp`'s constants - **/ - timestamp: { - /** - * The minimum period between blocks. - * - * Be aware that this is different to the *expected* period that the block production - * apparatus provides. Your chosen consensus system will generally work with this to - * determine a sensible block time. For example, in the Aura pallet it will be double this - * period on default settings. - **/ - minimumPeriod: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainInfo`'s constants - **/ - parachainInfo: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Balances`'s constants - **/ - balances: { - /** - * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! - * - * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for - * this pallet. However, you do so at your own risk: this will open up a major DoS vector. - * In case you have multiple sources of provider references, you may also get unexpected - * behaviour if you set this to zero. - * - * Bottom line: Do yourself a favour and make it at least one! - **/ - existentialDeposit: bigint; - - /** - * The maximum number of locks that should exist on an account. - * Not strictly enforced, but used for weight estimation. - * - * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` - **/ - maxLocks: number; - - /** - * The maximum number of named reserves that can exist on an account. - * - * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` - **/ - maxReserves: number; - - /** - * The maximum number of individual freeze locks that can exist on an account at any time. - **/ - maxFreezes: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `TransactionPayment`'s constants - **/ - transactionPayment: { - /** - * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their - * `priority` - * - * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later - * added to a tip component in regular `priority` calculations. - * It means that a `Normal` transaction can front-run a similarly-sized `Operational` - * extrinsic (with no tip), by including a tip value greater than the virtual tip. - * - * ```rust,ignore - * // For `Normal` - * let priority = priority_calc(tip); - * - * // For `Operational` - * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; - * let priority = priority_calc(tip + virtual_tip); - * ``` - * - * Note that since we use `final_fee` the multiplier applies also to the regular `tip` - * sent with the transaction. So, not only does the transaction get a priority bump based - * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational` - * transactions. - **/ - operationalFeeMultiplier: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetTxPayment`'s constants - **/ - assetTxPayment: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Authorship`'s constants - **/ - authorship: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CollatorSelection`'s constants - **/ - collatorSelection: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Session`'s constants - **/ - session: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Aura`'s constants - **/ - aura: { - /** - * The slot duration Aura should run with, expressed in milliseconds. - * The effective value of this type should not change while the chain is running. - * - * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const. - **/ - slotDuration: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AuraExt`'s constants - **/ - auraExt: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `XcmpQueue`'s constants - **/ - xcmpQueue: { - /** - * The maximum number of inbound XCMP channels that can be suspended simultaneously. - * - * Any further channel suspensions will fail and messages may get dropped without further - * notice. Choosing a high value (1000) is okay; the trade-off that is described in - * [`InboundXcmpSuspended`] still applies at that scale. - **/ - maxInboundSuspended: number; - - /** - * Maximal number of outbound XCMP channels that can have messages queued at the same time. - * - * If this is reached, then no further messages can be sent to channels that do not yet - * have a message queued. This should be set to the expected maximum of outbound channels - * which is determined by [`Self::ChannelInfo`]. It is important to set this large enough, - * since otherwise the congestion control protocol will not work as intended and messages - * may be dropped. This value increases the PoV and should therefore not be picked too - * high. Governance needs to pay attention to not open more channels than this value. - **/ - maxActiveOutboundChannels: number; - - /** - * The maximal page size for HRMP message pages. - * - * A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case - * benchmarking. The limit for the size of a message is slightly below this, since some - * overhead is incurred for encoding the format. - **/ - maxPageSize: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PolkadotXcm`'s constants - **/ - polkadotXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CumulusXcm`'s constants - **/ - cumulusXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `MessageQueue`'s constants - **/ - messageQueue: { - /** - * The size of the page; this implies the maximum message size which can be sent. - * - * A good value depends on the expected message sizes, their weights, the weight that is - * available for processing them and the maximal needed message size. The maximal message - * size is slightly lower than this as defined by [`MaxMessageLenOf`]. - **/ - heapSize: number; - - /** - * The maximum number of stale pages (i.e. of overweight messages) allowed before culling - * can happen. Once there are more stale pages than this, then historical pages may be - * dropped, even if they contain unprocessed overweight messages. - **/ - maxStale: number; - - /** - * The amount of weight (if any) which should be provided to the message queue for - * servicing enqueued items `on_initialize`. - * - * This may be legitimately `None` in the case that you will call - * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have - * it run in `on_idle`. - **/ - serviceWeight: SpWeightsWeightV2Weight | undefined; - - /** - * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which - * should be provided to the message queue for servicing enqueued items `on_idle`. - * Useful for parachains to process messages at the same block they are received. - * - * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`. - **/ - idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Utility`'s constants - **/ - utility: { - /** - * The limit on the number of batched calls. - **/ - batchedCallsLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Multisig`'s constants - **/ - multisig: { - /** - * The base amount of currency needed to reserve for creating a multisig execution or to - * store a dispatch call for later. - * - * This is held for an additional storage item whose value size is - * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is - * `32 + sizeof(AccountId)` bytes. - **/ - depositBase: bigint; - - /** - * The amount of currency needed per unit threshold when creating a multisig execution. - * - * This is held for adding 32 bytes more into a pre-existing storage value. - **/ - depositFactor: bigint; - - /** - * The maximum amount of signatories allowed in the multisig. - **/ - maxSignatories: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Proxy`'s constants - **/ - proxy: { - /** - * The base amount of currency needed to reserve for creating a proxy. - * - * This is held for an additional storage item whose value size is - * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes. - **/ - proxyDepositBase: bigint; - - /** - * The amount of currency needed per proxy added. - * - * This is held for adding 32 bytes plus an instance of `ProxyType` more into a - * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take - * into account `32 + proxy_type.encode().len()` bytes of data. - **/ - proxyDepositFactor: bigint; - - /** - * The maximum amount of proxies allowed for a single account. - **/ - maxProxies: number; - - /** - * The maximum amount of time-delayed announcements that are allowed to be pending. - **/ - maxPending: number; - - /** - * The base amount of currency needed to reserve for creating an announcement. - * - * This is held when a new storage item holding a `Balance` is created (typically 16 - * bytes). - **/ - announcementDepositBase: bigint; - - /** - * The amount of currency needed per announcement made. - * - * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes) - * into a pre-existing storage value. - **/ - announcementDepositFactor: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ToWestendXcmRouter`'s constants - **/ - toWestendXcmRouter: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Assets`'s constants - **/ - assets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Uniques`'s constants - **/ - uniques: { - /** - * The basic amount of funds that must be reserved for collection. - **/ - collectionDeposit: bigint; - - /** - * The basic amount of funds that must be reserved for an item. - **/ - itemDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your item. - **/ - metadataDepositBase: bigint; - - /** - * The basic amount of funds that must be reserved when adding an attribute to an item. - **/ - attributeDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes store in metadata, - * either "normal" metadata or attribute metadata. - **/ - depositPerByte: bigint; - - /** - * The maximum length of data stored on-chain. - **/ - stringLimit: number; - - /** - * The maximum length of an attribute key. - **/ - keyLimit: number; - - /** - * The maximum length of an attribute value. - **/ - valueLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Nfts`'s constants - **/ - nfts: { - /** - * The basic amount of funds that must be reserved for collection. - **/ - collectionDeposit: bigint; - - /** - * The basic amount of funds that must be reserved for an item. - **/ - itemDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your item. - **/ - metadataDepositBase: bigint; - - /** - * The basic amount of funds that must be reserved when adding an attribute to an item. - **/ - attributeDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes store in metadata, - * either "normal" metadata or attribute metadata. - **/ - depositPerByte: bigint; - - /** - * The maximum length of data stored on-chain. - **/ - stringLimit: number; - - /** - * The maximum length of an attribute key. - **/ - keyLimit: number; - - /** - * The maximum length of an attribute value. - **/ - valueLimit: number; - - /** - * The maximum approvals an item could have. - **/ - approvalsLimit: number; - - /** - * The maximum attributes approvals an item could have. - **/ - itemAttributesApprovalsLimit: number; - - /** - * The max number of tips a user could send. - **/ - maxTips: number; - - /** - * The max duration in blocks for deadlines. - **/ - maxDeadlineDuration: number; - - /** - * The max number of attributes a user could set per call. - **/ - maxAttributesPerCall: number; - - /** - * Disables some of pallet's features. - **/ - features: PalletNftsBitFlagsPalletFeature; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ForeignAssets`'s constants - **/ - foreignAssets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `NftFractionalization`'s constants - **/ - nftFractionalization: { - /** - * The deposit paid by the user locking an NFT. The deposit is returned to the original NFT - * owner when the asset is unified and the NFT is unlocked. - **/ - deposit: bigint; - - /** - * The pallet's id, used for deriving its sovereign account ID. - **/ - palletId: FrameSupportPalletId; - - /** - * The newly created asset's symbol. - **/ - newAssetSymbol: Bytes; - - /** - * The newly created asset's name. - **/ - newAssetName: Bytes; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PoolAssets`'s constants - **/ - poolAssets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetConversion`'s constants - **/ - assetConversion: { - /** - * A % the liquidity providers will take of every swap. Represents 10ths of a percent. - **/ - lpFee: number; - - /** - * A one-time fee to setup the pool. - **/ - poolSetupFee: bigint; - - /** - * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`]. - **/ - poolSetupFeeAsset: StagingXcmV3MultilocationMultiLocation; - - /** - * A fee to withdraw the liquidity. - **/ - liquidityWithdrawalFee: Permill; - - /** - * The minimum LP token amount that could be minted. Ameliorates rounding errors. - **/ - mintMinLiquidity: bigint; - - /** - * The max number of hops in a swap. - **/ - maxSwapPathLength: number; - - /** - * The pallet's id, used for deriving its sovereign account ID. - **/ - palletId: FrameSupportPalletId; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetsFreezer`'s constants - **/ - assetsFreezer: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ForeignAssetsFreezer`'s constants - **/ - foreignAssetsFreezer: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PoolAssetsFreezer`'s constants - **/ - poolAssetsFreezer: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetConversionMigration`'s constants - **/ - assetConversionMigration: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; -} diff --git a/packages/chaintypes/src/rococoAssetHub/errors.d.ts b/packages/chaintypes/src/rococoAssetHub/errors.d.ts deleted file mode 100644 index 721a329..0000000 --- a/packages/chaintypes/src/rococoAssetHub/errors.d.ts +++ /dev/null @@ -1,1590 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainErrors, GenericPalletError, RpcVersion } from 'dedot/types'; - -export interface ChainErrors extends GenericChainErrors { - /** - * Pallet `System`'s errors - **/ - system: { - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - InvalidSpecName: GenericPalletError; - - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - SpecVersionNeedsToIncrease: GenericPalletError; - - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - FailedToExtractRuntimeVersion: GenericPalletError; - - /** - * Suicide called when the account has non-default composite data. - **/ - NonDefaultComposite: GenericPalletError; - - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - NonZeroRefCount: GenericPalletError; - - /** - * The origin filter prevent the call to be dispatched. - **/ - CallFiltered: GenericPalletError; - - /** - * A multi-block migration is ongoing and prevents the current code from being replaced. - **/ - MultiBlockMigrationsOngoing: GenericPalletError; - - /** - * No upgrade authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The submitted code is not authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ParachainSystem`'s errors - **/ - parachainSystem: { - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - OverlappingUpgrades: GenericPalletError; - - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - ProhibitedByPolkadot: GenericPalletError; - - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - TooBig: GenericPalletError; - - /** - * The inherent which supplies the validation data did not run this block. - **/ - ValidationDataNotAvailable: GenericPalletError; - - /** - * The inherent which supplies the host configuration did not run this block. - **/ - HostConfigurationNotAvailable: GenericPalletError; - - /** - * No validation function upgrade is currently scheduled. - **/ - NotScheduled: GenericPalletError; - - /** - * No code upgrade has been authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The given code upgrade has not been authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Balances`'s errors - **/ - balances: { - /** - * Vesting balance too high to send value. - **/ - VestingBalance: GenericPalletError; - - /** - * Account liquidity restrictions prevent withdrawal. - **/ - LiquidityRestrictions: GenericPalletError; - - /** - * Balance too low to send value. - **/ - InsufficientBalance: GenericPalletError; - - /** - * Value too low to create account due to existential deposit. - **/ - ExistentialDeposit: GenericPalletError; - - /** - * Transfer/payment would kill account. - **/ - Expendability: GenericPalletError; - - /** - * A vesting schedule already exists for this account. - **/ - ExistingVestingSchedule: GenericPalletError; - - /** - * Beneficiary account must pre-exist. - **/ - DeadAccount: GenericPalletError; - - /** - * Number of named reserves exceed `MaxReserves`. - **/ - TooManyReserves: GenericPalletError; - - /** - * Number of holds exceed `VariantCountOf`. - **/ - TooManyHolds: GenericPalletError; - - /** - * Number of freezes exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * The issuance cannot be modified since it is already deactivated. - **/ - IssuanceDeactivated: GenericPalletError; - - /** - * The delta cannot be zero. - **/ - DeltaZero: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `CollatorSelection`'s errors - **/ - collatorSelection: { - /** - * The pallet has too many candidates. - **/ - TooManyCandidates: GenericPalletError; - - /** - * Leaving would result in too few candidates. - **/ - TooFewEligibleCollators: GenericPalletError; - - /** - * Account is already a candidate. - **/ - AlreadyCandidate: GenericPalletError; - - /** - * Account is not a candidate. - **/ - NotCandidate: GenericPalletError; - - /** - * There are too many Invulnerables. - **/ - TooManyInvulnerables: GenericPalletError; - - /** - * Account is already an Invulnerable. - **/ - AlreadyInvulnerable: GenericPalletError; - - /** - * Account is not an Invulnerable. - **/ - NotInvulnerable: GenericPalletError; - - /** - * Account has no associated validator ID. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Validator ID is not yet registered. - **/ - ValidatorNotRegistered: GenericPalletError; - - /** - * Could not insert in the candidate list. - **/ - InsertToCandidateListFailed: GenericPalletError; - - /** - * Could not remove from the candidate list. - **/ - RemoveFromCandidateListFailed: GenericPalletError; - - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - DepositTooLow: GenericPalletError; - - /** - * Could not update the candidate list. - **/ - UpdateCandidateListFailed: GenericPalletError; - - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - InsufficientBond: GenericPalletError; - - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - TargetIsNotCandidate: GenericPalletError; - - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - IdenticalDeposit: GenericPalletError; - - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - InvalidUnreserve: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Session`'s errors - **/ - session: { - /** - * Invalid ownership proof. - **/ - InvalidProof: GenericPalletError; - - /** - * No associated validator ID for account. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Registered duplicate key. - **/ - DuplicatedKey: GenericPalletError; - - /** - * No keys are associated with this account. - **/ - NoKeys: GenericPalletError; - - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - NoAccount: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `XcmpQueue`'s errors - **/ - xcmpQueue: { - /** - * Setting the queue config failed since one of its values was invalid. - **/ - BadQueueConfig: GenericPalletError; - - /** - * The execution is already suspended. - **/ - AlreadySuspended: GenericPalletError; - - /** - * The execution is already resumed. - **/ - AlreadyResumed: GenericPalletError; - - /** - * There are too many active outbound channels. - **/ - TooManyActiveOutboundChannels: GenericPalletError; - - /** - * The message is too big. - **/ - TooBig: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PolkadotXcm`'s errors - **/ - polkadotXcm: { - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - Unreachable: GenericPalletError; - - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - SendFailure: GenericPalletError; - - /** - * The message execution fails the filter. - **/ - Filtered: GenericPalletError; - - /** - * The message's weight could not be determined. - **/ - UnweighableMessage: GenericPalletError; - - /** - * The destination `Location` provided cannot be inverted. - **/ - DestinationNotInvertible: GenericPalletError; - - /** - * The assets to be sent are empty. - **/ - Empty: GenericPalletError; - - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - CannotReanchor: GenericPalletError; - - /** - * Too many assets have been attempted for transfer. - **/ - TooManyAssets: GenericPalletError; - - /** - * Origin is invalid for sending. - **/ - InvalidOrigin: GenericPalletError; - - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - BadVersion: GenericPalletError; - - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - BadLocation: GenericPalletError; - - /** - * The referenced subscription could not be found. - **/ - NoSubscription: GenericPalletError; - - /** - * The location is invalid since it already has a subscription from us. - **/ - AlreadySubscribed: GenericPalletError; - - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - CannotCheckOutTeleport: GenericPalletError; - - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - LowBalance: GenericPalletError; - - /** - * The asset owner has too many locks on the asset. - **/ - TooManyLocks: GenericPalletError; - - /** - * The given account is not an identifiable sovereign account for any location. - **/ - AccountNotSovereign: GenericPalletError; - - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - FeesNotMet: GenericPalletError; - - /** - * A remote lock with the corresponding data could not be found. - **/ - LockNotFound: GenericPalletError; - - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - InUse: GenericPalletError; - - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - InvalidAssetUnknownReserve: GenericPalletError; - - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - InvalidAssetUnsupportedReserve: GenericPalletError; - - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - TooManyReserves: GenericPalletError; - - /** - * Local XCM execution incomplete. - **/ - LocalExecutionIncomplete: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `MessageQueue`'s errors - **/ - messageQueue: { - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - NotReapable: GenericPalletError; - - /** - * Page to be reaped does not exist. - **/ - NoPage: GenericPalletError; - - /** - * The referenced message could not be found. - **/ - NoMessage: GenericPalletError; - - /** - * The message was already processed and cannot be processed again. - **/ - AlreadyProcessed: GenericPalletError; - - /** - * The message is queued for future execution. - **/ - Queued: GenericPalletError; - - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - InsufficientWeight: GenericPalletError; - - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - TemporarilyUnprocessable: GenericPalletError; - - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - QueuePaused: GenericPalletError; - - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - RecursiveDisallowed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Utility`'s errors - **/ - utility: { - /** - * Too many calls batched. - **/ - TooManyCalls: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Multisig`'s errors - **/ - multisig: { - /** - * Threshold must be 2 or greater. - **/ - MinimumThreshold: GenericPalletError; - - /** - * Call is already approved by this signatory. - **/ - AlreadyApproved: GenericPalletError; - - /** - * Call doesn't need any (more) approvals. - **/ - NoApprovalsNeeded: GenericPalletError; - - /** - * There are too few signatories in the list. - **/ - TooFewSignatories: GenericPalletError; - - /** - * There are too many signatories in the list. - **/ - TooManySignatories: GenericPalletError; - - /** - * The signatories were provided out of order; they should be ordered. - **/ - SignatoriesOutOfOrder: GenericPalletError; - - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - SenderInSignatories: GenericPalletError; - - /** - * Multisig operation not found when attempting to cancel. - **/ - NotFound: GenericPalletError; - - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - NotOwner: GenericPalletError; - - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - NoTimepoint: GenericPalletError; - - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - WrongTimepoint: GenericPalletError; - - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - UnexpectedTimepoint: GenericPalletError; - - /** - * The maximum weight information provided was too low. - **/ - MaxWeightTooLow: GenericPalletError; - - /** - * The data to be stored is already stored. - **/ - AlreadyStored: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Proxy`'s errors - **/ - proxy: { - /** - * There are too many proxies registered or too many announcements pending. - **/ - TooMany: GenericPalletError; - - /** - * Proxy registration not found. - **/ - NotFound: GenericPalletError; - - /** - * Sender is not a proxy of the account to be proxied. - **/ - NotProxy: GenericPalletError; - - /** - * A call which is incompatible with the proxy type's filter was attempted. - **/ - Unproxyable: GenericPalletError; - - /** - * Account is already a proxy. - **/ - Duplicate: GenericPalletError; - - /** - * Call may not be made by proxy because it may escalate its privileges. - **/ - NoPermission: GenericPalletError; - - /** - * Announcement, if made at all, was made too recently. - **/ - Unannounced: GenericPalletError; - - /** - * Cannot add self as proxy. - **/ - NoSelfProxy: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Assets`'s errors - **/ - assets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * The asset ID must be equal to the [`NextAssetId`]. - **/ - BadAssetId: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Uniques`'s errors - **/ - uniques: { - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownCollection: GenericPalletError; - - /** - * The item ID has already been used for an item. - **/ - AlreadyExists: GenericPalletError; - - /** - * The owner turned out to be different to what was expected. - **/ - WrongOwner: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * The item ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * The item or collection is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The delegate turned out to be different to what was expected. - **/ - WrongDelegate: GenericPalletError; - - /** - * There is no delegate approved. - **/ - NoDelegate: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The named owner has not signed ownership of the collection is acceptable. - **/ - Unaccepted: GenericPalletError; - - /** - * The item is locked. - **/ - Locked: GenericPalletError; - - /** - * All items have been minted. - **/ - MaxSupplyReached: GenericPalletError; - - /** - * The max supply has already been set. - **/ - MaxSupplyAlreadySet: GenericPalletError; - - /** - * The provided max supply is less to the amount of items a collection already has. - **/ - MaxSupplyTooSmall: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownItem: GenericPalletError; - - /** - * Item is not for sale. - **/ - NotForSale: GenericPalletError; - - /** - * The provided bid is too low. - **/ - BidTooLow: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Nfts`'s errors - **/ - nfts: { - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownCollection: GenericPalletError; - - /** - * The item ID has already been used for an item. - **/ - AlreadyExists: GenericPalletError; - - /** - * The approval had a deadline that expired, so the approval isn't valid anymore. - **/ - ApprovalExpired: GenericPalletError; - - /** - * The owner turned out to be different to what was expected. - **/ - WrongOwner: GenericPalletError; - - /** - * The witness data given does not match the current state of the chain. - **/ - BadWitness: GenericPalletError; - - /** - * Collection ID is already taken. - **/ - CollectionIdInUse: GenericPalletError; - - /** - * Items within that collection are non-transferable. - **/ - ItemsNonTransferable: GenericPalletError; - - /** - * The provided account is not a delegate. - **/ - NotDelegate: GenericPalletError; - - /** - * The delegate turned out to be different to what was expected. - **/ - WrongDelegate: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The named owner has not signed ownership acceptance of the collection. - **/ - Unaccepted: GenericPalletError; - - /** - * The item is locked (non-transferable). - **/ - ItemLocked: GenericPalletError; - - /** - * Item's attributes are locked. - **/ - LockedItemAttributes: GenericPalletError; - - /** - * Collection's attributes are locked. - **/ - LockedCollectionAttributes: GenericPalletError; - - /** - * Item's metadata is locked. - **/ - LockedItemMetadata: GenericPalletError; - - /** - * Collection's metadata is locked. - **/ - LockedCollectionMetadata: GenericPalletError; - - /** - * All items have been minted. - **/ - MaxSupplyReached: GenericPalletError; - - /** - * The max supply is locked and can't be changed. - **/ - MaxSupplyLocked: GenericPalletError; - - /** - * The provided max supply is less than the number of items a collection already has. - **/ - MaxSupplyTooSmall: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownItem: GenericPalletError; - - /** - * Swap doesn't exist. - **/ - UnknownSwap: GenericPalletError; - - /** - * The given item has no metadata set. - **/ - MetadataNotFound: GenericPalletError; - - /** - * The provided attribute can't be found. - **/ - AttributeNotFound: GenericPalletError; - - /** - * Item is not for sale. - **/ - NotForSale: GenericPalletError; - - /** - * The provided bid is too low. - **/ - BidTooLow: GenericPalletError; - - /** - * The item has reached its approval limit. - **/ - ReachedApprovalLimit: GenericPalletError; - - /** - * The deadline has already expired. - **/ - DeadlineExpired: GenericPalletError; - - /** - * The duration provided should be less than or equal to `MaxDeadlineDuration`. - **/ - WrongDuration: GenericPalletError; - - /** - * The method is disabled by system settings. - **/ - MethodDisabled: GenericPalletError; - - /** - * The provided setting can't be set. - **/ - WrongSetting: GenericPalletError; - - /** - * Item's config already exists and should be equal to the provided one. - **/ - InconsistentItemConfig: GenericPalletError; - - /** - * Config for a collection or an item can't be found. - **/ - NoConfig: GenericPalletError; - - /** - * Some roles were not cleared. - **/ - RolesNotCleared: GenericPalletError; - - /** - * Mint has not started yet. - **/ - MintNotStarted: GenericPalletError; - - /** - * Mint has already ended. - **/ - MintEnded: GenericPalletError; - - /** - * The provided Item was already used for claiming. - **/ - AlreadyClaimed: GenericPalletError; - - /** - * The provided data is incorrect. - **/ - IncorrectData: GenericPalletError; - - /** - * The extrinsic was sent by the wrong origin. - **/ - WrongOrigin: GenericPalletError; - - /** - * The provided signature is incorrect. - **/ - WrongSignature: GenericPalletError; - - /** - * The provided metadata might be too long. - **/ - IncorrectMetadata: GenericPalletError; - - /** - * Can't set more attributes per one call. - **/ - MaxAttributesLimitReached: GenericPalletError; - - /** - * The provided namespace isn't supported in this call. - **/ - WrongNamespace: GenericPalletError; - - /** - * Can't delete non-empty collections. - **/ - CollectionNotEmpty: GenericPalletError; - - /** - * The witness data should be provided. - **/ - WitnessRequired: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ForeignAssets`'s errors - **/ - foreignAssets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * The asset ID must be equal to the [`NextAssetId`]. - **/ - BadAssetId: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `NftFractionalization`'s errors - **/ - nftFractionalization: { - /** - * Asset ID does not correspond to locked NFT. - **/ - IncorrectAssetId: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * NFT doesn't exist. - **/ - NftNotFound: GenericPalletError; - - /** - * NFT has not yet been fractionalised. - **/ - NftNotFractionalized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PoolAssets`'s errors - **/ - poolAssets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * The asset ID must be equal to the [`NextAssetId`]. - **/ - BadAssetId: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `AssetConversion`'s errors - **/ - assetConversion: { - /** - * Provided asset pair is not supported for pool. - **/ - InvalidAssetPair: GenericPalletError; - - /** - * Pool already exists. - **/ - PoolExists: GenericPalletError; - - /** - * Desired amount can't be zero. - **/ - WrongDesiredAmount: GenericPalletError; - - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - AmountOneLessThanMinimal: GenericPalletError; - - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - AmountTwoLessThanMinimal: GenericPalletError; - - /** - * Reserve needs to always be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - ReserveLeftLessThanMinimal: GenericPalletError; - - /** - * Desired amount can't be equal to the pool reserve. - **/ - AmountOutTooHigh: GenericPalletError; - - /** - * The pool doesn't exist. - **/ - PoolNotFound: GenericPalletError; - - /** - * An overflow happened. - **/ - Overflow: GenericPalletError; - - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - AssetOneDepositDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - AssetTwoDepositDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - AssetOneWithdrawalDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - AssetTwoWithdrawalDidNotMeetMinimum: GenericPalletError; - - /** - * Optimal calculated amount is less than desired. - **/ - OptimalAmountLessThanDesired: GenericPalletError; - - /** - * Insufficient liquidity minted. - **/ - InsufficientLiquidityMinted: GenericPalletError; - - /** - * Requested liquidity can't be zero. - **/ - ZeroLiquidity: GenericPalletError; - - /** - * Amount can't be zero. - **/ - ZeroAmount: GenericPalletError; - - /** - * Calculated amount out is less than provided minimum amount. - **/ - ProvidedMinimumNotSufficientForSwap: GenericPalletError; - - /** - * Provided maximum amount is not sufficient for swap. - **/ - ProvidedMaximumNotSufficientForSwap: GenericPalletError; - - /** - * The provided path must consists of 2 assets at least. - **/ - InvalidPath: GenericPalletError; - - /** - * The provided path must consists of unique assets. - **/ - NonUniquePath: GenericPalletError; - - /** - * It was not possible to get or increment the Id of the pool. - **/ - IncorrectPoolAssetId: GenericPalletError; - - /** - * The destination account cannot exist with the swapped funds. - **/ - BelowMinimum: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `AssetsFreezer`'s errors - **/ - assetsFreezer: { - /** - * Number of freezes on an account would exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ForeignAssetsFreezer`'s errors - **/ - foreignAssetsFreezer: { - /** - * Number of freezes on an account would exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PoolAssetsFreezer`'s errors - **/ - poolAssetsFreezer: { - /** - * Number of freezes on an account would exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `AssetConversionMigration`'s errors - **/ - assetConversionMigration: { - /** - * Provided asset pair is not supported for pool. - **/ - InvalidAssetPair: GenericPalletError; - - /** - * The pool doesn't exist. - **/ - PoolNotFound: GenericPalletError; - - /** - * Pool's balance cannot be zero. - **/ - ZeroBalance: GenericPalletError; - - /** - * Indicates a partial transfer of balance to the new account during a migration. - **/ - PartialTransfer: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; -} diff --git a/packages/chaintypes/src/rococoAssetHub/events.d.ts b/packages/chaintypes/src/rococoAssetHub/events.d.ts deleted file mode 100644 index 50f7fe6..0000000 --- a/packages/chaintypes/src/rococoAssetHub/events.d.ts +++ /dev/null @@ -1,2573 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types'; -import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result, Bytes, Permill } from 'dedot/codecs'; -import type { - SpWeightsWeightV2Weight, - FrameSupportTokensMiscBalanceStatus, - StagingXcmV3MultilocationMultiLocation, - StagingXcmV4TraitsOutcome, - StagingXcmV4Location, - StagingXcmV4Xcm, - StagingXcmV4Response, - XcmVersionedAssets, - StagingXcmV4AssetAssets, - XcmV3TraitsError, - XcmVersionedLocation, - CumulusPrimitivesCoreAggregateMessageOrigin, - FrameSupportMessagesProcessMessageError, - PalletMultisigTimepoint, - AssetHubRococoRuntimeProxyType, - PalletNftsAttributeNamespace, - PalletNftsPriceWithDirection, - PalletNftsPalletAttributes, -} from './types'; - -export interface ChainEvents extends GenericChainEvents { - /** - * Pallet `System`'s events - **/ - system: { - /** - * An extrinsic completed successfully. - **/ - ExtrinsicSuccess: GenericPalletEvent; - - /** - * An extrinsic failed. - **/ - ExtrinsicFailed: GenericPalletEvent< - Rv, - 'System', - 'ExtrinsicFailed', - { dispatchError: DispatchError; dispatchInfo: DispatchInfo } - >; - - /** - * `:code` was updated. - **/ - CodeUpdated: GenericPalletEvent; - - /** - * A new account was created. - **/ - NewAccount: GenericPalletEvent; - - /** - * An account was reaped. - **/ - KilledAccount: GenericPalletEvent; - - /** - * On on-chain remark happened. - **/ - Remarked: GenericPalletEvent; - - /** - * An upgrade was authorized. - **/ - UpgradeAuthorized: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ParachainSystem`'s events - **/ - parachainSystem: { - /** - * The validation function has been scheduled to apply. - **/ - ValidationFunctionStored: GenericPalletEvent; - - /** - * The validation function was applied as of the contained relay chain block number. - **/ - ValidationFunctionApplied: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'ValidationFunctionApplied', - { relayChainBlockNum: number } - >; - - /** - * The relay-chain aborted the upgrade process. - **/ - ValidationFunctionDiscarded: GenericPalletEvent; - - /** - * Some downward messages have been received and will be processed. - **/ - DownwardMessagesReceived: GenericPalletEvent; - - /** - * Downward messages were processed using the given weight. - **/ - DownwardMessagesProcessed: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'DownwardMessagesProcessed', - { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } - >; - - /** - * An upward message was sent to the relay chain. - **/ - UpwardMessageSent: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'UpwardMessageSent', - { messageHash?: FixedBytes<32> | undefined } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Balances`'s events - **/ - balances: { - /** - * An account was created with some free balance. - **/ - Endowed: GenericPalletEvent; - - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - DustLost: GenericPalletEvent; - - /** - * Transfer succeeded. - **/ - Transfer: GenericPalletEvent; - - /** - * A balance was set by root. - **/ - BalanceSet: GenericPalletEvent; - - /** - * Some balance was reserved (moved from free to reserved). - **/ - Reserved: GenericPalletEvent; - - /** - * Some balance was unreserved (moved from reserved to free). - **/ - Unreserved: GenericPalletEvent; - - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - ReserveRepatriated: GenericPalletEvent< - Rv, - 'Balances', - 'ReserveRepatriated', - { from: AccountId32; to: AccountId32; amount: bigint; destinationStatus: FrameSupportTokensMiscBalanceStatus } - >; - - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - Deposit: GenericPalletEvent; - - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - Withdraw: GenericPalletEvent; - - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - Slashed: GenericPalletEvent; - - /** - * Some amount was minted into an account. - **/ - Minted: GenericPalletEvent; - - /** - * Some amount was burned from an account. - **/ - Burned: GenericPalletEvent; - - /** - * Some amount was suspended from an account (it can be restored later). - **/ - Suspended: GenericPalletEvent; - - /** - * Some amount was restored into an account. - **/ - Restored: GenericPalletEvent; - - /** - * An account was upgraded. - **/ - Upgraded: GenericPalletEvent; - - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - Issued: GenericPalletEvent; - - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - Rescinded: GenericPalletEvent; - - /** - * Some balance was locked. - **/ - Locked: GenericPalletEvent; - - /** - * Some balance was unlocked. - **/ - Unlocked: GenericPalletEvent; - - /** - * Some balance was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some balance was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * The `TotalIssuance` was forcefully changed. - **/ - TotalIssuanceForced: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `TransactionPayment`'s events - **/ - transactionPayment: { - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - TransactionFeePaid: GenericPalletEvent< - Rv, - 'TransactionPayment', - 'TransactionFeePaid', - { who: AccountId32; actualFee: bigint; tip: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetTxPayment`'s events - **/ - assetTxPayment: { - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who` in an asset `asset_id`. - **/ - AssetTxFeePaid: GenericPalletEvent< - Rv, - 'AssetTxPayment', - 'AssetTxFeePaid', - { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * A swap of the refund in native currency back to asset failed. - **/ - AssetRefundFailed: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CollatorSelection`'s events - **/ - collatorSelection: { - /** - * New Invulnerables were set. - **/ - NewInvulnerables: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewInvulnerables', - { invulnerables: Array } - >; - - /** - * A new Invulnerable was added. - **/ - InvulnerableAdded: GenericPalletEvent; - - /** - * An Invulnerable was removed. - **/ - InvulnerableRemoved: GenericPalletEvent; - - /** - * The number of desired candidates was set. - **/ - NewDesiredCandidates: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewDesiredCandidates', - { desiredCandidates: number } - >; - - /** - * The candidacy bond was set. - **/ - NewCandidacyBond: GenericPalletEvent; - - /** - * A new candidate joined. - **/ - CandidateAdded: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateAdded', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * Bond of a candidate updated. - **/ - CandidateBondUpdated: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateBondUpdated', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * A candidate was removed. - **/ - CandidateRemoved: GenericPalletEvent; - - /** - * An account was replaced in the candidate list by another one. - **/ - CandidateReplaced: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateReplaced', - { old: AccountId32; new: AccountId32; deposit: bigint } - >; - - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - InvalidInvulnerableSkipped: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'InvalidInvulnerableSkipped', - { accountId: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Session`'s events - **/ - session: { - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - NewSession: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `XcmpQueue`'s events - **/ - xcmpQueue: { - /** - * An HRMP message was sent to a sibling parachain. - **/ - XcmpMessageSent: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PolkadotXcm`'s events - **/ - polkadotXcm: { - /** - * Execution of an XCM message was attempted. - **/ - Attempted: GenericPalletEvent; - - /** - * A XCM message was sent. - **/ - Sent: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Sent', - { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - } - >; - - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - UnexpectedResponse: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'UnexpectedResponse', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - ResponseReady: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'ResponseReady', - { queryId: bigint; response: StagingXcmV4Response } - >; - - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - Notified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Notified', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - NotifyOverweight: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyOverweight', - { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - } - >; - - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - NotifyDispatchError: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDispatchError', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - NotifyDecodeFailed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDecodeFailed', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidResponder: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponder', - { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined } - >; - - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidResponderVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponderVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Received query response has been read and removed. - **/ - ResponseTaken: GenericPalletEvent; - - /** - * Some assets have been placed in an asset trap. - **/ - AssetsTrapped: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsTrapped', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - VersionChangeNotified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionChangeNotified', - { destination: StagingXcmV4Location; result: number; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - SupportedVersionChanged: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'SupportedVersionChanged', - { location: StagingXcmV4Location; version: number } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - NotifyTargetSendFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetSendFail', - { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - NotifyTargetMigrationFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetMigrationFail', - { location: XcmVersionedLocation; queryId: bigint } - >; - - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidQuerierVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerierVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidQuerier: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerier', - { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - } - >; - - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - VersionNotifyStarted: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyStarted', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - VersionNotifyRequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyRequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - VersionNotifyUnrequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyUnrequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - FeesPaid: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'FeesPaid', - { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } - >; - - /** - * Some assets have been claimed from an asset trap - **/ - AssetsClaimed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsClaimed', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * A XCM version migration finished. - **/ - VersionMigrationFinished: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CumulusXcm`'s events - **/ - cumulusXcm: { - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - InvalidFormat: GenericPalletEvent>; - - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - UnsupportedVersion: GenericPalletEvent>; - - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - ExecutedDownward: GenericPalletEvent< - Rv, - 'CumulusXcm', - 'ExecutedDownward', - [FixedBytes<32>, StagingXcmV4TraitsOutcome] - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `MessageQueue`'s events - **/ - messageQueue: { - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - ProcessingFailed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'ProcessingFailed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - } - >; - - /** - * Message is processed. - **/ - Processed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'Processed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - } - >; - - /** - * Message placed in overweight queue. - **/ - OverweightEnqueued: GenericPalletEvent< - Rv, - 'MessageQueue', - 'OverweightEnqueued', - { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - } - >; - - /** - * This page was reaped. - **/ - PageReaped: GenericPalletEvent< - Rv, - 'MessageQueue', - 'PageReaped', - { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Utility`'s events - **/ - utility: { - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - BatchInterrupted: GenericPalletEvent; - - /** - * Batch of dispatches completed fully with no error. - **/ - BatchCompleted: GenericPalletEvent; - - /** - * Batch of dispatches completed but has errors. - **/ - BatchCompletedWithErrors: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - ItemCompleted: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with error. - **/ - ItemFailed: GenericPalletEvent; - - /** - * A call was dispatched. - **/ - DispatchedAs: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Multisig`'s events - **/ - multisig: { - /** - * A new multisig operation has begun. - **/ - NewMultisig: GenericPalletEvent< - Rv, - 'Multisig', - 'NewMultisig', - { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been approved by someone. - **/ - MultisigApproval: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigApproval', - { approving: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been executed. - **/ - MultisigExecuted: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigExecuted', - { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - } - >; - - /** - * A multisig operation has been cancelled. - **/ - MultisigCancelled: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigCancelled', - { cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Proxy`'s events - **/ - proxy: { - /** - * A proxy was executed correctly, with the given. - **/ - ProxyExecuted: GenericPalletEvent }>; - - /** - * A pure account has been created by new proxy with given - * disambiguation index and proxy type. - **/ - PureCreated: GenericPalletEvent< - Rv, - 'Proxy', - 'PureCreated', - { pure: AccountId32; who: AccountId32; proxyType: AssetHubRococoRuntimeProxyType; disambiguationIndex: number } - >; - - /** - * An announcement was placed to make a call in the future. - **/ - Announced: GenericPalletEvent; - - /** - * A proxy was added. - **/ - ProxyAdded: GenericPalletEvent< - Rv, - 'Proxy', - 'ProxyAdded', - { delegator: AccountId32; delegatee: AccountId32; proxyType: AssetHubRococoRuntimeProxyType; delay: number } - >; - - /** - * A proxy was removed. - **/ - ProxyRemoved: GenericPalletEvent< - Rv, - 'Proxy', - 'ProxyRemoved', - { delegator: AccountId32; delegatee: AccountId32; proxyType: AssetHubRococoRuntimeProxyType; delay: number } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Assets`'s events - **/ - assets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Assets', - 'Transferred', - { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Assets', - 'TeamChanged', - { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'Assets', - 'AccountsDestroyed', - { assetId: number; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovalsDestroyed', - { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'Assets', - 'MetadataSet', - { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovedTransfer', - { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovalCancelled', - { assetId: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'Assets', - 'TransferredApproved', - { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'Assets', - 'AssetMinBalanceChanged', - { assetId: number; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent; - - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - Deposited: GenericPalletEvent; - - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - Withdrawn: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Uniques`'s events - **/ - uniques: { - /** - * A `collection` was created. - **/ - Created: GenericPalletEvent< - Rv, - 'Uniques', - 'Created', - { collection: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * A `collection` was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * A `collection` was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * An `item` was issued. - **/ - Issued: GenericPalletEvent; - - /** - * An `item` was transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Uniques', - 'Transferred', - { collection: number; item: number; from: AccountId32; to: AccountId32 } - >; - - /** - * An `item` was destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * Some `item` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some `item` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some `collection` was frozen. - **/ - CollectionFrozen: GenericPalletEvent; - - /** - * Some `collection` was thawed. - **/ - CollectionThawed: GenericPalletEvent; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Uniques', - 'TeamChanged', - { collection: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'Uniques', - 'ApprovedTransfer', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Uniques', - 'ApprovalCancelled', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * A `collection` has had its attributes changed by the `Force` origin. - **/ - ItemStatusChanged: GenericPalletEvent; - - /** - * New metadata has been set for a `collection`. - **/ - CollectionMetadataSet: GenericPalletEvent< - Rv, - 'Uniques', - 'CollectionMetadataSet', - { collection: number; data: Bytes; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for a `collection`. - **/ - CollectionMetadataCleared: GenericPalletEvent; - - /** - * New metadata has been set for an item. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'Uniques', - 'MetadataSet', - { collection: number; item: number; data: Bytes; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an item. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * Metadata has been cleared for an item. - **/ - Redeposited: GenericPalletEvent< - Rv, - 'Uniques', - 'Redeposited', - { collection: number; successfulItems: Array } - >; - - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - AttributeSet: GenericPalletEvent< - Rv, - 'Uniques', - 'AttributeSet', - { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } - >; - - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - AttributeCleared: GenericPalletEvent< - Rv, - 'Uniques', - 'AttributeCleared', - { collection: number; maybeItem?: number | undefined; key: Bytes } - >; - - /** - * Ownership acceptance has changed for an account. - **/ - OwnershipAcceptanceChanged: GenericPalletEvent< - Rv, - 'Uniques', - 'OwnershipAcceptanceChanged', - { who: AccountId32; maybeCollection?: number | undefined } - >; - - /** - * Max supply has been set for a collection. - **/ - CollectionMaxSupplySet: GenericPalletEvent< - Rv, - 'Uniques', - 'CollectionMaxSupplySet', - { collection: number; maxSupply: number } - >; - - /** - * The price was set for the instance. - **/ - ItemPriceSet: GenericPalletEvent< - Rv, - 'Uniques', - 'ItemPriceSet', - { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined } - >; - - /** - * The price for the instance was removed. - **/ - ItemPriceRemoved: GenericPalletEvent; - - /** - * An item was bought. - **/ - ItemBought: GenericPalletEvent< - Rv, - 'Uniques', - 'ItemBought', - { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Nfts`'s events - **/ - nfts: { - /** - * A `collection` was created. - **/ - Created: GenericPalletEvent< - Rv, - 'Nfts', - 'Created', - { collection: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * A `collection` was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * A `collection` was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * An `item` was issued. - **/ - Issued: GenericPalletEvent; - - /** - * An `item` was transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Nfts', - 'Transferred', - { collection: number; item: number; from: AccountId32; to: AccountId32 } - >; - - /** - * An `item` was destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * An `item` became non-transferable. - **/ - ItemTransferLocked: GenericPalletEvent; - - /** - * An `item` became transferable. - **/ - ItemTransferUnlocked: GenericPalletEvent; - - /** - * `item` metadata or attributes were locked. - **/ - ItemPropertiesLocked: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemPropertiesLocked', - { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean } - >; - - /** - * Some `collection` was locked. - **/ - CollectionLocked: GenericPalletEvent; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Nfts', - 'TeamChanged', - { - collection: number; - issuer?: AccountId32 | undefined; - admin?: AccountId32 | undefined; - freezer?: AccountId32 | undefined; - } - >; - - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - TransferApproved: GenericPalletEvent< - Rv, - 'Nfts', - 'TransferApproved', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32; deadline?: number | undefined } - >; - - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'ApprovalCancelled', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * All approvals of an item got cancelled. - **/ - AllApprovalsCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'AllApprovalsCancelled', - { collection: number; item: number; owner: AccountId32 } - >; - - /** - * A `collection` has had its config changed by the `Force` origin. - **/ - CollectionConfigChanged: GenericPalletEvent; - - /** - * New metadata has been set for a `collection`. - **/ - CollectionMetadataSet: GenericPalletEvent; - - /** - * Metadata has been cleared for a `collection`. - **/ - CollectionMetadataCleared: GenericPalletEvent; - - /** - * New metadata has been set for an item. - **/ - ItemMetadataSet: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemMetadataSet', - { collection: number; item: number; data: Bytes } - >; - - /** - * Metadata has been cleared for an item. - **/ - ItemMetadataCleared: GenericPalletEvent; - - /** - * The deposit for a set of `item`s within a `collection` has been updated. - **/ - Redeposited: GenericPalletEvent }>; - - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - AttributeSet: GenericPalletEvent< - Rv, - 'Nfts', - 'AttributeSet', - { - collection: number; - maybeItem?: number | undefined; - key: Bytes; - value: Bytes; - namespace: PalletNftsAttributeNamespace; - } - >; - - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - AttributeCleared: GenericPalletEvent< - Rv, - 'Nfts', - 'AttributeCleared', - { collection: number; maybeItem?: number | undefined; key: Bytes; namespace: PalletNftsAttributeNamespace } - >; - - /** - * A new approval to modify item attributes was added. - **/ - ItemAttributesApprovalAdded: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemAttributesApprovalAdded', - { collection: number; item: number; delegate: AccountId32 } - >; - - /** - * A new approval to modify item attributes was removed. - **/ - ItemAttributesApprovalRemoved: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemAttributesApprovalRemoved', - { collection: number; item: number; delegate: AccountId32 } - >; - - /** - * Ownership acceptance has changed for an account. - **/ - OwnershipAcceptanceChanged: GenericPalletEvent< - Rv, - 'Nfts', - 'OwnershipAcceptanceChanged', - { who: AccountId32; maybeCollection?: number | undefined } - >; - - /** - * Max supply has been set for a collection. - **/ - CollectionMaxSupplySet: GenericPalletEvent< - Rv, - 'Nfts', - 'CollectionMaxSupplySet', - { collection: number; maxSupply: number } - >; - - /** - * Mint settings for a collection had changed. - **/ - CollectionMintSettingsUpdated: GenericPalletEvent< - Rv, - 'Nfts', - 'CollectionMintSettingsUpdated', - { collection: number } - >; - - /** - * Event gets emitted when the `NextCollectionId` gets incremented. - **/ - NextCollectionIdIncremented: GenericPalletEvent< - Rv, - 'Nfts', - 'NextCollectionIdIncremented', - { nextId?: number | undefined } - >; - - /** - * The price was set for the item. - **/ - ItemPriceSet: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemPriceSet', - { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined } - >; - - /** - * The price for the item was removed. - **/ - ItemPriceRemoved: GenericPalletEvent; - - /** - * An item was bought. - **/ - ItemBought: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemBought', - { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 } - >; - - /** - * A tip was sent. - **/ - TipSent: GenericPalletEvent< - Rv, - 'Nfts', - 'TipSent', - { collection: number; item: number; sender: AccountId32; receiver: AccountId32; amount: bigint } - >; - - /** - * An `item` swap intent was created. - **/ - SwapCreated: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapCreated', - { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * The swap was cancelled. - **/ - SwapCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapCancelled', - { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * The swap has been claimed. - **/ - SwapClaimed: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapClaimed', - { - sentCollection: number; - sentItem: number; - sentItemOwner: AccountId32; - receivedCollection: number; - receivedItem: number; - receivedItemOwner: AccountId32; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * New attributes have been set for an `item` of the `collection`. - **/ - PreSignedAttributesSet: GenericPalletEvent< - Rv, - 'Nfts', - 'PreSignedAttributesSet', - { collection: number; item: number; namespace: PalletNftsAttributeNamespace } - >; - - /** - * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` - * within that `collection`. - **/ - PalletAttributeSet: GenericPalletEvent< - Rv, - 'Nfts', - 'PalletAttributeSet', - { collection: number; item?: number | undefined; attribute: PalletNftsPalletAttributes; value: Bytes } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ForeignAssets`'s events - **/ - foreignAssets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Created', - { assetId: StagingXcmV3MultilocationMultiLocation; creator: AccountId32; owner: AccountId32 } - >; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Issued', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; amount: bigint } - >; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Transferred', - { assetId: StagingXcmV3MultilocationMultiLocation; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Burned', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; balance: bigint } - >; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'TeamChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'OwnerChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } - >; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Frozen', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Thawed', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetFrozen', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetThawed', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AccountsDestroyed', - { assetId: StagingXcmV3MultilocationMultiLocation; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovalsDestroyed', - { assetId: StagingXcmV3MultilocationMultiLocation; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'DestructionStarted', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Destroyed', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ForceCreated', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } - >; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'MetadataSet', - { - assetId: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'MetadataCleared', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovedTransfer', - { assetId: StagingXcmV3MultilocationMultiLocation; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovalCancelled', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'TransferredApproved', - { - assetId: StagingXcmV3MultilocationMultiLocation; - owner: AccountId32; - delegate: AccountId32; - destination: AccountId32; - amount: bigint; - } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetStatusChanged', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetMinBalanceChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Touched', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; depositor: AccountId32 } - >; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Blocked', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - Deposited: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Deposited', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint } - >; - - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - Withdrawn: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Withdrawn', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `NftFractionalization`'s events - **/ - nftFractionalization: { - /** - * An NFT was successfully fractionalized. - **/ - NftFractionalized: GenericPalletEvent< - Rv, - 'NftFractionalization', - 'NftFractionalized', - { nftCollection: number; nft: number; fractions: bigint; asset: number; beneficiary: AccountId32 } - >; - - /** - * An NFT was successfully returned back. - **/ - NftUnified: GenericPalletEvent< - Rv, - 'NftFractionalization', - 'NftUnified', - { nftCollection: number; nft: number; asset: number; beneficiary: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PoolAssets`'s events - **/ - poolAssets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Created', - { assetId: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Transferred', - { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'PoolAssets', - 'TeamChanged', - { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'PoolAssets', - 'AccountsDestroyed', - { assetId: number; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovalsDestroyed', - { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'PoolAssets', - 'MetadataSet', - { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovedTransfer', - { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovalCancelled', - { assetId: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'PoolAssets', - 'TransferredApproved', - { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'PoolAssets', - 'AssetMinBalanceChanged', - { assetId: number; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Touched', - { assetId: number; who: AccountId32; depositor: AccountId32 } - >; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent; - - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - Deposited: GenericPalletEvent; - - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - Withdrawn: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetConversion`'s events - **/ - assetConversion: { - /** - * A successful call of the `CreatePool` extrinsic will create this event. - **/ - PoolCreated: GenericPalletEvent< - Rv, - 'AssetConversion', - 'PoolCreated', - { - /** - * The account that created the pool. - **/ - creator: AccountId32; - - /** - * The pool id associated with the pool. Note that the order of the assets may not be - * the same as the order specified in the create pool extrinsic. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account ID of the pool. - **/ - poolAccount: AccountId32; - - /** - * The id of the liquidity tokens that will be minted when assets are added to this - * pool. - **/ - lpToken: number; - } - >; - - /** - * A successful call of the `AddLiquidity` extrinsic will create this event. - **/ - LiquidityAdded: GenericPalletEvent< - Rv, - 'AssetConversion', - 'LiquidityAdded', - { - /** - * The account that the liquidity was taken from. - **/ - who: AccountId32; - - /** - * The account that the liquidity tokens were minted to. - **/ - mintTo: AccountId32; - - /** - * The pool id of the pool that the liquidity was added to. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was added to the pool. - **/ - amount1Provided: bigint; - - /** - * The amount of the second asset that was added to the pool. - **/ - amount2Provided: bigint; - - /** - * The id of the lp token that was minted. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were minted of that id. - **/ - lpTokenMinted: bigint; - } - >; - - /** - * A successful call of the `RemoveLiquidity` extrinsic will create this event. - **/ - LiquidityRemoved: GenericPalletEvent< - Rv, - 'AssetConversion', - 'LiquidityRemoved', - { - /** - * The account that the liquidity tokens were burned from. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - withdrawTo: AccountId32; - - /** - * The pool id that the liquidity was removed from. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was removed from the pool. - **/ - amount1: bigint; - - /** - * The amount of the second asset that was removed from the pool. - **/ - amount2: bigint; - - /** - * The id of the lp token that was burned. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were burned of that id. - **/ - lpTokenBurned: bigint; - - /** - * Liquidity withdrawal fee (%). - **/ - withdrawalFee: Permill; - } - >; - - /** - * Assets have been converted from one to another. Both `SwapExactTokenForToken` - * and `SwapTokenForExactToken` will generate this event. - **/ - SwapExecuted: GenericPalletEvent< - Rv, - 'AssetConversion', - 'SwapExecuted', - { - /** - * Which account was the instigator of the swap. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - sendTo: AccountId32; - - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - } - >; - - /** - * Assets have been converted from one to another. - **/ - SwapCreditExecuted: GenericPalletEvent< - Rv, - 'AssetConversion', - 'SwapCreditExecuted', - { - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - } - >; - - /** - * Pool has been touched in order to fulfill operational requirements. - **/ - Touched: GenericPalletEvent< - Rv, - 'AssetConversion', - 'Touched', - { - /** - * The ID of the pool. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account initiating the touch. - **/ - who: AccountId32; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetsFreezer`'s events - **/ - assetsFreezer: { - Frozen: GenericPalletEvent; - Thawed: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ForeignAssetsFreezer`'s events - **/ - foreignAssetsFreezer: { - Frozen: GenericPalletEvent< - Rv, - 'ForeignAssetsFreezer', - 'Frozen', - { who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint } - >; - Thawed: GenericPalletEvent< - Rv, - 'ForeignAssetsFreezer', - 'Thawed', - { who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PoolAssetsFreezer`'s events - **/ - poolAssetsFreezer: { - Frozen: GenericPalletEvent< - Rv, - 'PoolAssetsFreezer', - 'Frozen', - { who: AccountId32; assetId: number; amount: bigint } - >; - Thawed: GenericPalletEvent< - Rv, - 'PoolAssetsFreezer', - 'Thawed', - { who: AccountId32; assetId: number; amount: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetConversionMigration`'s events - **/ - assetConversionMigration: { - /** - * Indicates that a pool has been migrated to the new account ID. - **/ - MigratedToNewAccount: GenericPalletEvent< - Rv, - 'AssetConversionMigration', - 'MigratedToNewAccount', - { - /** - * Pool's ID. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * Pool's prior account ID. - **/ - priorAccount: AccountId32; - - /** - * Pool's new account ID. - **/ - newAccount: AccountId32; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; -} diff --git a/packages/chaintypes/src/rococoAssetHub/index.d.ts b/packages/chaintypes/src/rococoAssetHub/index.d.ts deleted file mode 100644 index 5364f70..0000000 --- a/packages/chaintypes/src/rococoAssetHub/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by dedot cli - -import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types'; -import { ChainConsts } from './consts'; -import { ChainStorage } from './query'; -import { ChainJsonRpcApis } from './json-rpc'; -import { ChainErrors } from './errors'; -import { ChainEvents } from './events'; -import { RuntimeApis } from './runtime'; -import { ChainTx } from './tx'; - -export * from './types'; - -export interface VersionedRococoAssetHubApi extends GenericSubstrateApi { - rpc: ChainJsonRpcApis; - consts: ChainConsts; - query: ChainStorage; - errors: ChainErrors; - events: ChainEvents; - call: RuntimeApis; - tx: ChainTx; -} - -export interface RococoAssetHubApi { - legacy: VersionedRococoAssetHubApi; - v2: VersionedRococoAssetHubApi; -} diff --git a/packages/chaintypes/src/rococoAssetHub/json-rpc.d.ts b/packages/chaintypes/src/rococoAssetHub/json-rpc.d.ts deleted file mode 100644 index d5e1288..0000000 --- a/packages/chaintypes/src/rococoAssetHub/json-rpc.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by dedot cli - -import type { GenericJsonRpcApis, RpcVersion } from 'dedot/types'; -import type { JsonRpcApis } from 'dedot/types/json-rpc'; - -export type ChainJsonRpcApis = Pick< - JsonRpcApis, - | 'archive_unstable_body' - | 'archive_unstable_call' - | 'archive_unstable_finalizedHeight' - | 'archive_unstable_genesisHash' - | 'archive_unstable_hashByHeight' - | 'archive_unstable_header' - | 'archive_unstable_storage' - | 'author_hasKey' - | 'author_hasSessionKeys' - | 'author_insertKey' - | 'author_pendingExtrinsics' - | 'author_removeExtrinsic' - | 'author_rotateKeys' - | 'author_submitAndWatchExtrinsic' - | 'author_submitExtrinsic' - | 'chainHead_v1_body' - | 'chainHead_v1_call' - | 'chainHead_v1_continue' - | 'chainHead_v1_follow' - | 'chainHead_v1_header' - | 'chainHead_v1_stopOperation' - | 'chainHead_v1_storage' - | 'chainHead_v1_unpin' - | 'chain_getBlock' - | 'chain_getBlockHash' - | 'chain_getFinalizedHead' - | 'chain_getHeader' - | 'chain_subscribeAllHeads' - | 'chain_subscribeFinalizedHeads' - | 'chain_subscribeNewHeads' - | 'childstate_getKeys' - | 'childstate_getKeysPaged' - | 'childstate_getStorage' - | 'childstate_getStorageEntries' - | 'childstate_getStorageHash' - | 'childstate_getStorageSize' - | 'dev_getBlockStats' - | 'offchain_localStorageGet' - | 'offchain_localStorageSet' - | 'payment_queryFeeDetails' - | 'payment_queryInfo' - | 'rpc_methods' - | 'state_call' - | 'state_getChildReadProof' - | 'state_getKeys' - | 'state_getKeysPaged' - | 'state_getMetadata' - | 'state_getPairs' - | 'state_getReadProof' - | 'state_getRuntimeVersion' - | 'state_getStorage' - | 'state_getStorageHash' - | 'state_getStorageSize' - | 'state_queryStorage' - | 'state_queryStorageAt' - | 'state_subscribeRuntimeVersion' - | 'state_subscribeStorage' - | 'state_traceBlock' - | 'state_trieMigrationStatus' - | 'system_accountNextIndex' - | 'system_addLogFilter' - | 'system_addReservedPeer' - | 'system_chain' - | 'system_chainType' - | 'system_dryRun' - | 'system_health' - | 'system_localListenAddresses' - | 'system_localPeerId' - | 'system_name' - | 'system_nodeRoles' - | 'system_peers' - | 'system_properties' - | 'system_removeReservedPeer' - | 'system_reservedPeers' - | 'system_resetLogFilter' - | 'system_syncState' - | 'system_unstable_networkState' - | 'system_version' - | 'transactionWatch_v1_submitAndWatch' - | 'transaction_v1_broadcast' - | 'transaction_v1_stop' -> & - GenericJsonRpcApis; diff --git a/packages/chaintypes/src/rococoAssetHub/query.d.ts b/packages/chaintypes/src/rococoAssetHub/query.d.ts deleted file mode 100644 index ab56ef8..0000000 --- a/packages/chaintypes/src/rococoAssetHub/query.d.ts +++ /dev/null @@ -1,1829 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types'; -import type { - AccountId32, - AccountId32Like, - H256, - Bytes, - Digest, - Phase, - FixedU128, - BytesLike, - FixedBytes, -} from 'dedot/codecs'; -import type { - FrameSystemAccountInfo, - FrameSupportDispatchPerDispatchClass, - FrameSystemEventRecord, - FrameSystemLastRuntimeUpgradeInfo, - FrameSystemCodeUpgradeAuthorization, - CumulusPalletParachainSystemUnincludedSegmentAncestor, - CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, - PolkadotPrimitivesV7PersistedValidationData, - PolkadotPrimitivesV7UpgradeRestriction, - PolkadotPrimitivesV7UpgradeGoAhead, - SpTrieStorageProof, - CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, - PolkadotPrimitivesV7AbridgedHostConfiguration, - CumulusPrimitivesParachainInherentMessageQueueChain, - PolkadotParachainPrimitivesPrimitivesId, - PolkadotCorePrimitivesOutboundHrmpMessage, - SpWeightsWeightV2Weight, - PalletBalancesAccountData, - PalletBalancesBalanceLock, - PalletBalancesReserveData, - FrameSupportTokensMiscIdAmount, - FrameSupportTokensMiscIdAmount002, - PalletTransactionPaymentReleases, - PalletCollatorSelectionCandidateInfo, - AssetHubRococoRuntimeSessionKeys, - SpCoreCryptoKeyTypeId, - SpConsensusAuraSr25519AppSr25519Public, - SpConsensusSlotsSlot, - CumulusPalletXcmpQueueOutboundChannelDetails, - CumulusPalletXcmpQueueQueueConfigData, - PalletXcmQueryStatus, - XcmVersionedLocation, - PalletXcmVersionMigrationStage, - PalletXcmRemoteLockedFungibleRecord, - XcmVersionedAssetId, - StagingXcmV4Xcm, - PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin, - PalletMessageQueuePage, - PalletMultisigMultisig, - PalletProxyProxyDefinition, - PalletProxyAnnouncement, - BpXcmBridgeHubRouterBridgeState, - PalletAssetsAssetDetails, - PalletAssetsAssetAccount, - PalletAssetsApproval, - PalletAssetsAssetMetadata, - PalletUniquesCollectionDetails, - PalletUniquesItemDetails, - PalletUniquesCollectionMetadata, - PalletUniquesItemMetadata, - PalletNftsCollectionDetails, - PalletNftsBitFlagsCollectionRole, - PalletNftsItemDetails, - PalletNftsCollectionMetadata, - PalletNftsItemMetadata, - PalletNftsAttributeDeposit, - PalletNftsAttributeNamespace, - PalletNftsPendingSwap, - PalletNftsCollectionConfig, - PalletNftsItemConfig, - StagingXcmV3MultilocationMultiLocation, - PalletNftFractionalizationDetails, - PalletAssetConversionPoolInfo, - FrameSupportTokensMiscIdAmountRuntimeFreezeReason, -} from './types'; - -export interface ChainStorage extends GenericChainStorage { - /** - * Pallet `System`'s storage queries - **/ - system: { - /** - * The full account information for a particular account ID. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery FrameSystemAccountInfo, AccountId32>; - - /** - * Total extrinsics count for the current block. - * - * @param {Callback =} callback - **/ - extrinsicCount: GenericStorageQuery number | undefined>; - - /** - * Whether all inherents have been applied. - * - * @param {Callback =} callback - **/ - inherentsApplied: GenericStorageQuery boolean>; - - /** - * The current weight for the block. - * - * @param {Callback =} callback - **/ - blockWeight: GenericStorageQuery FrameSupportDispatchPerDispatchClass>; - - /** - * Total length (in bytes) for all extrinsics put together, for the current block. - * - * @param {Callback =} callback - **/ - allExtrinsicsLen: GenericStorageQuery number | undefined>; - - /** - * Map of block numbers to block hashes. - * - * @param {number} arg - * @param {Callback =} callback - **/ - blockHash: GenericStorageQuery H256, number>; - - /** - * Extrinsics data for the current block (maps an extrinsic's index to its data). - * - * @param {number} arg - * @param {Callback =} callback - **/ - extrinsicData: GenericStorageQuery Bytes, number>; - - /** - * The current block number being processed. Set by `execute_block`. - * - * @param {Callback =} callback - **/ - number: GenericStorageQuery number>; - - /** - * Hash of the previous block. - * - * @param {Callback =} callback - **/ - parentHash: GenericStorageQuery H256>; - - /** - * Digest of the current block, also part of the block header. - * - * @param {Callback =} callback - **/ - digest: GenericStorageQuery Digest>; - - /** - * Events deposited for the current block. - * - * NOTE: The item is unbound and should therefore never be read on chain. - * It could otherwise inflate the PoV size of a block. - * - * Events have a large in-memory size. Box the events to not go out-of-memory - * just in case someone still reads them from within the runtime. - * - * @param {Callback> =} callback - **/ - events: GenericStorageQuery Array>; - - /** - * The number of events in the `Events` list. - * - * @param {Callback =} callback - **/ - eventCount: GenericStorageQuery number>; - - /** - * Mapping between a topic (represented by T::Hash) and a vector of indexes - * of events in the `>` list. - * - * All topic vectors have deterministic storage locations depending on the topic. This - * allows light-clients to leverage the changes trie storage tracking mechanism and - * in case of changes fetch the list of events of interest. - * - * The value has the type `(BlockNumberFor, EventIndex)` because if we used only just - * the `EventIndex` then in case if the topic has the same contents on the next block - * no notification will be triggered thus the event might be lost. - * - * @param {H256} arg - * @param {Callback> =} callback - **/ - eventTopics: GenericStorageQuery Array<[number, number]>, H256>; - - /** - * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. - * - * @param {Callback =} callback - **/ - lastRuntimeUpgrade: GenericStorageQuery FrameSystemLastRuntimeUpgradeInfo | undefined>; - - /** - * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToU32RefCount: GenericStorageQuery boolean>; - - /** - * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False - * (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToTripleRefCount: GenericStorageQuery boolean>; - - /** - * The execution phase of the block. - * - * @param {Callback =} callback - **/ - executionPhase: GenericStorageQuery Phase | undefined>; - - /** - * `Some` if a code upgrade has been authorized. - * - * @param {Callback =} callback - **/ - authorizedUpgrade: GenericStorageQuery FrameSystemCodeUpgradeAuthorization | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainSystem`'s storage queries - **/ - parachainSystem: { - /** - * Latest included block descendants the runtime accepted. In other words, these are - * ancestors of the currently executing block which have not been included in the observed - * relay-chain state. - * - * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured - * in the pallet. - * - * @param {Callback> =} callback - **/ - unincludedSegment: GenericStorageQuery Array>; - - /** - * Storage field that keeps track of bandwidth used by the unincluded segment along with the - * latest HRMP watermark. Used for limiting the acceptance of new blocks with - * respect to relay chain constraints. - * - * @param {Callback =} callback - **/ - aggregatedUnincludedSegment: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined - >; - - /** - * In case of a scheduled upgrade, this storage field contains the validation code to be - * applied. - * - * As soon as the relay chain gives us the go-ahead signal, we will overwrite the - * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process - * with the new validation code. This concludes the upgrade process. - * - * @param {Callback =} callback - **/ - pendingValidationCode: GenericStorageQuery Bytes>; - - /** - * Validation code that is set by the parachain and is to be communicated to collator and - * consequently the relay-chain. - * - * This will be cleared in `on_initialize` of each new block if no other pallet already set - * the value. - * - * @param {Callback =} callback - **/ - newValidationCode: GenericStorageQuery Bytes | undefined>; - - /** - * The [`PersistedValidationData`] set for this block. - * This value is expected to be set only once per block and it's never stored - * in the trie. - * - * @param {Callback =} callback - **/ - validationData: GenericStorageQuery PolkadotPrimitivesV7PersistedValidationData | undefined>; - - /** - * Were the validation data set to notify the relay chain? - * - * @param {Callback =} callback - **/ - didSetValidationCode: GenericStorageQuery boolean>; - - /** - * The relay chain block number associated with the last parachain block. - * - * This is updated in `on_finalize`. - * - * @param {Callback =} callback - **/ - lastRelayChainBlockNumber: GenericStorageQuery number>; - - /** - * An option which indicates if the relay-chain restricts signalling a validation code upgrade. - * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced - * candidate will be invalid. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeRestrictionSignal: GenericStorageQuery PolkadotPrimitivesV7UpgradeRestriction | undefined>; - - /** - * Optional upgrade go-ahead signal from the relay-chain. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeGoAhead: GenericStorageQuery PolkadotPrimitivesV7UpgradeGoAhead | undefined>; - - /** - * The state proof for the last relay parent block. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relayStateProof: GenericStorageQuery SpTrieStorageProof | undefined>; - - /** - * The snapshot of some state related to messaging relevant to the current parachain as per - * the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relevantMessagingState: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined - >; - - /** - * The parachain host configuration that was obtained from the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - hostConfiguration: GenericStorageQuery PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>; - - /** - * The last downward message queue chain head we have observed. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback =} callback - **/ - lastDmqMqcHead: GenericStorageQuery CumulusPrimitivesParachainInherentMessageQueueChain>; - - /** - * The message queue chain heads we have observed per each channel incoming channel. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback> =} callback - **/ - lastHrmpMqcHeads: GenericStorageQuery< - Rv, - () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]> - >; - - /** - * Number of downward messages processed in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - processedDownwardMessages: GenericStorageQuery number>; - - /** - * HRMP watermark that was set in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - hrmpWatermark: GenericStorageQuery number>; - - /** - * HRMP messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - hrmpOutboundMessages: GenericStorageQuery Array>; - - /** - * Upward messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - upwardMessages: GenericStorageQuery Array>; - - /** - * Upward messages that are still pending and not yet send to the relay chain. - * - * @param {Callback> =} callback - **/ - pendingUpwardMessages: GenericStorageQuery Array>; - - /** - * The factor to multiply the base delivery fee by for UMP. - * - * @param {Callback =} callback - **/ - upwardDeliveryFeeFactor: GenericStorageQuery FixedU128>; - - /** - * The number of HRMP messages we observed in `on_initialize` and thus used that number for - * announcing the weight of `on_initialize` and `on_finalize`. - * - * @param {Callback =} callback - **/ - announcedHrmpMessagesPerCandidate: GenericStorageQuery number>; - - /** - * The weight we reserve at the beginning of the block for processing XCMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedXcmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * The weight we reserve at the beginning of the block for processing DMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedDmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * A custom head data that should be returned as result of `validate_block`. - * - * See `Pallet::set_custom_validation_head_data` for more information. - * - * @param {Callback =} callback - **/ - customValidationHeadData: GenericStorageQuery Bytes | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Timestamp`'s storage queries - **/ - timestamp: { - /** - * The current time for the current block. - * - * @param {Callback =} callback - **/ - now: GenericStorageQuery bigint>; - - /** - * Whether the timestamp has been updated in this block. - * - * This value is updated to `true` upon successful submission of a timestamp by a node. - * It is then checked at the end of each block execution in the `on_finalize` hook. - * - * @param {Callback =} callback - **/ - didUpdate: GenericStorageQuery boolean>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainInfo`'s storage queries - **/ - parachainInfo: { - /** - * - * @param {Callback =} callback - **/ - parachainId: GenericStorageQuery PolkadotParachainPrimitivesPrimitivesId>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Balances`'s storage queries - **/ - balances: { - /** - * The total units issued in the system. - * - * @param {Callback =} callback - **/ - totalIssuance: GenericStorageQuery bigint>; - - /** - * The total units of outstanding deactivated balance in the system. - * - * @param {Callback =} callback - **/ - inactiveIssuance: GenericStorageQuery bigint>; - - /** - * The Balances pallet example of storing the balance of an account. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> - * } - * ``` - * - * You can also store the balance of an account in the `System` pallet. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = System - * } - * ``` - * - * But this comes with tradeoffs, storing account balances in the system pallet stores - * `frame_system` data alongside the account data contrary to storing account balances in the - * `Balances` pallet, which uses a `StorageMap` to store balances data only. - * NOTE: This is only used in the case that this pallet is used to store balances. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery PalletBalancesAccountData, AccountId32>; - - /** - * Any liquidity locks on some account balances. - * NOTE: Should only be accessed when setting, changing and freeing a lock. - * - * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - locks: GenericStorageQuery Array, AccountId32>; - - /** - * Named reserves on some account balances. - * - * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - reserves: GenericStorageQuery Array, AccountId32>; - - /** - * Holds on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - holds: GenericStorageQuery Array, AccountId32>; - - /** - * Freeze locks on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery Array, AccountId32>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `TransactionPayment`'s storage queries - **/ - transactionPayment: { - /** - * - * @param {Callback =} callback - **/ - nextFeeMultiplier: GenericStorageQuery FixedU128>; - - /** - * - * @param {Callback =} callback - **/ - storageVersion: GenericStorageQuery PalletTransactionPaymentReleases>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Authorship`'s storage queries - **/ - authorship: { - /** - * Author of current block. - * - * @param {Callback =} callback - **/ - author: GenericStorageQuery AccountId32 | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `CollatorSelection`'s storage queries - **/ - collatorSelection: { - /** - * The invulnerable, permissioned collators. This list must be sorted. - * - * @param {Callback> =} callback - **/ - invulnerables: GenericStorageQuery Array>; - - /** - * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be - * mutually exclusive. - * - * This list is sorted in ascending order by deposit and when the deposits are equal, the least - * recently updated is considered greater. - * - * @param {Callback> =} callback - **/ - candidateList: GenericStorageQuery Array>; - - /** - * Last block authored by collator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - lastAuthoredBlock: GenericStorageQuery number, AccountId32>; - - /** - * Desired number of candidates. - * - * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct. - * - * @param {Callback =} callback - **/ - desiredCandidates: GenericStorageQuery number>; - - /** - * Fixed amount to deposit to become a collator. - * - * When a collator calls `leave_intent` they immediately receive the deposit back. - * - * @param {Callback =} callback - **/ - candidacyBond: GenericStorageQuery bigint>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Session`'s storage queries - **/ - session: { - /** - * The current set of validators. - * - * @param {Callback> =} callback - **/ - validators: GenericStorageQuery Array>; - - /** - * Current index of the session. - * - * @param {Callback =} callback - **/ - currentIndex: GenericStorageQuery number>; - - /** - * True if the underlying economic identities or weighting behind the validators - * has changed in the queued validator set. - * - * @param {Callback =} callback - **/ - queuedChanged: GenericStorageQuery boolean>; - - /** - * The queued keys for the next session. When the next session begins, these keys - * will be used to determine the validator's session keys. - * - * @param {Callback> =} callback - **/ - queuedKeys: GenericStorageQuery Array<[AccountId32, AssetHubRococoRuntimeSessionKeys]>>; - - /** - * Indices of disabled validators. - * - * The vec is always kept sorted so that we can find whether a given validator is - * disabled using binary search. It gets cleared when `on_session_ending` returns - * a new set of identities. - * - * @param {Callback> =} callback - **/ - disabledValidators: GenericStorageQuery Array>; - - /** - * The next session keys for a validator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - nextKeys: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => AssetHubRococoRuntimeSessionKeys | undefined, - AccountId32 - >; - - /** - * The owner of a key. The key is the `KeyTypeId` + the encoded key. - * - * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg - * @param {Callback =} callback - **/ - keyOwner: GenericStorageQuery< - Rv, - (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined, - [SpCoreCryptoKeyTypeId, Bytes] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Aura`'s storage queries - **/ - aura: { - /** - * The current authority set. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * The current slot of this block. - * - * This will be set in `on_initialize`. - * - * @param {Callback =} callback - **/ - currentSlot: GenericStorageQuery SpConsensusSlotsSlot>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AuraExt`'s storage queries - **/ - auraExt: { - /** - * Serves as cache for the authorities. - * - * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session, - * but we require the old authorities to verify the seal when validating a PoV. This will - * always be updated to the latest AuRa authorities in `on_finalize`. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * Current slot paired with a number of authored blocks. - * - * Updated on each block initialization. - * - * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback - **/ - slotInfo: GenericStorageQuery [SpConsensusSlotsSlot, number] | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `XcmpQueue`'s storage queries - **/ - xcmpQueue: { - /** - * The suspended inbound XCMP channels. All others are not suspended. - * - * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block - * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached - * within the block and therefore only included once in the proof size. - * - * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof - * will be smaller. - * - * @param {Callback> =} callback - **/ - inboundXcmpSuspended: GenericStorageQuery Array>; - - /** - * The non-empty XCMP channels in order of becoming non-empty, and the index of the first - * and last outbound message. If the two indices are equal, then it indicates an empty - * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater - * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in - * case of the need to send a high-priority signal message this block. - * The bool is true if there is a signal message waiting to be sent. - * - * @param {Callback> =} callback - **/ - outboundXcmpStatus: GenericStorageQuery Array>; - - /** - * The messages outbound in a given XCMP channel. - * - * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg - * @param {Callback =} callback - **/ - outboundXcmpMessages: GenericStorageQuery< - Rv, - (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes, - [PolkadotParachainPrimitivesPrimitivesId, number] - >; - - /** - * Any signal messages waiting to be sent. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - signalMessages: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * The configuration which controls the dynamics of the outbound queue. - * - * @param {Callback =} callback - **/ - queueConfig: GenericStorageQuery CumulusPalletXcmpQueueQueueConfigData>; - - /** - * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. - * - * @param {Callback =} callback - **/ - queueSuspended: GenericStorageQuery boolean>; - - /** - * The factor to multiply the base delivery fee by. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - deliveryFeeFactor: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PolkadotXcm`'s storage queries - **/ - polkadotXcm: { - /** - * The latest available query index. - * - * @param {Callback =} callback - **/ - queryCounter: GenericStorageQuery bigint>; - - /** - * The ongoing queries. - * - * @param {bigint} arg - * @param {Callback =} callback - **/ - queries: GenericStorageQuery PalletXcmQueryStatus | undefined, bigint>; - - /** - * The existing asset traps. - * - * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of - * times this pair has been trapped (usually just 1 if it exists at all). - * - * @param {H256} arg - * @param {Callback =} callback - **/ - assetTraps: GenericStorageQuery number, H256>; - - /** - * Default version to encode XCM when latest version of destination is unknown. If `None`, - * then the destinations whose XCM version is unknown are considered unreachable. - * - * @param {Callback =} callback - **/ - safeXcmVersion: GenericStorageQuery number | undefined>; - - /** - * The Latest versions that we know various locations support. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - supportedVersion: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => number | undefined, - [number, XcmVersionedLocation] - >; - - /** - * All locations that we have requested version notifications from. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - versionNotifiers: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => bigint | undefined, - [number, XcmVersionedLocation] - >; - - /** - * The target locations that are subscribed to our version changes, as well as the most recent - * of our versions we informed them of. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback - **/ - versionNotifyTargets: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined, - [number, XcmVersionedLocation] - >; - - /** - * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and - * the `u32` counter is the number of times that a send to the destination has been attempted, - * which is used as a prioritization. - * - * @param {Callback> =} callback - **/ - versionDiscoveryQueue: GenericStorageQuery Array<[XcmVersionedLocation, number]>>; - - /** - * The current migration's stage, if any. - * - * @param {Callback =} callback - **/ - currentMigration: GenericStorageQuery PalletXcmVersionMigrationStage | undefined>; - - /** - * Fungible assets which we know are locked on a remote chain. - * - * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg - * @param {Callback =} callback - **/ - remoteLockedFungibles: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined, - [number, AccountId32, XcmVersionedAssetId] - >; - - /** - * Fungible assets which we know are locked on this chain. - * - * @param {AccountId32Like} arg - * @param {Callback | undefined> =} callback - **/ - lockedFungibles: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined, - AccountId32 - >; - - /** - * Global suspension state of the XCM executor. - * - * @param {Callback =} callback - **/ - xcmExecutionSuspended: GenericStorageQuery boolean>; - - /** - * Whether or not incoming XCMs (both executed locally and received) should be recorded. - * Only one XCM program will be recorded at a time. - * This is meant to be used in runtime APIs, and it's advised it stays false - * for all other use cases, so as to not degrade regular performance. - * - * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`] - * implementation in the XCM executor configuration. - * - * @param {Callback =} callback - **/ - shouldRecordXcm: GenericStorageQuery boolean>; - - /** - * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally - * will be stored here. - * Runtime APIs can fetch the XCM that was executed by accessing this value. - * - * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`] - * implementation in the XCM executor configuration. - * - * @param {Callback =} callback - **/ - recordedXcm: GenericStorageQuery StagingXcmV4Xcm | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `MessageQueue`'s storage queries - **/ - messageQueue: { - /** - * The index of the first and last (non-empty) pages. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg - * @param {Callback =} callback - **/ - bookStateFor: GenericStorageQuery< - Rv, - (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin - >; - - /** - * The origin at which we should begin servicing. - * - * @param {Callback =} callback - **/ - serviceHead: GenericStorageQuery CumulusPrimitivesCoreAggregateMessageOrigin | undefined>; - - /** - * The map of page indices to pages. - * - * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg - * @param {Callback =} callback - **/ - pages: GenericStorageQuery< - Rv, - (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined, - [CumulusPrimitivesCoreAggregateMessageOrigin, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Multisig`'s storage queries - **/ - multisig: { - /** - * The set of open multisig operations. - * - * @param {[AccountId32Like, FixedBytes<32>]} arg - * @param {Callback =} callback - **/ - multisigs: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined, - [AccountId32, FixedBytes<32>] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Proxy`'s storage queries - **/ - proxy: { - /** - * The set of account proxies. Maps the account which has delegated to the accounts - * which are being delegated to, together with the amount held on deposit. - * - * @param {AccountId32Like} arg - * @param {Callback<[Array, bigint]> =} callback - **/ - proxies: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => [Array, bigint], - AccountId32 - >; - - /** - * The announcements made by the proxy (key). - * - * @param {AccountId32Like} arg - * @param {Callback<[Array, bigint]> =} callback - **/ - announcements: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => [Array, bigint], - AccountId32 - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ToWestendXcmRouter`'s storage queries - **/ - toWestendXcmRouter: { - /** - * Bridge that we are using. - * - * **bridges-v1** assumptions: all outbound messages through this router are using single lane - * and to single remote consensus. If there is some other remote consensus that uses the same - * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required - * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges - * by the same pallet instance. - * - * @param {Callback =} callback - **/ - bridge: GenericStorageQuery BpXcmBridgeHubRouterBridgeState>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Assets`'s storage queries - **/ - assets: { - /** - * Details of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletAssetsAssetDetails | undefined, number>; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [number, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[number, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, - [number, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery PalletAssetsAssetMetadata, number>; - - /** - * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage - * item has no effect. - * - * This can be useful for setting up constraints for IDs of the new assets. For example, by - * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an - * auto-increment model can be applied to all new asset IDs. - * - * The initial next asset ID can be set using the [`GenesisConfig`] or the - * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration. - * - * @param {Callback =} callback - **/ - nextAssetId: GenericStorageQuery number | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Uniques`'s storage queries - **/ - uniques: { - /** - * Details of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - class: GenericStorageQuery PalletUniquesCollectionDetails | undefined, number>; - - /** - * The collection, if any, of which an account is willing to take ownership. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - ownershipAcceptance: GenericStorageQuery number | undefined, AccountId32>; - - /** - * The items held by any given account; set out this way so that items owned by a single - * account can be enumerated. - * - * @param {[AccountId32Like, number, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number, number]) => [] | undefined, - [AccountId32, number, number] - >; - - /** - * The collections owned by any given account; set out this way so that collections owned by - * a single account can be enumerated. - * - * @param {[AccountId32Like, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - classAccount: GenericStorageQuery [] | undefined, [AccountId32, number]>; - - /** - * The items in existence and their ownership details. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletUniquesItemDetails | undefined, [number, number]>; - - /** - * Metadata of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - classMetadataOf: GenericStorageQuery PalletUniquesCollectionMetadata | undefined, number>; - - /** - * Metadata of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - instanceMetadataOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletUniquesItemMetadata | undefined, - [number, number] - >; - - /** - * Attributes of a collection. - * - * @param {[number, number | undefined, BytesLike]} arg - * @param {Callback<[Bytes, bigint] | undefined> =} callback - **/ - attribute: GenericStorageQuery< - Rv, - (arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined, - [number, number | undefined, Bytes] - >; - - /** - * Price of an asset instance. - * - * @param {[number, number]} arg - * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback - **/ - itemPriceOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, - [number, number] - >; - - /** - * Keeps track of the number of items a collection might have. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionMaxSupply: GenericStorageQuery number | undefined, number>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Nfts`'s storage queries - **/ - nfts: { - /** - * Details of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collection: GenericStorageQuery PalletNftsCollectionDetails | undefined, number>; - - /** - * The collection, if any, of which an account is willing to take ownership. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - ownershipAcceptance: GenericStorageQuery number | undefined, AccountId32>; - - /** - * The items held by any given account; set out this way so that items owned by a single - * account can be enumerated. - * - * @param {[AccountId32Like, number, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number, number]) => [] | undefined, - [AccountId32, number, number] - >; - - /** - * The collections owned by any given account; set out this way so that collections owned by - * a single account can be enumerated. - * - * @param {[AccountId32Like, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - collectionAccount: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number]) => [] | undefined, - [AccountId32, number] - >; - - /** - * The items in existence and their ownership details. - * Stores collection roles as per account. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - collectionRoleOf: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined, - [number, AccountId32] - >; - - /** - * The items in existence and their ownership details. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - item: GenericStorageQuery PalletNftsItemDetails | undefined, [number, number]>; - - /** - * Metadata of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionMetadataOf: GenericStorageQuery PalletNftsCollectionMetadata | undefined, number>; - - /** - * Metadata of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - itemMetadataOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsItemMetadata | undefined, - [number, number] - >; - - /** - * Attributes of a collection. - * - * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg - * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback - **/ - attribute: GenericStorageQuery< - Rv, - ( - arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike], - ) => [Bytes, PalletNftsAttributeDeposit] | undefined, - [number, number | undefined, PalletNftsAttributeNamespace, Bytes] - >; - - /** - * A price of an item. - * - * @param {[number, number]} arg - * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback - **/ - itemPriceOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, - [number, number] - >; - - /** - * Item attribute approvals. - * - * @param {[number, number]} arg - * @param {Callback> =} callback - **/ - itemAttributesApprovalsOf: GenericStorageQuery Array, [number, number]>; - - /** - * Stores the `CollectionId` that is going to be used for the next collection. - * This gets incremented whenever a new collection is created. - * - * @param {Callback =} callback - **/ - nextCollectionId: GenericStorageQuery number | undefined>; - - /** - * Handles all the pending swaps. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - pendingSwapOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsPendingSwap | undefined, - [number, number] - >; - - /** - * Config of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionConfigOf: GenericStorageQuery PalletNftsCollectionConfig | undefined, number>; - - /** - * Config of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - itemConfigOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsItemConfig | undefined, - [number, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ForeignAssets`'s storage queries - **/ - foreignAssets: { - /** - * Details of an asset. - * - * @param {StagingXcmV3MultilocationMultiLocation} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery< - Rv, - (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined, - StagingXcmV3MultilocationMultiLocation - >; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like], - ) => PalletAssetsApproval | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {StagingXcmV3MultilocationMultiLocation} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery< - Rv, - (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata, - StagingXcmV3MultilocationMultiLocation - >; - - /** - * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage - * item has no effect. - * - * This can be useful for setting up constraints for IDs of the new assets. For example, by - * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an - * auto-increment model can be applied to all new asset IDs. - * - * The initial next asset ID can be set using the [`GenesisConfig`] or the - * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration. - * - * @param {Callback =} callback - **/ - nextAssetId: GenericStorageQuery StagingXcmV3MultilocationMultiLocation | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `NftFractionalization`'s storage queries - **/ - nftFractionalization: { - /** - * Keeps track of the corresponding NFT ID, asset ID and amount minted. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - nftToAsset: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftFractionalizationDetails | undefined, - [number, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PoolAssets`'s storage queries - **/ - poolAssets: { - /** - * Details of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletAssetsAssetDetails | undefined, number>; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [number, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[number, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, - [number, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery PalletAssetsAssetMetadata, number>; - - /** - * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage - * item has no effect. - * - * This can be useful for setting up constraints for IDs of the new assets. For example, by - * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an - * auto-increment model can be applied to all new asset IDs. - * - * The initial next asset ID can be set using the [`GenesisConfig`] or the - * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration. - * - * @param {Callback =} callback - **/ - nextAssetId: GenericStorageQuery number | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AssetConversion`'s storage queries - **/ - assetConversion: { - /** - * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially - * created rather than people sending tokens directly to a pool's public account. - * - * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg - * @param {Callback =} callback - **/ - pools: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation], - ) => PalletAssetConversionPoolInfo | undefined, - [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation] - >; - - /** - * Stores the `PoolAssetId` that is going to be used for the next lp token. - * This gets incremented whenever a new lp pool is created. - * - * @param {Callback =} callback - **/ - nextPoolAssetId: GenericStorageQuery number | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AssetsFreezer`'s storage queries - **/ - assetsFreezer: { - /** - * A map that stores freezes applied on an account for a given AssetId. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => Array, - [number, AccountId32] - >; - - /** - * A map that stores the current total frozen balance for every account on a given AssetId. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - frozenBalances: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => bigint | undefined, - [number, AccountId32] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ForeignAssetsFreezer`'s storage queries - **/ - foreignAssetsFreezer: { - /** - * A map that stores freezes applied on an account for a given AssetId. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like], - ) => Array, - [StagingXcmV3MultilocationMultiLocation, AccountId32] - >; - - /** - * A map that stores the current total frozen balance for every account on a given AssetId. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg - * @param {Callback =} callback - **/ - frozenBalances: GenericStorageQuery< - Rv, - (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => bigint | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PoolAssetsFreezer`'s storage queries - **/ - poolAssetsFreezer: { - /** - * A map that stores freezes applied on an account for a given AssetId. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => Array, - [number, AccountId32] - >; - - /** - * A map that stores the current total frozen balance for every account on a given AssetId. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - frozenBalances: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => bigint | undefined, - [number, AccountId32] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; -} diff --git a/packages/chaintypes/src/rococoAssetHub/runtime.d.ts b/packages/chaintypes/src/rococoAssetHub/runtime.d.ts deleted file mode 100644 index dc004f7..0000000 --- a/packages/chaintypes/src/rococoAssetHub/runtime.d.ts +++ /dev/null @@ -1,726 +0,0 @@ -// Generated by dedot cli - -import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types'; -import type { - H256, - RuntimeVersion, - Header, - DispatchError, - Result, - UncheckedExtrinsicLike, - UncheckedExtrinsic, - Bytes, - BytesLike, - AccountId32Like, - AccountId32, -} from 'dedot/codecs'; -import type { - SpConsensusSlotsSlotDuration, - SpConsensusAuraSr25519AppSr25519Public, - SpConsensusSlotsSlot, - SpRuntimeBlock, - SpRuntimeExtrinsicInclusionMode, - SpCoreOpaqueMetadata, - SpRuntimeTransactionValidityTransactionValidityError, - SpInherentsInherentData, - SpInherentsCheckInherentsResult, - SpRuntimeTransactionValidityValidTransaction, - SpRuntimeTransactionValidityTransactionSource, - SpCoreCryptoKeyTypeId, - StagingXcmV3MultilocationMultiLocation, - PalletTransactionPaymentRuntimeDispatchInfo, - PalletTransactionPaymentFeeDetails, - SpWeightsWeightV2Weight, - AssetHubRococoRuntimeRuntimeCallLike, - XcmVersionedAssets, - AssetsCommonRuntimeApiFungiblesAccessError, - XcmVersionedAssetId, - XcmRuntimeApisFeesError, - XcmVersionedXcm, - XcmVersionedLocation, - XcmRuntimeApisDryRunCallDryRunEffects, - XcmRuntimeApisDryRunError, - AssetHubRococoRuntimeOriginCaller, - XcmRuntimeApisDryRunXcmDryRunEffects, - XcmRuntimeApisConversionsError, - CumulusPrimitivesCoreCollationInfo, -} from './types'; - -export interface RuntimeApis extends GenericRuntimeApis { - /** - * @runtimeapi: AuraApi - 0xdd718d5cc53262d4 - **/ - auraApi: { - /** - * Returns the slot duration for Aura. - * - * Currently, only the value provided by this type at genesis will be used. - * - * @callname: AuraApi_slot_duration - **/ - slotDuration: GenericRuntimeApiMethod Promise>; - - /** - * Return the current set of authorities. - * - * @callname: AuraApi_authorities - **/ - authorities: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65 - **/ - auraUnincludedSegmentApi: { - /** - * Whether it is legal to extend the chain, assuming the given block is the most - * recently included one as-of the relay parent that will be built against, and - * the given slot. - * - * This should be consistent with the logic the runtime uses when validating blocks to - * avoid issues. - * - * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block - * whose state we are querying against, this must always return `true` as long as the slot - * is more recent than the included block itself. - * - * @callname: AuraUnincludedSegmentApi_can_build_upon - * @param {H256} included_hash - * @param {SpConsensusSlotsSlot} slot - **/ - canBuildUpon: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Core - 0xdf6acb689907609b - **/ - core: { - /** - * Returns the version of the runtime. - * - * @callname: Core_version - **/ - version: GenericRuntimeApiMethod Promise>; - - /** - * Execute the given block. - * - * @callname: Core_execute_block - * @param {SpRuntimeBlock} block - **/ - executeBlock: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Initialize a block with the given header and return the runtime executive mode. - * - * @callname: Core_initialize_block - * @param {Header} header - **/ - initializeBlock: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Metadata - 0x37e397fc7c91f5e4 - **/ - metadata: { - /** - * Returns the metadata of a runtime. - * - * @callname: Metadata_metadata - **/ - metadata: GenericRuntimeApiMethod Promise>; - - /** - * Returns the metadata at a given version. - * - * If the given `version` isn't supported, this will return `None`. - * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime. - * - * @callname: Metadata_metadata_at_version - * @param {number} version - **/ - metadataAtVersion: GenericRuntimeApiMethod Promise>; - - /** - * Returns the supported metadata versions. - * - * This can be used to call `metadata_at_version`. - * - * @callname: Metadata_metadata_versions - **/ - metadataVersions: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a - **/ - blockBuilder: { - /** - * Apply the given extrinsic. - * - * Returns an inclusion outcome which specifies if this extrinsic is included in - * this block or not. - * - * @callname: BlockBuilder_apply_extrinsic - * @param {UncheckedExtrinsicLike} extrinsic - **/ - applyExtrinsic: GenericRuntimeApiMethod< - Rv, - ( - extrinsic: UncheckedExtrinsicLike, - ) => Promise, SpRuntimeTransactionValidityTransactionValidityError>> - >; - - /** - * Finish the current block. - * - * @callname: BlockBuilder_finalize_block - **/ - finalizeBlock: GenericRuntimeApiMethod Promise
>; - - /** - * Generate inherent extrinsics. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_inherent_extrinsics - * @param {SpInherentsInherentData} inherent - **/ - inherentExtrinsics: GenericRuntimeApiMethod< - Rv, - (inherent: SpInherentsInherentData) => Promise> - >; - - /** - * Check that the inherents are valid. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_check_inherents - * @param {SpRuntimeBlock} block - * @param {SpInherentsInherentData} data - **/ - checkInherents: GenericRuntimeApiMethod< - Rv, - (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15 - **/ - taggedTransactionQueue: { - /** - * Validate the transaction. - * - * This method is invoked by the transaction pool to learn details about given transaction. - * The implementation should make sure to verify the correctness of the transaction - * against current state. The given `block_hash` corresponds to the hash of the block - * that is used as current state. - * - * Note that this call may be performed by the pool multiple times and transactions - * might be verified in any possible order. - * - * @callname: TaggedTransactionQueue_validate_transaction - * @param {SpRuntimeTransactionValidityTransactionSource} source - * @param {UncheckedExtrinsicLike} tx - * @param {H256} block_hash - **/ - validateTransaction: GenericRuntimeApiMethod< - Rv, - ( - source: SpRuntimeTransactionValidityTransactionSource, - tx: UncheckedExtrinsicLike, - blockHash: H256, - ) => Promise< - Result - > - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c - **/ - offchainWorkerApi: { - /** - * Starts the off-chain task for given block header. - * - * @callname: OffchainWorkerApi_offchain_worker - * @param {Header} header - **/ - offchainWorker: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: SessionKeys - 0xab3c0572291feb8b - **/ - sessionKeys: { - /** - * Generate a set of session keys with optionally using the given seed. - * The keys should be stored within the keystore exposed via runtime - * externalities. - * - * The seed needs to be a valid `utf8` string. - * - * Returns the concatenated SCALE encoded public keys. - * - * @callname: SessionKeys_generate_session_keys - * @param {BytesLike | undefined} seed - **/ - generateSessionKeys: GenericRuntimeApiMethod Promise>; - - /** - * Decode the given public session keys. - * - * Returns the list of public raw public keys + key type. - * - * @callname: SessionKeys_decode_session_keys - * @param {BytesLike} encoded - **/ - decodeSessionKeys: GenericRuntimeApiMethod< - Rv, - (encoded: BytesLike) => Promise | undefined> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f - **/ - accountNonceApi: { - /** - * Get current account nonce of given `AccountId`. - * - * @callname: AccountNonceApi_account_nonce - * @param {AccountId32Like} account - **/ - accountNonce: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec - **/ - assetConversionApi: { - /** - * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`]. - * - * Note that the price may have changed by the time the transaction is executed. - * (Use `amount_in_max` to control slippage.) - * - * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount - * @param {boolean} include_fee - **/ - quotePriceTokensForExactTokens: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount: bigint, - includeFee: boolean, - ) => Promise - >; - - /** - * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`]. - * - * Note that the price may have changed by the time the transaction is executed. - * (Use `amount_out_min` to control slippage.) - * - * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount - * @param {boolean} include_fee - **/ - quotePriceExactTokensForTokens: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount: bigint, - includeFee: boolean, - ) => Promise - >; - - /** - * Returns the size of the liquidity pool for the given asset pair. - * - * @callname: AssetConversionApi_get_reserves - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - getReserves: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => Promise<[bigint, bigint] | undefined> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8 - **/ - transactionPaymentApi: { - /** - * - * @callname: TransactionPaymentApi_query_info - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryInfo: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_fee_details - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryFeeDetails: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * - * @callname: TransactionPaymentApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059 - **/ - transactionPaymentCallApi: { - /** - * Query information of a dispatch class, weight, and fee of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_info - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallInfo: GenericRuntimeApiMethod< - Rv, - (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise - >; - - /** - * Query fee details of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_fee_details - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallFeeDetails: GenericRuntimeApiMethod< - Rv, - (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise - >; - - /** - * Query the output of the current `WeightToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * Query the output of the current `LengthToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6 - **/ - fungiblesApi: { - /** - * Returns the list of all [`Asset`] that an `AccountId` has. - * - * @callname: FungiblesApi_query_account_balances - * @param {AccountId32Like} account - **/ - queryAccountBalances: GenericRuntimeApiMethod< - Rv, - (account: AccountId32Like) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd - **/ - xcmPaymentApi: { - /** - * Returns a list of acceptable payment assets. - * - * # Arguments - * - * * `xcm_version`: Version. - * - * @callname: XcmPaymentApi_query_acceptable_payment_assets - * @param {number} xcm_version - **/ - queryAcceptablePaymentAssets: GenericRuntimeApiMethod< - Rv, - (xcmVersion: number) => Promise, XcmRuntimeApisFeesError>> - >; - - /** - * Returns a weight needed to execute a XCM. - * - * # Arguments - * - * * `message`: `VersionedXcm`. - * - * @callname: XcmPaymentApi_query_xcm_weight - * @param {XcmVersionedXcm} message - **/ - queryXcmWeight: GenericRuntimeApiMethod< - Rv, - (message: XcmVersionedXcm) => Promise> - >; - - /** - * Converts a weight into a fee for the specified `AssetId`. - * - * # Arguments - * - * * `weight`: convertible `Weight`. - * * `asset`: `VersionedAssetId`. - * - * @callname: XcmPaymentApi_query_weight_to_asset_fee - * @param {SpWeightsWeightV2Weight} weight - * @param {XcmVersionedAssetId} asset - **/ - queryWeightToAssetFee: GenericRuntimeApiMethod< - Rv, - (weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise> - >; - - /** - * Get delivery fees for sending a specific `message` to a `destination`. - * These always come in a specific asset, defined by the chain. - * - * # Arguments - * * `message`: The message that'll be sent, necessary because most delivery fees are based on the - * size of the message. - * * `destination`: The destination to send the message to. Different destinations may use - * different senders that charge different fees. - * - * @callname: XcmPaymentApi_query_delivery_fees - * @param {XcmVersionedLocation} destination - * @param {XcmVersionedXcm} message - **/ - queryDeliveryFees: GenericRuntimeApiMethod< - Rv, - ( - destination: XcmVersionedLocation, - message: XcmVersionedXcm, - ) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: DryRunApi - 0x91b1c8b16328eb92 - **/ - dryRunApi: { - /** - * Dry run call. - * - * @callname: DryRunApi_dry_run_call - * @param {AssetHubRococoRuntimeOriginCaller} origin - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - **/ - dryRunCall: GenericRuntimeApiMethod< - Rv, - ( - origin: AssetHubRococoRuntimeOriginCaller, - call: AssetHubRococoRuntimeRuntimeCallLike, - ) => Promise> - >; - - /** - * Dry run XCM program - * - * @callname: DryRunApi_dry_run_xcm - * @param {XcmVersionedLocation} origin_location - * @param {XcmVersionedXcm} xcm - **/ - dryRunXcm: GenericRuntimeApiMethod< - Rv, - ( - originLocation: XcmVersionedLocation, - xcm: XcmVersionedXcm, - ) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c - **/ - locationToAccountApi: { - /** - * Converts `Location` to `AccountId`. - * - * @callname: LocationToAccountApi_convert_location - * @param {XcmVersionedLocation} location - **/ - convertLocation: GenericRuntimeApiMethod< - Rv, - (location: XcmVersionedLocation) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962 - **/ - collectCollationInfo: { - /** - * Collect information about a collation. - * - * The given `header` is the header of the built block for that - * we are collecting the collation info for. - * - * @callname: CollectCollationInfo_collect_collation_info - * @param {Header} header - **/ - collectCollationInfo: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6 - **/ - genesisBuilder: { - /** - * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the - * storage. - * - * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and - * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the - * deserialization fails, an error is returned. - * - * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no - * defaults will be used. - * - * @callname: GenesisBuilder_build_state - * @param {BytesLike} json - **/ - buildState: GenericRuntimeApiMethod Promise>>; - - /** - * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by - * `id`. - * - * If `id` is `None` the function returns JSON blob representation of the default - * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default - * `RuntimeGenesisConfig`. - * - * Otherwise function returns a JSON representation of the built-in, named - * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not - * exists. Returned `Vec` contains bytes of JSON blob (patch) which comprises a list of - * (potentially nested) key-value pairs that are intended for customizing the default - * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation - * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can - * be used in `build_state` method. - * - * @callname: GenesisBuilder_get_preset - * @param {string | undefined} id - **/ - getPreset: GenericRuntimeApiMethod Promise>; - - /** - * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets. - * - * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If - * no named presets are provided by the runtime the list is empty. - * - * @callname: GenesisBuilder_preset_names - **/ - presetNames: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; -} diff --git a/packages/chaintypes/src/rococoAssetHub/tx.d.ts b/packages/chaintypes/src/rococoAssetHub/tx.d.ts deleted file mode 100644 index 3ec1c92..0000000 --- a/packages/chaintypes/src/rococoAssetHub/tx.d.ts +++ /dev/null @@ -1,9011 +0,0 @@ -// Generated by dedot cli - -import type { - GenericChainTx, - GenericTxCall, - ISubmittableExtrinsic, - ISubmittableResult, - IRuntimeTxCall, - RpcVersion, - RpcV2, - ISubmittableExtrinsicLegacy, -} from 'dedot/types'; -import type { MultiAddressLike, Extrinsic, BytesLike, H256, AccountId32Like, FixedBytes } from 'dedot/codecs'; -import type { - AssetHubRococoRuntimeRuntimeCallLike, - SpRuntimeMultiSignature, - FrameSystemEventRecord, - CumulusPrimitivesParachainInherentParachainInherentData, - PalletBalancesAdjustmentDirection, - AssetHubRococoRuntimeSessionKeys, - XcmVersionedLocation, - XcmVersionedXcm, - XcmVersionedAssets, - SpWeightsWeightV2Weight, - StagingXcmV4Location, - XcmV3WeightLimit, - StagingXcmExecutorAssetTransferTransferType, - XcmVersionedAssetId, - CumulusPrimitivesCoreAggregateMessageOrigin, - AssetHubRococoRuntimeOriginCaller, - PalletMultisigTimepoint, - AssetHubRococoRuntimeProxyType, - PalletUniquesDestroyWitness, - PalletNftsCollectionConfig, - PalletNftsDestroyWitness, - PalletNftsMintWitness, - PalletNftsItemConfig, - PalletNftsBitFlags, - PalletNftsAttributeNamespace, - PalletNftsCancelAttributesApprovalWitness, - PalletNftsMintSettings, - PalletNftsItemTip, - PalletNftsPriceWithDirection, - PalletNftsPreSignedMint, - PalletNftsPreSignedAttributes, - StagingXcmV3MultilocationMultiLocation, -} from './types'; - -export type ChainSubmittableExtrinsic< - Rv extends RpcVersion, - T extends IRuntimeTxCall = AssetHubRococoRuntimeRuntimeCallLike, -> = Extrinsic & - (Rv extends RpcV2 - ? ISubmittableExtrinsic> - : ISubmittableExtrinsicLegacy>); - -export type TxCall = (...args: any[]) => ChainSubmittableExtrinsic; - -export interface ChainTx extends GenericChainTx> { - /** - * Pallet `System`'s transaction calls - **/ - system: { - /** - * Make some on-chain remark. - * - * Can be executed by every `origin`. - * - * @param {BytesLike} remark - **/ - remark: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'Remark'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * Set the number of pages in the WebAssembly environment's heap. - * - * @param {bigint} pages - **/ - setHeapPages: GenericTxCall< - Rv, - (pages: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetHeapPages'; - params: { pages: bigint }; - }; - } - > - >; - - /** - * Set the new runtime code. - * - * @param {BytesLike} code - **/ - setCode: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCode'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Set the new runtime code without doing any checks of the given `code`. - * - * Note that runtime upgrades will not run if this is called with a not-increasing spec - * version! - * - * @param {BytesLike} code - **/ - setCodeWithoutChecks: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCodeWithoutChecks'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Set some items of storage. - * - * @param {Array<[BytesLike, BytesLike]>} items - **/ - setStorage: GenericTxCall< - Rv, - (items: Array<[BytesLike, BytesLike]>) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetStorage'; - params: { items: Array<[BytesLike, BytesLike]> }; - }; - } - > - >; - - /** - * Kill some items from storage. - * - * @param {Array} keys - **/ - killStorage: GenericTxCall< - Rv, - (keys: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillStorage'; - params: { keys: Array }; - }; - } - > - >; - - /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. - * - * @param {BytesLike} prefix - * @param {number} subkeys - **/ - killPrefix: GenericTxCall< - Rv, - ( - prefix: BytesLike, - subkeys: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillPrefix'; - params: { prefix: BytesLike; subkeys: number }; - }; - } - > - >; - - /** - * Make some on-chain remark and emit event. - * - * @param {BytesLike} remark - **/ - remarkWithEvent: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'RemarkWithEvent'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * This call requires Root origin. - * - * @param {H256} codeHash - **/ - authorizeUpgrade: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * WARNING: This authorizes an upgrade that will take place without any safety checks, for - * example that the spec name remains the same and that the version number increases. Not - * recommended for normal use. Use `authorize_upgrade` instead. - * - * This call requires Root origin. - * - * @param {H256} codeHash - **/ - authorizeUpgradeWithoutChecks: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgradeWithoutChecks'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Depending on the runtime's `OnSetCode` configuration, this function may directly apply - * the new `code` in the same block or attempt to schedule the upgrade. - * - * All origins are allowed. - * - * @param {BytesLike} code - **/ - applyAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'ApplyAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainSystem`'s transaction calls - **/ - parachainSystem: { - /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. - * - * @param {CumulusPrimitivesParachainInherentParachainInherentData} data - **/ - setValidationData: GenericTxCall< - Rv, - (data: CumulusPrimitivesParachainInherentParachainInherentData) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SetValidationData'; - params: { data: CumulusPrimitivesParachainInherentParachainInherentData }; - }; - } - > - >; - - /** - * - * @param {BytesLike} message - **/ - sudoSendUpwardMessage: GenericTxCall< - Rv, - (message: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SudoSendUpwardMessage'; - params: { message: BytesLike }; - }; - } - > - >; - - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. - * - * @param {H256} codeHash - * @param {boolean} checkVersion - **/ - authorizeUpgrade: GenericTxCall< - Rv, - ( - codeHash: H256, - checkVersion: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256; checkVersion: boolean }; - }; - } - > - >; - - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. - * - * @param {BytesLike} code - **/ - enactAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'EnactAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Timestamp`'s transaction calls - **/ - timestamp: { - /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * [`Config::MinimumPeriod`]. - * - * The dispatch origin for this call must be _None_. - * - * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware - * that changing the complexity of this call could result exhausting the resources in a - * block to execute any other calls. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. - * - * @param {bigint} now - **/ - set: GenericTxCall< - Rv, - (now: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Timestamp'; - palletCall: { - name: 'Set'; - params: { now: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainInfo`'s transaction calls - **/ - parachainInfo: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Balances`'s transaction calls - **/ - balances: { - /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferAllowDeath: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAllowDeath'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. - * - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - forceTransfer: GenericTxCall< - Rv, - ( - source: MultiAddressLike, - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceTransfer'; - params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferKeepAlive'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - * - * @param {MultiAddressLike} dest - * @param {boolean} keepAlive - **/ - transferAll: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAll'; - params: { dest: MultiAddressLike; keepAlive: boolean }; - }; - } - > - >; - - /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. - * - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - forceUnreserve: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceUnreserve'; - params: { who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibility of churn). - * - * @param {Array} who - **/ - upgradeAccounts: GenericTxCall< - Rv, - (who: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'UpgradeAccounts'; - params: { who: Array }; - }; - } - > - >; - - /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. - * - * @param {MultiAddressLike} who - * @param {bigint} newFree - **/ - forceSetBalance: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - newFree: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceSetBalance'; - params: { who: MultiAddressLike; newFree: bigint }; - }; - } - > - >; - - /** - * Adjust the total issuance in a saturating way. - * - * Can only be called by root and always needs a positive `delta`. - * - * # Example - * - * @param {PalletBalancesAdjustmentDirection} direction - * @param {bigint} delta - **/ - forceAdjustTotalIssuance: GenericTxCall< - Rv, - ( - direction: PalletBalancesAdjustmentDirection, - delta: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceAdjustTotalIssuance'; - params: { direction: PalletBalancesAdjustmentDirection; delta: bigint }; - }; - } - > - >; - - /** - * Burn the specified liquid free balance from the origin account. - * - * If the origin's account ends up below the existential deposit as a result - * of the burn and `keep_alive` is false, the account will be reaped. - * - * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, - * this `burn` operation will reduce total issuance by the amount _burned_. - * - * @param {bigint} value - * @param {boolean} keepAlive - **/ - burn: GenericTxCall< - Rv, - ( - value: bigint, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'Burn'; - params: { value: bigint; keepAlive: boolean }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CollatorSelection`'s transaction calls - **/ - collatorSelection: { - /** - * Set the list of invulnerable (fixed) collators. These collators must do some - * preparation, namely to have registered session keys. - * - * The call will remove any accounts that have not registered keys from the set. That is, - * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as - * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. - * - * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It - * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A - * `batch_all` can also be used to enforce atomicity. If any candidates are included in - * `new`, they should be removed with `remove_invulnerable_candidate` after execution. - * - * Must be called by the `UpdateOrigin`. - * - * @param {Array} new_ - **/ - setInvulnerables: GenericTxCall< - Rv, - (new_: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetInvulnerables'; - params: { new: Array }; - }; - } - > - >; - - /** - * Set the ideal number of non-invulnerable collators. If lowering this number, then the - * number of running collators could be higher than this figure. Aside from that edge case, - * there should be no other way to have more candidates than the desired number. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {number} max - **/ - setDesiredCandidates: GenericTxCall< - Rv, - (max: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetDesiredCandidates'; - params: { max: number }; - }; - } - > - >; - - /** - * Set the candidacy bond amount. - * - * If the candidacy bond is increased by this call, all current candidates which have a - * deposit lower than the new bond will be kicked from the list and get their deposits - * back. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {bigint} bond - **/ - setCandidacyBond: GenericTxCall< - Rv, - (bond: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetCandidacyBond'; - params: { bond: bigint }; - }; - } - > - >; - - /** - * Register this account as a collator candidate. The account must (a) already have - * registered session keys and (b) be able to reserve the `CandidacyBond`. - * - * This call is not available to `Invulnerable` collators. - * - **/ - registerAsCandidate: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RegisterAsCandidate'; - }; - } - > - >; - - /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The `CandidacyBond` will be unreserved immediately. - * - * This call will fail if the total number of candidates would drop below - * `MinEligibleCollators`. - * - **/ - leaveIntent: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'LeaveIntent'; - }; - } - > - >; - - /** - * Add a new account `who` to the list of `Invulnerables` collators. `who` must have - * registered session keys. If `who` is a candidate, they will be removed. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {AccountId32Like} who - **/ - addInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'AddInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must - * be sorted. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {AccountId32Like} who - **/ - removeInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RemoveInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. - * - * Setting a `new_deposit` that is lower than the current deposit while `origin` is - * occupying a top-`DesiredCandidates` slot is not allowed. - * - * This call will fail if `origin` is not a collator candidate, the updated bond is lower - * than the minimum candidacy bond, and/or the amount cannot be reserved. - * - * @param {bigint} newDeposit - **/ - updateBond: GenericTxCall< - Rv, - (newDeposit: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'UpdateBond'; - params: { newDeposit: bigint }; - }; - } - > - >; - - /** - * The caller `origin` replaces a candidate `target` in the collator candidate list by - * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than - * the existing bond of the target it is trying to replace. - * - * This call will fail if the caller is already a collator candidate or invulnerable, the - * caller does not have registered session keys, the target is not a collator candidate, - * and/or the `deposit` amount cannot be reserved. - * - * @param {bigint} deposit - * @param {AccountId32Like} target - **/ - takeCandidateSlot: GenericTxCall< - Rv, - ( - deposit: bigint, - target: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'TakeCandidateSlot'; - params: { deposit: bigint; target: AccountId32Like }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Session`'s transaction calls - **/ - session: { - /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. - * - * @param {AssetHubRococoRuntimeSessionKeys} keys - * @param {BytesLike} proof - **/ - setKeys: GenericTxCall< - Rv, - ( - keys: AssetHubRococoRuntimeSessionKeys, - proof: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'SetKeys'; - params: { keys: AssetHubRococoRuntimeSessionKeys; proof: BytesLike }; - }; - } - > - >; - - /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. - * - **/ - purgeKeys: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'PurgeKeys'; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `XcmpQueue`'s transaction calls - **/ - xcmpQueue: { - /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. - * - **/ - suspendXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'SuspendXcmExecution'; - }; - } - > - >; - - /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. - * - **/ - resumeXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'ResumeXcmExecution'; - }; - } - > - >; - - /** - * Overwrites the number of pages which must be in the queue for the other side to be - * told to suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` - * - * @param {number} new_ - **/ - updateSuspendThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateSuspendThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Overwrites the number of pages which must be in the queue after which we drop any - * further messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` - * - * @param {number} new_ - **/ - updateDropThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateDropThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Overwrites the number of pages which the queue must be reduced to before it signals - * that message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` - * - * @param {number} new_ - **/ - updateResumeThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateResumeThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `PolkadotXcm`'s transaction calls - **/ - polkadotXcm: { - /** - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedXcm} message - **/ - send: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - message: XcmVersionedXcm, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Send'; - params: { dest: XcmVersionedLocation; message: XcmVersionedXcm }; - }; - } - > - >; - - /** - * Teleport some assets from the local chain to some destination chain. - * - * **This function is deprecated: Use `limited_teleport_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - teleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - reserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than - * the maximum amount of weight that the message could take to be executed, then no - * execution attempt will be made. - * - * @param {XcmVersionedXcm} message - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - execute: GenericTxCall< - Rv, - ( - message: XcmVersionedXcm, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Execute'; - params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - * - * @param {StagingXcmV4Location} location - * @param {number} version - **/ - forceXcmVersion: GenericTxCall< - Rv, - ( - location: StagingXcmV4Location, - version: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceXcmVersion'; - params: { location: StagingXcmV4Location; version: number }; - }; - } - > - >; - - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. - * - * @param {number | undefined} maybeXcmVersion - **/ - forceDefaultXcmVersion: GenericTxCall< - Rv, - (maybeXcmVersion: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceDefaultXcmVersion'; - params: { maybeXcmVersion: number | undefined }; - }; - } - > - >; - - /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. - * - * @param {XcmVersionedLocation} location - **/ - forceSubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - * - * @param {XcmVersionedLocation} location - **/ - forceUnsubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceUnsubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedReserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedTeleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. - * - * @param {boolean} suspended - **/ - forceSuspension: GenericTxCall< - Rv, - (suspended: boolean) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSuspension'; - params: { suspended: boolean }; - }; - } - > - >; - - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve, or through teleports. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for - * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the - * operation will fail and the sent assets may be at risk. - * - * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable - * to `dest`, no limitations imposed on `fees`. - * - for local reserve: transfer assets to sovereign account of destination chain and - * forward a notification XCM to `dest` to mint and deposit reserve-based assets to - * `beneficiary`. - * - for destination reserve: burn local assets and forward a notification to `dest` chain - * to withdraw the reserve assets from this chain's sovereign account and deposit them - * to `beneficiary`. - * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves - * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint - * and deposit reserve-based assets to `beneficiary`. - * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport - * assets and deposit them to `beneficiary`. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, - * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send - * from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Claims assets trapped on this pallet because of leftover assets during XCM execution. - * - * - `origin`: Anyone can call this extrinsic. - * - `assets`: The exact assets that were trapped. Use the version to specify what version - * was the latest when they were trapped. - * - `beneficiary`: The location/account where the claimed assets will be deposited. - * - * @param {XcmVersionedAssets} assets - * @param {XcmVersionedLocation} beneficiary - **/ - claimAssets: GenericTxCall< - Rv, - ( - assets: XcmVersionedAssets, - beneficiary: XcmVersionedLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ClaimAssets'; - params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation }; - }; - } - > - >; - - /** - * Transfer assets from the local chain to the destination chain using explicit transfer - * types for assets and fees. - * - * `assets` must have same reserve location or may be teleportable to `dest`. Caller must - * provide the `assets_transfer_type` to be used for `assets`: - * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `TransferType::DestinationReserve`: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve` - * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another - * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically - * the remote `reserve` is Asset Hub. - * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to - * mint/teleport assets and deposit them to `beneficiary`. - * - * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to - * buy execution using transferred `assets` identified by `remote_fees_id`. - * Make sure enough of the specified `remote_fees_id` asset is included in the given list - * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * `remote_fees_id` may use different transfer type than rest of `assets` and can be - * specified through `fees_transfer_type`. - * - * The caller needs to specify what should happen to the transferred assets once they reach - * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which - * contains the instructions to execute on `dest` as a final step. - * This is usually as simple as: - * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`, - * but could be something more exotic like sending the `assets` even further. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from - * parachain across a bridge to another ecosystem destination. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`. - * - `remote_fees_id`: One of the included `assets` to be used to pay fees. - * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets. - * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the - * transfer, which also determines what happens to the assets on the destination chain. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedAssets} assets - * @param {StagingXcmExecutorAssetTransferTransferType} assetsTransferType - * @param {XcmVersionedAssetId} remoteFeesId - * @param {StagingXcmExecutorAssetTransferTransferType} feesTransferType - * @param {XcmVersionedXcm} customXcmOnDest - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssetsUsingTypeAndThen: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - assets: XcmVersionedAssets, - assetsTransferType: StagingXcmExecutorAssetTransferTransferType, - remoteFeesId: XcmVersionedAssetId, - feesTransferType: StagingXcmExecutorAssetTransferTransferType, - customXcmOnDest: XcmVersionedXcm, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CumulusXcm`'s transaction calls - **/ - cumulusXcm: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `MessageQueue`'s transaction calls - **/ - messageQueue: { - /** - * Remove a page which has no more messages remaining to be processed or is stale. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} pageIndex - **/ - reapPage: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - pageIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ReapPage'; - params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number }; - }; - } - > - >; - - /** - * Execute an overweight message. - * - * Temporary processing errors will be propagated whereas permanent errors are treated - * as success condition. - * - * - `origin`: Must be `Signed`. - * - `message_origin`: The origin from which the message to be executed arrived. - * - `page`: The page in the queue in which the message to be executed is sitting. - * - `index`: The index into the queue of the message to be executed. - * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution - * of the message. - * - * Benchmark complexity considerations: O(index + weight_limit). - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} page - * @param {number} index - * @param {SpWeightsWeightV2Weight} weightLimit - **/ - executeOverweight: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - page: number, - index: number, - weightLimit: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Utility`'s transaction calls - **/ - utility: { - /** - * Send a batch of dispatch calls. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * This will return `Ok` in all circumstances. To determine the success of the batch, an - * event is deposited. If a call failed and the batch was interrupted, then the - * `BatchInterrupted` event is deposited, along with the number of successful calls made - * and the error of the failed call. If all were successful, then the `BatchCompleted` - * event is deposited. - * - * @param {Array} calls - **/ - batch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'Batch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * Send a call through an indexed pseudonym of the sender. - * - * Filter from origin are passed along. The call will be dispatched with an origin which - * use the same filter as the origin of this call. - * - * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. - * because you expect `proxy` to have been used prior in the call stack and you do not want - * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` - * in the Multisig pallet instead. - * - * NOTE: Prior to version *12, this was called `as_limited_sub`. - * - * The dispatch origin for this call must be _Signed_. - * - * @param {number} index - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - **/ - asDerivative: GenericTxCall< - Rv, - ( - index: number, - call: AssetHubRococoRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'AsDerivative'; - params: { index: number; call: AssetHubRococoRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * Send a batch of dispatch calls and atomically execute them. - * The whole transaction will rollback and fail if any of the calls failed. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * @param {Array} calls - **/ - batchAll: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'BatchAll'; - params: { calls: Array }; - }; - } - > - >; - - /** - * Dispatches a function call with a provided origin. - * - * The dispatch origin for this call must be _Root_. - * - * ## Complexity - * - O(1). - * - * @param {AssetHubRococoRuntimeOriginCaller} asOrigin - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - **/ - dispatchAs: GenericTxCall< - Rv, - ( - asOrigin: AssetHubRococoRuntimeOriginCaller, - call: AssetHubRococoRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'DispatchAs'; - params: { asOrigin: AssetHubRococoRuntimeOriginCaller; call: AssetHubRococoRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * Send a batch of dispatch calls. - * Unlike `batch`, it allows errors and won't interrupt. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatch without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * @param {Array} calls - **/ - forceBatch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'ForceBatch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * Dispatch a function call with a specified weight. - * - * This function does not check the weight of the call, and instead allows the - * Root origin to specify the weight of the call. - * - * The dispatch origin for this call must be _Root_. - * - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} weight - **/ - withWeight: GenericTxCall< - Rv, - ( - call: AssetHubRococoRuntimeRuntimeCallLike, - weight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'WithWeight'; - params: { call: AssetHubRococoRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Multisig`'s transaction calls - **/ - multisig: { - /** - * Immediately dispatch a multi-signature call using a single approval from the caller. - * - * The dispatch origin for this call must be _Signed_. - * - * - `other_signatories`: The accounts (other than the sender) who are part of the - * multi-signature, but do not participate in the approval process. - * - `call`: The call to be executed. - * - * Result is equivalent to the dispatched result. - * - * ## Complexity - * O(Z + C) where Z is the length of the call and C its execution weight. - * - * @param {Array} otherSignatories - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - **/ - asMultiThreshold1: GenericTxCall< - Rv, - ( - otherSignatories: Array, - call: AssetHubRococoRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubRococoRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * ## Complexity - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - asMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - call: AssetHubRococoRuntimeRuntimeCallLike, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - call: AssetHubRococoRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {FixedBytes<32>} callHash - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - approveAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - callHash: FixedBytes<32>, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint} timepoint - * @param {FixedBytes<32>} callHash - **/ - cancelAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - timepoint: PalletMultisigTimepoint, - callHash: FixedBytes<32>, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Proxy`'s transaction calls - **/ - proxy: { - /** - * Dispatch the given `call` from an account that the sender is authorised for through - * `add_proxy`. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - * - * @param {MultiAddressLike} real - * @param {AssetHubRococoRuntimeProxyType | undefined} forceProxyType - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - **/ - proxy: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - forceProxyType: AssetHubRococoRuntimeProxyType | undefined, - call: AssetHubRococoRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'Proxy'; - params: { - real: MultiAddressLike; - forceProxyType: AssetHubRococoRuntimeProxyType | undefined; - call: AssetHubRococoRuntimeRuntimeCallLike; - }; - }; - } - > - >; - - /** - * Register a proxy account for the sender that is able to make calls on its behalf. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to make a proxy. - * - `proxy_type`: The permissions allowed for this proxy account. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - * - * @param {MultiAddressLike} delegate - * @param {AssetHubRococoRuntimeProxyType} proxyType - * @param {number} delay - **/ - addProxy: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - proxyType: AssetHubRococoRuntimeProxyType, - delay: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'AddProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubRococoRuntimeProxyType; delay: number }; - }; - } - > - >; - - /** - * Unregister a proxy account for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to remove as a proxy. - * - `proxy_type`: The permissions currently enabled for the removed proxy account. - * - * @param {MultiAddressLike} delegate - * @param {AssetHubRococoRuntimeProxyType} proxyType - * @param {number} delay - **/ - removeProxy: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - proxyType: AssetHubRococoRuntimeProxyType, - delay: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubRococoRuntimeProxyType; delay: number }; - }; - } - > - >; - - /** - * Unregister all proxy accounts for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * WARNING: This may be called on accounts created by `pure`, however if done, then - * the unreserved fees will be inaccessible. **All access to this account will be lost.** - * - **/ - removeProxies: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveProxies'; - }; - } - > - >; - - /** - * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and - * initialize it with a proxy of `proxy_type` for `origin` sender. - * - * Requires a `Signed` origin. - * - * - `proxy_type`: The type of the proxy that the sender will be registered as over the - * new account. This will almost always be the most permissive `ProxyType` possible to - * allow for maximum flexibility. - * - `index`: A disambiguation index, in case this is called multiple times in the same - * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just - * want to use `0`. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - * - * Fails with `Duplicate` if this has already been called in this transaction, from the - * same sender, with the same parameters. - * - * Fails if there are insufficient funds to pay for deposit. - * - * @param {AssetHubRococoRuntimeProxyType} proxyType - * @param {number} delay - * @param {number} index - **/ - createPure: GenericTxCall< - Rv, - ( - proxyType: AssetHubRococoRuntimeProxyType, - delay: number, - index: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'CreatePure'; - params: { proxyType: AssetHubRococoRuntimeProxyType; delay: number; index: number }; - }; - } - > - >; - - /** - * Removes a previously spawned pure proxy. - * - * WARNING: **All access to this account will be lost.** Any funds held in it will be - * inaccessible. - * - * Requires a `Signed` origin, and the sender account must have been created by a call to - * `pure` with corresponding parameters. - * - * - `spawner`: The account that originally called `pure` to create this account. - * - `index`: The disambiguation index originally passed to `pure`. Probably `0`. - * - `proxy_type`: The proxy type originally passed to `pure`. - * - `height`: The height of the chain when the call to `pure` was processed. - * - `ext_index`: The extrinsic index in which the call to `pure` was processed. - * - * Fails with `NoPermission` in case the caller is not a previously created pure - * account whose `pure` call has corresponding parameters. - * - * @param {MultiAddressLike} spawner - * @param {AssetHubRococoRuntimeProxyType} proxyType - * @param {number} index - * @param {number} height - * @param {number} extIndex - **/ - killPure: GenericTxCall< - Rv, - ( - spawner: MultiAddressLike, - proxyType: AssetHubRococoRuntimeProxyType, - index: number, - height: number, - extIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'KillPure'; - params: { - spawner: MultiAddressLike; - proxyType: AssetHubRococoRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - }; - } - > - >; - - /** - * Publish the hash of a proxy-call that will be made in the future. - * - * This must be called some number of blocks before the corresponding `proxy` is attempted - * if the delay associated with the proxy relationship is greater than zero. - * - * No more than `MaxPending` announcements may be made at any one time. - * - * This will take a deposit of `AnnouncementDepositFactor` as well as - * `AnnouncementDepositBase` if there are no other pending announcements. - * - * The dispatch origin for this call must be _Signed_ and a proxy of `real`. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - * - * @param {MultiAddressLike} real - * @param {H256} callHash - **/ - announce: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'Announce'; - params: { real: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * Remove a given announcement. - * - * May be called by a proxy account to remove a call they previously announced and return - * the deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - * - * @param {MultiAddressLike} real - * @param {H256} callHash - **/ - removeAnnouncement: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveAnnouncement'; - params: { real: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * Remove the given announcement of a delegate. - * - * May be called by a target (proxied) account to remove a call that one of their delegates - * (`delegate`) has announced they want to execute. The deposit is returned. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `delegate`: The account that previously announced the call. - * - `call_hash`: The hash of the call to be made. - * - * @param {MultiAddressLike} delegate - * @param {H256} callHash - **/ - rejectAnnouncement: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RejectAnnouncement'; - params: { delegate: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * Dispatch the given `call` from an account that the sender is authorized for through - * `add_proxy`. - * - * Removes any corresponding announcement(s). - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - * - * @param {MultiAddressLike} delegate - * @param {MultiAddressLike} real - * @param {AssetHubRococoRuntimeProxyType | undefined} forceProxyType - * @param {AssetHubRococoRuntimeRuntimeCallLike} call - **/ - proxyAnnounced: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - real: MultiAddressLike, - forceProxyType: AssetHubRococoRuntimeProxyType | undefined, - call: AssetHubRococoRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddressLike; - real: MultiAddressLike; - forceProxyType: AssetHubRococoRuntimeProxyType | undefined; - call: AssetHubRococoRuntimeRuntimeCallLike; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ToWestendXcmRouter`'s transaction calls - **/ - toWestendXcmRouter: { - /** - * Notification about congested bridge queue. - * - * @param {H256} bridgeId - * @param {boolean} isCongested - **/ - reportBridgeStatus: GenericTxCall< - Rv, - ( - bridgeId: H256, - isCongested: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ToWestendXcmRouter'; - palletCall: { - name: 'ReportBridgeStatus'; - params: { bridgeId: H256; isCongested: boolean }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Assets`'s transaction calls - **/ - assets: { - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: number, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Create'; - params: { id: number; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceCreate'; - params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint }; - }; - } - > - >; - - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - * - * @param {number} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'StartDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - * - * @param {number} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: number }; - }; - } - > - >; - - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - * - * @param {number} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: number }; - }; - } - > - >; - - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - * - * @param {number} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - * - * @param {number} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: number, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Mint'; - params: { id: number; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - * - * @param {number} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Burn'; - params: { id: number; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Transfer'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - * - * @param {number} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: number, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceTransfer'; - params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Freeze'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Thaw'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ThawAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - }; - } - > - >; - - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: number; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'CancelApproval'; - params: { id: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - * - * @param {number} id - **/ - touch: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Touch'; - params: { id: number }; - }; - } - > - >; - - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - * - * @param {number} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: number, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Refund'; - params: { id: number; allowBurn: boolean }; - }; - } - > - >; - - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - * - * @param {number} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: number, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: number; minBalance: bigint }; - }; - } - > - >; - - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TouchOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'RefundOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Block'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Uniques`'s transaction calls - **/ - uniques: { - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * `ItemDeposit` funds of sender are reserved. - * - * Parameters: - * - `collection`: The identifier of the new collection. This must not be currently in use. - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} admin - **/ - create: GenericTxCall< - Rv, - ( - collection: number, - admin: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Create'; - params: { collection: number; admin: MultiAddressLike }; - }; - } - > - >; - - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `collection`: The identifier of the new item. This must not be currently in use. - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions - * over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} owner - * @param {boolean} freeHolding - **/ - forceCreate: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - freeHolding: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ForceCreate'; - params: { collection: number; owner: MultiAddressLike; freeHolding: boolean }; - }; - } - > - >; - - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(n + m)` where: - * - `n = witness.items` - * - `m = witness.item_metadatas` - * - `a = witness.attributes` - * - * @param {number} collection - * @param {PalletUniquesDestroyWitness} witness - **/ - destroy: GenericTxCall< - Rv, - ( - collection: number, - witness: PalletUniquesDestroyWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Destroy'; - params: { collection: number; witness: PalletUniquesDestroyWitness }; - }; - } - > - >; - - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must be the Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: The item value of the item to be minted. - * - `beneficiary`: The initial owner of the minted item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} owner - **/ - mint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Mint'; - params: { collection: number; item: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Destroy a single item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item of the item to be burned. - * - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the - * item is owned by this value. - * - * Emits `Burned` with the actual amount burned. - * - * Weight: `O(1)` - * Modes: `check_owner.is_some()`. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike | undefined} checkOwner - **/ - burn: GenericTxCall< - Rv, - ( - collection: number, - item: number, - checkOwner: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Burn'; - params: { collection: number; item: number; checkOwner: MultiAddressLike | undefined }; - }; - } - > - >; - - /** - * Move an item from the sender account to another. - * - * This resets the approved account of the item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item of the item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} dest - **/ - transfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - dest: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Transfer'; - params: { collection: number; item: number; dest: MultiAddressLike }; - }; - } - > - >; - - /** - * Reevaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be frozen. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown of the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - * - * @param {number} collection - * @param {Array} items - **/ - redeposit: GenericTxCall< - Rv, - ( - collection: number, - items: Array, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Redeposit'; - params: { collection: number; items: Array }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be frozen. - * - `item`: The item of the item to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - freeze: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Freeze'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be thawed. - * - `item`: The item of the item to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - thaw: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Thaw'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection to be frozen. - * - * Emits `CollectionFrozen`. - * - * Weight: `O(1)` - * - * @param {number} collection - **/ - freezeCollection: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'FreezeCollection'; - params: { collection: number }; - }; - } - > - >; - - /** - * Re-allow unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Admin of the `collection`. - * - * - `collection`: The collection to be thawed. - * - * Emits `CollectionThawed`. - * - * Weight: `O(1)` - * - * @param {number} collection - **/ - thawCollection: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ThawCollection'; - params: { collection: number }; - }; - } - > - >; - - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} newOwner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - collection: number, - newOwner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'TransferOwnership'; - params: { collection: number; newOwner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - collection: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetTeam'; - params: { - collection: number; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - }; - } - > - >; - - /** - * Approve an item to be transferred by a delegated third-party account. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be - * either the owner of the `item` or the admin of the collection. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item of the item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - * Important NOTE: The `approved` account gets reset after each transfer. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - approveTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel the prior approval for the transfer of an item by a delegate. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Admin of the `collection`; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the item of whose approval will be cancelled. - * - `maybe_check_delegate`: If `Some` will ensure that the given account is the one to - * which permission of transfer is delegated. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike | undefined} maybeCheckDelegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - maybeCheckDelegate: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate: MultiAddressLike | undefined }; - }; - } - > - >; - - /** - * Alter the attributes of a given item. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the item. - * - `owner`: The new Owner of this item. - * - `issuer`: The new Issuer of this item. - * - `admin`: The new Admin of this item. - * - `freezer`: The new Freezer of this item. - * - `free_holding`: Whether a deposit is taken for holding an item of this collection. - * - `is_frozen`: Whether this collection is frozen except for permissioned/admin - * instructions. - * - * Emits `ItemStatusChanged` with the identity of the item. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {boolean} freeHolding - * @param {boolean} isFrozen - **/ - forceItemStatus: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - freeHolding: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - freeHolding: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Set an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {BytesLike} key - * @param {BytesLike} value - **/ - setAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetAttribute'; - params: { collection: number; maybeItem: number | undefined; key: BytesLike; value: BytesLike }; - }; - } - > - >; - - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {BytesLike} key - **/ - clearAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - key: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearAttribute'; - params: { collection: number; maybeItem: number | undefined; key: BytesLike }; - }; - } - > - >; - - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {BytesLike} data - * @param {boolean} isFrozen - **/ - setMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - data: BytesLike, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetMetadata'; - params: { collection: number; item: number; data: BytesLike; isFrozen: boolean }; - }; - } - > - >; - - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - clearMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearMetadata'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {BytesLike} data - * @param {boolean} isFrozen - **/ - setCollectionMetadata: GenericTxCall< - Rv, - ( - collection: number, - data: BytesLike, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetCollectionMetadata'; - params: { collection: number; data: BytesLike; isFrozen: boolean }; - }; - } - > - >; - - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - **/ - clearCollectionMetadata: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearCollectionMetadata'; - params: { collection: number }; - }; - } - > - >; - - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - * - * @param {number | undefined} maybeCollection - **/ - setAcceptOwnership: GenericTxCall< - Rv, - (maybeCollection: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetAcceptOwnership'; - params: { maybeCollection: number | undefined }; - }; - } - > - >; - - /** - * Set the maximum amount of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Note: This function can only succeed once per collection. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum amount of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - * - * @param {number} collection - * @param {number} maxSupply - **/ - setCollectionMaxSupply: GenericTxCall< - Rv, - ( - collection: number, - maxSupply: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetCollectionMaxSupply'; - params: { collection: number; maxSupply: number }; - }; - } - > - >; - - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the asset `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - * - * @param {number} collection - * @param {number} item - * @param {bigint | undefined} price - * @param {MultiAddressLike | undefined} whitelistedBuyer - **/ - setPrice: GenericTxCall< - Rv, - ( - collection: number, - item: number, - price: bigint | undefined, - whitelistedBuyer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price: bigint | undefined; - whitelistedBuyer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - * - * @param {number} collection - * @param {number} item - * @param {bigint} bidPrice - **/ - buyItem: GenericTxCall< - Rv, - ( - collection: number, - item: number, - bidPrice: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'BuyItem'; - params: { collection: number; item: number; bidPrice: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Nfts`'s transaction calls - **/ - nfts: { - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must be Signed and the sender must have sufficient funds free. - * - * `CollectionDeposit` funds of sender are reserved. - * - * Parameters: - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {MultiAddressLike} admin - * @param {PalletNftsCollectionConfig} config - **/ - create: GenericTxCall< - Rv, - ( - admin: MultiAddressLike, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Create'; - params: { admin: MultiAddressLike; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {MultiAddressLike} owner - * @param {PalletNftsCollectionConfig} config - **/ - forceCreate: GenericTxCall< - Rv, - ( - owner: MultiAddressLike, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCreate'; - params: { owner: MultiAddressLike; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * NOTE: The collection must have 0 items to be destroyed. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(m + c + a)` where: - * - `m = witness.item_metadatas` - * - `c = witness.item_configs` - * - `a = witness.attributes` - * - * @param {number} collection - * @param {PalletNftsDestroyWitness} witness - **/ - destroy: GenericTxCall< - Rv, - ( - collection: number, - witness: PalletNftsDestroyWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Destroy'; - params: { collection: number; witness: PalletNftsDestroyWitness }; - }; - } - > - >; - - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must comply with the `mint_settings` rules. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `witness_data`: When the mint type is `HolderOf(collection_id)`, then the owned - * item_id from that collection needs to be provided within the witness data object. If - * the mint price is set, then it should be additionally confirmed in the `witness_data`. - * - * Note: the deposit will be taken from the `origin` and not the `owner` of the `item`. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} mintTo - * @param {PalletNftsMintWitness | undefined} witnessData - **/ - mint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - mintTo: MultiAddressLike, - witnessData: PalletNftsMintWitness | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddressLike; - witnessData: PalletNftsMintWitness | undefined; - }; - }; - } - > - >; - - /** - * Mint an item of a particular collection from a privileged origin. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `item_config`: A config of the new item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} mintTo - * @param {PalletNftsItemConfig} itemConfig - **/ - forceMint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - mintTo: MultiAddressLike, - itemConfig: PalletNftsItemConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddressLike; itemConfig: PalletNftsItemConfig }; - }; - } - > - >; - - /** - * Destroy a single item. - * - * The origin must conform to `ForceOrigin` or must be Signed and the signing account must - * be the owner of the `item`. - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item to be burned. - * - * Emits `Burned`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - burn: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Burn'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Move an item from the sender account to another. - * - * Origin must be Signed and the signing account must be either: - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} dest - **/ - transfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - dest: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Transfer'; - params: { collection: number; item: number; dest: MultiAddressLike }; - }; - } - > - >; - - /** - * Re-evaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection of the items to be reevaluated. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown or the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - * - * @param {number} collection - * @param {Array} items - **/ - redeposit: GenericTxCall< - Rv, - ( - collection: number, - items: Array, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Redeposit'; - params: { collection: number; items: Array }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become non-transferable. - * - * Emits `ItemTransferLocked`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - lockItemTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockItemTransfer'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become transferable. - * - * Emits `ItemTransferUnlocked`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - unlockItemTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'UnlockItemTransfer'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Disallows specified settings for the whole collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be locked. - * - `lock_settings`: The settings to be locked. - * - * Note: it's possible to only lock(set) the setting, but not to unset it. - * - * Emits `CollectionLocked`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {PalletNftsBitFlags} lockSettings - **/ - lockCollection: GenericTxCall< - Rv, - ( - collection: number, - lockSettings: PalletNftsBitFlags, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockCollection'; - params: { collection: number; lockSettings: PalletNftsBitFlags }; - }; - } - > - >; - - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} newOwner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - collection: number, - newOwner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'TransferOwnership'; - params: { collection: number; newOwner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Note: by setting the role to `None` only the `ForceOrigin` will be able to change it - * after to `Some(account)`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike | undefined} issuer - * @param {MultiAddressLike | undefined} admin - * @param {MultiAddressLike | undefined} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - collection: number, - issuer: MultiAddressLike | undefined, - admin: MultiAddressLike | undefined, - freezer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetTeam'; - params: { - collection: number; - issuer: MultiAddressLike | undefined; - admin: MultiAddressLike | undefined; - freezer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * Change the Owner of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `owner`: The new Owner of this collection. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} owner - **/ - forceCollectionOwner: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCollectionOwner'; - params: { collection: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the config of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `config`: The new config of this collection. - * - * Emits `CollectionConfigChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {PalletNftsCollectionConfig} config - **/ - forceCollectionConfig: GenericTxCall< - Rv, - ( - collection: number, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCollectionConfig'; - params: { collection: number; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * Approve an item to be transferred by a delegated third-party account. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - `maybe_deadline`: Optional deadline for the approval. Specified by providing the - * number of blocks after which the approval will expire - * - * Emits `TransferApproved` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - * @param {number | undefined} maybeDeadline - **/ - approveTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - maybeDeadline: number | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike; maybeDeadline: number | undefined }; - }; - } - > - >; - - /** - * Cancel one of the transfer approvals for a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the collection of whose approval will be cancelled. - * - `delegate`: The account that is going to loose their approval. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelApproval'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel all the approvals of a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approvals will be cleared. - * - `item`: The item of the collection of whose approvals will be cleared. - * - * Emits `AllApprovalsCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - clearAllTransferApprovals: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearAllTransferApprovals'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Disallows changing the metadata or attributes of the item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin - * of the `collection`. - * - * - `collection`: The collection if the `item`. - * - `item`: An item to be locked. - * - `lock_metadata`: Specifies whether the metadata should be locked. - * - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace - * should be locked. - * - * Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only. - * When the metadata or attributes are locked, it won't be possible the unlock them. - * - * Emits `ItemPropertiesLocked`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {boolean} lockMetadata - * @param {boolean} lockAttributes - **/ - lockItemProperties: GenericTxCall< - Rv, - ( - collection: number, - item: number, - lockMetadata: boolean, - lockAttributes: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - }; - } - > - >; - - /** - * Set an attribute for a collection or item. - * - * Origin must be Signed and must conform to the namespace ruleset: - * - `CollectionOwner` namespace could be modified by the `collection` Admin only; - * - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item` - * should be set in that case; - * - `Account(AccountId)` namespace could be modified only when the `origin` was given a - * permission to do so; - * - * The funds of `origin` are reserved according to the formula: - * `AttributeDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - * @param {BytesLike} value - **/ - setAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - }; - } - > - >; - - /** - * Force-set an attribute for a collection or item. - * - * Origin must be `ForceOrigin`. - * - * If the attribute already exists and it was set by another account, the deposit - * will be returned to the previous owner. - * - * - `set_as`: An optional owner of the attribute. - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - * - * @param {AccountId32Like | undefined} setAs - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - * @param {BytesLike} value - **/ - forceSetAttribute: GenericTxCall< - Rv, - ( - setAs: AccountId32Like | undefined, - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceSetAttribute'; - params: { - setAs: AccountId32Like | undefined; - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - }; - } - > - >; - - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * attribute. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - **/ - clearAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - }; - }; - } - > - >; - - /** - * Approve item's attributes to be changed by a delegated third-party account. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: A collection of the item. - * - `item`: The item that holds attributes. - * - `delegate`: The account to delegate permission to change attributes of the item. - * - * Emits `ItemAttributesApprovalAdded` on success. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - approveItemAttributes: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ApproveItemAttributes'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel the previously provided approval to change item's attributes. - * All the previously set attributes by the `delegate` will be removed. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: Collection that the item is contained within. - * - `item`: The item that holds attributes. - * - `delegate`: The previously approved account to remove. - * - * Emits `ItemAttributesApprovalRemoved` on success. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - * @param {PalletNftsCancelAttributesApprovalWitness} witness - **/ - cancelItemAttributesApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - witness: PalletNftsCancelAttributesApprovalWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddressLike; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - }; - } - > - >; - - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `ItemMetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {BytesLike} data - **/ - setMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - data: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetMetadata'; - params: { collection: number; item: number; data: BytesLike }; - }; - } - > - >; - - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `ItemMetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - clearMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearMetadata'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {BytesLike} data - **/ - setCollectionMetadata: GenericTxCall< - Rv, - ( - collection: number, - data: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetCollectionMetadata'; - params: { collection: number; data: BytesLike }; - }; - } - > - >; - - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - **/ - clearCollectionMetadata: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearCollectionMetadata'; - params: { collection: number }; - }; - } - > - >; - - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - * - * @param {number | undefined} maybeCollection - **/ - setAcceptOwnership: GenericTxCall< - Rv, - (maybeCollection: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAcceptOwnership'; - params: { maybeCollection: number | undefined }; - }; - } - > - >; - - /** - * Set the maximum number of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum number of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - * - * @param {number} collection - * @param {number} maxSupply - **/ - setCollectionMaxSupply: GenericTxCall< - Rv, - ( - collection: number, - maxSupply: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetCollectionMaxSupply'; - params: { collection: number; maxSupply: number }; - }; - } - > - >; - - /** - * Update mint settings. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer - * of the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `mint_settings`: The new mint settings. - * - * Emits `CollectionMintSettingsUpdated` event when successful. - * - * @param {number} collection - * @param {PalletNftsMintSettings} mintSettings - **/ - updateMintSettings: GenericTxCall< - Rv, - ( - collection: number, - mintSettings: PalletNftsMintSettings, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'UpdateMintSettings'; - params: { collection: number; mintSettings: PalletNftsMintSettings }; - }; - } - > - >; - - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - * - * @param {number} collection - * @param {number} item - * @param {bigint | undefined} price - * @param {MultiAddressLike | undefined} whitelistedBuyer - **/ - setPrice: GenericTxCall< - Rv, - ( - collection: number, - item: number, - price: bigint | undefined, - whitelistedBuyer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price: bigint | undefined; - whitelistedBuyer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - * - * @param {number} collection - * @param {number} item - * @param {bigint} bidPrice - **/ - buyItem: GenericTxCall< - Rv, - ( - collection: number, - item: number, - bidPrice: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'BuyItem'; - params: { collection: number; item: number; bidPrice: bigint }; - }; - } - > - >; - - /** - * Allows to pay the tips. - * - * Origin must be Signed. - * - * - `tips`: Tips array. - * - * Emits `TipSent` on every tip transfer. - * - * @param {Array} tips - **/ - payTips: GenericTxCall< - Rv, - (tips: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'PayTips'; - params: { tips: Array }; - }; - } - > - >; - - /** - * Register a new atomic swap, declaring an intention to send an `item` in exchange for - * `desired_item` from origin to target on the current blockchain. - * The target can execute the swap during the specified `duration` of blocks (if set). - * Additionally, the price could be set for the desired `item`. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - `desired_collection`: The collection of the desired item. - * - `desired_item`: The desired item an owner wants to receive. - * - `maybe_price`: The price an owner is willing to pay or receive for the desired `item`. - * - `duration`: A deadline for the swap. Specified by providing the number of blocks - * after which the swap will expire. - * - * Emits `SwapCreated` on success. - * - * @param {number} offeredCollection - * @param {number} offeredItem - * @param {number} desiredCollection - * @param {number | undefined} maybeDesiredItem - * @param {PalletNftsPriceWithDirection | undefined} maybePrice - * @param {number} duration - **/ - createSwap: GenericTxCall< - Rv, - ( - offeredCollection: number, - offeredItem: number, - desiredCollection: number, - maybeDesiredItem: number | undefined, - maybePrice: PalletNftsPriceWithDirection | undefined, - duration: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem: number | undefined; - maybePrice: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - }; - } - > - >; - - /** - * Cancel an atomic swap. - * - * Origin must be Signed. - * Origin must be an owner of the `item` if the deadline hasn't expired. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - * Emits `SwapCancelled` on success. - * - * @param {number} offeredCollection - * @param {number} offeredItem - **/ - cancelSwap: GenericTxCall< - Rv, - ( - offeredCollection: number, - offeredItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelSwap'; - params: { offeredCollection: number; offeredItem: number }; - }; - } - > - >; - - /** - * Claim an atomic swap. - * This method executes a pending swap, that was created by a counterpart before. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `send_collection`: The collection of the item to be sent. - * - `send_item`: The item to be sent. - * - `receive_collection`: The collection of the item to be received. - * - `receive_item`: The item to be received. - * - `witness_price`: A price that was previously agreed on. - * - * Emits `SwapClaimed` on success. - * - * @param {number} sendCollection - * @param {number} sendItem - * @param {number} receiveCollection - * @param {number} receiveItem - * @param {PalletNftsPriceWithDirection | undefined} witnessPrice - **/ - claimSwap: GenericTxCall< - Rv, - ( - sendCollection: number, - sendItem: number, - receiveCollection: number, - receiveItem: number, - witnessPrice: PalletNftsPriceWithDirection | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice: PalletNftsPriceWithDirection | undefined; - }; - }; - } - > - >; - - /** - * Mint an item by providing the pre-signed approval. - * - * Origin must be Signed. - * - * - `mint_data`: The pre-signed approval that consists of the information about the item, - * its metadata, attributes, who can mint it (`None` for anyone) and until what block - * number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Issuer of the collection. - * - * Emits `Issued` on success. - * Emits `AttributeSet` if the attributes were provided. - * Emits `ItemMetadataSet` if the metadata was not empty. - * - * @param {PalletNftsPreSignedMint} mintData - * @param {SpRuntimeMultiSignature} signature - * @param {AccountId32Like} signer - **/ - mintPreSigned: GenericTxCall< - Rv, - ( - mintData: PalletNftsPreSignedMint, - signature: SpRuntimeMultiSignature, - signer: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - }; - } - > - >; - - /** - * Set attributes for an item by providing the pre-signed approval. - * - * Origin must be Signed and must be an owner of the `data.item`. - * - * - `data`: The pre-signed approval that consists of the information about the item, - * attributes to update and until what block number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Admin of the collection for the - * `CollectionOwner` namespace. - * - * Emits `AttributeSet` for each provided attribute. - * Emits `ItemAttributesApprovalAdded` if the approval wasn't set before. - * Emits `PreSignedAttributesSet` on success. - * - * @param {PalletNftsPreSignedAttributes} data - * @param {SpRuntimeMultiSignature} signature - * @param {AccountId32Like} signer - **/ - setAttributesPreSigned: GenericTxCall< - Rv, - ( - data: PalletNftsPreSignedAttributes, - signature: SpRuntimeMultiSignature, - signer: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAttributesPreSigned'; - params: { - data: PalletNftsPreSignedAttributes; - signature: SpRuntimeMultiSignature; - signer: AccountId32Like; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ForeignAssets`'s transaction calls - **/ - foreignAssets: { - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Create'; - params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - isSufficient: boolean; - minBalance: bigint; - }; - }; - } - > - >; - - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'StartDestroy'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Mint'; - params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Burn'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Transfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceTransfer'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - source: MultiAddressLike; - dest: MultiAddressLike; - amount: bigint; - }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Freeze'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Thaw'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ThawAsset'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - }; - } - > - >; - - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'CancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - destination: MultiAddressLike; - amount: bigint; - }; - }; - } - > - >; - - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - touch: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Touch'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Refund'; - params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean }; - }; - } - > - >; - - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint }; - }; - } - > - >; - - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TouchOther'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'RefundOther'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Block'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `NftFractionalization`'s transaction calls - **/ - nftFractionalization: { - /** - * Lock the NFT and mint a new fungible asset. - * - * The dispatch origin for this call must be Signed. - * The origin must be the owner of the NFT they are trying to lock. - * - * `Deposit` funds of sender are reserved. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the new asset. It must not exist. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the newly created asset. - * - `fractions`: The total issuance of the newly created asset class. - * - * Emits `NftFractionalized` event when successful. - * - * @param {number} nftCollectionId - * @param {number} nftId - * @param {number} assetId - * @param {MultiAddressLike} beneficiary - * @param {bigint} fractions - **/ - fractionalize: GenericTxCall< - Rv, - ( - nftCollectionId: number, - nftId: number, - assetId: number, - beneficiary: MultiAddressLike, - fractions: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'NftFractionalization'; - palletCall: { - name: 'Fractionalize'; - params: { - nftCollectionId: number; - nftId: number; - assetId: number; - beneficiary: MultiAddressLike; - fractions: bigint; - }; - }; - } - > - >; - - /** - * Burn the total issuance of the fungible asset and return (unlock) the locked NFT. - * - * The dispatch origin for this call must be Signed. - * - * `Deposit` funds will be returned to `asset_creator`. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the asset being returned and destroyed. Must match - * the original ID of the created asset, corresponding to the NFT. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the unified NFT. - * - * Emits `NftUnified` event when successful. - * - * @param {number} nftCollectionId - * @param {number} nftId - * @param {number} assetId - * @param {MultiAddressLike} beneficiary - **/ - unify: GenericTxCall< - Rv, - ( - nftCollectionId: number, - nftId: number, - assetId: number, - beneficiary: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'NftFractionalization'; - palletCall: { - name: 'Unify'; - params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `PoolAssets`'s transaction calls - **/ - poolAssets: { - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: number, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Create'; - params: { id: number; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceCreate'; - params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint }; - }; - } - > - >; - - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - * - * @param {number} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'StartDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - * - * @param {number} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: number }; - }; - } - > - >; - - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - * - * @param {number} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: number }; - }; - } - > - >; - - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - * - * @param {number} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - * - * @param {number} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: number, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Mint'; - params: { id: number; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - * - * @param {number} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Burn'; - params: { id: number; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Transfer'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - * - * @param {number} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: number, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceTransfer'; - params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Freeze'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Thaw'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ThawAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - }; - } - > - >; - - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: number; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'CancelApproval'; - params: { id: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - * - * @param {number} id - **/ - touch: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Touch'; - params: { id: number }; - }; - } - > - >; - - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - * - * @param {number} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: number, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Refund'; - params: { id: number; allowBurn: boolean }; - }; - } - > - >; - - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - * - * @param {number} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: number, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: number; minBalance: bigint }; - }; - } - > - >; - - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TouchOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'RefundOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Block'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `AssetConversion`'s transaction calls - **/ - assetConversion: { - /** - * Creates an empty liquidity pool and an associated new `lp_token` asset - * (the id of which is returned in the `Event::PoolCreated` event). - * - * Once a pool is created, someone may [`Pallet::add_liquidity`] to it. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - createPool: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Provide liquidity into the pool of `asset1` and `asset2`. - * NOTE: an optimal amount of asset1 and asset2 will be calculated and - * might be different than the provided `amount1_desired`/`amount2_desired` - * thus you should provide the min amount you're happy to provide. - * Params `amount1_min`/`amount2_min` represent that. - * `mint_to` will be sent the liquidity tokens that represent this share of the pool. - * - * NOTE: when encountering an incorrect exchange rate and non-withdrawable pool liquidity, - * batch an atomic call with [`Pallet::add_liquidity`] and - * [`Pallet::swap_exact_tokens_for_tokens`] or [`Pallet::swap_tokens_for_exact_tokens`] - * calls to render the liquidity withdrawable and rectify the exchange rate. - * - * Once liquidity is added, someone may successfully call - * [`Pallet::swap_exact_tokens_for_tokens`] successfully. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount1Desired - * @param {bigint} amount2Desired - * @param {bigint} amount1Min - * @param {bigint} amount2Min - * @param {AccountId32Like} mintTo - **/ - addLiquidity: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount1Desired: bigint, - amount2Desired: bigint, - amount1Min: bigint, - amount2Min: bigint, - mintTo: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32Like; - }; - }; - } - > - >; - - /** - * Allows you to remove liquidity by providing the `lp_token_burn` tokens that will be - * burned in the process. With the usage of `amount1_min_receive`/`amount2_min_receive` - * it's possible to control the min amount of returned tokens you're happy with. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} lpTokenBurn - * @param {bigint} amount1MinReceive - * @param {bigint} amount2MinReceive - * @param {AccountId32Like} withdrawTo - **/ - removeLiquidity: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - lpTokenBurn: bigint, - amount1MinReceive: bigint, - amount2MinReceive: bigint, - withdrawTo: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32Like; - }; - }; - } - > - >; - - /** - * Swap the exact amount of `asset1` into `asset2`. - * `amount_out_min` param allows you to specify the min amount of the `asset2` - * you're happy to receive. - * - * [`AssetConversionApi::quote_price_exact_tokens_for_tokens`] runtime call can be called - * for a quote. - * - * @param {Array} path - * @param {bigint} amountIn - * @param {bigint} amountOutMin - * @param {AccountId32Like} sendTo - * @param {boolean} keepAlive - **/ - swapExactTokensForTokens: GenericTxCall< - Rv, - ( - path: Array, - amountIn: bigint, - amountOutMin: bigint, - sendTo: AccountId32Like, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - } - > - >; - - /** - * Swap any amount of `asset1` to get the exact amount of `asset2`. - * `amount_in_max` param allows to specify the max amount of the `asset1` - * you're happy to provide. - * - * [`AssetConversionApi::quote_price_tokens_for_exact_tokens`] runtime call can be called - * for a quote. - * - * @param {Array} path - * @param {bigint} amountOut - * @param {bigint} amountInMax - * @param {AccountId32Like} sendTo - * @param {boolean} keepAlive - **/ - swapTokensForExactTokens: GenericTxCall< - Rv, - ( - path: Array, - amountOut: bigint, - amountInMax: bigint, - sendTo: AccountId32Like, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - } - > - >; - - /** - * Touch an existing pool to fulfill prerequisites before providing liquidity, such as - * ensuring that the pool's accounts are in place. It is typically useful when a pool - * creator removes the pool's accounts and does not provide a liquidity. This action may - * involve holding assets from the caller as a deposit for creating the pool's accounts. - * - * The origin must be Signed. - * - * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2). - * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2). - * - * Emits `Touched` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - touch: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'Touch'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `AssetConversionMigration`'s transaction calls - **/ - assetConversionMigration: { - /** - * Migrates an existing pool to a new account ID derivation method for a given asset pair. - * If the migration is successful, transaction fees are refunded to the caller. - * - * Must be signed. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - migrateToNewAccount: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversionMigration'; - palletCall: { - name: 'MigrateToNewAccount'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; -} diff --git a/packages/chaintypes/src/rococoAssetHub/types.d.ts b/packages/chaintypes/src/rococoAssetHub/types.d.ts deleted file mode 100644 index 9b67e36..0000000 --- a/packages/chaintypes/src/rococoAssetHub/types.d.ts +++ /dev/null @@ -1,12431 +0,0 @@ -// Generated by dedot cli - -import type { - Phase, - H256, - DispatchInfo, - DispatchError, - AccountId32, - FixedBytes, - FixedArray, - Bytes, - Result, - Permill, - BytesLike, - MultiAddress, - MultiAddressLike, - AccountId32Like, - FixedU128, - Era, - Header, - UncheckedExtrinsic, -} from 'dedot/codecs'; - -export type FrameSystemAccountInfo = { - nonce: number; - consumers: number; - providers: number; - sufficients: number; - data: PalletBalancesAccountData; -}; - -export type PalletBalancesAccountData = { - free: bigint; - reserved: bigint; - frozen: bigint; - flags: PalletBalancesExtraFlags; -}; - -export type PalletBalancesExtraFlags = bigint; - -export type FrameSupportDispatchPerDispatchClass = { - normal: SpWeightsWeightV2Weight; - operational: SpWeightsWeightV2Weight; - mandatory: SpWeightsWeightV2Weight; -}; - -export type SpWeightsWeightV2Weight = { refTime: bigint; proofSize: bigint }; - -export type FrameSystemEventRecord = { phase: Phase; event: AssetHubRococoRuntimeRuntimeEvent; topics: Array }; - -export type AssetHubRococoRuntimeRuntimeEvent = - | { pallet: 'System'; palletEvent: FrameSystemEvent } - | { pallet: 'ParachainSystem'; palletEvent: CumulusPalletParachainSystemEvent } - | { pallet: 'Balances'; palletEvent: PalletBalancesEvent } - | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent } - | { pallet: 'AssetTxPayment'; palletEvent: PalletAssetConversionTxPaymentEvent } - | { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent } - | { pallet: 'Session'; palletEvent: PalletSessionEvent } - | { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent } - | { pallet: 'PolkadotXcm'; palletEvent: PalletXcmEvent } - | { pallet: 'CumulusXcm'; palletEvent: CumulusPalletXcmEvent } - | { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent } - | { pallet: 'Utility'; palletEvent: PalletUtilityEvent } - | { pallet: 'Multisig'; palletEvent: PalletMultisigEvent } - | { pallet: 'Proxy'; palletEvent: PalletProxyEvent } - | { pallet: 'Assets'; palletEvent: PalletAssetsEvent } - | { pallet: 'Uniques'; palletEvent: PalletUniquesEvent } - | { pallet: 'Nfts'; palletEvent: PalletNftsEvent } - | { pallet: 'ForeignAssets'; palletEvent: PalletAssetsEvent002 } - | { pallet: 'NftFractionalization'; palletEvent: PalletNftFractionalizationEvent } - | { pallet: 'PoolAssets'; palletEvent: PalletAssetsEvent } - | { pallet: 'AssetConversion'; palletEvent: PalletAssetConversionEvent } - | { pallet: 'AssetsFreezer'; palletEvent: PalletAssetsFreezerEvent } - | { pallet: 'ForeignAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent002 } - | { pallet: 'PoolAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent } - | { pallet: 'AssetConversionMigration'; palletEvent: PalletAssetConversionOpsEvent }; - -/** - * Event for the System pallet. - **/ -export type FrameSystemEvent = - /** - * An extrinsic completed successfully. - **/ - | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: DispatchInfo } } - /** - * An extrinsic failed. - **/ - | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: DispatchInfo } } - /** - * `:code` was updated. - **/ - | { name: 'CodeUpdated' } - /** - * A new account was created. - **/ - | { name: 'NewAccount'; data: { account: AccountId32 } } - /** - * An account was reaped. - **/ - | { name: 'KilledAccount'; data: { account: AccountId32 } } - /** - * On on-chain remark happened. - **/ - | { name: 'Remarked'; data: { sender: AccountId32; hash: H256 } } - /** - * An upgrade was authorized. - **/ - | { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } }; - -export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory'; - -export type FrameSupportDispatchPays = 'Yes' | 'No'; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletParachainSystemEvent = - /** - * The validation function has been scheduled to apply. - **/ - | { name: 'ValidationFunctionStored' } - /** - * The validation function was applied as of the contained relay chain block number. - **/ - | { name: 'ValidationFunctionApplied'; data: { relayChainBlockNum: number } } - /** - * The relay-chain aborted the upgrade process. - **/ - | { name: 'ValidationFunctionDiscarded' } - /** - * Some downward messages have been received and will be processed. - **/ - | { name: 'DownwardMessagesReceived'; data: { count: number } } - /** - * Downward messages were processed using the given weight. - **/ - | { name: 'DownwardMessagesProcessed'; data: { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } } - /** - * An upward message was sent to the relay chain. - **/ - | { name: 'UpwardMessageSent'; data: { messageHash?: FixedBytes<32> | undefined } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletBalancesEvent = - /** - * An account was created with some free balance. - **/ - | { name: 'Endowed'; data: { account: AccountId32; freeBalance: bigint } } - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - | { name: 'DustLost'; data: { account: AccountId32; amount: bigint } } - /** - * Transfer succeeded. - **/ - | { name: 'Transfer'; data: { from: AccountId32; to: AccountId32; amount: bigint } } - /** - * A balance was set by root. - **/ - | { name: 'BalanceSet'; data: { who: AccountId32; free: bigint } } - /** - * Some balance was reserved (moved from free to reserved). - **/ - | { name: 'Reserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unreserved (moved from reserved to free). - **/ - | { name: 'Unreserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - | { - name: 'ReserveRepatriated'; - data: { - from: AccountId32; - to: AccountId32; - amount: bigint; - destinationStatus: FrameSupportTokensMiscBalanceStatus; - }; - } - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - | { name: 'Deposit'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - | { name: 'Withdraw'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - | { name: 'Slashed'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was minted into an account. - **/ - | { name: 'Minted'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was burned from an account. - **/ - | { name: 'Burned'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was suspended from an account (it can be restored later). - **/ - | { name: 'Suspended'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was restored into an account. - **/ - | { name: 'Restored'; data: { who: AccountId32; amount: bigint } } - /** - * An account was upgraded. - **/ - | { name: 'Upgraded'; data: { who: AccountId32 } } - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - | { name: 'Issued'; data: { amount: bigint } } - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - | { name: 'Rescinded'; data: { amount: bigint } } - /** - * Some balance was locked. - **/ - | { name: 'Locked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unlocked. - **/ - | { name: 'Unlocked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was frozen. - **/ - | { name: 'Frozen'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was thawed. - **/ - | { name: 'Thawed'; data: { who: AccountId32; amount: bigint } } - /** - * The `TotalIssuance` was forcefully changed. - **/ - | { name: 'TotalIssuanceForced'; data: { old: bigint; new: bigint } }; - -export type FrameSupportTokensMiscBalanceStatus = 'Free' | 'Reserved'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletTransactionPaymentEvent = - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - { name: 'TransactionFeePaid'; data: { who: AccountId32; actualFee: bigint; tip: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionTxPaymentEvent = - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who` in an asset `asset_id`. - **/ - | { - name: 'AssetTxFeePaid'; - data: { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV3MultilocationMultiLocation }; - } - /** - * A swap of the refund in native currency back to asset failed. - **/ - | { name: 'AssetRefundFailed'; data: { nativeAmountKept: bigint } }; - -export type StagingXcmV3MultilocationMultiLocation = { parents: number; interior: XcmV3Junctions }; - -export type XcmV3Junctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV3Junction } - | { type: 'X2'; value: [XcmV3Junction, XcmV3Junction] } - | { type: 'X3'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X4'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X5'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X6'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { - type: 'X7'; - value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]; - } - | { - type: 'X8'; - value: [ - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - ]; - }; - -export type XcmV3Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: XcmV3JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: XcmV3JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: XcmV3JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: XcmV3JunctionNetworkId }; - -export type XcmV3JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type XcmV3JunctionBodyId = - | { type: 'Unit' } - | { type: 'Moniker'; value: FixedBytes<4> } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV3JunctionBodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletCollatorSelectionEvent = - /** - * New Invulnerables were set. - **/ - | { name: 'NewInvulnerables'; data: { invulnerables: Array } } - /** - * A new Invulnerable was added. - **/ - | { name: 'InvulnerableAdded'; data: { accountId: AccountId32 } } - /** - * An Invulnerable was removed. - **/ - | { name: 'InvulnerableRemoved'; data: { accountId: AccountId32 } } - /** - * The number of desired candidates was set. - **/ - | { name: 'NewDesiredCandidates'; data: { desiredCandidates: number } } - /** - * The candidacy bond was set. - **/ - | { name: 'NewCandidacyBond'; data: { bondAmount: bigint } } - /** - * A new candidate joined. - **/ - | { name: 'CandidateAdded'; data: { accountId: AccountId32; deposit: bigint } } - /** - * Bond of a candidate updated. - **/ - | { name: 'CandidateBondUpdated'; data: { accountId: AccountId32; deposit: bigint } } - /** - * A candidate was removed. - **/ - | { name: 'CandidateRemoved'; data: { accountId: AccountId32 } } - /** - * An account was replaced in the candidate list by another one. - **/ - | { name: 'CandidateReplaced'; data: { old: AccountId32; new: AccountId32; deposit: bigint } } - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - | { name: 'InvalidInvulnerableSkipped'; data: { accountId: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletSessionEvent = - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - { name: 'NewSession'; data: { sessionIndex: number } }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmpQueueEvent = - /** - * An HRMP message was sent to a sibling parachain. - **/ - { name: 'XcmpMessageSent'; data: { messageHash: FixedBytes<32> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletXcmEvent = - /** - * Execution of an XCM message was attempted. - **/ - | { name: 'Attempted'; data: { outcome: StagingXcmV4TraitsOutcome } } - /** - * A XCM message was sent. - **/ - | { - name: 'Sent'; - data: { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - }; - } - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - | { name: 'UnexpectedResponse'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - | { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV4Response } } - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - | { name: 'Notified'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - | { - name: 'NotifyOverweight'; - data: { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - | { name: 'NotifyDispatchError'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - | { name: 'NotifyDecodeFailed'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidResponder'; - data: { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined }; - } - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Received query response has been read and removed. - **/ - | { name: 'ResponseTaken'; data: { queryId: bigint } } - /** - * Some assets have been placed in an asset trap. - **/ - | { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - | { - name: 'VersionChangeNotified'; - data: { - destination: StagingXcmV4Location; - result: number; - cost: StagingXcmV4AssetAssets; - messageId: FixedBytes<32>; - }; - } - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - | { name: 'SupportedVersionChanged'; data: { location: StagingXcmV4Location; version: number } } - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - | { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } } - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - | { name: 'NotifyTargetMigrationFail'; data: { location: XcmVersionedLocation; queryId: bigint } } - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidQuerier'; - data: { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - }; - } - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - | { - name: 'VersionNotifyStarted'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - | { - name: 'VersionNotifyRequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - | { - name: 'VersionNotifyUnrequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - | { name: 'FeesPaid'; data: { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } } - /** - * Some assets have been claimed from an asset trap - **/ - | { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * A XCM version migration finished. - **/ - | { name: 'VersionMigrationFinished'; data: { version: number } }; - -export type StagingXcmV4TraitsOutcome = - | { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } } - | { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV3TraitsError } } - | { type: 'Error'; value: { error: XcmV3TraitsError } }; - -export type XcmV3TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'LocationFull' } - | { type: 'LocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'ExpectationFalse' } - | { type: 'PalletNotFound' } - | { type: 'NameMismatch' } - | { type: 'VersionIncompatible' } - | { type: 'HoldingWouldOverflow' } - | { type: 'ExportError' } - | { type: 'ReanchorFailed' } - | { type: 'NoDeal' } - | { type: 'FeesNotMet' } - | { type: 'LockError' } - | { type: 'NoPermission' } - | { type: 'Unanchored' } - | { type: 'NotDepositable' } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' } - | { type: 'ExceedsStackLimit' }; - -export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions }; - -export type StagingXcmV4Junctions = - | { type: 'Here' } - | { type: 'X1'; value: FixedArray } - | { type: 'X2'; value: FixedArray } - | { type: 'X3'; value: FixedArray } - | { type: 'X4'; value: FixedArray } - | { type: 'X5'; value: FixedArray } - | { type: 'X6'; value: FixedArray } - | { type: 'X7'; value: FixedArray } - | { type: 'X8'; value: FixedArray }; - -export type StagingXcmV4Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId }; - -export type StagingXcmV4JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type StagingXcmV4Xcm = Array; - -export type StagingXcmV4Instruction = - | { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets } - | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: StagingXcmV4Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV4Location | undefined; - }; - } - | { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } } - | { - type: 'TransferReserveAsset'; - value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: StagingXcmV4Junctions } - | { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo } - | { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } } - | { - type: 'DepositReserveAsset'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ReportHolding'; - value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter }; - } - | { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: StagingXcmV4Xcm } - | { type: 'SetAppendix'; value: StagingXcmV4Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: StagingXcmV4Junction } - | { - type: 'ExportMessage'; - value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm }; - } - | { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } } - | { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } } - | { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } } - | { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV4Location } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined }; - }; - -export type StagingXcmV4AssetAssets = Array; - -export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility }; - -export type StagingXcmV4AssetAssetId = StagingXcmV4Location; - -export type StagingXcmV4AssetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance }; - -export type StagingXcmV4AssetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type StagingXcmV4Response = - | { type: 'Null' } - | { type: 'Assets'; value: StagingXcmV4AssetAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type StagingXcmV4PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type XcmV3MaybeErrorCode = - | { type: 'Success' } - | { type: 'Error'; value: Bytes } - | { type: 'TruncatedError'; value: Bytes }; - -export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; - -export type XcmDoubleEncoded = { encoded: Bytes }; - -export type StagingXcmV4QueryResponseInfo = { - destination: StagingXcmV4Location; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type StagingXcmV4AssetAssetFilter = - | { type: 'Definite'; value: StagingXcmV4AssetAssets } - | { type: 'Wild'; value: StagingXcmV4AssetWildAsset }; - -export type StagingXcmV4AssetWildAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { - type: 'AllOfCounted'; - value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number }; - }; - -export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight }; - -export type XcmVersionedAssets = - | { type: 'V2'; value: XcmV2MultiassetMultiAssets } - | { type: 'V3'; value: XcmV3MultiassetMultiAssets } - | { type: 'V4'; value: StagingXcmV4AssetAssets }; - -export type XcmV2MultiassetMultiAssets = Array; - -export type XcmV2MultiassetMultiAsset = { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetFungibility }; - -export type XcmV2MultiassetAssetId = - | { type: 'Concrete'; value: XcmV2MultilocationMultiLocation } - | { type: 'Abstract'; value: Bytes }; - -export type XcmV2MultilocationMultiLocation = { parents: number; interior: XcmV2MultilocationJunctions }; - -export type XcmV2MultilocationJunctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV2Junction } - | { type: 'X2'; value: [XcmV2Junction, XcmV2Junction] } - | { type: 'X3'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X4'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X5'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X6'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { - type: 'X7'; - value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]; - } - | { - type: 'X8'; - value: [ - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - ]; - }; - -export type XcmV2Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network: XcmV2NetworkId; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network: XcmV2NetworkId; index: bigint } } - | { type: 'AccountKey20'; value: { network: XcmV2NetworkId; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: Bytes } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV2BodyId; part: XcmV2BodyPart } }; - -export type XcmV2NetworkId = - | { type: 'Any' } - | { type: 'Named'; value: Bytes } - | { type: 'Polkadot' } - | { type: 'Kusama' }; - -export type XcmV2BodyId = - | { type: 'Unit' } - | { type: 'Named'; value: Bytes } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV2BodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -export type XcmV2MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV2MultiassetAssetInstance }; - -export type XcmV2MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> } - | { type: 'Blob'; value: Bytes }; - -export type XcmV3MultiassetMultiAssets = Array; - -export type XcmV3MultiassetMultiAsset = { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetFungibility }; - -export type XcmV3MultiassetAssetId = - | { type: 'Concrete'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'Abstract'; value: FixedBytes<32> }; - -export type XcmV3MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV3MultiassetAssetInstance }; - -export type XcmV3MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type XcmVersionedLocation = - | { type: 'V2'; value: XcmV2MultilocationMultiLocation } - | { type: 'V3'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'V4'; value: StagingXcmV4Location }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmEvent = - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - | { name: 'InvalidFormat'; data: FixedBytes<32> } - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - | { name: 'UnsupportedVersion'; data: FixedBytes<32> } - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - | { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV4TraitsOutcome] }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMessageQueueEvent = - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - | { - name: 'ProcessingFailed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - }; - } - /** - * Message is processed. - **/ - | { - name: 'Processed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - }; - } - /** - * Message placed in overweight queue. - **/ - | { - name: 'OverweightEnqueued'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - }; - } - /** - * This page was reaped. - **/ - | { - name: 'PageReaped'; - data: { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - }; - }; - -export type CumulusPrimitivesCoreAggregateMessageOrigin = - | { type: 'Here' } - | { type: 'Parent' } - | { type: 'Sibling'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type PolkadotParachainPrimitivesPrimitivesId = number; - -export type FrameSupportMessagesProcessMessageError = - | { type: 'BadFormat' } - | { type: 'Corrupt' } - | { type: 'Unsupported' } - | { type: 'Overweight'; value: SpWeightsWeightV2Weight } - | { type: 'Yield' } - | { type: 'StackLimitReached' }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletUtilityEvent = - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - | { name: 'BatchInterrupted'; data: { index: number; error: DispatchError } } - /** - * Batch of dispatches completed fully with no error. - **/ - | { name: 'BatchCompleted' } - /** - * Batch of dispatches completed but has errors. - **/ - | { name: 'BatchCompletedWithErrors' } - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - | { name: 'ItemCompleted' } - /** - * A single item within a Batch of dispatches has completed with error. - **/ - | { name: 'ItemFailed'; data: { error: DispatchError } } - /** - * A call was dispatched. - **/ - | { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMultisigEvent = - /** - * A new multisig operation has begun. - **/ - | { name: 'NewMultisig'; data: { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } } - /** - * A multisig operation has been approved by someone. - **/ - | { - name: 'MultisigApproval'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - } - /** - * A multisig operation has been executed. - **/ - | { - name: 'MultisigExecuted'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - }; - } - /** - * A multisig operation has been cancelled. - **/ - | { - name: 'MultisigCancelled'; - data: { - cancelling: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigTimepoint = { height: number; index: number }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletProxyEvent = - /** - * A proxy was executed correctly, with the given. - **/ - | { name: 'ProxyExecuted'; data: { result: Result<[], DispatchError> } } - /** - * A pure account has been created by new proxy with given - * disambiguation index and proxy type. - **/ - | { - name: 'PureCreated'; - data: { - pure: AccountId32; - who: AccountId32; - proxyType: AssetHubRococoRuntimeProxyType; - disambiguationIndex: number; - }; - } - /** - * An announcement was placed to make a call in the future. - **/ - | { name: 'Announced'; data: { real: AccountId32; proxy: AccountId32; callHash: H256 } } - /** - * A proxy was added. - **/ - | { - name: 'ProxyAdded'; - data: { - delegator: AccountId32; - delegatee: AccountId32; - proxyType: AssetHubRococoRuntimeProxyType; - delay: number; - }; - } - /** - * A proxy was removed. - **/ - | { - name: 'ProxyRemoved'; - data: { - delegator: AccountId32; - delegatee: AccountId32; - proxyType: AssetHubRococoRuntimeProxyType; - delay: number; - }; - }; - -export type AssetHubRococoRuntimeProxyType = - | 'Any' - | 'NonTransfer' - | 'CancelProxy' - | 'Assets' - | 'AssetOwner' - | 'AssetManager' - | 'Collator'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsEvent = - /** - * Some asset class was created. - **/ - | { name: 'Created'; data: { assetId: number; creator: AccountId32; owner: AccountId32 } } - /** - * Some assets were issued. - **/ - | { name: 'Issued'; data: { assetId: number; owner: AccountId32; amount: bigint } } - /** - * Some assets were transferred. - **/ - | { name: 'Transferred'; data: { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } } - /** - * Some assets were destroyed. - **/ - | { name: 'Burned'; data: { assetId: number; owner: AccountId32; balance: bigint } } - /** - * The management team changed. - **/ - | { name: 'TeamChanged'; data: { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { assetId: number; owner: AccountId32 } } - /** - * Some account `who` was frozen. - **/ - | { name: 'Frozen'; data: { assetId: number; who: AccountId32 } } - /** - * Some account `who` was thawed. - **/ - | { name: 'Thawed'; data: { assetId: number; who: AccountId32 } } - /** - * Some asset `asset_id` was frozen. - **/ - | { name: 'AssetFrozen'; data: { assetId: number } } - /** - * Some asset `asset_id` was thawed. - **/ - | { name: 'AssetThawed'; data: { assetId: number } } - /** - * Accounts were destroyed for given asset. - **/ - | { name: 'AccountsDestroyed'; data: { assetId: number; accountsDestroyed: number; accountsRemaining: number } } - /** - * Approvals were destroyed for given asset. - **/ - | { name: 'ApprovalsDestroyed'; data: { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } } - /** - * An asset class is in the process of being destroyed. - **/ - | { name: 'DestructionStarted'; data: { assetId: number } } - /** - * An asset class was destroyed. - **/ - | { name: 'Destroyed'; data: { assetId: number } } - /** - * Some asset class was force-created. - **/ - | { name: 'ForceCreated'; data: { assetId: number; owner: AccountId32 } } - /** - * New metadata has been set for an asset. - **/ - | { name: 'MetadataSet'; data: { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } } - /** - * Metadata has been cleared for an asset. - **/ - | { name: 'MetadataCleared'; data: { assetId: number } } - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - | { name: 'ApprovedTransfer'; data: { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } } - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { assetId: number; owner: AccountId32; delegate: AccountId32 } } - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - | { - name: 'TransferredApproved'; - data: { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint }; - } - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - | { name: 'AssetStatusChanged'; data: { assetId: number } } - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - | { name: 'AssetMinBalanceChanged'; data: { assetId: number; newMinBalance: bigint } } - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - | { name: 'Touched'; data: { assetId: number; who: AccountId32; depositor: AccountId32 } } - /** - * Some account `who` was blocked. - **/ - | { name: 'Blocked'; data: { assetId: number; who: AccountId32 } } - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - | { name: 'Deposited'; data: { assetId: number; who: AccountId32; amount: bigint } } - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - | { name: 'Withdrawn'; data: { assetId: number; who: AccountId32; amount: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletUniquesEvent = - /** - * A `collection` was created. - **/ - | { name: 'Created'; data: { collection: number; creator: AccountId32; owner: AccountId32 } } - /** - * A `collection` was force-created. - **/ - | { name: 'ForceCreated'; data: { collection: number; owner: AccountId32 } } - /** - * A `collection` was destroyed. - **/ - | { name: 'Destroyed'; data: { collection: number } } - /** - * An `item` was issued. - **/ - | { name: 'Issued'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` was transferred. - **/ - | { name: 'Transferred'; data: { collection: number; item: number; from: AccountId32; to: AccountId32 } } - /** - * An `item` was destroyed. - **/ - | { name: 'Burned'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * Some `item` was frozen. - **/ - | { name: 'Frozen'; data: { collection: number; item: number } } - /** - * Some `item` was thawed. - **/ - | { name: 'Thawed'; data: { collection: number; item: number } } - /** - * Some `collection` was frozen. - **/ - | { name: 'CollectionFrozen'; data: { collection: number } } - /** - * Some `collection` was thawed. - **/ - | { name: 'CollectionThawed'; data: { collection: number } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { collection: number; newOwner: AccountId32 } } - /** - * The management team changed. - **/ - | { name: 'TeamChanged'; data: { collection: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } } - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - | { name: 'ApprovedTransfer'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * A `collection` has had its attributes changed by the `Force` origin. - **/ - | { name: 'ItemStatusChanged'; data: { collection: number } } - /** - * New metadata has been set for a `collection`. - **/ - | { name: 'CollectionMetadataSet'; data: { collection: number; data: Bytes; isFrozen: boolean } } - /** - * Metadata has been cleared for a `collection`. - **/ - | { name: 'CollectionMetadataCleared'; data: { collection: number } } - /** - * New metadata has been set for an item. - **/ - | { name: 'MetadataSet'; data: { collection: number; item: number; data: Bytes; isFrozen: boolean } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'MetadataCleared'; data: { collection: number; item: number } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'Redeposited'; data: { collection: number; successfulItems: Array } } - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - | { name: 'AttributeSet'; data: { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } } - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - | { name: 'AttributeCleared'; data: { collection: number; maybeItem?: number | undefined; key: Bytes } } - /** - * Ownership acceptance has changed for an account. - **/ - | { name: 'OwnershipAcceptanceChanged'; data: { who: AccountId32; maybeCollection?: number | undefined } } - /** - * Max supply has been set for a collection. - **/ - | { name: 'CollectionMaxSupplySet'; data: { collection: number; maxSupply: number } } - /** - * The price was set for the instance. - **/ - | { - name: 'ItemPriceSet'; - data: { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined }; - } - /** - * The price for the instance was removed. - **/ - | { name: 'ItemPriceRemoved'; data: { collection: number; item: number } } - /** - * An item was bought. - **/ - | { - name: 'ItemBought'; - data: { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 }; - }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletNftsEvent = - /** - * A `collection` was created. - **/ - | { name: 'Created'; data: { collection: number; creator: AccountId32; owner: AccountId32 } } - /** - * A `collection` was force-created. - **/ - | { name: 'ForceCreated'; data: { collection: number; owner: AccountId32 } } - /** - * A `collection` was destroyed. - **/ - | { name: 'Destroyed'; data: { collection: number } } - /** - * An `item` was issued. - **/ - | { name: 'Issued'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` was transferred. - **/ - | { name: 'Transferred'; data: { collection: number; item: number; from: AccountId32; to: AccountId32 } } - /** - * An `item` was destroyed. - **/ - | { name: 'Burned'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` became non-transferable. - **/ - | { name: 'ItemTransferLocked'; data: { collection: number; item: number } } - /** - * An `item` became transferable. - **/ - | { name: 'ItemTransferUnlocked'; data: { collection: number; item: number } } - /** - * `item` metadata or attributes were locked. - **/ - | { - name: 'ItemPropertiesLocked'; - data: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * Some `collection` was locked. - **/ - | { name: 'CollectionLocked'; data: { collection: number } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { collection: number; newOwner: AccountId32 } } - /** - * The management team changed. - **/ - | { - name: 'TeamChanged'; - data: { - collection: number; - issuer?: AccountId32 | undefined; - admin?: AccountId32 | undefined; - freezer?: AccountId32 | undefined; - }; - } - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - | { - name: 'TransferApproved'; - data: { - collection: number; - item: number; - owner: AccountId32; - delegate: AccountId32; - deadline?: number | undefined; - }; - } - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * All approvals of an item got cancelled. - **/ - | { name: 'AllApprovalsCancelled'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * A `collection` has had its config changed by the `Force` origin. - **/ - | { name: 'CollectionConfigChanged'; data: { collection: number } } - /** - * New metadata has been set for a `collection`. - **/ - | { name: 'CollectionMetadataSet'; data: { collection: number; data: Bytes } } - /** - * Metadata has been cleared for a `collection`. - **/ - | { name: 'CollectionMetadataCleared'; data: { collection: number } } - /** - * New metadata has been set for an item. - **/ - | { name: 'ItemMetadataSet'; data: { collection: number; item: number; data: Bytes } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'ItemMetadataCleared'; data: { collection: number; item: number } } - /** - * The deposit for a set of `item`s within a `collection` has been updated. - **/ - | { name: 'Redeposited'; data: { collection: number; successfulItems: Array } } - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - | { - name: 'AttributeSet'; - data: { - collection: number; - maybeItem?: number | undefined; - key: Bytes; - value: Bytes; - namespace: PalletNftsAttributeNamespace; - }; - } - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - | { - name: 'AttributeCleared'; - data: { collection: number; maybeItem?: number | undefined; key: Bytes; namespace: PalletNftsAttributeNamespace }; - } - /** - * A new approval to modify item attributes was added. - **/ - | { name: 'ItemAttributesApprovalAdded'; data: { collection: number; item: number; delegate: AccountId32 } } - /** - * A new approval to modify item attributes was removed. - **/ - | { name: 'ItemAttributesApprovalRemoved'; data: { collection: number; item: number; delegate: AccountId32 } } - /** - * Ownership acceptance has changed for an account. - **/ - | { name: 'OwnershipAcceptanceChanged'; data: { who: AccountId32; maybeCollection?: number | undefined } } - /** - * Max supply has been set for a collection. - **/ - | { name: 'CollectionMaxSupplySet'; data: { collection: number; maxSupply: number } } - /** - * Mint settings for a collection had changed. - **/ - | { name: 'CollectionMintSettingsUpdated'; data: { collection: number } } - /** - * Event gets emitted when the `NextCollectionId` gets incremented. - **/ - | { name: 'NextCollectionIdIncremented'; data: { nextId?: number | undefined } } - /** - * The price was set for the item. - **/ - | { - name: 'ItemPriceSet'; - data: { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined }; - } - /** - * The price for the item was removed. - **/ - | { name: 'ItemPriceRemoved'; data: { collection: number; item: number } } - /** - * An item was bought. - **/ - | { - name: 'ItemBought'; - data: { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 }; - } - /** - * A tip was sent. - **/ - | { - name: 'TipSent'; - data: { collection: number; item: number; sender: AccountId32; receiver: AccountId32; amount: bigint }; - } - /** - * An `item` swap intent was created. - **/ - | { - name: 'SwapCreated'; - data: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * The swap was cancelled. - **/ - | { - name: 'SwapCancelled'; - data: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * The swap has been claimed. - **/ - | { - name: 'SwapClaimed'; - data: { - sentCollection: number; - sentItem: number; - sentItemOwner: AccountId32; - receivedCollection: number; - receivedItem: number; - receivedItemOwner: AccountId32; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * New attributes have been set for an `item` of the `collection`. - **/ - | { - name: 'PreSignedAttributesSet'; - data: { collection: number; item: number; namespace: PalletNftsAttributeNamespace }; - } - /** - * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` - * within that `collection`. - **/ - | { - name: 'PalletAttributeSet'; - data: { collection: number; item?: number | undefined; attribute: PalletNftsPalletAttributes; value: Bytes }; - }; - -export type PalletNftsAttributeNamespace = - | { type: 'Pallet' } - | { type: 'CollectionOwner' } - | { type: 'ItemOwner' } - | { type: 'Account'; value: AccountId32 }; - -export type PalletNftsPriceWithDirection = { amount: bigint; direction: PalletNftsPriceDirection }; - -export type PalletNftsPriceDirection = 'Send' | 'Receive'; - -export type PalletNftsPalletAttributes = { type: 'UsedToClaim'; value: number } | { type: 'TransferDisabled' }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsEvent002 = - /** - * Some asset class was created. - **/ - | { - name: 'Created'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; creator: AccountId32; owner: AccountId32 }; - } - /** - * Some assets were issued. - **/ - | { name: 'Issued'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; amount: bigint } } - /** - * Some assets were transferred. - **/ - | { - name: 'Transferred'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; from: AccountId32; to: AccountId32; amount: bigint }; - } - /** - * Some assets were destroyed. - **/ - | { name: 'Burned'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; balance: bigint } } - /** - * The management team changed. - **/ - | { - name: 'TeamChanged'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - }; - } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } } - /** - * Some account `who` was frozen. - **/ - | { name: 'Frozen'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some account `who` was thawed. - **/ - | { name: 'Thawed'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some asset `asset_id` was frozen. - **/ - | { name: 'AssetFrozen'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Some asset `asset_id` was thawed. - **/ - | { name: 'AssetThawed'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Accounts were destroyed for given asset. - **/ - | { - name: 'AccountsDestroyed'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; accountsDestroyed: number; accountsRemaining: number }; - } - /** - * Approvals were destroyed for given asset. - **/ - | { - name: 'ApprovalsDestroyed'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; approvalsDestroyed: number; approvalsRemaining: number }; - } - /** - * An asset class is in the process of being destroyed. - **/ - | { name: 'DestructionStarted'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * An asset class was destroyed. - **/ - | { name: 'Destroyed'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Some asset class was force-created. - **/ - | { name: 'ForceCreated'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } } - /** - * New metadata has been set for an asset. - **/ - | { - name: 'MetadataSet'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - }; - } - /** - * Metadata has been cleared for an asset. - **/ - | { name: 'MetadataCleared'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - | { - name: 'ApprovedTransfer'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - source: AccountId32; - delegate: AccountId32; - amount: bigint; - }; - } - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - | { - name: 'ApprovalCancelled'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; delegate: AccountId32 }; - } - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - | { - name: 'TransferredApproved'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - owner: AccountId32; - delegate: AccountId32; - destination: AccountId32; - amount: bigint; - }; - } - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - | { name: 'AssetStatusChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - | { name: 'AssetMinBalanceChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation; newMinBalance: bigint } } - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - | { - name: 'Touched'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; depositor: AccountId32 }; - } - /** - * Some account `who` was blocked. - **/ - | { name: 'Blocked'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - | { name: 'Deposited'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint } } - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - | { name: 'Withdrawn'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletNftFractionalizationEvent = - /** - * An NFT was successfully fractionalized. - **/ - | { - name: 'NftFractionalized'; - data: { nftCollection: number; nft: number; fractions: bigint; asset: number; beneficiary: AccountId32 }; - } - /** - * An NFT was successfully returned back. - **/ - | { name: 'NftUnified'; data: { nftCollection: number; nft: number; asset: number; beneficiary: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionEvent = - /** - * A successful call of the `CreatePool` extrinsic will create this event. - **/ - | { - name: 'PoolCreated'; - data: { - /** - * The account that created the pool. - **/ - creator: AccountId32; - - /** - * The pool id associated with the pool. Note that the order of the assets may not be - * the same as the order specified in the create pool extrinsic. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account ID of the pool. - **/ - poolAccount: AccountId32; - - /** - * The id of the liquidity tokens that will be minted when assets are added to this - * pool. - **/ - lpToken: number; - }; - } - /** - * A successful call of the `AddLiquidity` extrinsic will create this event. - **/ - | { - name: 'LiquidityAdded'; - data: { - /** - * The account that the liquidity was taken from. - **/ - who: AccountId32; - - /** - * The account that the liquidity tokens were minted to. - **/ - mintTo: AccountId32; - - /** - * The pool id of the pool that the liquidity was added to. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was added to the pool. - **/ - amount1Provided: bigint; - - /** - * The amount of the second asset that was added to the pool. - **/ - amount2Provided: bigint; - - /** - * The id of the lp token that was minted. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were minted of that id. - **/ - lpTokenMinted: bigint; - }; - } - /** - * A successful call of the `RemoveLiquidity` extrinsic will create this event. - **/ - | { - name: 'LiquidityRemoved'; - data: { - /** - * The account that the liquidity tokens were burned from. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - withdrawTo: AccountId32; - - /** - * The pool id that the liquidity was removed from. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was removed from the pool. - **/ - amount1: bigint; - - /** - * The amount of the second asset that was removed from the pool. - **/ - amount2: bigint; - - /** - * The id of the lp token that was burned. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were burned of that id. - **/ - lpTokenBurned: bigint; - - /** - * Liquidity withdrawal fee (%). - **/ - withdrawalFee: Permill; - }; - } - /** - * Assets have been converted from one to another. Both `SwapExactTokenForToken` - * and `SwapTokenForExactToken` will generate this event. - **/ - | { - name: 'SwapExecuted'; - data: { - /** - * Which account was the instigator of the swap. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - sendTo: AccountId32; - - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - }; - } - /** - * Assets have been converted from one to another. - **/ - | { - name: 'SwapCreditExecuted'; - data: { - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - }; - } - /** - * Pool has been touched in order to fulfill operational requirements. - **/ - | { - name: 'Touched'; - data: { - /** - * The ID of the pool. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account initiating the touch. - **/ - who: AccountId32; - }; - }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsFreezerEvent = - | { name: 'Frozen'; data: { who: AccountId32; assetId: number; amount: bigint } } - | { name: 'Thawed'; data: { who: AccountId32; assetId: number; amount: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsFreezerEvent002 = - | { name: 'Frozen'; data: { who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint } } - | { name: 'Thawed'; data: { who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionOpsEvent = - /** - * Indicates that a pool has been migrated to the new account ID. - **/ - { - name: 'MigratedToNewAccount'; - data: { - /** - * Pool's ID. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * Pool's prior account ID. - **/ - priorAccount: AccountId32; - - /** - * Pool's new account ID. - **/ - newAccount: AccountId32; - }; - }; - -export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string }; - -export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type FrameSystemCall = - /** - * Make some on-chain remark. - * - * Can be executed by every `origin`. - **/ - | { name: 'Remark'; params: { remark: Bytes } } - /** - * Set the number of pages in the WebAssembly environment's heap. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * Set the new runtime code. - **/ - | { name: 'SetCode'; params: { code: Bytes } } - /** - * Set the new runtime code without doing any checks of the given `code`. - * - * Note that runtime upgrades will not run if this is called with a not-increasing spec - * version! - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: Bytes } } - /** - * Set some items of storage. - **/ - | { name: 'SetStorage'; params: { items: Array<[Bytes, Bytes]> } } - /** - * Kill some items from storage. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. - **/ - | { name: 'KillPrefix'; params: { prefix: Bytes; subkeys: number } } - /** - * Make some on-chain remark and emit event. - **/ - | { name: 'RemarkWithEvent'; params: { remark: Bytes } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * WARNING: This authorizes an upgrade that will take place without any safety checks, for - * example that the spec name remains the same and that the version number increases. Not - * recommended for normal use. Use `authorize_upgrade` instead. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Depending on the runtime's `OnSetCode` configuration, this function may directly apply - * the new `code` in the same block or attempt to schedule the upgrade. - * - * All origins are allowed. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: Bytes } }; - -export type FrameSystemCallLike = - /** - * Make some on-chain remark. - * - * Can be executed by every `origin`. - **/ - | { name: 'Remark'; params: { remark: BytesLike } } - /** - * Set the number of pages in the WebAssembly environment's heap. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * Set the new runtime code. - **/ - | { name: 'SetCode'; params: { code: BytesLike } } - /** - * Set the new runtime code without doing any checks of the given `code`. - * - * Note that runtime upgrades will not run if this is called with a not-increasing spec - * version! - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: BytesLike } } - /** - * Set some items of storage. - **/ - | { name: 'SetStorage'; params: { items: Array<[BytesLike, BytesLike]> } } - /** - * Kill some items from storage. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. - **/ - | { name: 'KillPrefix'; params: { prefix: BytesLike; subkeys: number } } - /** - * Make some on-chain remark and emit event. - **/ - | { name: 'RemarkWithEvent'; params: { remark: BytesLike } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * WARNING: This authorizes an upgrade that will take place without any safety checks, for - * example that the spec name remains the same and that the version number increases. Not - * recommended for normal use. Use `authorize_upgrade` instead. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Depending on the runtime's `OnSetCode` configuration, this function may directly apply - * the new `code` in the same block or attempt to schedule the upgrade. - * - * All origins are allowed. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type FrameSystemLimitsBlockWeights = { - baseBlock: SpWeightsWeightV2Weight; - maxBlock: SpWeightsWeightV2Weight; - perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; -}; - -export type FrameSupportDispatchPerDispatchClassWeightsPerClass = { - normal: FrameSystemLimitsWeightsPerClass; - operational: FrameSystemLimitsWeightsPerClass; - mandatory: FrameSystemLimitsWeightsPerClass; -}; - -export type FrameSystemLimitsWeightsPerClass = { - baseExtrinsic: SpWeightsWeightV2Weight; - maxExtrinsic?: SpWeightsWeightV2Weight | undefined; - maxTotal?: SpWeightsWeightV2Weight | undefined; - reserved?: SpWeightsWeightV2Weight | undefined; -}; - -export type FrameSystemLimitsBlockLength = { max: FrameSupportDispatchPerDispatchClassU32 }; - -export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number }; - -export type SpWeightsRuntimeDbWeight = { read: bigint; write: bigint }; - -/** - * Error for the System pallet - **/ -export type FrameSystemError = - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - | 'InvalidSpecName' - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - | 'SpecVersionNeedsToIncrease' - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - | 'FailedToExtractRuntimeVersion' - /** - * Suicide called when the account has non-default composite data. - **/ - | 'NonDefaultComposite' - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - | 'NonZeroRefCount' - /** - * The origin filter prevent the call to be dispatched. - **/ - | 'CallFiltered' - /** - * A multi-block migration is ongoing and prevents the current code from being replaced. - **/ - | 'MultiBlockMigrationsOngoing' - /** - * No upgrade authorized. - **/ - | 'NothingAuthorized' - /** - * The submitted code is not authorized. - **/ - | 'Unauthorized'; - -export type CumulusPalletParachainSystemUnincludedSegmentAncestor = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - paraHeadHash?: H256 | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = { - umpMsgCount: number; - umpTotalBytes: number; - hrmpOutgoing: Array< - [PolkadotParachainPrimitivesPrimitivesId, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate] - >; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number }; - -export type PolkadotPrimitivesV7UpgradeGoAhead = 'Abort' | 'GoAhead'; - -export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - hrmpWatermark?: number | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined; -}; - -export type PolkadotPrimitivesV7PersistedValidationData = { - parentHead: PolkadotParachainPrimitivesPrimitivesHeadData; - relayParentNumber: number; - relayParentStorageRoot: H256; - maxPovSize: number; -}; - -export type PolkadotParachainPrimitivesPrimitivesHeadData = Bytes; - -export type PolkadotPrimitivesV7UpgradeRestriction = 'Present'; - -export type SpTrieStorageProof = { trieNodes: Array }; - -export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = { - dmqMqcHead: H256; - relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; - ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>; - egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>; -}; - -export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = { - remainingCount: number; - remainingSize: number; -}; - -export type PolkadotPrimitivesV7AbridgedHrmpChannel = { - maxCapacity: number; - maxTotalSize: number; - maxMessageSize: number; - msgCount: number; - totalSize: number; - mqcHead?: H256 | undefined; -}; - -export type PolkadotPrimitivesV7AbridgedHostConfiguration = { - maxCodeSize: number; - maxHeadDataSize: number; - maxUpwardQueueCount: number; - maxUpwardQueueSize: number; - maxUpwardMessageSize: number; - maxUpwardMessageNumPerCandidate: number; - hrmpMaxMessageNumPerCandidate: number; - validationUpgradeCooldown: number; - validationUpgradeDelay: number; - asyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams; -}; - -export type PolkadotPrimitivesV7AsyncBackingAsyncBackingParams = { - maxCandidateDepth: number; - allowedAncestryLen: number; -}; - -export type CumulusPrimitivesParachainInherentMessageQueueChain = H256; - -export type PolkadotCorePrimitivesOutboundHrmpMessage = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - data: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletParachainSystemCall = - /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - | { name: 'SudoSendUpwardMessage'; params: { message: Bytes } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: Bytes } }; - -export type CumulusPalletParachainSystemCallLike = - /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type CumulusPrimitivesParachainInherentParachainInherentData = { - validationData: PolkadotPrimitivesV7PersistedValidationData; - relayChainState: SpTrieStorageProof; - downwardMessages: Array; - horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array]>; -}; - -export type PolkadotCorePrimitivesInboundDownwardMessage = { sentAt: number; msg: Bytes }; - -export type PolkadotCorePrimitivesInboundHrmpMessage = { sentAt: number; data: Bytes }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletParachainSystemError = - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - | 'OverlappingUpgrades' - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - | 'ProhibitedByPolkadot' - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - | 'TooBig' - /** - * The inherent which supplies the validation data did not run this block. - **/ - | 'ValidationDataNotAvailable' - /** - * The inherent which supplies the host configuration did not run this block. - **/ - | 'HostConfigurationNotAvailable' - /** - * No validation function upgrade is currently scheduled. - **/ - | 'NotScheduled' - /** - * No code upgrade has been authorized. - **/ - | 'NothingAuthorized' - /** - * The given code upgrade has not been authorized. - **/ - | 'Unauthorized'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletTimestampCall = - /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * [`Config::MinimumPeriod`]. - * - * The dispatch origin for this call must be _None_. - * - * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware - * that changing the complexity of this call could result exhausting the resources in a - * block to execute any other calls. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. - **/ - { name: 'Set'; params: { now: bigint } }; - -export type PalletTimestampCallLike = - /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * [`Config::MinimumPeriod`]. - * - * The dispatch origin for this call must be _None_. - * - * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware - * that changing the complexity of this call could result exhausting the resources in a - * block to execute any other calls. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. - **/ - { name: 'Set'; params: { now: bigint } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type StagingParachainInfoCall = null; - -export type StagingParachainInfoCallLike = null; - -export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons }; - -export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All'; - -export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint }; - -export type FrameSupportTokensMiscIdAmount = { id: AssetHubRococoRuntimeRuntimeHoldReason; amount: bigint }; - -export type AssetHubRococoRuntimeRuntimeHoldReason = { - type: 'NftFractionalization'; - value: PalletNftFractionalizationHoldReason; -}; - -export type PalletNftFractionalizationHoldReason = 'Fractionalized'; - -export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletBalancesCall = - /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddress; value: bigint } } - /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddress; dest: MultiAddress; value: bigint } } - /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddress; value: bigint } } - /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - **/ - | { name: 'TransferAll'; params: { dest: MultiAddress; keepAlive: boolean } } - /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddress; amount: bigint } } - /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibility of churn). - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddress; newFree: bigint } } - /** - * Adjust the total issuance in a saturating way. - * - * Can only be called by root and always needs a positive `delta`. - * - * # Example - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } } - /** - * Burn the specified liquid free balance from the origin account. - * - * If the origin's account ends up below the existential deposit as a result - * of the burn and `keep_alive` is false, the account will be reaped. - * - * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, - * this `burn` operation will reduce total issuance by the amount _burned_. - **/ - | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } }; - -export type PalletBalancesCallLike = - /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddressLike; value: bigint } } - /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint } } - /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddressLike; value: bigint } } - /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - **/ - | { name: 'TransferAll'; params: { dest: MultiAddressLike; keepAlive: boolean } } - /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddressLike; amount: bigint } } - /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibility of churn). - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddressLike; newFree: bigint } } - /** - * Adjust the total issuance in a saturating way. - * - * Can only be called by root and always needs a positive `delta`. - * - * # Example - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } } - /** - * Burn the specified liquid free balance from the origin account. - * - * If the origin's account ends up below the existential deposit as a result - * of the burn and `keep_alive` is false, the account will be reaped. - * - * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, - * this `burn` operation will reduce total issuance by the amount _burned_. - **/ - | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } }; - -export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletBalancesError = - /** - * Vesting balance too high to send value. - **/ - | 'VestingBalance' - /** - * Account liquidity restrictions prevent withdrawal. - **/ - | 'LiquidityRestrictions' - /** - * Balance too low to send value. - **/ - | 'InsufficientBalance' - /** - * Value too low to create account due to existential deposit. - **/ - | 'ExistentialDeposit' - /** - * Transfer/payment would kill account. - **/ - | 'Expendability' - /** - * A vesting schedule already exists for this account. - **/ - | 'ExistingVestingSchedule' - /** - * Beneficiary account must pre-exist. - **/ - | 'DeadAccount' - /** - * Number of named reserves exceed `MaxReserves`. - **/ - | 'TooManyReserves' - /** - * Number of holds exceed `VariantCountOf`. - **/ - | 'TooManyHolds' - /** - * Number of freezes exceed `MaxFreezes`. - **/ - | 'TooManyFreezes' - /** - * The issuance cannot be modified since it is already deactivated. - **/ - | 'IssuanceDeactivated' - /** - * The delta cannot be zero. - **/ - | 'DeltaZero'; - -export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2'; - -export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletCollatorSelectionCall = - /** - * Set the list of invulnerable (fixed) collators. These collators must do some - * preparation, namely to have registered session keys. - * - * The call will remove any accounts that have not registered keys from the set. That is, - * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as - * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. - * - * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It - * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A - * `batch_all` can also be used to enforce atomicity. If any candidates are included in - * `new`, they should be removed with `remove_invulnerable_candidate` after execution. - * - * Must be called by the `UpdateOrigin`. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * Set the ideal number of non-invulnerable collators. If lowering this number, then the - * number of running collators could be higher than this figure. Aside from that edge case, - * there should be no other way to have more candidates than the desired number. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * Set the candidacy bond amount. - * - * If the candidacy bond is increased by this call, all current candidates which have a - * deposit lower than the new bond will be kicked from the list and get their deposits - * back. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * Register this account as a collator candidate. The account must (a) already have - * registered session keys and (b) be able to reserve the `CandidacyBond`. - * - * This call is not available to `Invulnerable` collators. - **/ - | { name: 'RegisterAsCandidate' } - /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The `CandidacyBond` will be unreserved immediately. - * - * This call will fail if the total number of candidates would drop below - * `MinEligibleCollators`. - **/ - | { name: 'LeaveIntent' } - /** - * Add a new account `who` to the list of `Invulnerables` collators. `who` must have - * registered session keys. If `who` is a candidate, they will be removed. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32 } } - /** - * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must - * be sorted. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32 } } - /** - * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. - * - * Setting a `new_deposit` that is lower than the current deposit while `origin` is - * occupying a top-`DesiredCandidates` slot is not allowed. - * - * This call will fail if `origin` is not a collator candidate, the updated bond is lower - * than the minimum candidacy bond, and/or the amount cannot be reserved. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * The caller `origin` replaces a candidate `target` in the collator candidate list by - * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than - * the existing bond of the target it is trying to replace. - * - * This call will fail if the caller is already a collator candidate or invulnerable, the - * caller does not have registered session keys, the target is not a collator candidate, - * and/or the `deposit` amount cannot be reserved. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32 } }; - -export type PalletCollatorSelectionCallLike = - /** - * Set the list of invulnerable (fixed) collators. These collators must do some - * preparation, namely to have registered session keys. - * - * The call will remove any accounts that have not registered keys from the set. That is, - * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as - * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. - * - * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It - * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A - * `batch_all` can also be used to enforce atomicity. If any candidates are included in - * `new`, they should be removed with `remove_invulnerable_candidate` after execution. - * - * Must be called by the `UpdateOrigin`. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * Set the ideal number of non-invulnerable collators. If lowering this number, then the - * number of running collators could be higher than this figure. Aside from that edge case, - * there should be no other way to have more candidates than the desired number. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * Set the candidacy bond amount. - * - * If the candidacy bond is increased by this call, all current candidates which have a - * deposit lower than the new bond will be kicked from the list and get their deposits - * back. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * Register this account as a collator candidate. The account must (a) already have - * registered session keys and (b) be able to reserve the `CandidacyBond`. - * - * This call is not available to `Invulnerable` collators. - **/ - | { name: 'RegisterAsCandidate' } - /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The `CandidacyBond` will be unreserved immediately. - * - * This call will fail if the total number of candidates would drop below - * `MinEligibleCollators`. - **/ - | { name: 'LeaveIntent' } - /** - * Add a new account `who` to the list of `Invulnerables` collators. `who` must have - * registered session keys. If `who` is a candidate, they will be removed. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32Like } } - /** - * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must - * be sorted. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32Like } } - /** - * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. - * - * Setting a `new_deposit` that is lower than the current deposit while `origin` is - * occupying a top-`DesiredCandidates` slot is not allowed. - * - * This call will fail if `origin` is not a collator candidate, the updated bond is lower - * than the minimum candidacy bond, and/or the amount cannot be reserved. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * The caller `origin` replaces a candidate `target` in the collator candidate list by - * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than - * the existing bond of the target it is trying to replace. - * - * This call will fail if the caller is already a collator candidate or invulnerable, the - * caller does not have registered session keys, the target is not a collator candidate, - * and/or the `deposit` amount cannot be reserved. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32Like } }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletCollatorSelectionError = - /** - * The pallet has too many candidates. - **/ - | 'TooManyCandidates' - /** - * Leaving would result in too few candidates. - **/ - | 'TooFewEligibleCollators' - /** - * Account is already a candidate. - **/ - | 'AlreadyCandidate' - /** - * Account is not a candidate. - **/ - | 'NotCandidate' - /** - * There are too many Invulnerables. - **/ - | 'TooManyInvulnerables' - /** - * Account is already an Invulnerable. - **/ - | 'AlreadyInvulnerable' - /** - * Account is not an Invulnerable. - **/ - | 'NotInvulnerable' - /** - * Account has no associated validator ID. - **/ - | 'NoAssociatedValidatorId' - /** - * Validator ID is not yet registered. - **/ - | 'ValidatorNotRegistered' - /** - * Could not insert in the candidate list. - **/ - | 'InsertToCandidateListFailed' - /** - * Could not remove from the candidate list. - **/ - | 'RemoveFromCandidateListFailed' - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - | 'DepositTooLow' - /** - * Could not update the candidate list. - **/ - | 'UpdateCandidateListFailed' - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - | 'InsufficientBond' - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - | 'TargetIsNotCandidate' - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - | 'IdenticalDeposit' - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - | 'InvalidUnreserve'; - -export type AssetHubRococoRuntimeSessionKeys = { aura: SpConsensusAuraSr25519AppSr25519Public }; - -export type SpConsensusAuraSr25519AppSr25519Public = FixedBytes<32>; - -export type SpCoreCryptoKeyTypeId = FixedBytes<4>; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletSessionCall = - /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. - **/ - | { name: 'SetKeys'; params: { keys: AssetHubRococoRuntimeSessionKeys; proof: Bytes } } - /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. - **/ - | { name: 'PurgeKeys' }; - -export type PalletSessionCallLike = - /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. - **/ - | { name: 'SetKeys'; params: { keys: AssetHubRococoRuntimeSessionKeys; proof: BytesLike } } - /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. - **/ - | { name: 'PurgeKeys' }; - -/** - * Error for the session pallet. - **/ -export type PalletSessionError = - /** - * Invalid ownership proof. - **/ - | 'InvalidProof' - /** - * No associated validator ID for account. - **/ - | 'NoAssociatedValidatorId' - /** - * Registered duplicate key. - **/ - | 'DuplicatedKey' - /** - * No keys are associated with this account. - **/ - | 'NoKeys' - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - | 'NoAccount'; - -export type SpConsensusSlotsSlot = bigint; - -export type CumulusPalletXcmpQueueOutboundChannelDetails = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - state: CumulusPalletXcmpQueueOutboundState; - signalsExist: boolean; - firstIndex: number; - lastIndex: number; -}; - -export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended'; - -export type CumulusPalletXcmpQueueQueueConfigData = { - suspendThreshold: number; - dropThreshold: number; - resumeThreshold: number; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmpQueueCall = - /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'SuspendXcmExecution' } - /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'ResumeXcmExecution' } - /** - * Overwrites the number of pages which must be in the queue for the other side to be - * told to suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which must be in the queue after which we drop any - * further messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which the queue must be reduced to before it signals - * that message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -export type CumulusPalletXcmpQueueCallLike = - /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'SuspendXcmExecution' } - /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'ResumeXcmExecution' } - /** - * Overwrites the number of pages which must be in the queue for the other side to be - * told to suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which must be in the queue after which we drop any - * further messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which the queue must be reduced to before it signals - * that message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletXcmpQueueError = - /** - * Setting the queue config failed since one of its values was invalid. - **/ - | 'BadQueueConfig' - /** - * The execution is already suspended. - **/ - | 'AlreadySuspended' - /** - * The execution is already resumed. - **/ - | 'AlreadyResumed' - /** - * There are too many active outbound channels. - **/ - | 'TooManyActiveOutboundChannels' - /** - * The message is too big. - **/ - | 'TooBig'; - -export type PalletXcmQueryStatus = - | { - type: 'Pending'; - value: { - responder: XcmVersionedLocation; - maybeMatchQuerier?: XcmVersionedLocation | undefined; - maybeNotify?: [number, number] | undefined; - timeout: number; - }; - } - | { type: 'VersionNotifier'; value: { origin: XcmVersionedLocation; isActive: boolean } } - | { type: 'Ready'; value: { response: XcmVersionedResponse; at: number } }; - -export type XcmVersionedResponse = - | { type: 'V2'; value: XcmV2Response } - | { type: 'V3'; value: XcmV3Response } - | { type: 'V4'; value: StagingXcmV4Response }; - -export type XcmV2Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV2MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV2TraitsError] | undefined } - | { type: 'Version'; value: number }; - -export type XcmV2TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'MultiLocationFull' } - | { type: 'MultiLocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: bigint } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' }; - -export type XcmV3Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type XcmV3PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type PalletXcmVersionMigrationStage = - | { type: 'MigrateSupportedVersion' } - | { type: 'MigrateVersionNotifiers' } - | { type: 'NotifyCurrentTargets'; value?: Bytes | undefined } - | { type: 'MigrateAndNotifyOldTargets' }; - -export type XcmVersionedAssetId = - | { type: 'V3'; value: XcmV3MultiassetAssetId } - | { type: 'V4'; value: StagingXcmV4AssetAssetId }; - -export type PalletXcmRemoteLockedFungibleRecord = { - amount: bigint; - owner: XcmVersionedLocation; - locker: XcmVersionedLocation; - consumers: Array<[[], bigint]>; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletXcmCall = - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * Teleport some assets from the local chain to some destination chain. - * - * **This function is deprecated: Use `limited_teleport_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than - * the maximum amount of weight that the message could take to be executed, then no - * execution attempt will be made. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve, or through teleports. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for - * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the - * operation will fail and the sent assets may be at risk. - * - * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable - * to `dest`, no limitations imposed on `fees`. - * - for local reserve: transfer assets to sovereign account of destination chain and - * forward a notification XCM to `dest` to mint and deposit reserve-based assets to - * `beneficiary`. - * - for destination reserve: burn local assets and forward a notification to `dest` chain - * to withdraw the reserve assets from this chain's sovereign account and deposit them - * to `beneficiary`. - * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves - * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint - * and deposit reserve-based assets to `beneficiary`. - * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport - * assets and deposit them to `beneficiary`. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, - * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send - * from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Claims assets trapped on this pallet because of leftover assets during XCM execution. - * - * - `origin`: Anyone can call this extrinsic. - * - `assets`: The exact assets that were trapped. Use the version to specify what version - * was the latest when they were trapped. - * - `beneficiary`: The location/account where the claimed assets will be deposited. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * Transfer assets from the local chain to the destination chain using explicit transfer - * types for assets and fees. - * - * `assets` must have same reserve location or may be teleportable to `dest`. Caller must - * provide the `assets_transfer_type` to be used for `assets`: - * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `TransferType::DestinationReserve`: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve` - * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another - * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically - * the remote `reserve` is Asset Hub. - * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to - * mint/teleport assets and deposit them to `beneficiary`. - * - * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to - * buy execution using transferred `assets` identified by `remote_fees_id`. - * Make sure enough of the specified `remote_fees_id` asset is included in the given list - * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * `remote_fees_id` may use different transfer type than rest of `assets` and can be - * specified through `fees_transfer_type`. - * - * The caller needs to specify what should happen to the transferred assets once they reach - * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which - * contains the instructions to execute on `dest` as a final step. - * This is usually as simple as: - * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`, - * but could be something more exotic like sending the `assets` even further. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from - * parachain across a bridge to another ecosystem destination. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`. - * - `remote_fees_id`: One of the included `assets` to be used to pay fees. - * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets. - * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the - * transfer, which also determines what happens to the assets on the destination chain. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type PalletXcmCallLike = - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * Teleport some assets from the local chain to some destination chain. - * - * **This function is deprecated: Use `limited_teleport_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than - * the maximum amount of weight that the message could take to be executed, then no - * execution attempt will be made. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve, or through teleports. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for - * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the - * operation will fail and the sent assets may be at risk. - * - * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable - * to `dest`, no limitations imposed on `fees`. - * - for local reserve: transfer assets to sovereign account of destination chain and - * forward a notification XCM to `dest` to mint and deposit reserve-based assets to - * `beneficiary`. - * - for destination reserve: burn local assets and forward a notification to `dest` chain - * to withdraw the reserve assets from this chain's sovereign account and deposit them - * to `beneficiary`. - * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves - * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint - * and deposit reserve-based assets to `beneficiary`. - * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport - * assets and deposit them to `beneficiary`. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, - * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send - * from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Claims assets trapped on this pallet because of leftover assets during XCM execution. - * - * - `origin`: Anyone can call this extrinsic. - * - `assets`: The exact assets that were trapped. Use the version to specify what version - * was the latest when they were trapped. - * - `beneficiary`: The location/account where the claimed assets will be deposited. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * Transfer assets from the local chain to the destination chain using explicit transfer - * types for assets and fees. - * - * `assets` must have same reserve location or may be teleportable to `dest`. Caller must - * provide the `assets_transfer_type` to be used for `assets`: - * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `TransferType::DestinationReserve`: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve` - * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another - * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically - * the remote `reserve` is Asset Hub. - * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to - * mint/teleport assets and deposit them to `beneficiary`. - * - * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to - * buy execution using transferred `assets` identified by `remote_fees_id`. - * Make sure enough of the specified `remote_fees_id` asset is included in the given list - * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * `remote_fees_id` may use different transfer type than rest of `assets` and can be - * specified through `fees_transfer_type`. - * - * The caller needs to specify what should happen to the transferred assets once they reach - * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which - * contains the instructions to execute on `dest` as a final step. - * This is usually as simple as: - * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`, - * but could be something more exotic like sending the `assets` even further. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from - * parachain across a bridge to another ecosystem destination. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`. - * - `remote_fees_id`: One of the included `assets` to be used to pay fees. - * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets. - * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the - * transfer, which also determines what happens to the assets on the destination chain. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type XcmVersionedXcm = - | { type: 'V2'; value: XcmV2Xcm } - | { type: 'V3'; value: XcmV3Xcm } - | { type: 'V4'; value: StagingXcmV4Xcm }; - -export type XcmV2Xcm = Array; - -export type XcmV2Instruction = - | { type: 'WithdrawAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'QueryResponse'; value: { queryId: bigint; response: XcmV2Response; maxWeight: bigint } } - | { - type: 'TransferAsset'; - value: { assets: XcmV2MultiassetMultiAssets; beneficiary: XcmV2MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV2MultiassetMultiAssets; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { type: 'Transact'; value: { originType: XcmV2OriginKind; requireWeightAtMost: bigint; call: XcmDoubleEncoded } } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV2MultilocationJunctions } - | { - type: 'ReportError'; - value: { queryId: bigint; dest: XcmV2MultilocationMultiLocation; maxResponseWeight: bigint }; - } - | { - type: 'DepositAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - beneficiary: XcmV2MultilocationMultiLocation; - }; - } - | { - type: 'DepositReserveAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - dest: XcmV2MultilocationMultiLocation; - xcm: XcmV2Xcm; - }; - } - | { type: 'ExchangeAsset'; value: { give: XcmV2MultiassetMultiAssetFilter; receive: XcmV2MultiassetMultiAssets } } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: XcmV2MultiassetMultiAssetFilter; reserve: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV2MultiassetMultiAssetFilter; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'QueryHolding'; - value: { - queryId: bigint; - dest: XcmV2MultilocationMultiLocation; - assets: XcmV2MultiassetMultiAssetFilter; - maxResponseWeight: bigint; - }; - } - | { type: 'BuyExecution'; value: { fees: XcmV2MultiassetMultiAsset; weightLimit: XcmV2WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV2Xcm } - | { type: 'SetAppendix'; value: XcmV2Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: XcmV2MultiassetMultiAssets; ticket: XcmV2MultilocationMultiLocation } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } } - | { type: 'UnsubscribeVersion' }; - -export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; - -export type XcmV2MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV2MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset }; - -export type XcmV2MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetWildFungibility } }; - -export type XcmV2MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV2WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: bigint }; - -export type XcmV3Xcm = Array; - -export type XcmV3Instruction = - | { type: 'WithdrawAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV3MultiassetMultiAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: XcmV3Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV3MultilocationMultiLocation | undefined; - }; - } - | { - type: 'TransferAsset'; - value: { assets: XcmV3MultiassetMultiAssets; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssets; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV3Junctions } - | { type: 'ReportError'; value: XcmV3QueryResponseInfo } - | { - type: 'DepositAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'DepositReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: XcmV3MultiassetMultiAssetFilter; want: XcmV3MultiassetMultiAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { - assets: XcmV3MultiassetMultiAssetFilter; - reserve: StagingXcmV3MultilocationMultiLocation; - xcm: XcmV3Xcm; - }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { type: 'ReportHolding'; value: { responseInfo: XcmV3QueryResponseInfo; assets: XcmV3MultiassetMultiAssetFilter } } - | { type: 'BuyExecution'; value: { fees: XcmV3MultiassetMultiAsset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV3Xcm } - | { type: 'SetAppendix'; value: XcmV3Xcm } - | { type: 'ClearError' } - | { - type: 'ClaimAsset'; - value: { assets: XcmV3MultiassetMultiAssets; ticket: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV3MultilocationMultiLocation | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: XcmV3QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: XcmV3QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: XcmV3Junction } - | { type: 'ExportMessage'; value: { network: XcmV3JunctionNetworkId; destination: XcmV3Junctions; xcm: XcmV3Xcm } } - | { type: 'LockAsset'; value: { asset: XcmV3MultiassetMultiAsset; unlocker: StagingXcmV3MultilocationMultiLocation } } - | { type: 'UnlockAsset'; value: { asset: XcmV3MultiassetMultiAsset; target: StagingXcmV3MultilocationMultiLocation } } - | { - type: 'NoteUnlockable'; - value: { asset: XcmV3MultiassetMultiAsset; owner: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'RequestUnlock'; - value: { asset: XcmV3MultiassetMultiAsset; locker: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV3MultilocationMultiLocation } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV3MultilocationMultiLocation | undefined }; - }; - -export type XcmV3QueryResponseInfo = { - destination: StagingXcmV3MultilocationMultiLocation; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type XcmV3MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV3MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV3MultiassetWildMultiAsset }; - -export type XcmV3MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { type: 'AllOfCounted'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility; count: number } }; - -export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type StagingXcmExecutorAssetTransferTransferType = - | { type: 'Teleport' } - | { type: 'LocalReserve' } - | { type: 'DestinationReserve' } - | { type: 'RemoteReserve'; value: XcmVersionedLocation }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletXcmError = - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - | 'Unreachable' - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - | 'SendFailure' - /** - * The message execution fails the filter. - **/ - | 'Filtered' - /** - * The message's weight could not be determined. - **/ - | 'UnweighableMessage' - /** - * The destination `Location` provided cannot be inverted. - **/ - | 'DestinationNotInvertible' - /** - * The assets to be sent are empty. - **/ - | 'Empty' - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - | 'CannotReanchor' - /** - * Too many assets have been attempted for transfer. - **/ - | 'TooManyAssets' - /** - * Origin is invalid for sending. - **/ - | 'InvalidOrigin' - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - | 'BadVersion' - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - | 'BadLocation' - /** - * The referenced subscription could not be found. - **/ - | 'NoSubscription' - /** - * The location is invalid since it already has a subscription from us. - **/ - | 'AlreadySubscribed' - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - | 'CannotCheckOutTeleport' - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - | 'LowBalance' - /** - * The asset owner has too many locks on the asset. - **/ - | 'TooManyLocks' - /** - * The given account is not an identifiable sovereign account for any location. - **/ - | 'AccountNotSovereign' - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - | 'FeesNotMet' - /** - * A remote lock with the corresponding data could not be found. - **/ - | 'LockNotFound' - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - | 'InUse' - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - | 'InvalidAssetUnknownReserve' - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - | 'InvalidAssetUnsupportedReserve' - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - | 'TooManyReserves' - /** - * Local XCM execution incomplete. - **/ - | 'LocalExecutionIncomplete'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmCall = null; - -export type CumulusPalletXcmCallLike = null; - -export type PalletMessageQueueBookState = { - begin: number; - end: number; - count: number; - readyNeighbours?: PalletMessageQueueNeighbours | undefined; - messageCount: bigint; - size: bigint; -}; - -export type PalletMessageQueueNeighbours = { - prev: CumulusPrimitivesCoreAggregateMessageOrigin; - next: CumulusPrimitivesCoreAggregateMessageOrigin; -}; - -export type PalletMessageQueuePage = { - remaining: number; - remainingSize: number; - firstIndex: number; - first: number; - last: number; - heap: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMessageQueueCall = - /** - * Remove a page which has no more messages remaining to be processed or is stale. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * Execute an overweight message. - * - * Temporary processing errors will be propagated whereas permanent errors are treated - * as success condition. - * - * - `origin`: Must be `Signed`. - * - `message_origin`: The origin from which the message to be executed arrived. - * - `page`: The page in the queue in which the message to be executed is sitting. - * - `index`: The index into the queue of the message to be executed. - * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution - * of the message. - * - * Benchmark complexity considerations: O(index + weight_limit). - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -export type PalletMessageQueueCallLike = - /** - * Remove a page which has no more messages remaining to be processed or is stale. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * Execute an overweight message. - * - * Temporary processing errors will be propagated whereas permanent errors are treated - * as success condition. - * - * - `origin`: Must be `Signed`. - * - `message_origin`: The origin from which the message to be executed arrived. - * - `page`: The page in the queue in which the message to be executed is sitting. - * - `index`: The index into the queue of the message to be executed. - * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution - * of the message. - * - * Benchmark complexity considerations: O(index + weight_limit). - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMessageQueueError = - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - | 'NotReapable' - /** - * Page to be reaped does not exist. - **/ - | 'NoPage' - /** - * The referenced message could not be found. - **/ - | 'NoMessage' - /** - * The message was already processed and cannot be processed again. - **/ - | 'AlreadyProcessed' - /** - * The message is queued for future execution. - **/ - | 'Queued' - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - | 'InsufficientWeight' - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - | 'TemporarilyUnprocessable' - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - | 'QueuePaused' - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - | 'RecursiveDisallowed'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletUtilityCall = - /** - * Send a batch of dispatch calls. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * This will return `Ok` in all circumstances. To determine the success of the batch, an - * event is deposited. If a call failed and the batch was interrupted, then the - * `BatchInterrupted` event is deposited, along with the number of successful calls made - * and the error of the failed call. If all were successful, then the `BatchCompleted` - * event is deposited. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * Send a call through an indexed pseudonym of the sender. - * - * Filter from origin are passed along. The call will be dispatched with an origin which - * use the same filter as the origin of this call. - * - * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. - * because you expect `proxy` to have been used prior in the call stack and you do not want - * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` - * in the Multisig pallet instead. - * - * NOTE: Prior to version *12, this was called `as_limited_sub`. - * - * The dispatch origin for this call must be _Signed_. - **/ - | { name: 'AsDerivative'; params: { index: number; call: AssetHubRococoRuntimeRuntimeCall } } - /** - * Send a batch of dispatch calls and atomically execute them. - * The whole transaction will rollback and fail if any of the calls failed. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * Dispatches a function call with a provided origin. - * - * The dispatch origin for this call must be _Root_. - * - * ## Complexity - * - O(1). - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: AssetHubRococoRuntimeOriginCaller; call: AssetHubRococoRuntimeRuntimeCall }; - } - /** - * Send a batch of dispatch calls. - * Unlike `batch`, it allows errors and won't interrupt. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatch without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * Dispatch a function call with a specified weight. - * - * This function does not check the weight of the call, and instead allows the - * Root origin to specify the weight of the call. - * - * The dispatch origin for this call must be _Root_. - **/ - | { name: 'WithWeight'; params: { call: AssetHubRococoRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }; - -export type PalletUtilityCallLike = - /** - * Send a batch of dispatch calls. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * This will return `Ok` in all circumstances. To determine the success of the batch, an - * event is deposited. If a call failed and the batch was interrupted, then the - * `BatchInterrupted` event is deposited, along with the number of successful calls made - * and the error of the failed call. If all were successful, then the `BatchCompleted` - * event is deposited. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * Send a call through an indexed pseudonym of the sender. - * - * Filter from origin are passed along. The call will be dispatched with an origin which - * use the same filter as the origin of this call. - * - * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. - * because you expect `proxy` to have been used prior in the call stack and you do not want - * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` - * in the Multisig pallet instead. - * - * NOTE: Prior to version *12, this was called `as_limited_sub`. - * - * The dispatch origin for this call must be _Signed_. - **/ - | { name: 'AsDerivative'; params: { index: number; call: AssetHubRococoRuntimeRuntimeCallLike } } - /** - * Send a batch of dispatch calls and atomically execute them. - * The whole transaction will rollback and fail if any of the calls failed. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * Dispatches a function call with a provided origin. - * - * The dispatch origin for this call must be _Root_. - * - * ## Complexity - * - O(1). - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: AssetHubRococoRuntimeOriginCaller; call: AssetHubRococoRuntimeRuntimeCallLike }; - } - /** - * Send a batch of dispatch calls. - * Unlike `batch`, it allows errors and won't interrupt. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatch without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * Dispatch a function call with a specified weight. - * - * This function does not check the weight of the call, and instead allows the - * Root origin to specify the weight of the call. - * - * The dispatch origin for this call must be _Root_. - **/ - | { name: 'WithWeight'; params: { call: AssetHubRococoRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }; - -export type AssetHubRococoRuntimeRuntimeCall = - | { pallet: 'System'; palletCall: FrameSystemCall } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCall } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCall } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall } - | { pallet: 'Balances'; palletCall: PalletBalancesCall } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall } - | { pallet: 'Session'; palletCall: PalletSessionCall } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCall } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCall } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCall } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall } - | { pallet: 'Utility'; palletCall: PalletUtilityCall } - | { pallet: 'Multisig'; palletCall: PalletMultisigCall } - | { pallet: 'Proxy'; palletCall: PalletProxyCall } - | { pallet: 'ToWestendXcmRouter'; palletCall: PalletXcmBridgeHubRouterCall } - | { pallet: 'Assets'; palletCall: PalletAssetsCall } - | { pallet: 'Uniques'; palletCall: PalletUniquesCall } - | { pallet: 'Nfts'; palletCall: PalletNftsCall } - | { pallet: 'ForeignAssets'; palletCall: PalletAssetsCall002 } - | { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCall } - | { pallet: 'PoolAssets'; palletCall: PalletAssetsCall003 } - | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCall } - | { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCall }; - -export type AssetHubRococoRuntimeRuntimeCallLike = - | { pallet: 'System'; palletCall: FrameSystemCallLike } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCallLike } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike } - | { pallet: 'Balances'; palletCall: PalletBalancesCallLike } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike } - | { pallet: 'Session'; palletCall: PalletSessionCallLike } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCallLike } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCallLike } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCallLike } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike } - | { pallet: 'Utility'; palletCall: PalletUtilityCallLike } - | { pallet: 'Multisig'; palletCall: PalletMultisigCallLike } - | { pallet: 'Proxy'; palletCall: PalletProxyCallLike } - | { pallet: 'ToWestendXcmRouter'; palletCall: PalletXcmBridgeHubRouterCallLike } - | { pallet: 'Assets'; palletCall: PalletAssetsCallLike } - | { pallet: 'Uniques'; palletCall: PalletUniquesCallLike } - | { pallet: 'Nfts'; palletCall: PalletNftsCallLike } - | { pallet: 'ForeignAssets'; palletCall: PalletAssetsCallLike002 } - | { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCallLike } - | { pallet: 'PoolAssets'; palletCall: PalletAssetsCallLike003 } - | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCallLike } - | { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCallLike }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMultisigCall = - /** - * Immediately dispatch a multi-signature call using a single approval from the caller. - * - * The dispatch origin for this call must be _Signed_. - * - * - `other_signatories`: The accounts (other than the sender) who are part of the - * multi-signature, but do not participate in the approval process. - * - `call`: The call to be executed. - * - * Result is equivalent to the dispatched result. - * - * ## Complexity - * O(Z + C) where Z is the length of the call and C its execution weight. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubRococoRuntimeRuntimeCall }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * ## Complexity - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: AssetHubRococoRuntimeRuntimeCall; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigCallLike = - /** - * Immediately dispatch a multi-signature call using a single approval from the caller. - * - * The dispatch origin for this call must be _Signed_. - * - * - `other_signatories`: The accounts (other than the sender) who are part of the - * multi-signature, but do not participate in the approval process. - * - `call`: The call to be executed. - * - * Result is equivalent to the dispatched result. - * - * ## Complexity - * O(Z + C) where Z is the length of the call and C its execution weight. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubRococoRuntimeRuntimeCallLike }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * ## Complexity - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: AssetHubRococoRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletProxyCall = - /** - * Dispatch the given `call` from an account that the sender is authorised for through - * `add_proxy`. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - **/ - | { - name: 'Proxy'; - params: { - real: MultiAddress; - forceProxyType?: AssetHubRococoRuntimeProxyType | undefined; - call: AssetHubRococoRuntimeRuntimeCall; - }; - } - /** - * Register a proxy account for the sender that is able to make calls on its behalf. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to make a proxy. - * - `proxy_type`: The permissions allowed for this proxy account. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - **/ - | { name: 'AddProxy'; params: { delegate: MultiAddress; proxyType: AssetHubRococoRuntimeProxyType; delay: number } } - /** - * Unregister a proxy account for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to remove as a proxy. - * - `proxy_type`: The permissions currently enabled for the removed proxy account. - **/ - | { - name: 'RemoveProxy'; - params: { delegate: MultiAddress; proxyType: AssetHubRococoRuntimeProxyType; delay: number }; - } - /** - * Unregister all proxy accounts for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * WARNING: This may be called on accounts created by `pure`, however if done, then - * the unreserved fees will be inaccessible. **All access to this account will be lost.** - **/ - | { name: 'RemoveProxies' } - /** - * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and - * initialize it with a proxy of `proxy_type` for `origin` sender. - * - * Requires a `Signed` origin. - * - * - `proxy_type`: The type of the proxy that the sender will be registered as over the - * new account. This will almost always be the most permissive `ProxyType` possible to - * allow for maximum flexibility. - * - `index`: A disambiguation index, in case this is called multiple times in the same - * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just - * want to use `0`. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - * - * Fails with `Duplicate` if this has already been called in this transaction, from the - * same sender, with the same parameters. - * - * Fails if there are insufficient funds to pay for deposit. - **/ - | { name: 'CreatePure'; params: { proxyType: AssetHubRococoRuntimeProxyType; delay: number; index: number } } - /** - * Removes a previously spawned pure proxy. - * - * WARNING: **All access to this account will be lost.** Any funds held in it will be - * inaccessible. - * - * Requires a `Signed` origin, and the sender account must have been created by a call to - * `pure` with corresponding parameters. - * - * - `spawner`: The account that originally called `pure` to create this account. - * - `index`: The disambiguation index originally passed to `pure`. Probably `0`. - * - `proxy_type`: The proxy type originally passed to `pure`. - * - `height`: The height of the chain when the call to `pure` was processed. - * - `ext_index`: The extrinsic index in which the call to `pure` was processed. - * - * Fails with `NoPermission` in case the caller is not a previously created pure - * account whose `pure` call has corresponding parameters. - **/ - | { - name: 'KillPure'; - params: { - spawner: MultiAddress; - proxyType: AssetHubRococoRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - } - /** - * Publish the hash of a proxy-call that will be made in the future. - * - * This must be called some number of blocks before the corresponding `proxy` is attempted - * if the delay associated with the proxy relationship is greater than zero. - * - * No more than `MaxPending` announcements may be made at any one time. - * - * This will take a deposit of `AnnouncementDepositFactor` as well as - * `AnnouncementDepositBase` if there are no other pending announcements. - * - * The dispatch origin for this call must be _Signed_ and a proxy of `real`. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - **/ - | { name: 'Announce'; params: { real: MultiAddress; callHash: H256 } } - /** - * Remove a given announcement. - * - * May be called by a proxy account to remove a call they previously announced and return - * the deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - **/ - | { name: 'RemoveAnnouncement'; params: { real: MultiAddress; callHash: H256 } } - /** - * Remove the given announcement of a delegate. - * - * May be called by a target (proxied) account to remove a call that one of their delegates - * (`delegate`) has announced they want to execute. The deposit is returned. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `delegate`: The account that previously announced the call. - * - `call_hash`: The hash of the call to be made. - **/ - | { name: 'RejectAnnouncement'; params: { delegate: MultiAddress; callHash: H256 } } - /** - * Dispatch the given `call` from an account that the sender is authorized for through - * `add_proxy`. - * - * Removes any corresponding announcement(s). - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - **/ - | { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddress; - real: MultiAddress; - forceProxyType?: AssetHubRococoRuntimeProxyType | undefined; - call: AssetHubRococoRuntimeRuntimeCall; - }; - }; - -export type PalletProxyCallLike = - /** - * Dispatch the given `call` from an account that the sender is authorised for through - * `add_proxy`. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - **/ - | { - name: 'Proxy'; - params: { - real: MultiAddressLike; - forceProxyType?: AssetHubRococoRuntimeProxyType | undefined; - call: AssetHubRococoRuntimeRuntimeCallLike; - }; - } - /** - * Register a proxy account for the sender that is able to make calls on its behalf. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to make a proxy. - * - `proxy_type`: The permissions allowed for this proxy account. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - **/ - | { - name: 'AddProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubRococoRuntimeProxyType; delay: number }; - } - /** - * Unregister a proxy account for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to remove as a proxy. - * - `proxy_type`: The permissions currently enabled for the removed proxy account. - **/ - | { - name: 'RemoveProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubRococoRuntimeProxyType; delay: number }; - } - /** - * Unregister all proxy accounts for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * WARNING: This may be called on accounts created by `pure`, however if done, then - * the unreserved fees will be inaccessible. **All access to this account will be lost.** - **/ - | { name: 'RemoveProxies' } - /** - * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and - * initialize it with a proxy of `proxy_type` for `origin` sender. - * - * Requires a `Signed` origin. - * - * - `proxy_type`: The type of the proxy that the sender will be registered as over the - * new account. This will almost always be the most permissive `ProxyType` possible to - * allow for maximum flexibility. - * - `index`: A disambiguation index, in case this is called multiple times in the same - * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just - * want to use `0`. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - * - * Fails with `Duplicate` if this has already been called in this transaction, from the - * same sender, with the same parameters. - * - * Fails if there are insufficient funds to pay for deposit. - **/ - | { name: 'CreatePure'; params: { proxyType: AssetHubRococoRuntimeProxyType; delay: number; index: number } } - /** - * Removes a previously spawned pure proxy. - * - * WARNING: **All access to this account will be lost.** Any funds held in it will be - * inaccessible. - * - * Requires a `Signed` origin, and the sender account must have been created by a call to - * `pure` with corresponding parameters. - * - * - `spawner`: The account that originally called `pure` to create this account. - * - `index`: The disambiguation index originally passed to `pure`. Probably `0`. - * - `proxy_type`: The proxy type originally passed to `pure`. - * - `height`: The height of the chain when the call to `pure` was processed. - * - `ext_index`: The extrinsic index in which the call to `pure` was processed. - * - * Fails with `NoPermission` in case the caller is not a previously created pure - * account whose `pure` call has corresponding parameters. - **/ - | { - name: 'KillPure'; - params: { - spawner: MultiAddressLike; - proxyType: AssetHubRococoRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - } - /** - * Publish the hash of a proxy-call that will be made in the future. - * - * This must be called some number of blocks before the corresponding `proxy` is attempted - * if the delay associated with the proxy relationship is greater than zero. - * - * No more than `MaxPending` announcements may be made at any one time. - * - * This will take a deposit of `AnnouncementDepositFactor` as well as - * `AnnouncementDepositBase` if there are no other pending announcements. - * - * The dispatch origin for this call must be _Signed_ and a proxy of `real`. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - **/ - | { name: 'Announce'; params: { real: MultiAddressLike; callHash: H256 } } - /** - * Remove a given announcement. - * - * May be called by a proxy account to remove a call they previously announced and return - * the deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - **/ - | { name: 'RemoveAnnouncement'; params: { real: MultiAddressLike; callHash: H256 } } - /** - * Remove the given announcement of a delegate. - * - * May be called by a target (proxied) account to remove a call that one of their delegates - * (`delegate`) has announced they want to execute. The deposit is returned. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `delegate`: The account that previously announced the call. - * - `call_hash`: The hash of the call to be made. - **/ - | { name: 'RejectAnnouncement'; params: { delegate: MultiAddressLike; callHash: H256 } } - /** - * Dispatch the given `call` from an account that the sender is authorized for through - * `add_proxy`. - * - * Removes any corresponding announcement(s). - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - **/ - | { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddressLike; - real: MultiAddressLike; - forceProxyType?: AssetHubRococoRuntimeProxyType | undefined; - call: AssetHubRococoRuntimeRuntimeCallLike; - }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletXcmBridgeHubRouterCall = - /** - * Notification about congested bridge queue. - **/ - { name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } }; - -export type PalletXcmBridgeHubRouterCallLike = - /** - * Notification about congested bridge queue. - **/ - { name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddress; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddress; isSufficient: boolean; minBalance: bigint } } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddress; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddress; dest: MultiAddress; amount: bigint } } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddress } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddress } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'SetTeam'; params: { id: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress } } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { id: number; name: Bytes; symbol: Bytes; decimals: number } } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddress; amount: bigint } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddress } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddress; delegate: MultiAddress } } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { name: 'TransferApproved'; params: { id: number; owner: MultiAddress; destination: MultiAddress; amount: bigint } } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddress } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddress } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: number; who: MultiAddress } }; - -export type PalletAssetsCallLike = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddressLike; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint } } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddressLike; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint } } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddressLike } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number } } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddressLike; amount: bigint } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddressLike } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike } } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddressLike } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: number; who: MultiAddressLike } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletUniquesCall = - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * `ItemDeposit` funds of sender are reserved. - * - * Parameters: - * - `collection`: The identifier of the new collection. This must not be currently in use. - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { collection: number; admin: MultiAddress } } - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `collection`: The identifier of the new item. This must not be currently in use. - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions - * over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { collection: number; owner: MultiAddress; freeHolding: boolean } } - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(n + m)` where: - * - `n = witness.items` - * - `m = witness.item_metadatas` - * - `a = witness.attributes` - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletUniquesDestroyWitness } } - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must be the Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: The item value of the item to be minted. - * - `beneficiary`: The initial owner of the minted item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Mint'; params: { collection: number; item: number; owner: MultiAddress } } - /** - * Destroy a single item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item of the item to be burned. - * - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the - * item is owned by this value. - * - * Emits `Burned` with the actual amount burned. - * - * Weight: `O(1)` - * Modes: `check_owner.is_some()`. - **/ - | { name: 'Burn'; params: { collection: number; item: number; checkOwner?: MultiAddress | undefined } } - /** - * Move an item from the sender account to another. - * - * This resets the approved account of the item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item of the item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddress } } - /** - * Reevaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be frozen. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown of the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be frozen. - * - `item`: The item of the item to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { collection: number; item: number } } - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be thawed. - * - `item`: The item of the item to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { collection: number; item: number } } - /** - * Disallow further unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection to be frozen. - * - * Emits `CollectionFrozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeCollection'; params: { collection: number } } - /** - * Re-allow unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Admin of the `collection`. - * - * - `collection`: The collection to be thawed. - * - * Emits `CollectionThawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawCollection'; params: { collection: number } } - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { collection: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress }; - } - /** - * Approve an item to be transferred by a delegated third-party account. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be - * either the owner of the `item` or the admin of the collection. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item of the item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - * Important NOTE: The `approved` account gets reset after each transfer. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * Cancel the prior approval for the transfer of an item by a delegate. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Admin of the `collection`; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the item of whose approval will be cancelled. - * - `maybe_check_delegate`: If `Some` will ensure that the given account is the one to - * which permission of transfer is delegated. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate?: MultiAddress | undefined }; - } - /** - * Alter the attributes of a given item. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the item. - * - `owner`: The new Owner of this item. - * - `issuer`: The new Issuer of this item. - * - `admin`: The new Admin of this item. - * - `freezer`: The new Freezer of this item. - * - `free_holding`: Whether a deposit is taken for holding an item of this collection. - * - `is_frozen`: Whether this collection is frozen except for permissioned/admin - * instructions. - * - * Emits `ItemStatusChanged` with the identity of the item. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - freeHolding: boolean; - isFrozen: boolean; - }; - } - /** - * Set an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetAttribute'; params: { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } } - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearAttribute'; params: { collection: number; maybeItem?: number | undefined; key: Bytes } } - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: Bytes; isFrozen: boolean } } - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: Bytes; isFrozen: boolean } } - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * Set the maximum amount of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Note: This function can only succeed once per collection. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum amount of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the asset `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddress | undefined; - }; - } - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } }; - -export type PalletUniquesCallLike = - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * `ItemDeposit` funds of sender are reserved. - * - * Parameters: - * - `collection`: The identifier of the new collection. This must not be currently in use. - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { collection: number; admin: MultiAddressLike } } - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `collection`: The identifier of the new item. This must not be currently in use. - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions - * over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { collection: number; owner: MultiAddressLike; freeHolding: boolean } } - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(n + m)` where: - * - `n = witness.items` - * - `m = witness.item_metadatas` - * - `a = witness.attributes` - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletUniquesDestroyWitness } } - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must be the Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: The item value of the item to be minted. - * - `beneficiary`: The initial owner of the minted item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Mint'; params: { collection: number; item: number; owner: MultiAddressLike } } - /** - * Destroy a single item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item of the item to be burned. - * - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the - * item is owned by this value. - * - * Emits `Burned` with the actual amount burned. - * - * Weight: `O(1)` - * Modes: `check_owner.is_some()`. - **/ - | { name: 'Burn'; params: { collection: number; item: number; checkOwner?: MultiAddressLike | undefined } } - /** - * Move an item from the sender account to another. - * - * This resets the approved account of the item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item of the item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddressLike } } - /** - * Reevaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be frozen. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown of the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be frozen. - * - `item`: The item of the item to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { collection: number; item: number } } - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be thawed. - * - `item`: The item of the item to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { collection: number; item: number } } - /** - * Disallow further unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection to be frozen. - * - * Emits `CollectionFrozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeCollection'; params: { collection: number } } - /** - * Re-allow unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Admin of the `collection`. - * - * - `collection`: The collection to be thawed. - * - * Emits `CollectionThawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawCollection'; params: { collection: number } } - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { collection: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * Approve an item to be transferred by a delegated third-party account. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be - * either the owner of the `item` or the admin of the collection. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item of the item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - * Important NOTE: The `approved` account gets reset after each transfer. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * Cancel the prior approval for the transfer of an item by a delegate. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Admin of the `collection`; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the item of whose approval will be cancelled. - * - `maybe_check_delegate`: If `Some` will ensure that the given account is the one to - * which permission of transfer is delegated. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate?: MultiAddressLike | undefined }; - } - /** - * Alter the attributes of a given item. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the item. - * - `owner`: The new Owner of this item. - * - `issuer`: The new Issuer of this item. - * - `admin`: The new Admin of this item. - * - `freezer`: The new Freezer of this item. - * - `free_holding`: Whether a deposit is taken for holding an item of this collection. - * - `is_frozen`: Whether this collection is frozen except for permissioned/admin - * instructions. - * - * Emits `ItemStatusChanged` with the identity of the item. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - freeHolding: boolean; - isFrozen: boolean; - }; - } - /** - * Set an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetAttribute'; - params: { collection: number; maybeItem?: number | undefined; key: BytesLike; value: BytesLike }; - } - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearAttribute'; params: { collection: number; maybeItem?: number | undefined; key: BytesLike } } - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: BytesLike; isFrozen: boolean } } - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: BytesLike; isFrozen: boolean } } - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * Set the maximum amount of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Note: This function can only succeed once per collection. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum amount of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the asset `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddressLike | undefined; - }; - } - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } }; - -export type PalletUniquesDestroyWitness = { items: number; itemMetadatas: number; attributes: number }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletNftsCall = - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must be Signed and the sender must have sufficient funds free. - * - * `CollectionDeposit` funds of sender are reserved. - * - * Parameters: - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { admin: MultiAddress; config: PalletNftsCollectionConfig } } - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { owner: MultiAddress; config: PalletNftsCollectionConfig } } - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * NOTE: The collection must have 0 items to be destroyed. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(m + c + a)` where: - * - `m = witness.item_metadatas` - * - `c = witness.item_configs` - * - `a = witness.attributes` - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletNftsDestroyWitness } } - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must comply with the `mint_settings` rules. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `witness_data`: When the mint type is `HolderOf(collection_id)`, then the owned - * item_id from that collection needs to be provided within the witness data object. If - * the mint price is set, then it should be additionally confirmed in the `witness_data`. - * - * Note: the deposit will be taken from the `origin` and not the `owner` of the `item`. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddress; - witnessData?: PalletNftsMintWitness | undefined; - }; - } - /** - * Mint an item of a particular collection from a privileged origin. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `item_config`: A config of the new item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddress; itemConfig: PalletNftsItemConfig }; - } - /** - * Destroy a single item. - * - * The origin must conform to `ForceOrigin` or must be Signed and the signing account must - * be the owner of the `item`. - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item to be burned. - * - * Emits `Burned`. - * - * Weight: `O(1)` - **/ - | { name: 'Burn'; params: { collection: number; item: number } } - /** - * Move an item from the sender account to another. - * - * Origin must be Signed and the signing account must be either: - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddress } } - /** - * Re-evaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection of the items to be reevaluated. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown or the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become non-transferable. - * - * Emits `ItemTransferLocked`. - * - * Weight: `O(1)` - **/ - | { name: 'LockItemTransfer'; params: { collection: number; item: number } } - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become transferable. - * - * Emits `ItemTransferUnlocked`. - * - * Weight: `O(1)` - **/ - | { name: 'UnlockItemTransfer'; params: { collection: number; item: number } } - /** - * Disallows specified settings for the whole collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be locked. - * - `lock_settings`: The settings to be locked. - * - * Note: it's possible to only lock(set) the setting, but not to unset it. - * - * Emits `CollectionLocked`. - * - * Weight: `O(1)` - **/ - | { name: 'LockCollection'; params: { collection: number; lockSettings: PalletNftsBitFlags } } - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Note: by setting the role to `None` only the `ForceOrigin` will be able to change it - * after to `Some(account)`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { - collection: number; - issuer?: MultiAddress | undefined; - admin?: MultiAddress | undefined; - freezer?: MultiAddress | undefined; - }; - } - /** - * Change the Owner of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `owner`: The new Owner of this collection. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCollectionOwner'; params: { collection: number; owner: MultiAddress } } - /** - * Change the config of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `config`: The new config of this collection. - * - * Emits `CollectionConfigChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCollectionConfig'; params: { collection: number; config: PalletNftsCollectionConfig } } - /** - * Approve an item to be transferred by a delegated third-party account. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - `maybe_deadline`: Optional deadline for the approval. Specified by providing the - * number of blocks after which the approval will expire - * - * Emits `TransferApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddress; maybeDeadline?: number | undefined }; - } - /** - * Cancel one of the transfer approvals for a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the collection of whose approval will be cancelled. - * - `delegate`: The account that is going to loose their approval. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * Cancel all the approvals of a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approvals will be cleared. - * - `item`: The item of the collection of whose approvals will be cleared. - * - * Emits `AllApprovalsCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ClearAllTransferApprovals'; params: { collection: number; item: number } } - /** - * Disallows changing the metadata or attributes of the item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin - * of the `collection`. - * - * - `collection`: The collection if the `item`. - * - `item`: An item to be locked. - * - `lock_metadata`: Specifies whether the metadata should be locked. - * - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace - * should be locked. - * - * Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only. - * When the metadata or attributes are locked, it won't be possible the unlock them. - * - * Emits `ItemPropertiesLocked`. - * - * Weight: `O(1)` - **/ - | { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * Set an attribute for a collection or item. - * - * Origin must be Signed and must conform to the namespace ruleset: - * - `CollectionOwner` namespace could be modified by the `collection` Admin only; - * - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item` - * should be set in that case; - * - `Account(AccountId)` namespace could be modified only when the `origin` was given a - * permission to do so; - * - * The funds of `origin` are reserved according to the formula: - * `AttributeDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - value: Bytes; - }; - } - /** - * Force-set an attribute for a collection or item. - * - * Origin must be `ForceOrigin`. - * - * If the attribute already exists and it was set by another account, the deposit - * will be returned to the previous owner. - * - * - `set_as`: An optional owner of the attribute. - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceSetAttribute'; - params: { - setAs?: AccountId32 | undefined; - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - value: Bytes; - }; - } - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * attribute. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - **/ - | { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - }; - } - /** - * Approve item's attributes to be changed by a delegated third-party account. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: A collection of the item. - * - `item`: The item that holds attributes. - * - `delegate`: The account to delegate permission to change attributes of the item. - * - * Emits `ItemAttributesApprovalAdded` on success. - **/ - | { name: 'ApproveItemAttributes'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * Cancel the previously provided approval to change item's attributes. - * All the previously set attributes by the `delegate` will be removed. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: Collection that the item is contained within. - * - `item`: The item that holds attributes. - * - `delegate`: The previously approved account to remove. - * - * Emits `ItemAttributesApprovalRemoved` on success. - **/ - | { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddress; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - } - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `ItemMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: Bytes } } - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `ItemMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: Bytes } } - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * Set the maximum number of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum number of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * Update mint settings. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer - * of the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `mint_settings`: The new mint settings. - * - * Emits `CollectionMintSettingsUpdated` event when successful. - **/ - | { name: 'UpdateMintSettings'; params: { collection: number; mintSettings: PalletNftsMintSettings } } - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddress | undefined; - }; - } - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } } - /** - * Allows to pay the tips. - * - * Origin must be Signed. - * - * - `tips`: Tips array. - * - * Emits `TipSent` on every tip transfer. - **/ - | { name: 'PayTips'; params: { tips: Array } } - /** - * Register a new atomic swap, declaring an intention to send an `item` in exchange for - * `desired_item` from origin to target on the current blockchain. - * The target can execute the swap during the specified `duration` of blocks (if set). - * Additionally, the price could be set for the desired `item`. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - `desired_collection`: The collection of the desired item. - * - `desired_item`: The desired item an owner wants to receive. - * - `maybe_price`: The price an owner is willing to pay or receive for the desired `item`. - * - `duration`: A deadline for the swap. Specified by providing the number of blocks - * after which the swap will expire. - * - * Emits `SwapCreated` on success. - **/ - | { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem?: number | undefined; - maybePrice?: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - } - /** - * Cancel an atomic swap. - * - * Origin must be Signed. - * Origin must be an owner of the `item` if the deadline hasn't expired. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - * Emits `SwapCancelled` on success. - **/ - | { name: 'CancelSwap'; params: { offeredCollection: number; offeredItem: number } } - /** - * Claim an atomic swap. - * This method executes a pending swap, that was created by a counterpart before. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `send_collection`: The collection of the item to be sent. - * - `send_item`: The item to be sent. - * - `receive_collection`: The collection of the item to be received. - * - `receive_item`: The item to be received. - * - `witness_price`: A price that was previously agreed on. - * - * Emits `SwapClaimed` on success. - **/ - | { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice?: PalletNftsPriceWithDirection | undefined; - }; - } - /** - * Mint an item by providing the pre-signed approval. - * - * Origin must be Signed. - * - * - `mint_data`: The pre-signed approval that consists of the information about the item, - * its metadata, attributes, who can mint it (`None` for anyone) and until what block - * number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Issuer of the collection. - * - * Emits `Issued` on success. - * Emits `AttributeSet` if the attributes were provided. - * Emits `ItemMetadataSet` if the metadata was not empty. - **/ - | { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32 }; - } - /** - * Set attributes for an item by providing the pre-signed approval. - * - * Origin must be Signed and must be an owner of the `data.item`. - * - * - `data`: The pre-signed approval that consists of the information about the item, - * attributes to update and until what block number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Admin of the collection for the - * `CollectionOwner` namespace. - * - * Emits `AttributeSet` for each provided attribute. - * Emits `ItemAttributesApprovalAdded` if the approval wasn't set before. - * Emits `PreSignedAttributesSet` on success. - **/ - | { - name: 'SetAttributesPreSigned'; - params: { data: PalletNftsPreSignedAttributes; signature: SpRuntimeMultiSignature; signer: AccountId32 }; - }; - -export type PalletNftsCallLike = - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must be Signed and the sender must have sufficient funds free. - * - * `CollectionDeposit` funds of sender are reserved. - * - * Parameters: - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { admin: MultiAddressLike; config: PalletNftsCollectionConfig } } - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { owner: MultiAddressLike; config: PalletNftsCollectionConfig } } - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * NOTE: The collection must have 0 items to be destroyed. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(m + c + a)` where: - * - `m = witness.item_metadatas` - * - `c = witness.item_configs` - * - `a = witness.attributes` - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletNftsDestroyWitness } } - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must comply with the `mint_settings` rules. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `witness_data`: When the mint type is `HolderOf(collection_id)`, then the owned - * item_id from that collection needs to be provided within the witness data object. If - * the mint price is set, then it should be additionally confirmed in the `witness_data`. - * - * Note: the deposit will be taken from the `origin` and not the `owner` of the `item`. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddressLike; - witnessData?: PalletNftsMintWitness | undefined; - }; - } - /** - * Mint an item of a particular collection from a privileged origin. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `item_config`: A config of the new item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddressLike; itemConfig: PalletNftsItemConfig }; - } - /** - * Destroy a single item. - * - * The origin must conform to `ForceOrigin` or must be Signed and the signing account must - * be the owner of the `item`. - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item to be burned. - * - * Emits `Burned`. - * - * Weight: `O(1)` - **/ - | { name: 'Burn'; params: { collection: number; item: number } } - /** - * Move an item from the sender account to another. - * - * Origin must be Signed and the signing account must be either: - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddressLike } } - /** - * Re-evaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection of the items to be reevaluated. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown or the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become non-transferable. - * - * Emits `ItemTransferLocked`. - * - * Weight: `O(1)` - **/ - | { name: 'LockItemTransfer'; params: { collection: number; item: number } } - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become transferable. - * - * Emits `ItemTransferUnlocked`. - * - * Weight: `O(1)` - **/ - | { name: 'UnlockItemTransfer'; params: { collection: number; item: number } } - /** - * Disallows specified settings for the whole collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be locked. - * - `lock_settings`: The settings to be locked. - * - * Note: it's possible to only lock(set) the setting, but not to unset it. - * - * Emits `CollectionLocked`. - * - * Weight: `O(1)` - **/ - | { name: 'LockCollection'; params: { collection: number; lockSettings: PalletNftsBitFlags } } - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Note: by setting the role to `None` only the `ForceOrigin` will be able to change it - * after to `Some(account)`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { - collection: number; - issuer?: MultiAddressLike | undefined; - admin?: MultiAddressLike | undefined; - freezer?: MultiAddressLike | undefined; - }; - } - /** - * Change the Owner of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `owner`: The new Owner of this collection. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCollectionOwner'; params: { collection: number; owner: MultiAddressLike } } - /** - * Change the config of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `config`: The new config of this collection. - * - * Emits `CollectionConfigChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCollectionConfig'; params: { collection: number; config: PalletNftsCollectionConfig } } - /** - * Approve an item to be transferred by a delegated third-party account. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - `maybe_deadline`: Optional deadline for the approval. Specified by providing the - * number of blocks after which the approval will expire - * - * Emits `TransferApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike; maybeDeadline?: number | undefined }; - } - /** - * Cancel one of the transfer approvals for a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the collection of whose approval will be cancelled. - * - `delegate`: The account that is going to loose their approval. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * Cancel all the approvals of a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approvals will be cleared. - * - `item`: The item of the collection of whose approvals will be cleared. - * - * Emits `AllApprovalsCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ClearAllTransferApprovals'; params: { collection: number; item: number } } - /** - * Disallows changing the metadata or attributes of the item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin - * of the `collection`. - * - * - `collection`: The collection if the `item`. - * - `item`: An item to be locked. - * - `lock_metadata`: Specifies whether the metadata should be locked. - * - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace - * should be locked. - * - * Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only. - * When the metadata or attributes are locked, it won't be possible the unlock them. - * - * Emits `ItemPropertiesLocked`. - * - * Weight: `O(1)` - **/ - | { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * Set an attribute for a collection or item. - * - * Origin must be Signed and must conform to the namespace ruleset: - * - `CollectionOwner` namespace could be modified by the `collection` Admin only; - * - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item` - * should be set in that case; - * - `Account(AccountId)` namespace could be modified only when the `origin` was given a - * permission to do so; - * - * The funds of `origin` are reserved according to the formula: - * `AttributeDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - } - /** - * Force-set an attribute for a collection or item. - * - * Origin must be `ForceOrigin`. - * - * If the attribute already exists and it was set by another account, the deposit - * will be returned to the previous owner. - * - * - `set_as`: An optional owner of the attribute. - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceSetAttribute'; - params: { - setAs?: AccountId32Like | undefined; - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - } - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * attribute. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - **/ - | { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - }; - } - /** - * Approve item's attributes to be changed by a delegated third-party account. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: A collection of the item. - * - `item`: The item that holds attributes. - * - `delegate`: The account to delegate permission to change attributes of the item. - * - * Emits `ItemAttributesApprovalAdded` on success. - **/ - | { name: 'ApproveItemAttributes'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * Cancel the previously provided approval to change item's attributes. - * All the previously set attributes by the `delegate` will be removed. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: Collection that the item is contained within. - * - `item`: The item that holds attributes. - * - `delegate`: The previously approved account to remove. - * - * Emits `ItemAttributesApprovalRemoved` on success. - **/ - | { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddressLike; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - } - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `ItemMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: BytesLike } } - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `ItemMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: BytesLike } } - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * Set the maximum number of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum number of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * Update mint settings. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer - * of the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `mint_settings`: The new mint settings. - * - * Emits `CollectionMintSettingsUpdated` event when successful. - **/ - | { name: 'UpdateMintSettings'; params: { collection: number; mintSettings: PalletNftsMintSettings } } - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddressLike | undefined; - }; - } - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } } - /** - * Allows to pay the tips. - * - * Origin must be Signed. - * - * - `tips`: Tips array. - * - * Emits `TipSent` on every tip transfer. - **/ - | { name: 'PayTips'; params: { tips: Array } } - /** - * Register a new atomic swap, declaring an intention to send an `item` in exchange for - * `desired_item` from origin to target on the current blockchain. - * The target can execute the swap during the specified `duration` of blocks (if set). - * Additionally, the price could be set for the desired `item`. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - `desired_collection`: The collection of the desired item. - * - `desired_item`: The desired item an owner wants to receive. - * - `maybe_price`: The price an owner is willing to pay or receive for the desired `item`. - * - `duration`: A deadline for the swap. Specified by providing the number of blocks - * after which the swap will expire. - * - * Emits `SwapCreated` on success. - **/ - | { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem?: number | undefined; - maybePrice?: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - } - /** - * Cancel an atomic swap. - * - * Origin must be Signed. - * Origin must be an owner of the `item` if the deadline hasn't expired. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - * Emits `SwapCancelled` on success. - **/ - | { name: 'CancelSwap'; params: { offeredCollection: number; offeredItem: number } } - /** - * Claim an atomic swap. - * This method executes a pending swap, that was created by a counterpart before. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `send_collection`: The collection of the item to be sent. - * - `send_item`: The item to be sent. - * - `receive_collection`: The collection of the item to be received. - * - `receive_item`: The item to be received. - * - `witness_price`: A price that was previously agreed on. - * - * Emits `SwapClaimed` on success. - **/ - | { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice?: PalletNftsPriceWithDirection | undefined; - }; - } - /** - * Mint an item by providing the pre-signed approval. - * - * Origin must be Signed. - * - * - `mint_data`: The pre-signed approval that consists of the information about the item, - * its metadata, attributes, who can mint it (`None` for anyone) and until what block - * number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Issuer of the collection. - * - * Emits `Issued` on success. - * Emits `AttributeSet` if the attributes were provided. - * Emits `ItemMetadataSet` if the metadata was not empty. - **/ - | { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - } - /** - * Set attributes for an item by providing the pre-signed approval. - * - * Origin must be Signed and must be an owner of the `data.item`. - * - * - `data`: The pre-signed approval that consists of the information about the item, - * attributes to update and until what block number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Admin of the collection for the - * `CollectionOwner` namespace. - * - * Emits `AttributeSet` for each provided attribute. - * Emits `ItemAttributesApprovalAdded` if the approval wasn't set before. - * Emits `PreSignedAttributesSet` on success. - **/ - | { - name: 'SetAttributesPreSigned'; - params: { data: PalletNftsPreSignedAttributes; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - }; - -export type PalletNftsCollectionConfig = { - settings: PalletNftsBitFlags; - maxSupply?: number | undefined; - mintSettings: PalletNftsMintSettings; -}; - -export type PalletNftsBitFlags = bigint; - -export type PalletNftsCollectionSetting = - | 'TransferableItems' - | 'UnlockedMetadata' - | 'UnlockedAttributes' - | 'UnlockedMaxSupply' - | 'DepositRequired'; - -export type PalletNftsMintSettings = { - mintType: PalletNftsMintType; - price?: bigint | undefined; - startBlock?: number | undefined; - endBlock?: number | undefined; - defaultItemSettings: PalletNftsBitFlagsItemSetting; -}; - -export type PalletNftsMintType = { type: 'Issuer' } | { type: 'Public' } | { type: 'HolderOf'; value: number }; - -export type PalletNftsBitFlagsItemSetting = bigint; - -export type PalletNftsItemSetting = 'Transferable' | 'UnlockedMetadata' | 'UnlockedAttributes'; - -export type PalletNftsDestroyWitness = { itemMetadatas: number; itemConfigs: number; attributes: number }; - -export type PalletNftsMintWitness = { ownedItem?: number | undefined; mintPrice?: bigint | undefined }; - -export type PalletNftsItemConfig = { settings: PalletNftsBitFlagsItemSetting }; - -export type PalletNftsCancelAttributesApprovalWitness = { accountAttributes: number }; - -export type PalletNftsItemTip = { collection: number; item: number; receiver: AccountId32; amount: bigint }; - -export type PalletNftsPreSignedMint = { - collection: number; - item: number; - attributes: Array<[Bytes, Bytes]>; - metadata: Bytes; - onlyAccount?: AccountId32 | undefined; - deadline: number; - mintPrice?: bigint | undefined; -}; - -export type SpRuntimeMultiSignature = - | { type: 'Ed25519'; value: FixedBytes<64> } - | { type: 'Sr25519'; value: FixedBytes<64> } - | { type: 'Ecdsa'; value: FixedBytes<65> }; - -export type PalletNftsPreSignedAttributes = { - collection: number; - item: number; - attributes: Array<[Bytes, Bytes]>; - namespace: PalletNftsAttributeNamespace; - deadline: number; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall002 = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddress; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - isSufficient: boolean; - minBalance: bigint; - }; - } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddress; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddress; amount: bigint }; - } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { - name: 'ForceTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; source: MultiAddress; dest: MultiAddress; amount: bigint }; - } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - }; - } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation; name: Bytes; symbol: Bytes; decimals: number }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddress; amount: bigint }; - } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddress } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddress; delegate: MultiAddress }; - } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - destination: MultiAddress; - amount: bigint; - }; - } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } }; - -export type PalletAssetsCallLike002 = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'Create'; - params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddressLike; minBalance: bigint }; - } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - isSufficient: boolean; - minBalance: bigint; - }; - } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { - name: 'Mint'; - params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddressLike; amount: bigint }; - } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { - name: 'Transfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { - name: 'ForceTransfer'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - source: MultiAddressLike; - dest: MultiAddressLike; - amount: bigint; - }; - } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation; name: BytesLike; symbol: BytesLike; decimals: number }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - isFrozen: boolean; - }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike; amount: bigint }; - } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike; delegate: MultiAddressLike }; - } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - destination: MultiAddressLike; - amount: bigint; - }; - } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletNftFractionalizationCall = - /** - * Lock the NFT and mint a new fungible asset. - * - * The dispatch origin for this call must be Signed. - * The origin must be the owner of the NFT they are trying to lock. - * - * `Deposit` funds of sender are reserved. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the new asset. It must not exist. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the newly created asset. - * - `fractions`: The total issuance of the newly created asset class. - * - * Emits `NftFractionalized` event when successful. - **/ - | { - name: 'Fractionalize'; - params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddress; fractions: bigint }; - } - /** - * Burn the total issuance of the fungible asset and return (unlock) the locked NFT. - * - * The dispatch origin for this call must be Signed. - * - * `Deposit` funds will be returned to `asset_creator`. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the asset being returned and destroyed. Must match - * the original ID of the created asset, corresponding to the NFT. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the unified NFT. - * - * Emits `NftUnified` event when successful. - **/ - | { name: 'Unify'; params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddress } }; - -export type PalletNftFractionalizationCallLike = - /** - * Lock the NFT and mint a new fungible asset. - * - * The dispatch origin for this call must be Signed. - * The origin must be the owner of the NFT they are trying to lock. - * - * `Deposit` funds of sender are reserved. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the new asset. It must not exist. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the newly created asset. - * - `fractions`: The total issuance of the newly created asset class. - * - * Emits `NftFractionalized` event when successful. - **/ - | { - name: 'Fractionalize'; - params: { - nftCollectionId: number; - nftId: number; - assetId: number; - beneficiary: MultiAddressLike; - fractions: bigint; - }; - } - /** - * Burn the total issuance of the fungible asset and return (unlock) the locked NFT. - * - * The dispatch origin for this call must be Signed. - * - * `Deposit` funds will be returned to `asset_creator`. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the asset being returned and destroyed. Must match - * the original ID of the created asset, corresponding to the NFT. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the unified NFT. - * - * Emits `NftUnified` event when successful. - **/ - | { - name: 'Unify'; - params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddressLike }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall003 = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddress; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddress; isSufficient: boolean; minBalance: bigint } } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddress; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddress; dest: MultiAddress; amount: bigint } } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddress } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddress } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'SetTeam'; params: { id: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress } } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { id: number; name: Bytes; symbol: Bytes; decimals: number } } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddress; amount: bigint } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddress } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddress; delegate: MultiAddress } } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { name: 'TransferApproved'; params: { id: number; owner: MultiAddress; destination: MultiAddress; amount: bigint } } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddress } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddress } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: number; who: MultiAddress } }; - -export type PalletAssetsCallLike003 = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddressLike; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint } } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddressLike; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint } } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddressLike } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number } } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddressLike; amount: bigint } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddressLike } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike } } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddressLike } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: number; who: MultiAddressLike } }; - -/** - * Pallet's callable functions. - **/ -export type PalletAssetConversionCall = - /** - * Creates an empty liquidity pool and an associated new `lp_token` asset - * (the id of which is returned in the `Event::PoolCreated` event). - * - * Once a pool is created, someone may [`Pallet::add_liquidity`] to it. - **/ - | { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - } - /** - * Provide liquidity into the pool of `asset1` and `asset2`. - * NOTE: an optimal amount of asset1 and asset2 will be calculated and - * might be different than the provided `amount1_desired`/`amount2_desired` - * thus you should provide the min amount you're happy to provide. - * Params `amount1_min`/`amount2_min` represent that. - * `mint_to` will be sent the liquidity tokens that represent this share of the pool. - * - * NOTE: when encountering an incorrect exchange rate and non-withdrawable pool liquidity, - * batch an atomic call with [`Pallet::add_liquidity`] and - * [`Pallet::swap_exact_tokens_for_tokens`] or [`Pallet::swap_tokens_for_exact_tokens`] - * calls to render the liquidity withdrawable and rectify the exchange rate. - * - * Once liquidity is added, someone may successfully call - * [`Pallet::swap_exact_tokens_for_tokens`] successfully. - **/ - | { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32; - }; - } - /** - * Allows you to remove liquidity by providing the `lp_token_burn` tokens that will be - * burned in the process. With the usage of `amount1_min_receive`/`amount2_min_receive` - * it's possible to control the min amount of returned tokens you're happy with. - **/ - | { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32; - }; - } - /** - * Swap the exact amount of `asset1` into `asset2`. - * `amount_out_min` param allows you to specify the min amount of the `asset2` - * you're happy to receive. - * - * [`AssetConversionApi::quote_price_exact_tokens_for_tokens`] runtime call can be called - * for a quote. - **/ - | { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32; - keepAlive: boolean; - }; - } - /** - * Swap any amount of `asset1` to get the exact amount of `asset2`. - * `amount_in_max` param allows to specify the max amount of the `asset1` - * you're happy to provide. - * - * [`AssetConversionApi::quote_price_tokens_for_exact_tokens`] runtime call can be called - * for a quote. - **/ - | { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32; - keepAlive: boolean; - }; - } - /** - * Touch an existing pool to fulfill prerequisites before providing liquidity, such as - * ensuring that the pool's accounts are in place. It is typically useful when a pool - * creator removes the pool's accounts and does not provide a liquidity. This action may - * involve holding assets from the caller as a deposit for creating the pool's accounts. - * - * The origin must be Signed. - * - * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2). - * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2). - * - * Emits `Touched` event when successful. - **/ - | { - name: 'Touch'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - -export type PalletAssetConversionCallLike = - /** - * Creates an empty liquidity pool and an associated new `lp_token` asset - * (the id of which is returned in the `Event::PoolCreated` event). - * - * Once a pool is created, someone may [`Pallet::add_liquidity`] to it. - **/ - | { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - } - /** - * Provide liquidity into the pool of `asset1` and `asset2`. - * NOTE: an optimal amount of asset1 and asset2 will be calculated and - * might be different than the provided `amount1_desired`/`amount2_desired` - * thus you should provide the min amount you're happy to provide. - * Params `amount1_min`/`amount2_min` represent that. - * `mint_to` will be sent the liquidity tokens that represent this share of the pool. - * - * NOTE: when encountering an incorrect exchange rate and non-withdrawable pool liquidity, - * batch an atomic call with [`Pallet::add_liquidity`] and - * [`Pallet::swap_exact_tokens_for_tokens`] or [`Pallet::swap_tokens_for_exact_tokens`] - * calls to render the liquidity withdrawable and rectify the exchange rate. - * - * Once liquidity is added, someone may successfully call - * [`Pallet::swap_exact_tokens_for_tokens`] successfully. - **/ - | { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32Like; - }; - } - /** - * Allows you to remove liquidity by providing the `lp_token_burn` tokens that will be - * burned in the process. With the usage of `amount1_min_receive`/`amount2_min_receive` - * it's possible to control the min amount of returned tokens you're happy with. - **/ - | { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32Like; - }; - } - /** - * Swap the exact amount of `asset1` into `asset2`. - * `amount_out_min` param allows you to specify the min amount of the `asset2` - * you're happy to receive. - * - * [`AssetConversionApi::quote_price_exact_tokens_for_tokens`] runtime call can be called - * for a quote. - **/ - | { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - } - /** - * Swap any amount of `asset1` to get the exact amount of `asset2`. - * `amount_in_max` param allows to specify the max amount of the `asset1` - * you're happy to provide. - * - * [`AssetConversionApi::quote_price_tokens_for_exact_tokens`] runtime call can be called - * for a quote. - **/ - | { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - } - /** - * Touch an existing pool to fulfill prerequisites before providing liquidity, such as - * ensuring that the pool's accounts are in place. It is typically useful when a pool - * creator removes the pool's accounts and does not provide a liquidity. This action may - * involve holding assets from the caller as a deposit for creating the pool's accounts. - * - * The origin must be Signed. - * - * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2). - * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2). - * - * Emits `Touched` event when successful. - **/ - | { - name: 'Touch'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - -/** - * Pallet's callable functions. - **/ -export type PalletAssetConversionOpsCall = - /** - * Migrates an existing pool to a new account ID derivation method for a given asset pair. - * If the migration is successful, transaction fees are refunded to the caller. - * - * Must be signed. - **/ - { - name: 'MigrateToNewAccount'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - -export type PalletAssetConversionOpsCallLike = - /** - * Migrates an existing pool to a new account ID derivation method for a given asset pair. - * If the migration is successful, transaction fees are refunded to the caller. - * - * Must be signed. - **/ - { - name: 'MigrateToNewAccount'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - -export type AssetHubRococoRuntimeOriginCaller = - | { type: 'System'; value: FrameSupportDispatchRawOrigin } - | { type: 'PolkadotXcm'; value: PalletXcmOrigin } - | { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin } - | { type: 'Void'; value: SpCoreVoid }; - -export type FrameSupportDispatchRawOrigin = - | { type: 'Root' } - | { type: 'Signed'; value: AccountId32 } - | { type: 'None' }; - -export type PalletXcmOrigin = - | { type: 'Xcm'; value: StagingXcmV4Location } - | { type: 'Response'; value: StagingXcmV4Location }; - -export type CumulusPalletXcmOrigin = - | { type: 'Relay' } - | { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type SpCoreVoid = null; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletUtilityError = - /** - * Too many calls batched. - **/ - 'TooManyCalls'; - -export type PalletMultisigMultisig = { - when: PalletMultisigTimepoint; - deposit: bigint; - depositor: AccountId32; - approvals: Array; -}; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMultisigError = - /** - * Threshold must be 2 or greater. - **/ - | 'MinimumThreshold' - /** - * Call is already approved by this signatory. - **/ - | 'AlreadyApproved' - /** - * Call doesn't need any (more) approvals. - **/ - | 'NoApprovalsNeeded' - /** - * There are too few signatories in the list. - **/ - | 'TooFewSignatories' - /** - * There are too many signatories in the list. - **/ - | 'TooManySignatories' - /** - * The signatories were provided out of order; they should be ordered. - **/ - | 'SignatoriesOutOfOrder' - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - | 'SenderInSignatories' - /** - * Multisig operation not found when attempting to cancel. - **/ - | 'NotFound' - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - | 'NotOwner' - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - | 'NoTimepoint' - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - | 'WrongTimepoint' - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - | 'UnexpectedTimepoint' - /** - * The maximum weight information provided was too low. - **/ - | 'MaxWeightTooLow' - /** - * The data to be stored is already stored. - **/ - | 'AlreadyStored'; - -export type PalletProxyProxyDefinition = { - delegate: AccountId32; - proxyType: AssetHubRococoRuntimeProxyType; - delay: number; -}; - -export type PalletProxyAnnouncement = { real: AccountId32; callHash: H256; height: number }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletProxyError = - /** - * There are too many proxies registered or too many announcements pending. - **/ - | 'TooMany' - /** - * Proxy registration not found. - **/ - | 'NotFound' - /** - * Sender is not a proxy of the account to be proxied. - **/ - | 'NotProxy' - /** - * A call which is incompatible with the proxy type's filter was attempted. - **/ - | 'Unproxyable' - /** - * Account is already a proxy. - **/ - | 'Duplicate' - /** - * Call may not be made by proxy because it may escalate its privileges. - **/ - | 'NoPermission' - /** - * Announcement, if made at all, was made too recently. - **/ - | 'Unannounced' - /** - * Cannot add self as proxy. - **/ - | 'NoSelfProxy'; - -export type BpXcmBridgeHubRouterBridgeState = { deliveryFeeFactor: FixedU128; isCongested: boolean }; - -export type PalletAssetsAssetDetails = { - owner: AccountId32; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - supply: bigint; - deposit: bigint; - minBalance: bigint; - isSufficient: boolean; - accounts: number; - sufficients: number; - approvals: number; - status: PalletAssetsAssetStatus; -}; - -export type PalletAssetsAssetStatus = 'Live' | 'Frozen' | 'Destroying'; - -export type PalletAssetsAssetAccount = { - balance: bigint; - status: PalletAssetsAccountStatus; - reason: PalletAssetsExistenceReason; - extra: []; -}; - -export type PalletAssetsAccountStatus = 'Liquid' | 'Frozen' | 'Blocked'; - -export type PalletAssetsExistenceReason = - | { type: 'Consumer' } - | { type: 'Sufficient' } - | { type: 'DepositHeld'; value: bigint } - | { type: 'DepositRefunded' } - | { type: 'DepositFrom'; value: [AccountId32, bigint] }; - -export type PalletAssetsApproval = { amount: bigint; deposit: bigint }; - -export type PalletAssetsAssetMetadata = { - deposit: bigint; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; -}; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetsError = - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - | 'BalanceLow' - /** - * The account to alter does not exist. - **/ - | 'NoAccount' - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given asset ID is unknown. - **/ - | 'Unknown' - /** - * The origin account is frozen. - **/ - | 'Frozen' - /** - * The asset ID is already taken. - **/ - | 'InUse' - /** - * Invalid witness data given. - **/ - | 'BadWitness' - /** - * Minimum balance should be non-zero. - **/ - | 'MinBalanceZero' - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - | 'UnavailableConsumer' - /** - * Invalid metadata given. - **/ - | 'BadMetadata' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - | 'WouldDie' - /** - * The asset-account already exists. - **/ - | 'AlreadyExists' - /** - * The asset-account doesn't have an associated deposit. - **/ - | 'NoDeposit' - /** - * The operation would result in funds being burned. - **/ - | 'WouldBurn' - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - | 'LiveAsset' - /** - * The asset is not live, and likely being destroyed. - **/ - | 'AssetNotLive' - /** - * The asset status is not the expected status. - **/ - | 'IncorrectStatus' - /** - * The asset should be frozen before the given operation. - **/ - | 'NotFrozen' - /** - * Callback action resulted in error - **/ - | 'CallbackFailed' - /** - * The asset ID must be equal to the [`NextAssetId`]. - **/ - | 'BadAssetId'; - -export type PalletUniquesCollectionDetails = { - owner: AccountId32; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - totalDeposit: bigint; - freeHolding: boolean; - items: number; - itemMetadatas: number; - attributes: number; - isFrozen: boolean; -}; - -export type PalletUniquesItemDetails = { - owner: AccountId32; - approved?: AccountId32 | undefined; - isFrozen: boolean; - deposit: bigint; -}; - -export type PalletUniquesCollectionMetadata = { deposit: bigint; data: Bytes; isFrozen: boolean }; - -export type PalletUniquesItemMetadata = { deposit: bigint; data: Bytes; isFrozen: boolean }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletUniquesError = - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given item ID is unknown. - **/ - | 'UnknownCollection' - /** - * The item ID has already been used for an item. - **/ - | 'AlreadyExists' - /** - * The owner turned out to be different to what was expected. - **/ - | 'WrongOwner' - /** - * Invalid witness data given. - **/ - | 'BadWitness' - /** - * The item ID is already taken. - **/ - | 'InUse' - /** - * The item or collection is frozen. - **/ - | 'Frozen' - /** - * The delegate turned out to be different to what was expected. - **/ - | 'WrongDelegate' - /** - * There is no delegate approved. - **/ - | 'NoDelegate' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The named owner has not signed ownership of the collection is acceptable. - **/ - | 'Unaccepted' - /** - * The item is locked. - **/ - | 'Locked' - /** - * All items have been minted. - **/ - | 'MaxSupplyReached' - /** - * The max supply has already been set. - **/ - | 'MaxSupplyAlreadySet' - /** - * The provided max supply is less to the amount of items a collection already has. - **/ - | 'MaxSupplyTooSmall' - /** - * The given item ID is unknown. - **/ - | 'UnknownItem' - /** - * Item is not for sale. - **/ - | 'NotForSale' - /** - * The provided bid is too low. - **/ - | 'BidTooLow'; - -export type PalletNftsCollectionDetails = { - owner: AccountId32; - ownerDeposit: bigint; - items: number; - itemMetadatas: number; - itemConfigs: number; - attributes: number; -}; - -export type PalletNftsBitFlagsCollectionRole = number; - -export type PalletNftsCollectionRole = 'Issuer' | 'Freezer' | 'Admin'; - -export type PalletNftsItemDetails = { - owner: AccountId32; - approvals: Array<[AccountId32, number | undefined]>; - deposit: PalletNftsItemDeposit; -}; - -export type PalletNftsItemDeposit = { account: AccountId32; amount: bigint }; - -export type PalletNftsCollectionMetadata = { deposit: bigint; data: Bytes }; - -export type PalletNftsItemMetadata = { deposit: PalletNftsItemMetadataDeposit; data: Bytes }; - -export type PalletNftsItemMetadataDeposit = { account?: AccountId32 | undefined; amount: bigint }; - -export type PalletNftsAttributeDeposit = { account?: AccountId32 | undefined; amount: bigint }; - -export type PalletNftsPendingSwap = { - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; -}; - -export type PalletNftsBitFlagsPalletFeature = bigint; - -export type PalletNftsPalletFeature = 'Trading' | 'Attributes' | 'Approvals' | 'Swaps'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletNftsError = - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given item ID is unknown. - **/ - | 'UnknownCollection' - /** - * The item ID has already been used for an item. - **/ - | 'AlreadyExists' - /** - * The approval had a deadline that expired, so the approval isn't valid anymore. - **/ - | 'ApprovalExpired' - /** - * The owner turned out to be different to what was expected. - **/ - | 'WrongOwner' - /** - * The witness data given does not match the current state of the chain. - **/ - | 'BadWitness' - /** - * Collection ID is already taken. - **/ - | 'CollectionIdInUse' - /** - * Items within that collection are non-transferable. - **/ - | 'ItemsNonTransferable' - /** - * The provided account is not a delegate. - **/ - | 'NotDelegate' - /** - * The delegate turned out to be different to what was expected. - **/ - | 'WrongDelegate' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The named owner has not signed ownership acceptance of the collection. - **/ - | 'Unaccepted' - /** - * The item is locked (non-transferable). - **/ - | 'ItemLocked' - /** - * Item's attributes are locked. - **/ - | 'LockedItemAttributes' - /** - * Collection's attributes are locked. - **/ - | 'LockedCollectionAttributes' - /** - * Item's metadata is locked. - **/ - | 'LockedItemMetadata' - /** - * Collection's metadata is locked. - **/ - | 'LockedCollectionMetadata' - /** - * All items have been minted. - **/ - | 'MaxSupplyReached' - /** - * The max supply is locked and can't be changed. - **/ - | 'MaxSupplyLocked' - /** - * The provided max supply is less than the number of items a collection already has. - **/ - | 'MaxSupplyTooSmall' - /** - * The given item ID is unknown. - **/ - | 'UnknownItem' - /** - * Swap doesn't exist. - **/ - | 'UnknownSwap' - /** - * The given item has no metadata set. - **/ - | 'MetadataNotFound' - /** - * The provided attribute can't be found. - **/ - | 'AttributeNotFound' - /** - * Item is not for sale. - **/ - | 'NotForSale' - /** - * The provided bid is too low. - **/ - | 'BidTooLow' - /** - * The item has reached its approval limit. - **/ - | 'ReachedApprovalLimit' - /** - * The deadline has already expired. - **/ - | 'DeadlineExpired' - /** - * The duration provided should be less than or equal to `MaxDeadlineDuration`. - **/ - | 'WrongDuration' - /** - * The method is disabled by system settings. - **/ - | 'MethodDisabled' - /** - * The provided setting can't be set. - **/ - | 'WrongSetting' - /** - * Item's config already exists and should be equal to the provided one. - **/ - | 'InconsistentItemConfig' - /** - * Config for a collection or an item can't be found. - **/ - | 'NoConfig' - /** - * Some roles were not cleared. - **/ - | 'RolesNotCleared' - /** - * Mint has not started yet. - **/ - | 'MintNotStarted' - /** - * Mint has already ended. - **/ - | 'MintEnded' - /** - * The provided Item was already used for claiming. - **/ - | 'AlreadyClaimed' - /** - * The provided data is incorrect. - **/ - | 'IncorrectData' - /** - * The extrinsic was sent by the wrong origin. - **/ - | 'WrongOrigin' - /** - * The provided signature is incorrect. - **/ - | 'WrongSignature' - /** - * The provided metadata might be too long. - **/ - | 'IncorrectMetadata' - /** - * Can't set more attributes per one call. - **/ - | 'MaxAttributesLimitReached' - /** - * The provided namespace isn't supported in this call. - **/ - | 'WrongNamespace' - /** - * Can't delete non-empty collections. - **/ - | 'CollectionNotEmpty' - /** - * The witness data should be provided. - **/ - | 'WitnessRequired'; - -export type PalletNftFractionalizationDetails = { - asset: number; - fractions: bigint; - deposit: bigint; - assetCreator: AccountId32; -}; - -export type FrameSupportPalletId = FixedBytes<8>; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletNftFractionalizationError = - /** - * Asset ID does not correspond to locked NFT. - **/ - | 'IncorrectAssetId' - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * NFT doesn't exist. - **/ - | 'NftNotFound' - /** - * NFT has not yet been fractionalised. - **/ - | 'NftNotFractionalized'; - -export type PalletAssetConversionPoolInfo = { lpToken: number }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetConversionError = - /** - * Provided asset pair is not supported for pool. - **/ - | 'InvalidAssetPair' - /** - * Pool already exists. - **/ - | 'PoolExists' - /** - * Desired amount can't be zero. - **/ - | 'WrongDesiredAmount' - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'AmountOneLessThanMinimal' - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'AmountTwoLessThanMinimal' - /** - * Reserve needs to always be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'ReserveLeftLessThanMinimal' - /** - * Desired amount can't be equal to the pool reserve. - **/ - | 'AmountOutTooHigh' - /** - * The pool doesn't exist. - **/ - | 'PoolNotFound' - /** - * An overflow happened. - **/ - | 'Overflow' - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - | 'AssetOneDepositDidNotMeetMinimum' - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - | 'AssetTwoDepositDidNotMeetMinimum' - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - | 'AssetOneWithdrawalDidNotMeetMinimum' - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - | 'AssetTwoWithdrawalDidNotMeetMinimum' - /** - * Optimal calculated amount is less than desired. - **/ - | 'OptimalAmountLessThanDesired' - /** - * Insufficient liquidity minted. - **/ - | 'InsufficientLiquidityMinted' - /** - * Requested liquidity can't be zero. - **/ - | 'ZeroLiquidity' - /** - * Amount can't be zero. - **/ - | 'ZeroAmount' - /** - * Calculated amount out is less than provided minimum amount. - **/ - | 'ProvidedMinimumNotSufficientForSwap' - /** - * Provided maximum amount is not sufficient for swap. - **/ - | 'ProvidedMaximumNotSufficientForSwap' - /** - * The provided path must consists of 2 assets at least. - **/ - | 'InvalidPath' - /** - * The provided path must consists of unique assets. - **/ - | 'NonUniquePath' - /** - * It was not possible to get or increment the Id of the pool. - **/ - | 'IncorrectPoolAssetId' - /** - * The destination account cannot exist with the swapped funds. - **/ - | 'BelowMinimum'; - -export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = { - id: AssetHubRococoRuntimeRuntimeFreezeReason; - amount: bigint; -}; - -export type AssetHubRococoRuntimeRuntimeFreezeReason = null; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetsFreezerError = - /** - * Number of freezes on an account would exceed `MaxFreezes`. - **/ - 'TooManyFreezes'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetConversionOpsError = - /** - * Provided asset pair is not supported for pool. - **/ - | 'InvalidAssetPair' - /** - * The pool doesn't exist. - **/ - | 'PoolNotFound' - /** - * Pool's balance cannot be zero. - **/ - | 'ZeroBalance' - /** - * Indicates a partial transfer of balance to the new account during a migration. - **/ - | 'PartialTransfer'; - -export type FrameSystemExtensionsCheckNonZeroSender = {}; - -export type FrameSystemExtensionsCheckSpecVersion = {}; - -export type FrameSystemExtensionsCheckTxVersion = {}; - -export type FrameSystemExtensionsCheckGenesis = {}; - -export type FrameSystemExtensionsCheckMortality = Era; - -export type FrameSystemExtensionsCheckNonce = number; - -export type FrameSystemExtensionsCheckWeight = {}; - -export type PalletAssetConversionTxPaymentChargeAssetTxPayment = { - tip: bigint; - assetId?: StagingXcmV3MultilocationMultiLocation | undefined; -}; - -export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {}; - -export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode }; - -export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled'; - -export type AssetHubRococoRuntimeRuntime = {}; - -export type SpConsensusSlotsSlotDuration = bigint; - -export type SpRuntimeBlock = { header: Header; extrinsics: Array }; - -export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents'; - -export type SpCoreOpaqueMetadata = Bytes; - -export type SpRuntimeTransactionValidityTransactionValidityError = - | { type: 'Invalid'; value: SpRuntimeTransactionValidityInvalidTransaction } - | { type: 'Unknown'; value: SpRuntimeTransactionValidityUnknownTransaction }; - -export type SpRuntimeTransactionValidityInvalidTransaction = - | { type: 'Call' } - | { type: 'Payment' } - | { type: 'Future' } - | { type: 'Stale' } - | { type: 'BadProof' } - | { type: 'AncientBirthBlock' } - | { type: 'ExhaustsResources' } - | { type: 'Custom'; value: number } - | { type: 'BadMandatory' } - | { type: 'MandatoryValidation' } - | { type: 'BadSigner' }; - -export type SpRuntimeTransactionValidityUnknownTransaction = - | { type: 'CannotLookup' } - | { type: 'NoUnsignedValidator' } - | { type: 'Custom'; value: number }; - -export type SpInherentsInherentData = { data: Array<[FixedBytes<8>, Bytes]> }; - -export type SpInherentsCheckInherentsResult = { okay: boolean; fatalError: boolean; errors: SpInherentsInherentData }; - -export type SpRuntimeTransactionValidityTransactionSource = 'InBlock' | 'Local' | 'External'; - -export type SpRuntimeTransactionValidityValidTransaction = { - priority: bigint; - requires: Array; - provides: Array; - longevity: bigint; - propagate: boolean; -}; - -export type PalletTransactionPaymentRuntimeDispatchInfo = { - weight: SpWeightsWeightV2Weight; - class: FrameSupportDispatchDispatchClass; - partialFee: bigint; -}; - -export type PalletTransactionPaymentFeeDetails = { - inclusionFee?: PalletTransactionPaymentInclusionFee | undefined; - tip: bigint; -}; - -export type PalletTransactionPaymentInclusionFee = { baseFee: bigint; lenFee: bigint; adjustedWeightFee: bigint }; - -export type AssetsCommonRuntimeApiFungiblesAccessError = 'AssetIdConversionFailed' | 'AmountToBalanceConversionFailed'; - -export type XcmRuntimeApisFeesError = - | 'Unimplemented' - | 'VersionedConversionFailed' - | 'WeightNotComputable' - | 'UnhandledXcmVersion' - | 'AssetNotFound' - | 'Unroutable'; - -export type XcmRuntimeApisDryRunCallDryRunEffects = { - executionResult: Result; - emittedEvents: Array; - localXcm?: XcmVersionedXcm | undefined; - forwardedXcms: Array<[XcmVersionedLocation, Array]>; -}; - -export type FrameSupportDispatchPostDispatchInfo = { - actualWeight?: SpWeightsWeightV2Weight | undefined; - paysFee: FrameSupportDispatchPays; -}; - -export type SpRuntimeDispatchErrorWithPostInfo = { - postInfo: FrameSupportDispatchPostDispatchInfo; - error: DispatchError; -}; - -export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed'; - -export type XcmRuntimeApisDryRunXcmDryRunEffects = { - executionResult: StagingXcmV4TraitsOutcome; - emittedEvents: Array; - forwardedXcms: Array<[XcmVersionedLocation, Array]>; -}; - -export type XcmRuntimeApisConversionsError = 'Unsupported' | 'VersionedConversionFailed'; - -export type CumulusPrimitivesCoreCollationInfo = { - upwardMessages: Array; - horizontalMessages: Array; - newValidationCode?: PolkadotParachainPrimitivesPrimitivesValidationCode | undefined; - processedDownwardMessages: number; - hrmpWatermark: number; - headData: PolkadotParachainPrimitivesPrimitivesHeadData; -}; - -export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes; - -export type AssetHubRococoRuntimeRuntimeError = - | { pallet: 'System'; palletError: FrameSystemError } - | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError } - | { pallet: 'Balances'; palletError: PalletBalancesError } - | { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError } - | { pallet: 'Session'; palletError: PalletSessionError } - | { pallet: 'XcmpQueue'; palletError: CumulusPalletXcmpQueueError } - | { pallet: 'PolkadotXcm'; palletError: PalletXcmError } - | { pallet: 'MessageQueue'; palletError: PalletMessageQueueError } - | { pallet: 'Utility'; palletError: PalletUtilityError } - | { pallet: 'Multisig'; palletError: PalletMultisigError } - | { pallet: 'Proxy'; palletError: PalletProxyError } - | { pallet: 'Assets'; palletError: PalletAssetsError } - | { pallet: 'Uniques'; palletError: PalletUniquesError } - | { pallet: 'Nfts'; palletError: PalletNftsError } - | { pallet: 'ForeignAssets'; palletError: PalletAssetsError } - | { pallet: 'NftFractionalization'; palletError: PalletNftFractionalizationError } - | { pallet: 'PoolAssets'; palletError: PalletAssetsError } - | { pallet: 'AssetConversion'; palletError: PalletAssetConversionError } - | { pallet: 'AssetsFreezer'; palletError: PalletAssetsFreezerError } - | { pallet: 'ForeignAssetsFreezer'; palletError: PalletAssetsFreezerError } - | { pallet: 'PoolAssetsFreezer'; palletError: PalletAssetsFreezerError } - | { pallet: 'AssetConversionMigration'; palletError: PalletAssetConversionOpsError }; diff --git a/packages/chaintypes/src/westendAssetHub/consts.d.ts b/packages/chaintypes/src/westendAssetHub/consts.d.ts deleted file mode 100644 index b575f20..0000000 --- a/packages/chaintypes/src/westendAssetHub/consts.d.ts +++ /dev/null @@ -1,869 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainConsts, RpcVersion } from 'dedot/types'; -import type { RuntimeVersion, Bytes, Permill } from 'dedot/codecs'; -import type { - FrameSystemLimitsBlockWeights, - FrameSystemLimitsBlockLength, - SpWeightsRuntimeDbWeight, - PolkadotParachainPrimitivesPrimitivesId, - SpWeightsWeightV2Weight, - PalletNftsBitFlagsPalletFeature, - FrameSupportPalletId, - StagingXcmV3MultilocationMultiLocation, -} from './types'; - -export interface ChainConsts extends GenericChainConsts { - /** - * Pallet `System`'s constants - **/ - system: { - /** - * Block & extrinsics weights: base values and limits. - **/ - blockWeights: FrameSystemLimitsBlockWeights; - - /** - * The maximum length of a block (in bytes). - **/ - blockLength: FrameSystemLimitsBlockLength; - - /** - * Maximum number of block number to block hash mappings to keep (oldest pruned first). - **/ - blockHashCount: number; - - /** - * The weight of runtime database operations the runtime can invoke. - **/ - dbWeight: SpWeightsRuntimeDbWeight; - - /** - * Get the chain's in-code version. - **/ - version: RuntimeVersion; - - /** - * The designated SS58 prefix of this chain. - * - * This replaces the "ss58Format" property declared in the chain spec. Reason is - * that the runtime should know about the prefix in order to make use of it as - * an identifier of the chain. - **/ - ss58Prefix: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainSystem`'s constants - **/ - parachainSystem: { - /** - * Returns the parachain ID we are running with. - **/ - selfParaId: PolkadotParachainPrimitivesPrimitivesId; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Timestamp`'s constants - **/ - timestamp: { - /** - * The minimum period between blocks. - * - * Be aware that this is different to the *expected* period that the block production - * apparatus provides. Your chosen consensus system will generally work with this to - * determine a sensible block time. For example, in the Aura pallet it will be double this - * period on default settings. - **/ - minimumPeriod: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainInfo`'s constants - **/ - parachainInfo: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Balances`'s constants - **/ - balances: { - /** - * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! - * - * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for - * this pallet. However, you do so at your own risk: this will open up a major DoS vector. - * In case you have multiple sources of provider references, you may also get unexpected - * behaviour if you set this to zero. - * - * Bottom line: Do yourself a favour and make it at least one! - **/ - existentialDeposit: bigint; - - /** - * The maximum number of locks that should exist on an account. - * Not strictly enforced, but used for weight estimation. - * - * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` - **/ - maxLocks: number; - - /** - * The maximum number of named reserves that can exist on an account. - * - * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` - **/ - maxReserves: number; - - /** - * The maximum number of individual freeze locks that can exist on an account at any time. - **/ - maxFreezes: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `TransactionPayment`'s constants - **/ - transactionPayment: { - /** - * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their - * `priority` - * - * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later - * added to a tip component in regular `priority` calculations. - * It means that a `Normal` transaction can front-run a similarly-sized `Operational` - * extrinsic (with no tip), by including a tip value greater than the virtual tip. - * - * ```rust,ignore - * // For `Normal` - * let priority = priority_calc(tip); - * - * // For `Operational` - * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; - * let priority = priority_calc(tip + virtual_tip); - * ``` - * - * Note that since we use `final_fee` the multiplier applies also to the regular `tip` - * sent with the transaction. So, not only does the transaction get a priority bump based - * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational` - * transactions. - **/ - operationalFeeMultiplier: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetTxPayment`'s constants - **/ - assetTxPayment: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Authorship`'s constants - **/ - authorship: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CollatorSelection`'s constants - **/ - collatorSelection: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Session`'s constants - **/ - session: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Aura`'s constants - **/ - aura: { - /** - * The slot duration Aura should run with, expressed in milliseconds. - * The effective value of this type should not change while the chain is running. - * - * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const. - **/ - slotDuration: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AuraExt`'s constants - **/ - auraExt: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `XcmpQueue`'s constants - **/ - xcmpQueue: { - /** - * The maximum number of inbound XCMP channels that can be suspended simultaneously. - * - * Any further channel suspensions will fail and messages may get dropped without further - * notice. Choosing a high value (1000) is okay; the trade-off that is described in - * [`InboundXcmpSuspended`] still applies at that scale. - **/ - maxInboundSuspended: number; - - /** - * Maximal number of outbound XCMP channels that can have messages queued at the same time. - * - * If this is reached, then no further messages can be sent to channels that do not yet - * have a message queued. This should be set to the expected maximum of outbound channels - * which is determined by [`Self::ChannelInfo`]. It is important to set this large enough, - * since otherwise the congestion control protocol will not work as intended and messages - * may be dropped. This value increases the PoV and should therefore not be picked too - * high. Governance needs to pay attention to not open more channels than this value. - **/ - maxActiveOutboundChannels: number; - - /** - * The maximal page size for HRMP message pages. - * - * A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case - * benchmarking. The limit for the size of a message is slightly below this, since some - * overhead is incurred for encoding the format. - **/ - maxPageSize: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PolkadotXcm`'s constants - **/ - polkadotXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CumulusXcm`'s constants - **/ - cumulusXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ToRococoXcmRouter`'s constants - **/ - toRococoXcmRouter: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `MessageQueue`'s constants - **/ - messageQueue: { - /** - * The size of the page; this implies the maximum message size which can be sent. - * - * A good value depends on the expected message sizes, their weights, the weight that is - * available for processing them and the maximal needed message size. The maximal message - * size is slightly lower than this as defined by [`MaxMessageLenOf`]. - **/ - heapSize: number; - - /** - * The maximum number of stale pages (i.e. of overweight messages) allowed before culling - * can happen. Once there are more stale pages than this, then historical pages may be - * dropped, even if they contain unprocessed overweight messages. - **/ - maxStale: number; - - /** - * The amount of weight (if any) which should be provided to the message queue for - * servicing enqueued items `on_initialize`. - * - * This may be legitimately `None` in the case that you will call - * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have - * it run in `on_idle`. - **/ - serviceWeight: SpWeightsWeightV2Weight | undefined; - - /** - * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which - * should be provided to the message queue for servicing enqueued items `on_idle`. - * Useful for parachains to process messages at the same block they are received. - * - * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`. - **/ - idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Utility`'s constants - **/ - utility: { - /** - * The limit on the number of batched calls. - **/ - batchedCallsLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Multisig`'s constants - **/ - multisig: { - /** - * The base amount of currency needed to reserve for creating a multisig execution or to - * store a dispatch call for later. - * - * This is held for an additional storage item whose value size is - * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is - * `32 + sizeof(AccountId)` bytes. - **/ - depositBase: bigint; - - /** - * The amount of currency needed per unit threshold when creating a multisig execution. - * - * This is held for adding 32 bytes more into a pre-existing storage value. - **/ - depositFactor: bigint; - - /** - * The maximum amount of signatories allowed in the multisig. - **/ - maxSignatories: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Proxy`'s constants - **/ - proxy: { - /** - * The base amount of currency needed to reserve for creating a proxy. - * - * This is held for an additional storage item whose value size is - * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes. - **/ - proxyDepositBase: bigint; - - /** - * The amount of currency needed per proxy added. - * - * This is held for adding 32 bytes plus an instance of `ProxyType` more into a - * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take - * into account `32 + proxy_type.encode().len()` bytes of data. - **/ - proxyDepositFactor: bigint; - - /** - * The maximum amount of proxies allowed for a single account. - **/ - maxProxies: number; - - /** - * The maximum amount of time-delayed announcements that are allowed to be pending. - **/ - maxPending: number; - - /** - * The base amount of currency needed to reserve for creating an announcement. - * - * This is held when a new storage item holding a `Balance` is created (typically 16 - * bytes). - **/ - announcementDepositBase: bigint; - - /** - * The amount of currency needed per announcement made. - * - * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes) - * into a pre-existing storage value. - **/ - announcementDepositFactor: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Assets`'s constants - **/ - assets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Uniques`'s constants - **/ - uniques: { - /** - * The basic amount of funds that must be reserved for collection. - **/ - collectionDeposit: bigint; - - /** - * The basic amount of funds that must be reserved for an item. - **/ - itemDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your item. - **/ - metadataDepositBase: bigint; - - /** - * The basic amount of funds that must be reserved when adding an attribute to an item. - **/ - attributeDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes store in metadata, - * either "normal" metadata or attribute metadata. - **/ - depositPerByte: bigint; - - /** - * The maximum length of data stored on-chain. - **/ - stringLimit: number; - - /** - * The maximum length of an attribute key. - **/ - keyLimit: number; - - /** - * The maximum length of an attribute value. - **/ - valueLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Nfts`'s constants - **/ - nfts: { - /** - * The basic amount of funds that must be reserved for collection. - **/ - collectionDeposit: bigint; - - /** - * The basic amount of funds that must be reserved for an item. - **/ - itemDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your item. - **/ - metadataDepositBase: bigint; - - /** - * The basic amount of funds that must be reserved when adding an attribute to an item. - **/ - attributeDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes store in metadata, - * either "normal" metadata or attribute metadata. - **/ - depositPerByte: bigint; - - /** - * The maximum length of data stored on-chain. - **/ - stringLimit: number; - - /** - * The maximum length of an attribute key. - **/ - keyLimit: number; - - /** - * The maximum length of an attribute value. - **/ - valueLimit: number; - - /** - * The maximum approvals an item could have. - **/ - approvalsLimit: number; - - /** - * The maximum attributes approvals an item could have. - **/ - itemAttributesApprovalsLimit: number; - - /** - * The max number of tips a user could send. - **/ - maxTips: number; - - /** - * The max duration in blocks for deadlines. - **/ - maxDeadlineDuration: number; - - /** - * The max number of attributes a user could set per call. - **/ - maxAttributesPerCall: number; - - /** - * Disables some of pallet's features. - **/ - features: PalletNftsBitFlagsPalletFeature; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ForeignAssets`'s constants - **/ - foreignAssets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `NftFractionalization`'s constants - **/ - nftFractionalization: { - /** - * The deposit paid by the user locking an NFT. The deposit is returned to the original NFT - * owner when the asset is unified and the NFT is unlocked. - **/ - deposit: bigint; - - /** - * The pallet's id, used for deriving its sovereign account ID. - **/ - palletId: FrameSupportPalletId; - - /** - * The newly created asset's symbol. - **/ - newAssetSymbol: Bytes; - - /** - * The newly created asset's name. - **/ - newAssetName: Bytes; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PoolAssets`'s constants - **/ - poolAssets: { - /** - * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call. - * - * Must be configured to result in a weight that makes each call fit in a block. - **/ - removeItemsLimit: number; - - /** - * The basic amount of funds that must be reserved for an asset. - **/ - assetDeposit: bigint; - - /** - * The amount of funds that must be reserved for a non-provider asset account to be - * maintained. - **/ - assetAccountDeposit: bigint; - - /** - * The basic amount of funds that must be reserved when adding metadata to your asset. - **/ - metadataDepositBase: bigint; - - /** - * The additional funds that must be reserved for the number of bytes you store in your - * metadata. - **/ - metadataDepositPerByte: bigint; - - /** - * The amount of funds that must be reserved when creating a new approval. - **/ - approvalDeposit: bigint; - - /** - * The maximum length of a name or symbol stored on-chain. - **/ - stringLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetConversion`'s constants - **/ - assetConversion: { - /** - * A % the liquidity providers will take of every swap. Represents 10ths of a percent. - **/ - lpFee: number; - - /** - * A one-time fee to setup the pool. - **/ - poolSetupFee: bigint; - - /** - * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`]. - **/ - poolSetupFeeAsset: StagingXcmV3MultilocationMultiLocation; - - /** - * A fee to withdraw the liquidity. - **/ - liquidityWithdrawalFee: Permill; - - /** - * The minimum LP token amount that could be minted. Ameliorates rounding errors. - **/ - mintMinLiquidity: bigint; - - /** - * The max number of hops in a swap. - **/ - maxSwapPathLength: number; - - /** - * The pallet's id, used for deriving its sovereign account ID. - **/ - palletId: FrameSupportPalletId; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetsFreezer`'s constants - **/ - assetsFreezer: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ForeignAssetsFreezer`'s constants - **/ - foreignAssetsFreezer: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PoolAssetsFreezer`'s constants - **/ - poolAssetsFreezer: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `StateTrieMigration`'s constants - **/ - stateTrieMigration: { - /** - * Maximal number of bytes that a key can have. - * - * FRAME itself does not limit the key length. - * The concrete value must therefore depend on your storage usage. - * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of - * keys which are then hashed and concatenated, resulting in arbitrarily long keys. - * - * Use the *state migration RPC* to retrieve the length of the longest key in your - * storage: - * - * The migration will halt with a `Halted` event if this value is too small. - * Since there is no real penalty from over-estimating, it is advised to use a large - * value. The default is 512 byte. - * - * Some key lengths for reference: - * - [`frame_support::storage::StorageValue`]: 32 byte - * - [`frame_support::storage::StorageMap`]: 64 byte - * - [`frame_support::storage::StorageDoubleMap`]: 96 byte - * - * For more info see - * - **/ - maxKeyLen: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AssetConversionMigration`'s constants - **/ - assetConversionMigration: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; -} diff --git a/packages/chaintypes/src/westendAssetHub/errors.d.ts b/packages/chaintypes/src/westendAssetHub/errors.d.ts deleted file mode 100644 index 19e03f9..0000000 --- a/packages/chaintypes/src/westendAssetHub/errors.d.ts +++ /dev/null @@ -1,1635 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainErrors, GenericPalletError, RpcVersion } from 'dedot/types'; - -export interface ChainErrors extends GenericChainErrors { - /** - * Pallet `System`'s errors - **/ - system: { - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - InvalidSpecName: GenericPalletError; - - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - SpecVersionNeedsToIncrease: GenericPalletError; - - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - FailedToExtractRuntimeVersion: GenericPalletError; - - /** - * Suicide called when the account has non-default composite data. - **/ - NonDefaultComposite: GenericPalletError; - - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - NonZeroRefCount: GenericPalletError; - - /** - * The origin filter prevent the call to be dispatched. - **/ - CallFiltered: GenericPalletError; - - /** - * A multi-block migration is ongoing and prevents the current code from being replaced. - **/ - MultiBlockMigrationsOngoing: GenericPalletError; - - /** - * No upgrade authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The submitted code is not authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ParachainSystem`'s errors - **/ - parachainSystem: { - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - OverlappingUpgrades: GenericPalletError; - - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - ProhibitedByPolkadot: GenericPalletError; - - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - TooBig: GenericPalletError; - - /** - * The inherent which supplies the validation data did not run this block. - **/ - ValidationDataNotAvailable: GenericPalletError; - - /** - * The inherent which supplies the host configuration did not run this block. - **/ - HostConfigurationNotAvailable: GenericPalletError; - - /** - * No validation function upgrade is currently scheduled. - **/ - NotScheduled: GenericPalletError; - - /** - * No code upgrade has been authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The given code upgrade has not been authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Balances`'s errors - **/ - balances: { - /** - * Vesting balance too high to send value. - **/ - VestingBalance: GenericPalletError; - - /** - * Account liquidity restrictions prevent withdrawal. - **/ - LiquidityRestrictions: GenericPalletError; - - /** - * Balance too low to send value. - **/ - InsufficientBalance: GenericPalletError; - - /** - * Value too low to create account due to existential deposit. - **/ - ExistentialDeposit: GenericPalletError; - - /** - * Transfer/payment would kill account. - **/ - Expendability: GenericPalletError; - - /** - * A vesting schedule already exists for this account. - **/ - ExistingVestingSchedule: GenericPalletError; - - /** - * Beneficiary account must pre-exist. - **/ - DeadAccount: GenericPalletError; - - /** - * Number of named reserves exceed `MaxReserves`. - **/ - TooManyReserves: GenericPalletError; - - /** - * Number of holds exceed `VariantCountOf`. - **/ - TooManyHolds: GenericPalletError; - - /** - * Number of freezes exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * The issuance cannot be modified since it is already deactivated. - **/ - IssuanceDeactivated: GenericPalletError; - - /** - * The delta cannot be zero. - **/ - DeltaZero: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `CollatorSelection`'s errors - **/ - collatorSelection: { - /** - * The pallet has too many candidates. - **/ - TooManyCandidates: GenericPalletError; - - /** - * Leaving would result in too few candidates. - **/ - TooFewEligibleCollators: GenericPalletError; - - /** - * Account is already a candidate. - **/ - AlreadyCandidate: GenericPalletError; - - /** - * Account is not a candidate. - **/ - NotCandidate: GenericPalletError; - - /** - * There are too many Invulnerables. - **/ - TooManyInvulnerables: GenericPalletError; - - /** - * Account is already an Invulnerable. - **/ - AlreadyInvulnerable: GenericPalletError; - - /** - * Account is not an Invulnerable. - **/ - NotInvulnerable: GenericPalletError; - - /** - * Account has no associated validator ID. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Validator ID is not yet registered. - **/ - ValidatorNotRegistered: GenericPalletError; - - /** - * Could not insert in the candidate list. - **/ - InsertToCandidateListFailed: GenericPalletError; - - /** - * Could not remove from the candidate list. - **/ - RemoveFromCandidateListFailed: GenericPalletError; - - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - DepositTooLow: GenericPalletError; - - /** - * Could not update the candidate list. - **/ - UpdateCandidateListFailed: GenericPalletError; - - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - InsufficientBond: GenericPalletError; - - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - TargetIsNotCandidate: GenericPalletError; - - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - IdenticalDeposit: GenericPalletError; - - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - InvalidUnreserve: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Session`'s errors - **/ - session: { - /** - * Invalid ownership proof. - **/ - InvalidProof: GenericPalletError; - - /** - * No associated validator ID for account. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Registered duplicate key. - **/ - DuplicatedKey: GenericPalletError; - - /** - * No keys are associated with this account. - **/ - NoKeys: GenericPalletError; - - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - NoAccount: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `XcmpQueue`'s errors - **/ - xcmpQueue: { - /** - * Setting the queue config failed since one of its values was invalid. - **/ - BadQueueConfig: GenericPalletError; - - /** - * The execution is already suspended. - **/ - AlreadySuspended: GenericPalletError; - - /** - * The execution is already resumed. - **/ - AlreadyResumed: GenericPalletError; - - /** - * There are too many active outbound channels. - **/ - TooManyActiveOutboundChannels: GenericPalletError; - - /** - * The message is too big. - **/ - TooBig: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PolkadotXcm`'s errors - **/ - polkadotXcm: { - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - Unreachable: GenericPalletError; - - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - SendFailure: GenericPalletError; - - /** - * The message execution fails the filter. - **/ - Filtered: GenericPalletError; - - /** - * The message's weight could not be determined. - **/ - UnweighableMessage: GenericPalletError; - - /** - * The destination `Location` provided cannot be inverted. - **/ - DestinationNotInvertible: GenericPalletError; - - /** - * The assets to be sent are empty. - **/ - Empty: GenericPalletError; - - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - CannotReanchor: GenericPalletError; - - /** - * Too many assets have been attempted for transfer. - **/ - TooManyAssets: GenericPalletError; - - /** - * Origin is invalid for sending. - **/ - InvalidOrigin: GenericPalletError; - - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - BadVersion: GenericPalletError; - - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - BadLocation: GenericPalletError; - - /** - * The referenced subscription could not be found. - **/ - NoSubscription: GenericPalletError; - - /** - * The location is invalid since it already has a subscription from us. - **/ - AlreadySubscribed: GenericPalletError; - - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - CannotCheckOutTeleport: GenericPalletError; - - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - LowBalance: GenericPalletError; - - /** - * The asset owner has too many locks on the asset. - **/ - TooManyLocks: GenericPalletError; - - /** - * The given account is not an identifiable sovereign account for any location. - **/ - AccountNotSovereign: GenericPalletError; - - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - FeesNotMet: GenericPalletError; - - /** - * A remote lock with the corresponding data could not be found. - **/ - LockNotFound: GenericPalletError; - - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - InUse: GenericPalletError; - - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - InvalidAssetUnknownReserve: GenericPalletError; - - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - InvalidAssetUnsupportedReserve: GenericPalletError; - - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - TooManyReserves: GenericPalletError; - - /** - * Local XCM execution incomplete. - **/ - LocalExecutionIncomplete: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `MessageQueue`'s errors - **/ - messageQueue: { - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - NotReapable: GenericPalletError; - - /** - * Page to be reaped does not exist. - **/ - NoPage: GenericPalletError; - - /** - * The referenced message could not be found. - **/ - NoMessage: GenericPalletError; - - /** - * The message was already processed and cannot be processed again. - **/ - AlreadyProcessed: GenericPalletError; - - /** - * The message is queued for future execution. - **/ - Queued: GenericPalletError; - - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - InsufficientWeight: GenericPalletError; - - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - TemporarilyUnprocessable: GenericPalletError; - - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - QueuePaused: GenericPalletError; - - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - RecursiveDisallowed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Utility`'s errors - **/ - utility: { - /** - * Too many calls batched. - **/ - TooManyCalls: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Multisig`'s errors - **/ - multisig: { - /** - * Threshold must be 2 or greater. - **/ - MinimumThreshold: GenericPalletError; - - /** - * Call is already approved by this signatory. - **/ - AlreadyApproved: GenericPalletError; - - /** - * Call doesn't need any (more) approvals. - **/ - NoApprovalsNeeded: GenericPalletError; - - /** - * There are too few signatories in the list. - **/ - TooFewSignatories: GenericPalletError; - - /** - * There are too many signatories in the list. - **/ - TooManySignatories: GenericPalletError; - - /** - * The signatories were provided out of order; they should be ordered. - **/ - SignatoriesOutOfOrder: GenericPalletError; - - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - SenderInSignatories: GenericPalletError; - - /** - * Multisig operation not found when attempting to cancel. - **/ - NotFound: GenericPalletError; - - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - NotOwner: GenericPalletError; - - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - NoTimepoint: GenericPalletError; - - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - WrongTimepoint: GenericPalletError; - - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - UnexpectedTimepoint: GenericPalletError; - - /** - * The maximum weight information provided was too low. - **/ - MaxWeightTooLow: GenericPalletError; - - /** - * The data to be stored is already stored. - **/ - AlreadyStored: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Proxy`'s errors - **/ - proxy: { - /** - * There are too many proxies registered or too many announcements pending. - **/ - TooMany: GenericPalletError; - - /** - * Proxy registration not found. - **/ - NotFound: GenericPalletError; - - /** - * Sender is not a proxy of the account to be proxied. - **/ - NotProxy: GenericPalletError; - - /** - * A call which is incompatible with the proxy type's filter was attempted. - **/ - Unproxyable: GenericPalletError; - - /** - * Account is already a proxy. - **/ - Duplicate: GenericPalletError; - - /** - * Call may not be made by proxy because it may escalate its privileges. - **/ - NoPermission: GenericPalletError; - - /** - * Announcement, if made at all, was made too recently. - **/ - Unannounced: GenericPalletError; - - /** - * Cannot add self as proxy. - **/ - NoSelfProxy: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Assets`'s errors - **/ - assets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * The asset ID must be equal to the [`NextAssetId`]. - **/ - BadAssetId: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Uniques`'s errors - **/ - uniques: { - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownCollection: GenericPalletError; - - /** - * The item ID has already been used for an item. - **/ - AlreadyExists: GenericPalletError; - - /** - * The owner turned out to be different to what was expected. - **/ - WrongOwner: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * The item ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * The item or collection is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The delegate turned out to be different to what was expected. - **/ - WrongDelegate: GenericPalletError; - - /** - * There is no delegate approved. - **/ - NoDelegate: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The named owner has not signed ownership of the collection is acceptable. - **/ - Unaccepted: GenericPalletError; - - /** - * The item is locked. - **/ - Locked: GenericPalletError; - - /** - * All items have been minted. - **/ - MaxSupplyReached: GenericPalletError; - - /** - * The max supply has already been set. - **/ - MaxSupplyAlreadySet: GenericPalletError; - - /** - * The provided max supply is less to the amount of items a collection already has. - **/ - MaxSupplyTooSmall: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownItem: GenericPalletError; - - /** - * Item is not for sale. - **/ - NotForSale: GenericPalletError; - - /** - * The provided bid is too low. - **/ - BidTooLow: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Nfts`'s errors - **/ - nfts: { - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownCollection: GenericPalletError; - - /** - * The item ID has already been used for an item. - **/ - AlreadyExists: GenericPalletError; - - /** - * The approval had a deadline that expired, so the approval isn't valid anymore. - **/ - ApprovalExpired: GenericPalletError; - - /** - * The owner turned out to be different to what was expected. - **/ - WrongOwner: GenericPalletError; - - /** - * The witness data given does not match the current state of the chain. - **/ - BadWitness: GenericPalletError; - - /** - * Collection ID is already taken. - **/ - CollectionIdInUse: GenericPalletError; - - /** - * Items within that collection are non-transferable. - **/ - ItemsNonTransferable: GenericPalletError; - - /** - * The provided account is not a delegate. - **/ - NotDelegate: GenericPalletError; - - /** - * The delegate turned out to be different to what was expected. - **/ - WrongDelegate: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The named owner has not signed ownership acceptance of the collection. - **/ - Unaccepted: GenericPalletError; - - /** - * The item is locked (non-transferable). - **/ - ItemLocked: GenericPalletError; - - /** - * Item's attributes are locked. - **/ - LockedItemAttributes: GenericPalletError; - - /** - * Collection's attributes are locked. - **/ - LockedCollectionAttributes: GenericPalletError; - - /** - * Item's metadata is locked. - **/ - LockedItemMetadata: GenericPalletError; - - /** - * Collection's metadata is locked. - **/ - LockedCollectionMetadata: GenericPalletError; - - /** - * All items have been minted. - **/ - MaxSupplyReached: GenericPalletError; - - /** - * The max supply is locked and can't be changed. - **/ - MaxSupplyLocked: GenericPalletError; - - /** - * The provided max supply is less than the number of items a collection already has. - **/ - MaxSupplyTooSmall: GenericPalletError; - - /** - * The given item ID is unknown. - **/ - UnknownItem: GenericPalletError; - - /** - * Swap doesn't exist. - **/ - UnknownSwap: GenericPalletError; - - /** - * The given item has no metadata set. - **/ - MetadataNotFound: GenericPalletError; - - /** - * The provided attribute can't be found. - **/ - AttributeNotFound: GenericPalletError; - - /** - * Item is not for sale. - **/ - NotForSale: GenericPalletError; - - /** - * The provided bid is too low. - **/ - BidTooLow: GenericPalletError; - - /** - * The item has reached its approval limit. - **/ - ReachedApprovalLimit: GenericPalletError; - - /** - * The deadline has already expired. - **/ - DeadlineExpired: GenericPalletError; - - /** - * The duration provided should be less than or equal to `MaxDeadlineDuration`. - **/ - WrongDuration: GenericPalletError; - - /** - * The method is disabled by system settings. - **/ - MethodDisabled: GenericPalletError; - - /** - * The provided setting can't be set. - **/ - WrongSetting: GenericPalletError; - - /** - * Item's config already exists and should be equal to the provided one. - **/ - InconsistentItemConfig: GenericPalletError; - - /** - * Config for a collection or an item can't be found. - **/ - NoConfig: GenericPalletError; - - /** - * Some roles were not cleared. - **/ - RolesNotCleared: GenericPalletError; - - /** - * Mint has not started yet. - **/ - MintNotStarted: GenericPalletError; - - /** - * Mint has already ended. - **/ - MintEnded: GenericPalletError; - - /** - * The provided Item was already used for claiming. - **/ - AlreadyClaimed: GenericPalletError; - - /** - * The provided data is incorrect. - **/ - IncorrectData: GenericPalletError; - - /** - * The extrinsic was sent by the wrong origin. - **/ - WrongOrigin: GenericPalletError; - - /** - * The provided signature is incorrect. - **/ - WrongSignature: GenericPalletError; - - /** - * The provided metadata might be too long. - **/ - IncorrectMetadata: GenericPalletError; - - /** - * Can't set more attributes per one call. - **/ - MaxAttributesLimitReached: GenericPalletError; - - /** - * The provided namespace isn't supported in this call. - **/ - WrongNamespace: GenericPalletError; - - /** - * Can't delete non-empty collections. - **/ - CollectionNotEmpty: GenericPalletError; - - /** - * The witness data should be provided. - **/ - WitnessRequired: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ForeignAssets`'s errors - **/ - foreignAssets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * The asset ID must be equal to the [`NextAssetId`]. - **/ - BadAssetId: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `NftFractionalization`'s errors - **/ - nftFractionalization: { - /** - * Asset ID does not correspond to locked NFT. - **/ - IncorrectAssetId: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * NFT doesn't exist. - **/ - NftNotFound: GenericPalletError; - - /** - * NFT has not yet been fractionalised. - **/ - NftNotFractionalized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PoolAssets`'s errors - **/ - poolAssets: { - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - BalanceLow: GenericPalletError; - - /** - * The account to alter does not exist. - **/ - NoAccount: GenericPalletError; - - /** - * The signing account has no permission to do the operation. - **/ - NoPermission: GenericPalletError; - - /** - * The given asset ID is unknown. - **/ - Unknown: GenericPalletError; - - /** - * The origin account is frozen. - **/ - Frozen: GenericPalletError; - - /** - * The asset ID is already taken. - **/ - InUse: GenericPalletError; - - /** - * Invalid witness data given. - **/ - BadWitness: GenericPalletError; - - /** - * Minimum balance should be non-zero. - **/ - MinBalanceZero: GenericPalletError; - - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - UnavailableConsumer: GenericPalletError; - - /** - * Invalid metadata given. - **/ - BadMetadata: GenericPalletError; - - /** - * No approval exists that would allow the transfer. - **/ - Unapproved: GenericPalletError; - - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - WouldDie: GenericPalletError; - - /** - * The asset-account already exists. - **/ - AlreadyExists: GenericPalletError; - - /** - * The asset-account doesn't have an associated deposit. - **/ - NoDeposit: GenericPalletError; - - /** - * The operation would result in funds being burned. - **/ - WouldBurn: GenericPalletError; - - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - LiveAsset: GenericPalletError; - - /** - * The asset is not live, and likely being destroyed. - **/ - AssetNotLive: GenericPalletError; - - /** - * The asset status is not the expected status. - **/ - IncorrectStatus: GenericPalletError; - - /** - * The asset should be frozen before the given operation. - **/ - NotFrozen: GenericPalletError; - - /** - * Callback action resulted in error - **/ - CallbackFailed: GenericPalletError; - - /** - * The asset ID must be equal to the [`NextAssetId`]. - **/ - BadAssetId: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `AssetConversion`'s errors - **/ - assetConversion: { - /** - * Provided asset pair is not supported for pool. - **/ - InvalidAssetPair: GenericPalletError; - - /** - * Pool already exists. - **/ - PoolExists: GenericPalletError; - - /** - * Desired amount can't be zero. - **/ - WrongDesiredAmount: GenericPalletError; - - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - AmountOneLessThanMinimal: GenericPalletError; - - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - AmountTwoLessThanMinimal: GenericPalletError; - - /** - * Reserve needs to always be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - ReserveLeftLessThanMinimal: GenericPalletError; - - /** - * Desired amount can't be equal to the pool reserve. - **/ - AmountOutTooHigh: GenericPalletError; - - /** - * The pool doesn't exist. - **/ - PoolNotFound: GenericPalletError; - - /** - * An overflow happened. - **/ - Overflow: GenericPalletError; - - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - AssetOneDepositDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - AssetTwoDepositDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - AssetOneWithdrawalDidNotMeetMinimum: GenericPalletError; - - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - AssetTwoWithdrawalDidNotMeetMinimum: GenericPalletError; - - /** - * Optimal calculated amount is less than desired. - **/ - OptimalAmountLessThanDesired: GenericPalletError; - - /** - * Insufficient liquidity minted. - **/ - InsufficientLiquidityMinted: GenericPalletError; - - /** - * Requested liquidity can't be zero. - **/ - ZeroLiquidity: GenericPalletError; - - /** - * Amount can't be zero. - **/ - ZeroAmount: GenericPalletError; - - /** - * Calculated amount out is less than provided minimum amount. - **/ - ProvidedMinimumNotSufficientForSwap: GenericPalletError; - - /** - * Provided maximum amount is not sufficient for swap. - **/ - ProvidedMaximumNotSufficientForSwap: GenericPalletError; - - /** - * The provided path must consists of 2 assets at least. - **/ - InvalidPath: GenericPalletError; - - /** - * The provided path must consists of unique assets. - **/ - NonUniquePath: GenericPalletError; - - /** - * It was not possible to get or increment the Id of the pool. - **/ - IncorrectPoolAssetId: GenericPalletError; - - /** - * The destination account cannot exist with the swapped funds. - **/ - BelowMinimum: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `AssetsFreezer`'s errors - **/ - assetsFreezer: { - /** - * Number of freezes on an account would exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ForeignAssetsFreezer`'s errors - **/ - foreignAssetsFreezer: { - /** - * Number of freezes on an account would exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PoolAssetsFreezer`'s errors - **/ - poolAssetsFreezer: { - /** - * Number of freezes on an account would exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `StateTrieMigration`'s errors - **/ - stateTrieMigration: { - /** - * Max signed limits not respected. - **/ - MaxSignedLimits: GenericPalletError; - - /** - * A key was longer than the configured maximum. - * - * This means that the migration halted at the current [`Progress`] and - * can be resumed with a larger [`crate::Config::MaxKeyLen`] value. - * Retrying with the same [`crate::Config::MaxKeyLen`] value will not work. - * The value should only be increased to avoid a storage migration for the currently - * stored [`crate::Progress::LastKey`]. - **/ - KeyTooLong: GenericPalletError; - - /** - * submitter does not have enough funds. - **/ - NotEnoughFunds: GenericPalletError; - - /** - * Bad witness data provided. - **/ - BadWitness: GenericPalletError; - - /** - * Signed migration is not allowed because the maximum limit is not set yet. - **/ - SignedMigrationNotAllowed: GenericPalletError; - - /** - * Bad child root provided. - **/ - BadChildRoot: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `AssetConversionMigration`'s errors - **/ - assetConversionMigration: { - /** - * Provided asset pair is not supported for pool. - **/ - InvalidAssetPair: GenericPalletError; - - /** - * The pool doesn't exist. - **/ - PoolNotFound: GenericPalletError; - - /** - * Pool's balance cannot be zero. - **/ - ZeroBalance: GenericPalletError; - - /** - * Indicates a partial transfer of balance to the new account during a migration. - **/ - PartialTransfer: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; -} diff --git a/packages/chaintypes/src/westendAssetHub/events.d.ts b/packages/chaintypes/src/westendAssetHub/events.d.ts deleted file mode 100644 index 69a843a..0000000 --- a/packages/chaintypes/src/westendAssetHub/events.d.ts +++ /dev/null @@ -1,2610 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types'; -import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result, Bytes, Permill } from 'dedot/codecs'; -import type { - SpWeightsWeightV2Weight, - FrameSupportTokensMiscBalanceStatus, - StagingXcmV3MultilocationMultiLocation, - StagingXcmV4TraitsOutcome, - StagingXcmV4Location, - StagingXcmV4Xcm, - StagingXcmV4Response, - XcmVersionedAssets, - StagingXcmV4AssetAssets, - XcmV3TraitsError, - XcmVersionedLocation, - CumulusPrimitivesCoreAggregateMessageOrigin, - FrameSupportMessagesProcessMessageError, - PalletMultisigTimepoint, - AssetHubWestendRuntimeProxyType, - PalletNftsAttributeNamespace, - PalletNftsPriceWithDirection, - PalletNftsPalletAttributes, - PalletStateTrieMigrationMigrationCompute, - PalletStateTrieMigrationError, -} from './types'; - -export interface ChainEvents extends GenericChainEvents { - /** - * Pallet `System`'s events - **/ - system: { - /** - * An extrinsic completed successfully. - **/ - ExtrinsicSuccess: GenericPalletEvent; - - /** - * An extrinsic failed. - **/ - ExtrinsicFailed: GenericPalletEvent< - Rv, - 'System', - 'ExtrinsicFailed', - { dispatchError: DispatchError; dispatchInfo: DispatchInfo } - >; - - /** - * `:code` was updated. - **/ - CodeUpdated: GenericPalletEvent; - - /** - * A new account was created. - **/ - NewAccount: GenericPalletEvent; - - /** - * An account was reaped. - **/ - KilledAccount: GenericPalletEvent; - - /** - * On on-chain remark happened. - **/ - Remarked: GenericPalletEvent; - - /** - * An upgrade was authorized. - **/ - UpgradeAuthorized: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ParachainSystem`'s events - **/ - parachainSystem: { - /** - * The validation function has been scheduled to apply. - **/ - ValidationFunctionStored: GenericPalletEvent; - - /** - * The validation function was applied as of the contained relay chain block number. - **/ - ValidationFunctionApplied: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'ValidationFunctionApplied', - { relayChainBlockNum: number } - >; - - /** - * The relay-chain aborted the upgrade process. - **/ - ValidationFunctionDiscarded: GenericPalletEvent; - - /** - * Some downward messages have been received and will be processed. - **/ - DownwardMessagesReceived: GenericPalletEvent; - - /** - * Downward messages were processed using the given weight. - **/ - DownwardMessagesProcessed: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'DownwardMessagesProcessed', - { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } - >; - - /** - * An upward message was sent to the relay chain. - **/ - UpwardMessageSent: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'UpwardMessageSent', - { messageHash?: FixedBytes<32> | undefined } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Balances`'s events - **/ - balances: { - /** - * An account was created with some free balance. - **/ - Endowed: GenericPalletEvent; - - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - DustLost: GenericPalletEvent; - - /** - * Transfer succeeded. - **/ - Transfer: GenericPalletEvent; - - /** - * A balance was set by root. - **/ - BalanceSet: GenericPalletEvent; - - /** - * Some balance was reserved (moved from free to reserved). - **/ - Reserved: GenericPalletEvent; - - /** - * Some balance was unreserved (moved from reserved to free). - **/ - Unreserved: GenericPalletEvent; - - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - ReserveRepatriated: GenericPalletEvent< - Rv, - 'Balances', - 'ReserveRepatriated', - { from: AccountId32; to: AccountId32; amount: bigint; destinationStatus: FrameSupportTokensMiscBalanceStatus } - >; - - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - Deposit: GenericPalletEvent; - - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - Withdraw: GenericPalletEvent; - - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - Slashed: GenericPalletEvent; - - /** - * Some amount was minted into an account. - **/ - Minted: GenericPalletEvent; - - /** - * Some amount was burned from an account. - **/ - Burned: GenericPalletEvent; - - /** - * Some amount was suspended from an account (it can be restored later). - **/ - Suspended: GenericPalletEvent; - - /** - * Some amount was restored into an account. - **/ - Restored: GenericPalletEvent; - - /** - * An account was upgraded. - **/ - Upgraded: GenericPalletEvent; - - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - Issued: GenericPalletEvent; - - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - Rescinded: GenericPalletEvent; - - /** - * Some balance was locked. - **/ - Locked: GenericPalletEvent; - - /** - * Some balance was unlocked. - **/ - Unlocked: GenericPalletEvent; - - /** - * Some balance was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some balance was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * The `TotalIssuance` was forcefully changed. - **/ - TotalIssuanceForced: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `TransactionPayment`'s events - **/ - transactionPayment: { - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - TransactionFeePaid: GenericPalletEvent< - Rv, - 'TransactionPayment', - 'TransactionFeePaid', - { who: AccountId32; actualFee: bigint; tip: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetTxPayment`'s events - **/ - assetTxPayment: { - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who` in an asset `asset_id`. - **/ - AssetTxFeePaid: GenericPalletEvent< - Rv, - 'AssetTxPayment', - 'AssetTxFeePaid', - { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * A swap of the refund in native currency back to asset failed. - **/ - AssetRefundFailed: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CollatorSelection`'s events - **/ - collatorSelection: { - /** - * New Invulnerables were set. - **/ - NewInvulnerables: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewInvulnerables', - { invulnerables: Array } - >; - - /** - * A new Invulnerable was added. - **/ - InvulnerableAdded: GenericPalletEvent; - - /** - * An Invulnerable was removed. - **/ - InvulnerableRemoved: GenericPalletEvent; - - /** - * The number of desired candidates was set. - **/ - NewDesiredCandidates: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewDesiredCandidates', - { desiredCandidates: number } - >; - - /** - * The candidacy bond was set. - **/ - NewCandidacyBond: GenericPalletEvent; - - /** - * A new candidate joined. - **/ - CandidateAdded: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateAdded', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * Bond of a candidate updated. - **/ - CandidateBondUpdated: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateBondUpdated', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * A candidate was removed. - **/ - CandidateRemoved: GenericPalletEvent; - - /** - * An account was replaced in the candidate list by another one. - **/ - CandidateReplaced: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateReplaced', - { old: AccountId32; new: AccountId32; deposit: bigint } - >; - - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - InvalidInvulnerableSkipped: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'InvalidInvulnerableSkipped', - { accountId: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Session`'s events - **/ - session: { - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - NewSession: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `XcmpQueue`'s events - **/ - xcmpQueue: { - /** - * An HRMP message was sent to a sibling parachain. - **/ - XcmpMessageSent: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PolkadotXcm`'s events - **/ - polkadotXcm: { - /** - * Execution of an XCM message was attempted. - **/ - Attempted: GenericPalletEvent; - - /** - * A XCM message was sent. - **/ - Sent: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Sent', - { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - } - >; - - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - UnexpectedResponse: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'UnexpectedResponse', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - ResponseReady: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'ResponseReady', - { queryId: bigint; response: StagingXcmV4Response } - >; - - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - Notified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Notified', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - NotifyOverweight: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyOverweight', - { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - } - >; - - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - NotifyDispatchError: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDispatchError', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - NotifyDecodeFailed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDecodeFailed', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidResponder: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponder', - { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined } - >; - - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidResponderVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponderVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Received query response has been read and removed. - **/ - ResponseTaken: GenericPalletEvent; - - /** - * Some assets have been placed in an asset trap. - **/ - AssetsTrapped: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsTrapped', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - VersionChangeNotified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionChangeNotified', - { destination: StagingXcmV4Location; result: number; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - SupportedVersionChanged: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'SupportedVersionChanged', - { location: StagingXcmV4Location; version: number } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - NotifyTargetSendFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetSendFail', - { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - NotifyTargetMigrationFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetMigrationFail', - { location: XcmVersionedLocation; queryId: bigint } - >; - - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidQuerierVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerierVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidQuerier: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerier', - { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - } - >; - - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - VersionNotifyStarted: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyStarted', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - VersionNotifyRequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyRequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - VersionNotifyUnrequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyUnrequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - FeesPaid: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'FeesPaid', - { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } - >; - - /** - * Some assets have been claimed from an asset trap - **/ - AssetsClaimed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsClaimed', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * A XCM version migration finished. - **/ - VersionMigrationFinished: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CumulusXcm`'s events - **/ - cumulusXcm: { - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - InvalidFormat: GenericPalletEvent>; - - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - UnsupportedVersion: GenericPalletEvent>; - - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - ExecutedDownward: GenericPalletEvent< - Rv, - 'CumulusXcm', - 'ExecutedDownward', - [FixedBytes<32>, StagingXcmV4TraitsOutcome] - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `MessageQueue`'s events - **/ - messageQueue: { - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - ProcessingFailed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'ProcessingFailed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - } - >; - - /** - * Message is processed. - **/ - Processed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'Processed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - } - >; - - /** - * Message placed in overweight queue. - **/ - OverweightEnqueued: GenericPalletEvent< - Rv, - 'MessageQueue', - 'OverweightEnqueued', - { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - } - >; - - /** - * This page was reaped. - **/ - PageReaped: GenericPalletEvent< - Rv, - 'MessageQueue', - 'PageReaped', - { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Utility`'s events - **/ - utility: { - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - BatchInterrupted: GenericPalletEvent; - - /** - * Batch of dispatches completed fully with no error. - **/ - BatchCompleted: GenericPalletEvent; - - /** - * Batch of dispatches completed but has errors. - **/ - BatchCompletedWithErrors: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - ItemCompleted: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with error. - **/ - ItemFailed: GenericPalletEvent; - - /** - * A call was dispatched. - **/ - DispatchedAs: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Multisig`'s events - **/ - multisig: { - /** - * A new multisig operation has begun. - **/ - NewMultisig: GenericPalletEvent< - Rv, - 'Multisig', - 'NewMultisig', - { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been approved by someone. - **/ - MultisigApproval: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigApproval', - { approving: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been executed. - **/ - MultisigExecuted: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigExecuted', - { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - } - >; - - /** - * A multisig operation has been cancelled. - **/ - MultisigCancelled: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigCancelled', - { cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Proxy`'s events - **/ - proxy: { - /** - * A proxy was executed correctly, with the given. - **/ - ProxyExecuted: GenericPalletEvent }>; - - /** - * A pure account has been created by new proxy with given - * disambiguation index and proxy type. - **/ - PureCreated: GenericPalletEvent< - Rv, - 'Proxy', - 'PureCreated', - { pure: AccountId32; who: AccountId32; proxyType: AssetHubWestendRuntimeProxyType; disambiguationIndex: number } - >; - - /** - * An announcement was placed to make a call in the future. - **/ - Announced: GenericPalletEvent; - - /** - * A proxy was added. - **/ - ProxyAdded: GenericPalletEvent< - Rv, - 'Proxy', - 'ProxyAdded', - { delegator: AccountId32; delegatee: AccountId32; proxyType: AssetHubWestendRuntimeProxyType; delay: number } - >; - - /** - * A proxy was removed. - **/ - ProxyRemoved: GenericPalletEvent< - Rv, - 'Proxy', - 'ProxyRemoved', - { delegator: AccountId32; delegatee: AccountId32; proxyType: AssetHubWestendRuntimeProxyType; delay: number } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Assets`'s events - **/ - assets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Assets', - 'Transferred', - { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Assets', - 'TeamChanged', - { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'Assets', - 'AccountsDestroyed', - { assetId: number; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovalsDestroyed', - { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'Assets', - 'MetadataSet', - { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovedTransfer', - { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Assets', - 'ApprovalCancelled', - { assetId: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'Assets', - 'TransferredApproved', - { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'Assets', - 'AssetMinBalanceChanged', - { assetId: number; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent; - - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - Deposited: GenericPalletEvent; - - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - Withdrawn: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Uniques`'s events - **/ - uniques: { - /** - * A `collection` was created. - **/ - Created: GenericPalletEvent< - Rv, - 'Uniques', - 'Created', - { collection: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * A `collection` was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * A `collection` was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * An `item` was issued. - **/ - Issued: GenericPalletEvent; - - /** - * An `item` was transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Uniques', - 'Transferred', - { collection: number; item: number; from: AccountId32; to: AccountId32 } - >; - - /** - * An `item` was destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * Some `item` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some `item` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some `collection` was frozen. - **/ - CollectionFrozen: GenericPalletEvent; - - /** - * Some `collection` was thawed. - **/ - CollectionThawed: GenericPalletEvent; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Uniques', - 'TeamChanged', - { collection: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'Uniques', - 'ApprovedTransfer', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Uniques', - 'ApprovalCancelled', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * A `collection` has had its attributes changed by the `Force` origin. - **/ - ItemStatusChanged: GenericPalletEvent; - - /** - * New metadata has been set for a `collection`. - **/ - CollectionMetadataSet: GenericPalletEvent< - Rv, - 'Uniques', - 'CollectionMetadataSet', - { collection: number; data: Bytes; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for a `collection`. - **/ - CollectionMetadataCleared: GenericPalletEvent; - - /** - * New metadata has been set for an item. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'Uniques', - 'MetadataSet', - { collection: number; item: number; data: Bytes; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an item. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * Metadata has been cleared for an item. - **/ - Redeposited: GenericPalletEvent< - Rv, - 'Uniques', - 'Redeposited', - { collection: number; successfulItems: Array } - >; - - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - AttributeSet: GenericPalletEvent< - Rv, - 'Uniques', - 'AttributeSet', - { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } - >; - - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - AttributeCleared: GenericPalletEvent< - Rv, - 'Uniques', - 'AttributeCleared', - { collection: number; maybeItem?: number | undefined; key: Bytes } - >; - - /** - * Ownership acceptance has changed for an account. - **/ - OwnershipAcceptanceChanged: GenericPalletEvent< - Rv, - 'Uniques', - 'OwnershipAcceptanceChanged', - { who: AccountId32; maybeCollection?: number | undefined } - >; - - /** - * Max supply has been set for a collection. - **/ - CollectionMaxSupplySet: GenericPalletEvent< - Rv, - 'Uniques', - 'CollectionMaxSupplySet', - { collection: number; maxSupply: number } - >; - - /** - * The price was set for the instance. - **/ - ItemPriceSet: GenericPalletEvent< - Rv, - 'Uniques', - 'ItemPriceSet', - { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined } - >; - - /** - * The price for the instance was removed. - **/ - ItemPriceRemoved: GenericPalletEvent; - - /** - * An item was bought. - **/ - ItemBought: GenericPalletEvent< - Rv, - 'Uniques', - 'ItemBought', - { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Nfts`'s events - **/ - nfts: { - /** - * A `collection` was created. - **/ - Created: GenericPalletEvent< - Rv, - 'Nfts', - 'Created', - { collection: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * A `collection` was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * A `collection` was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * An `item` was issued. - **/ - Issued: GenericPalletEvent; - - /** - * An `item` was transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'Nfts', - 'Transferred', - { collection: number; item: number; from: AccountId32; to: AccountId32 } - >; - - /** - * An `item` was destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * An `item` became non-transferable. - **/ - ItemTransferLocked: GenericPalletEvent; - - /** - * An `item` became transferable. - **/ - ItemTransferUnlocked: GenericPalletEvent; - - /** - * `item` metadata or attributes were locked. - **/ - ItemPropertiesLocked: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemPropertiesLocked', - { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean } - >; - - /** - * Some `collection` was locked. - **/ - CollectionLocked: GenericPalletEvent; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'Nfts', - 'TeamChanged', - { - collection: number; - issuer?: AccountId32 | undefined; - admin?: AccountId32 | undefined; - freezer?: AccountId32 | undefined; - } - >; - - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - TransferApproved: GenericPalletEvent< - Rv, - 'Nfts', - 'TransferApproved', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32; deadline?: number | undefined } - >; - - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'ApprovalCancelled', - { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * All approvals of an item got cancelled. - **/ - AllApprovalsCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'AllApprovalsCancelled', - { collection: number; item: number; owner: AccountId32 } - >; - - /** - * A `collection` has had its config changed by the `Force` origin. - **/ - CollectionConfigChanged: GenericPalletEvent; - - /** - * New metadata has been set for a `collection`. - **/ - CollectionMetadataSet: GenericPalletEvent; - - /** - * Metadata has been cleared for a `collection`. - **/ - CollectionMetadataCleared: GenericPalletEvent; - - /** - * New metadata has been set for an item. - **/ - ItemMetadataSet: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemMetadataSet', - { collection: number; item: number; data: Bytes } - >; - - /** - * Metadata has been cleared for an item. - **/ - ItemMetadataCleared: GenericPalletEvent; - - /** - * The deposit for a set of `item`s within a `collection` has been updated. - **/ - Redeposited: GenericPalletEvent }>; - - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - AttributeSet: GenericPalletEvent< - Rv, - 'Nfts', - 'AttributeSet', - { - collection: number; - maybeItem?: number | undefined; - key: Bytes; - value: Bytes; - namespace: PalletNftsAttributeNamespace; - } - >; - - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - AttributeCleared: GenericPalletEvent< - Rv, - 'Nfts', - 'AttributeCleared', - { collection: number; maybeItem?: number | undefined; key: Bytes; namespace: PalletNftsAttributeNamespace } - >; - - /** - * A new approval to modify item attributes was added. - **/ - ItemAttributesApprovalAdded: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemAttributesApprovalAdded', - { collection: number; item: number; delegate: AccountId32 } - >; - - /** - * A new approval to modify item attributes was removed. - **/ - ItemAttributesApprovalRemoved: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemAttributesApprovalRemoved', - { collection: number; item: number; delegate: AccountId32 } - >; - - /** - * Ownership acceptance has changed for an account. - **/ - OwnershipAcceptanceChanged: GenericPalletEvent< - Rv, - 'Nfts', - 'OwnershipAcceptanceChanged', - { who: AccountId32; maybeCollection?: number | undefined } - >; - - /** - * Max supply has been set for a collection. - **/ - CollectionMaxSupplySet: GenericPalletEvent< - Rv, - 'Nfts', - 'CollectionMaxSupplySet', - { collection: number; maxSupply: number } - >; - - /** - * Mint settings for a collection had changed. - **/ - CollectionMintSettingsUpdated: GenericPalletEvent< - Rv, - 'Nfts', - 'CollectionMintSettingsUpdated', - { collection: number } - >; - - /** - * Event gets emitted when the `NextCollectionId` gets incremented. - **/ - NextCollectionIdIncremented: GenericPalletEvent< - Rv, - 'Nfts', - 'NextCollectionIdIncremented', - { nextId?: number | undefined } - >; - - /** - * The price was set for the item. - **/ - ItemPriceSet: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemPriceSet', - { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined } - >; - - /** - * The price for the item was removed. - **/ - ItemPriceRemoved: GenericPalletEvent; - - /** - * An item was bought. - **/ - ItemBought: GenericPalletEvent< - Rv, - 'Nfts', - 'ItemBought', - { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 } - >; - - /** - * A tip was sent. - **/ - TipSent: GenericPalletEvent< - Rv, - 'Nfts', - 'TipSent', - { collection: number; item: number; sender: AccountId32; receiver: AccountId32; amount: bigint } - >; - - /** - * An `item` swap intent was created. - **/ - SwapCreated: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapCreated', - { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * The swap was cancelled. - **/ - SwapCancelled: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapCancelled', - { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * The swap has been claimed. - **/ - SwapClaimed: GenericPalletEvent< - Rv, - 'Nfts', - 'SwapClaimed', - { - sentCollection: number; - sentItem: number; - sentItemOwner: AccountId32; - receivedCollection: number; - receivedItem: number; - receivedItemOwner: AccountId32; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - } - >; - - /** - * New attributes have been set for an `item` of the `collection`. - **/ - PreSignedAttributesSet: GenericPalletEvent< - Rv, - 'Nfts', - 'PreSignedAttributesSet', - { collection: number; item: number; namespace: PalletNftsAttributeNamespace } - >; - - /** - * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` - * within that `collection`. - **/ - PalletAttributeSet: GenericPalletEvent< - Rv, - 'Nfts', - 'PalletAttributeSet', - { collection: number; item?: number | undefined; attribute: PalletNftsPalletAttributes; value: Bytes } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ForeignAssets`'s events - **/ - foreignAssets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Created', - { assetId: StagingXcmV3MultilocationMultiLocation; creator: AccountId32; owner: AccountId32 } - >; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Issued', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; amount: bigint } - >; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Transferred', - { assetId: StagingXcmV3MultilocationMultiLocation; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Burned', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; balance: bigint } - >; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'TeamChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'OwnerChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } - >; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Frozen', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Thawed', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetFrozen', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetThawed', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AccountsDestroyed', - { assetId: StagingXcmV3MultilocationMultiLocation; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovalsDestroyed', - { assetId: StagingXcmV3MultilocationMultiLocation; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'DestructionStarted', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Destroyed', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ForceCreated', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } - >; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'MetadataSet', - { - assetId: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'MetadataCleared', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovedTransfer', - { assetId: StagingXcmV3MultilocationMultiLocation; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'ApprovalCancelled', - { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'TransferredApproved', - { - assetId: StagingXcmV3MultilocationMultiLocation; - owner: AccountId32; - delegate: AccountId32; - destination: AccountId32; - amount: bigint; - } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetStatusChanged', - { assetId: StagingXcmV3MultilocationMultiLocation } - >; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'AssetMinBalanceChanged', - { assetId: StagingXcmV3MultilocationMultiLocation; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Touched', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; depositor: AccountId32 } - >; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Blocked', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } - >; - - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - Deposited: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Deposited', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint } - >; - - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - Withdrawn: GenericPalletEvent< - Rv, - 'ForeignAssets', - 'Withdrawn', - { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `NftFractionalization`'s events - **/ - nftFractionalization: { - /** - * An NFT was successfully fractionalized. - **/ - NftFractionalized: GenericPalletEvent< - Rv, - 'NftFractionalization', - 'NftFractionalized', - { nftCollection: number; nft: number; fractions: bigint; asset: number; beneficiary: AccountId32 } - >; - - /** - * An NFT was successfully returned back. - **/ - NftUnified: GenericPalletEvent< - Rv, - 'NftFractionalization', - 'NftUnified', - { nftCollection: number; nft: number; asset: number; beneficiary: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PoolAssets`'s events - **/ - poolAssets: { - /** - * Some asset class was created. - **/ - Created: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Created', - { assetId: number; creator: AccountId32; owner: AccountId32 } - >; - - /** - * Some assets were issued. - **/ - Issued: GenericPalletEvent; - - /** - * Some assets were transferred. - **/ - Transferred: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Transferred', - { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } - >; - - /** - * Some assets were destroyed. - **/ - Burned: GenericPalletEvent; - - /** - * The management team changed. - **/ - TeamChanged: GenericPalletEvent< - Rv, - 'PoolAssets', - 'TeamChanged', - { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } - >; - - /** - * The owner changed. - **/ - OwnerChanged: GenericPalletEvent; - - /** - * Some account `who` was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some account `who` was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * Some asset `asset_id` was frozen. - **/ - AssetFrozen: GenericPalletEvent; - - /** - * Some asset `asset_id` was thawed. - **/ - AssetThawed: GenericPalletEvent; - - /** - * Accounts were destroyed for given asset. - **/ - AccountsDestroyed: GenericPalletEvent< - Rv, - 'PoolAssets', - 'AccountsDestroyed', - { assetId: number; accountsDestroyed: number; accountsRemaining: number } - >; - - /** - * Approvals were destroyed for given asset. - **/ - ApprovalsDestroyed: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovalsDestroyed', - { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } - >; - - /** - * An asset class is in the process of being destroyed. - **/ - DestructionStarted: GenericPalletEvent; - - /** - * An asset class was destroyed. - **/ - Destroyed: GenericPalletEvent; - - /** - * Some asset class was force-created. - **/ - ForceCreated: GenericPalletEvent; - - /** - * New metadata has been set for an asset. - **/ - MetadataSet: GenericPalletEvent< - Rv, - 'PoolAssets', - 'MetadataSet', - { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } - >; - - /** - * Metadata has been cleared for an asset. - **/ - MetadataCleared: GenericPalletEvent; - - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - ApprovedTransfer: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovedTransfer', - { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } - >; - - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - ApprovalCancelled: GenericPalletEvent< - Rv, - 'PoolAssets', - 'ApprovalCancelled', - { assetId: number; owner: AccountId32; delegate: AccountId32 } - >; - - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - TransferredApproved: GenericPalletEvent< - Rv, - 'PoolAssets', - 'TransferredApproved', - { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint } - >; - - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - AssetStatusChanged: GenericPalletEvent; - - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - AssetMinBalanceChanged: GenericPalletEvent< - Rv, - 'PoolAssets', - 'AssetMinBalanceChanged', - { assetId: number; newMinBalance: bigint } - >; - - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - Touched: GenericPalletEvent< - Rv, - 'PoolAssets', - 'Touched', - { assetId: number; who: AccountId32; depositor: AccountId32 } - >; - - /** - * Some account `who` was blocked. - **/ - Blocked: GenericPalletEvent; - - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - Deposited: GenericPalletEvent; - - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - Withdrawn: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetConversion`'s events - **/ - assetConversion: { - /** - * A successful call of the `CreatePool` extrinsic will create this event. - **/ - PoolCreated: GenericPalletEvent< - Rv, - 'AssetConversion', - 'PoolCreated', - { - /** - * The account that created the pool. - **/ - creator: AccountId32; - - /** - * The pool id associated with the pool. Note that the order of the assets may not be - * the same as the order specified in the create pool extrinsic. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account ID of the pool. - **/ - poolAccount: AccountId32; - - /** - * The id of the liquidity tokens that will be minted when assets are added to this - * pool. - **/ - lpToken: number; - } - >; - - /** - * A successful call of the `AddLiquidity` extrinsic will create this event. - **/ - LiquidityAdded: GenericPalletEvent< - Rv, - 'AssetConversion', - 'LiquidityAdded', - { - /** - * The account that the liquidity was taken from. - **/ - who: AccountId32; - - /** - * The account that the liquidity tokens were minted to. - **/ - mintTo: AccountId32; - - /** - * The pool id of the pool that the liquidity was added to. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was added to the pool. - **/ - amount1Provided: bigint; - - /** - * The amount of the second asset that was added to the pool. - **/ - amount2Provided: bigint; - - /** - * The id of the lp token that was minted. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were minted of that id. - **/ - lpTokenMinted: bigint; - } - >; - - /** - * A successful call of the `RemoveLiquidity` extrinsic will create this event. - **/ - LiquidityRemoved: GenericPalletEvent< - Rv, - 'AssetConversion', - 'LiquidityRemoved', - { - /** - * The account that the liquidity tokens were burned from. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - withdrawTo: AccountId32; - - /** - * The pool id that the liquidity was removed from. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was removed from the pool. - **/ - amount1: bigint; - - /** - * The amount of the second asset that was removed from the pool. - **/ - amount2: bigint; - - /** - * The id of the lp token that was burned. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were burned of that id. - **/ - lpTokenBurned: bigint; - - /** - * Liquidity withdrawal fee (%). - **/ - withdrawalFee: Permill; - } - >; - - /** - * Assets have been converted from one to another. Both `SwapExactTokenForToken` - * and `SwapTokenForExactToken` will generate this event. - **/ - SwapExecuted: GenericPalletEvent< - Rv, - 'AssetConversion', - 'SwapExecuted', - { - /** - * Which account was the instigator of the swap. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - sendTo: AccountId32; - - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - } - >; - - /** - * Assets have been converted from one to another. - **/ - SwapCreditExecuted: GenericPalletEvent< - Rv, - 'AssetConversion', - 'SwapCreditExecuted', - { - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - } - >; - - /** - * Pool has been touched in order to fulfill operational requirements. - **/ - Touched: GenericPalletEvent< - Rv, - 'AssetConversion', - 'Touched', - { - /** - * The ID of the pool. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account initiating the touch. - **/ - who: AccountId32; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetsFreezer`'s events - **/ - assetsFreezer: { - Frozen: GenericPalletEvent; - Thawed: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ForeignAssetsFreezer`'s events - **/ - foreignAssetsFreezer: { - Frozen: GenericPalletEvent< - Rv, - 'ForeignAssetsFreezer', - 'Frozen', - { who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint } - >; - Thawed: GenericPalletEvent< - Rv, - 'ForeignAssetsFreezer', - 'Thawed', - { who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PoolAssetsFreezer`'s events - **/ - poolAssetsFreezer: { - Frozen: GenericPalletEvent< - Rv, - 'PoolAssetsFreezer', - 'Frozen', - { who: AccountId32; assetId: number; amount: bigint } - >; - Thawed: GenericPalletEvent< - Rv, - 'PoolAssetsFreezer', - 'Thawed', - { who: AccountId32; assetId: number; amount: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `StateTrieMigration`'s events - **/ - stateTrieMigration: { - /** - * Given number of `(top, child)` keys were migrated respectively, with the given - * `compute`. - **/ - Migrated: GenericPalletEvent< - Rv, - 'StateTrieMigration', - 'Migrated', - { top: number; child: number; compute: PalletStateTrieMigrationMigrationCompute } - >; - - /** - * Some account got slashed by the given amount. - **/ - Slashed: GenericPalletEvent; - - /** - * The auto migration task finished. - **/ - AutoMigrationFinished: GenericPalletEvent; - - /** - * Migration got halted due to an error or miss-configuration. - **/ - Halted: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `AssetConversionMigration`'s events - **/ - assetConversionMigration: { - /** - * Indicates that a pool has been migrated to the new account ID. - **/ - MigratedToNewAccount: GenericPalletEvent< - Rv, - 'AssetConversionMigration', - 'MigratedToNewAccount', - { - /** - * Pool's ID. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * Pool's prior account ID. - **/ - priorAccount: AccountId32; - - /** - * Pool's new account ID. - **/ - newAccount: AccountId32; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; -} diff --git a/packages/chaintypes/src/westendAssetHub/index.d.ts b/packages/chaintypes/src/westendAssetHub/index.d.ts deleted file mode 100644 index accc437..0000000 --- a/packages/chaintypes/src/westendAssetHub/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by dedot cli - -import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types'; -import { ChainConsts } from './consts'; -import { ChainStorage } from './query'; -import { ChainJsonRpcApis } from './json-rpc'; -import { ChainErrors } from './errors'; -import { ChainEvents } from './events'; -import { RuntimeApis } from './runtime'; -import { ChainTx } from './tx'; - -export * from './types'; - -export interface VersionedWestendAssetHubApi extends GenericSubstrateApi { - rpc: ChainJsonRpcApis; - consts: ChainConsts; - query: ChainStorage; - errors: ChainErrors; - events: ChainEvents; - call: RuntimeApis; - tx: ChainTx; -} - -export interface WestendAssetHubApi { - legacy: VersionedWestendAssetHubApi; - v2: VersionedWestendAssetHubApi; -} diff --git a/packages/chaintypes/src/westendAssetHub/json-rpc.d.ts b/packages/chaintypes/src/westendAssetHub/json-rpc.d.ts deleted file mode 100644 index d5e1288..0000000 --- a/packages/chaintypes/src/westendAssetHub/json-rpc.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by dedot cli - -import type { GenericJsonRpcApis, RpcVersion } from 'dedot/types'; -import type { JsonRpcApis } from 'dedot/types/json-rpc'; - -export type ChainJsonRpcApis = Pick< - JsonRpcApis, - | 'archive_unstable_body' - | 'archive_unstable_call' - | 'archive_unstable_finalizedHeight' - | 'archive_unstable_genesisHash' - | 'archive_unstable_hashByHeight' - | 'archive_unstable_header' - | 'archive_unstable_storage' - | 'author_hasKey' - | 'author_hasSessionKeys' - | 'author_insertKey' - | 'author_pendingExtrinsics' - | 'author_removeExtrinsic' - | 'author_rotateKeys' - | 'author_submitAndWatchExtrinsic' - | 'author_submitExtrinsic' - | 'chainHead_v1_body' - | 'chainHead_v1_call' - | 'chainHead_v1_continue' - | 'chainHead_v1_follow' - | 'chainHead_v1_header' - | 'chainHead_v1_stopOperation' - | 'chainHead_v1_storage' - | 'chainHead_v1_unpin' - | 'chain_getBlock' - | 'chain_getBlockHash' - | 'chain_getFinalizedHead' - | 'chain_getHeader' - | 'chain_subscribeAllHeads' - | 'chain_subscribeFinalizedHeads' - | 'chain_subscribeNewHeads' - | 'childstate_getKeys' - | 'childstate_getKeysPaged' - | 'childstate_getStorage' - | 'childstate_getStorageEntries' - | 'childstate_getStorageHash' - | 'childstate_getStorageSize' - | 'dev_getBlockStats' - | 'offchain_localStorageGet' - | 'offchain_localStorageSet' - | 'payment_queryFeeDetails' - | 'payment_queryInfo' - | 'rpc_methods' - | 'state_call' - | 'state_getChildReadProof' - | 'state_getKeys' - | 'state_getKeysPaged' - | 'state_getMetadata' - | 'state_getPairs' - | 'state_getReadProof' - | 'state_getRuntimeVersion' - | 'state_getStorage' - | 'state_getStorageHash' - | 'state_getStorageSize' - | 'state_queryStorage' - | 'state_queryStorageAt' - | 'state_subscribeRuntimeVersion' - | 'state_subscribeStorage' - | 'state_traceBlock' - | 'state_trieMigrationStatus' - | 'system_accountNextIndex' - | 'system_addLogFilter' - | 'system_addReservedPeer' - | 'system_chain' - | 'system_chainType' - | 'system_dryRun' - | 'system_health' - | 'system_localListenAddresses' - | 'system_localPeerId' - | 'system_name' - | 'system_nodeRoles' - | 'system_peers' - | 'system_properties' - | 'system_removeReservedPeer' - | 'system_reservedPeers' - | 'system_resetLogFilter' - | 'system_syncState' - | 'system_unstable_networkState' - | 'system_version' - | 'transactionWatch_v1_submitAndWatch' - | 'transaction_v1_broadcast' - | 'transaction_v1_stop' -> & - GenericJsonRpcApis; diff --git a/packages/chaintypes/src/westendAssetHub/query.d.ts b/packages/chaintypes/src/westendAssetHub/query.d.ts deleted file mode 100644 index 2a08bca..0000000 --- a/packages/chaintypes/src/westendAssetHub/query.d.ts +++ /dev/null @@ -1,1868 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types'; -import type { - AccountId32, - AccountId32Like, - H256, - Bytes, - Digest, - Phase, - FixedU128, - BytesLike, - FixedBytes, -} from 'dedot/codecs'; -import type { - FrameSystemAccountInfo, - FrameSupportDispatchPerDispatchClass, - FrameSystemEventRecord, - FrameSystemLastRuntimeUpgradeInfo, - FrameSystemCodeUpgradeAuthorization, - CumulusPalletParachainSystemUnincludedSegmentAncestor, - CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, - PolkadotPrimitivesV7PersistedValidationData, - PolkadotPrimitivesV7UpgradeRestriction, - PolkadotPrimitivesV7UpgradeGoAhead, - SpTrieStorageProof, - CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, - PolkadotPrimitivesV7AbridgedHostConfiguration, - CumulusPrimitivesParachainInherentMessageQueueChain, - PolkadotParachainPrimitivesPrimitivesId, - PolkadotCorePrimitivesOutboundHrmpMessage, - SpWeightsWeightV2Weight, - PalletBalancesAccountData, - PalletBalancesBalanceLock, - PalletBalancesReserveData, - FrameSupportTokensMiscIdAmount, - FrameSupportTokensMiscIdAmount002, - PalletTransactionPaymentReleases, - PalletCollatorSelectionCandidateInfo, - AssetHubWestendRuntimeSessionKeys, - SpCoreCryptoKeyTypeId, - SpConsensusAuraSr25519AppSr25519Public, - SpConsensusSlotsSlot, - CumulusPalletXcmpQueueOutboundChannelDetails, - CumulusPalletXcmpQueueQueueConfigData, - PalletXcmQueryStatus, - XcmVersionedLocation, - PalletXcmVersionMigrationStage, - PalletXcmRemoteLockedFungibleRecord, - XcmVersionedAssetId, - StagingXcmV4Xcm, - BpXcmBridgeHubRouterBridgeState, - PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin, - PalletMessageQueuePage, - PalletMultisigMultisig, - PalletProxyProxyDefinition, - PalletProxyAnnouncement, - PalletAssetsAssetDetails, - PalletAssetsAssetAccount, - PalletAssetsApproval, - PalletAssetsAssetMetadata, - PalletUniquesCollectionDetails, - PalletUniquesItemDetails, - PalletUniquesCollectionMetadata, - PalletUniquesItemMetadata, - PalletNftsCollectionDetails, - PalletNftsBitFlagsCollectionRole, - PalletNftsItemDetails, - PalletNftsCollectionMetadata, - PalletNftsItemMetadata, - PalletNftsAttributeDeposit, - PalletNftsAttributeNamespace, - PalletNftsPendingSwap, - PalletNftsCollectionConfig, - PalletNftsItemConfig, - StagingXcmV3MultilocationMultiLocation, - PalletNftFractionalizationDetails, - PalletAssetConversionPoolInfo, - FrameSupportTokensMiscIdAmountRuntimeFreezeReason, - PalletStateTrieMigrationMigrationTask, - PalletStateTrieMigrationMigrationLimits, -} from './types'; - -export interface ChainStorage extends GenericChainStorage { - /** - * Pallet `System`'s storage queries - **/ - system: { - /** - * The full account information for a particular account ID. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery FrameSystemAccountInfo, AccountId32>; - - /** - * Total extrinsics count for the current block. - * - * @param {Callback =} callback - **/ - extrinsicCount: GenericStorageQuery number | undefined>; - - /** - * Whether all inherents have been applied. - * - * @param {Callback =} callback - **/ - inherentsApplied: GenericStorageQuery boolean>; - - /** - * The current weight for the block. - * - * @param {Callback =} callback - **/ - blockWeight: GenericStorageQuery FrameSupportDispatchPerDispatchClass>; - - /** - * Total length (in bytes) for all extrinsics put together, for the current block. - * - * @param {Callback =} callback - **/ - allExtrinsicsLen: GenericStorageQuery number | undefined>; - - /** - * Map of block numbers to block hashes. - * - * @param {number} arg - * @param {Callback =} callback - **/ - blockHash: GenericStorageQuery H256, number>; - - /** - * Extrinsics data for the current block (maps an extrinsic's index to its data). - * - * @param {number} arg - * @param {Callback =} callback - **/ - extrinsicData: GenericStorageQuery Bytes, number>; - - /** - * The current block number being processed. Set by `execute_block`. - * - * @param {Callback =} callback - **/ - number: GenericStorageQuery number>; - - /** - * Hash of the previous block. - * - * @param {Callback =} callback - **/ - parentHash: GenericStorageQuery H256>; - - /** - * Digest of the current block, also part of the block header. - * - * @param {Callback =} callback - **/ - digest: GenericStorageQuery Digest>; - - /** - * Events deposited for the current block. - * - * NOTE: The item is unbound and should therefore never be read on chain. - * It could otherwise inflate the PoV size of a block. - * - * Events have a large in-memory size. Box the events to not go out-of-memory - * just in case someone still reads them from within the runtime. - * - * @param {Callback> =} callback - **/ - events: GenericStorageQuery Array>; - - /** - * The number of events in the `Events` list. - * - * @param {Callback =} callback - **/ - eventCount: GenericStorageQuery number>; - - /** - * Mapping between a topic (represented by T::Hash) and a vector of indexes - * of events in the `>` list. - * - * All topic vectors have deterministic storage locations depending on the topic. This - * allows light-clients to leverage the changes trie storage tracking mechanism and - * in case of changes fetch the list of events of interest. - * - * The value has the type `(BlockNumberFor, EventIndex)` because if we used only just - * the `EventIndex` then in case if the topic has the same contents on the next block - * no notification will be triggered thus the event might be lost. - * - * @param {H256} arg - * @param {Callback> =} callback - **/ - eventTopics: GenericStorageQuery Array<[number, number]>, H256>; - - /** - * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. - * - * @param {Callback =} callback - **/ - lastRuntimeUpgrade: GenericStorageQuery FrameSystemLastRuntimeUpgradeInfo | undefined>; - - /** - * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToU32RefCount: GenericStorageQuery boolean>; - - /** - * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False - * (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToTripleRefCount: GenericStorageQuery boolean>; - - /** - * The execution phase of the block. - * - * @param {Callback =} callback - **/ - executionPhase: GenericStorageQuery Phase | undefined>; - - /** - * `Some` if a code upgrade has been authorized. - * - * @param {Callback =} callback - **/ - authorizedUpgrade: GenericStorageQuery FrameSystemCodeUpgradeAuthorization | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainSystem`'s storage queries - **/ - parachainSystem: { - /** - * Latest included block descendants the runtime accepted. In other words, these are - * ancestors of the currently executing block which have not been included in the observed - * relay-chain state. - * - * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured - * in the pallet. - * - * @param {Callback> =} callback - **/ - unincludedSegment: GenericStorageQuery Array>; - - /** - * Storage field that keeps track of bandwidth used by the unincluded segment along with the - * latest HRMP watermark. Used for limiting the acceptance of new blocks with - * respect to relay chain constraints. - * - * @param {Callback =} callback - **/ - aggregatedUnincludedSegment: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined - >; - - /** - * In case of a scheduled upgrade, this storage field contains the validation code to be - * applied. - * - * As soon as the relay chain gives us the go-ahead signal, we will overwrite the - * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process - * with the new validation code. This concludes the upgrade process. - * - * @param {Callback =} callback - **/ - pendingValidationCode: GenericStorageQuery Bytes>; - - /** - * Validation code that is set by the parachain and is to be communicated to collator and - * consequently the relay-chain. - * - * This will be cleared in `on_initialize` of each new block if no other pallet already set - * the value. - * - * @param {Callback =} callback - **/ - newValidationCode: GenericStorageQuery Bytes | undefined>; - - /** - * The [`PersistedValidationData`] set for this block. - * This value is expected to be set only once per block and it's never stored - * in the trie. - * - * @param {Callback =} callback - **/ - validationData: GenericStorageQuery PolkadotPrimitivesV7PersistedValidationData | undefined>; - - /** - * Were the validation data set to notify the relay chain? - * - * @param {Callback =} callback - **/ - didSetValidationCode: GenericStorageQuery boolean>; - - /** - * The relay chain block number associated with the last parachain block. - * - * This is updated in `on_finalize`. - * - * @param {Callback =} callback - **/ - lastRelayChainBlockNumber: GenericStorageQuery number>; - - /** - * An option which indicates if the relay-chain restricts signalling a validation code upgrade. - * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced - * candidate will be invalid. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeRestrictionSignal: GenericStorageQuery PolkadotPrimitivesV7UpgradeRestriction | undefined>; - - /** - * Optional upgrade go-ahead signal from the relay-chain. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeGoAhead: GenericStorageQuery PolkadotPrimitivesV7UpgradeGoAhead | undefined>; - - /** - * The state proof for the last relay parent block. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relayStateProof: GenericStorageQuery SpTrieStorageProof | undefined>; - - /** - * The snapshot of some state related to messaging relevant to the current parachain as per - * the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relevantMessagingState: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined - >; - - /** - * The parachain host configuration that was obtained from the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - hostConfiguration: GenericStorageQuery PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>; - - /** - * The last downward message queue chain head we have observed. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback =} callback - **/ - lastDmqMqcHead: GenericStorageQuery CumulusPrimitivesParachainInherentMessageQueueChain>; - - /** - * The message queue chain heads we have observed per each channel incoming channel. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback> =} callback - **/ - lastHrmpMqcHeads: GenericStorageQuery< - Rv, - () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]> - >; - - /** - * Number of downward messages processed in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - processedDownwardMessages: GenericStorageQuery number>; - - /** - * HRMP watermark that was set in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - hrmpWatermark: GenericStorageQuery number>; - - /** - * HRMP messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - hrmpOutboundMessages: GenericStorageQuery Array>; - - /** - * Upward messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - upwardMessages: GenericStorageQuery Array>; - - /** - * Upward messages that are still pending and not yet send to the relay chain. - * - * @param {Callback> =} callback - **/ - pendingUpwardMessages: GenericStorageQuery Array>; - - /** - * The factor to multiply the base delivery fee by for UMP. - * - * @param {Callback =} callback - **/ - upwardDeliveryFeeFactor: GenericStorageQuery FixedU128>; - - /** - * The number of HRMP messages we observed in `on_initialize` and thus used that number for - * announcing the weight of `on_initialize` and `on_finalize`. - * - * @param {Callback =} callback - **/ - announcedHrmpMessagesPerCandidate: GenericStorageQuery number>; - - /** - * The weight we reserve at the beginning of the block for processing XCMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedXcmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * The weight we reserve at the beginning of the block for processing DMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedDmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * A custom head data that should be returned as result of `validate_block`. - * - * See `Pallet::set_custom_validation_head_data` for more information. - * - * @param {Callback =} callback - **/ - customValidationHeadData: GenericStorageQuery Bytes | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Timestamp`'s storage queries - **/ - timestamp: { - /** - * The current time for the current block. - * - * @param {Callback =} callback - **/ - now: GenericStorageQuery bigint>; - - /** - * Whether the timestamp has been updated in this block. - * - * This value is updated to `true` upon successful submission of a timestamp by a node. - * It is then checked at the end of each block execution in the `on_finalize` hook. - * - * @param {Callback =} callback - **/ - didUpdate: GenericStorageQuery boolean>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainInfo`'s storage queries - **/ - parachainInfo: { - /** - * - * @param {Callback =} callback - **/ - parachainId: GenericStorageQuery PolkadotParachainPrimitivesPrimitivesId>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Balances`'s storage queries - **/ - balances: { - /** - * The total units issued in the system. - * - * @param {Callback =} callback - **/ - totalIssuance: GenericStorageQuery bigint>; - - /** - * The total units of outstanding deactivated balance in the system. - * - * @param {Callback =} callback - **/ - inactiveIssuance: GenericStorageQuery bigint>; - - /** - * The Balances pallet example of storing the balance of an account. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> - * } - * ``` - * - * You can also store the balance of an account in the `System` pallet. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = System - * } - * ``` - * - * But this comes with tradeoffs, storing account balances in the system pallet stores - * `frame_system` data alongside the account data contrary to storing account balances in the - * `Balances` pallet, which uses a `StorageMap` to store balances data only. - * NOTE: This is only used in the case that this pallet is used to store balances. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery PalletBalancesAccountData, AccountId32>; - - /** - * Any liquidity locks on some account balances. - * NOTE: Should only be accessed when setting, changing and freeing a lock. - * - * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - locks: GenericStorageQuery Array, AccountId32>; - - /** - * Named reserves on some account balances. - * - * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - reserves: GenericStorageQuery Array, AccountId32>; - - /** - * Holds on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - holds: GenericStorageQuery Array, AccountId32>; - - /** - * Freeze locks on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery Array, AccountId32>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `TransactionPayment`'s storage queries - **/ - transactionPayment: { - /** - * - * @param {Callback =} callback - **/ - nextFeeMultiplier: GenericStorageQuery FixedU128>; - - /** - * - * @param {Callback =} callback - **/ - storageVersion: GenericStorageQuery PalletTransactionPaymentReleases>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Authorship`'s storage queries - **/ - authorship: { - /** - * Author of current block. - * - * @param {Callback =} callback - **/ - author: GenericStorageQuery AccountId32 | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `CollatorSelection`'s storage queries - **/ - collatorSelection: { - /** - * The invulnerable, permissioned collators. This list must be sorted. - * - * @param {Callback> =} callback - **/ - invulnerables: GenericStorageQuery Array>; - - /** - * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be - * mutually exclusive. - * - * This list is sorted in ascending order by deposit and when the deposits are equal, the least - * recently updated is considered greater. - * - * @param {Callback> =} callback - **/ - candidateList: GenericStorageQuery Array>; - - /** - * Last block authored by collator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - lastAuthoredBlock: GenericStorageQuery number, AccountId32>; - - /** - * Desired number of candidates. - * - * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct. - * - * @param {Callback =} callback - **/ - desiredCandidates: GenericStorageQuery number>; - - /** - * Fixed amount to deposit to become a collator. - * - * When a collator calls `leave_intent` they immediately receive the deposit back. - * - * @param {Callback =} callback - **/ - candidacyBond: GenericStorageQuery bigint>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Session`'s storage queries - **/ - session: { - /** - * The current set of validators. - * - * @param {Callback> =} callback - **/ - validators: GenericStorageQuery Array>; - - /** - * Current index of the session. - * - * @param {Callback =} callback - **/ - currentIndex: GenericStorageQuery number>; - - /** - * True if the underlying economic identities or weighting behind the validators - * has changed in the queued validator set. - * - * @param {Callback =} callback - **/ - queuedChanged: GenericStorageQuery boolean>; - - /** - * The queued keys for the next session. When the next session begins, these keys - * will be used to determine the validator's session keys. - * - * @param {Callback> =} callback - **/ - queuedKeys: GenericStorageQuery Array<[AccountId32, AssetHubWestendRuntimeSessionKeys]>>; - - /** - * Indices of disabled validators. - * - * The vec is always kept sorted so that we can find whether a given validator is - * disabled using binary search. It gets cleared when `on_session_ending` returns - * a new set of identities. - * - * @param {Callback> =} callback - **/ - disabledValidators: GenericStorageQuery Array>; - - /** - * The next session keys for a validator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - nextKeys: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => AssetHubWestendRuntimeSessionKeys | undefined, - AccountId32 - >; - - /** - * The owner of a key. The key is the `KeyTypeId` + the encoded key. - * - * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg - * @param {Callback =} callback - **/ - keyOwner: GenericStorageQuery< - Rv, - (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined, - [SpCoreCryptoKeyTypeId, Bytes] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Aura`'s storage queries - **/ - aura: { - /** - * The current authority set. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * The current slot of this block. - * - * This will be set in `on_initialize`. - * - * @param {Callback =} callback - **/ - currentSlot: GenericStorageQuery SpConsensusSlotsSlot>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AuraExt`'s storage queries - **/ - auraExt: { - /** - * Serves as cache for the authorities. - * - * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session, - * but we require the old authorities to verify the seal when validating a PoV. This will - * always be updated to the latest AuRa authorities in `on_finalize`. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * Current slot paired with a number of authored blocks. - * - * Updated on each block initialization. - * - * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback - **/ - slotInfo: GenericStorageQuery [SpConsensusSlotsSlot, number] | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `XcmpQueue`'s storage queries - **/ - xcmpQueue: { - /** - * The suspended inbound XCMP channels. All others are not suspended. - * - * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block - * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached - * within the block and therefore only included once in the proof size. - * - * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof - * will be smaller. - * - * @param {Callback> =} callback - **/ - inboundXcmpSuspended: GenericStorageQuery Array>; - - /** - * The non-empty XCMP channels in order of becoming non-empty, and the index of the first - * and last outbound message. If the two indices are equal, then it indicates an empty - * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater - * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in - * case of the need to send a high-priority signal message this block. - * The bool is true if there is a signal message waiting to be sent. - * - * @param {Callback> =} callback - **/ - outboundXcmpStatus: GenericStorageQuery Array>; - - /** - * The messages outbound in a given XCMP channel. - * - * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg - * @param {Callback =} callback - **/ - outboundXcmpMessages: GenericStorageQuery< - Rv, - (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes, - [PolkadotParachainPrimitivesPrimitivesId, number] - >; - - /** - * Any signal messages waiting to be sent. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - signalMessages: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * The configuration which controls the dynamics of the outbound queue. - * - * @param {Callback =} callback - **/ - queueConfig: GenericStorageQuery CumulusPalletXcmpQueueQueueConfigData>; - - /** - * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. - * - * @param {Callback =} callback - **/ - queueSuspended: GenericStorageQuery boolean>; - - /** - * The factor to multiply the base delivery fee by. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - deliveryFeeFactor: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PolkadotXcm`'s storage queries - **/ - polkadotXcm: { - /** - * The latest available query index. - * - * @param {Callback =} callback - **/ - queryCounter: GenericStorageQuery bigint>; - - /** - * The ongoing queries. - * - * @param {bigint} arg - * @param {Callback =} callback - **/ - queries: GenericStorageQuery PalletXcmQueryStatus | undefined, bigint>; - - /** - * The existing asset traps. - * - * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of - * times this pair has been trapped (usually just 1 if it exists at all). - * - * @param {H256} arg - * @param {Callback =} callback - **/ - assetTraps: GenericStorageQuery number, H256>; - - /** - * Default version to encode XCM when latest version of destination is unknown. If `None`, - * then the destinations whose XCM version is unknown are considered unreachable. - * - * @param {Callback =} callback - **/ - safeXcmVersion: GenericStorageQuery number | undefined>; - - /** - * The Latest versions that we know various locations support. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - supportedVersion: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => number | undefined, - [number, XcmVersionedLocation] - >; - - /** - * All locations that we have requested version notifications from. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - versionNotifiers: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => bigint | undefined, - [number, XcmVersionedLocation] - >; - - /** - * The target locations that are subscribed to our version changes, as well as the most recent - * of our versions we informed them of. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback - **/ - versionNotifyTargets: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined, - [number, XcmVersionedLocation] - >; - - /** - * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and - * the `u32` counter is the number of times that a send to the destination has been attempted, - * which is used as a prioritization. - * - * @param {Callback> =} callback - **/ - versionDiscoveryQueue: GenericStorageQuery Array<[XcmVersionedLocation, number]>>; - - /** - * The current migration's stage, if any. - * - * @param {Callback =} callback - **/ - currentMigration: GenericStorageQuery PalletXcmVersionMigrationStage | undefined>; - - /** - * Fungible assets which we know are locked on a remote chain. - * - * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg - * @param {Callback =} callback - **/ - remoteLockedFungibles: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined, - [number, AccountId32, XcmVersionedAssetId] - >; - - /** - * Fungible assets which we know are locked on this chain. - * - * @param {AccountId32Like} arg - * @param {Callback | undefined> =} callback - **/ - lockedFungibles: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined, - AccountId32 - >; - - /** - * Global suspension state of the XCM executor. - * - * @param {Callback =} callback - **/ - xcmExecutionSuspended: GenericStorageQuery boolean>; - - /** - * Whether or not incoming XCMs (both executed locally and received) should be recorded. - * Only one XCM program will be recorded at a time. - * This is meant to be used in runtime APIs, and it's advised it stays false - * for all other use cases, so as to not degrade regular performance. - * - * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`] - * implementation in the XCM executor configuration. - * - * @param {Callback =} callback - **/ - shouldRecordXcm: GenericStorageQuery boolean>; - - /** - * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally - * will be stored here. - * Runtime APIs can fetch the XCM that was executed by accessing this value. - * - * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`] - * implementation in the XCM executor configuration. - * - * @param {Callback =} callback - **/ - recordedXcm: GenericStorageQuery StagingXcmV4Xcm | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ToRococoXcmRouter`'s storage queries - **/ - toRococoXcmRouter: { - /** - * Bridge that we are using. - * - * **bridges-v1** assumptions: all outbound messages through this router are using single lane - * and to single remote consensus. If there is some other remote consensus that uses the same - * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required - * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges - * by the same pallet instance. - * - * @param {Callback =} callback - **/ - bridge: GenericStorageQuery BpXcmBridgeHubRouterBridgeState>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `MessageQueue`'s storage queries - **/ - messageQueue: { - /** - * The index of the first and last (non-empty) pages. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg - * @param {Callback =} callback - **/ - bookStateFor: GenericStorageQuery< - Rv, - (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin - >; - - /** - * The origin at which we should begin servicing. - * - * @param {Callback =} callback - **/ - serviceHead: GenericStorageQuery CumulusPrimitivesCoreAggregateMessageOrigin | undefined>; - - /** - * The map of page indices to pages. - * - * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg - * @param {Callback =} callback - **/ - pages: GenericStorageQuery< - Rv, - (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined, - [CumulusPrimitivesCoreAggregateMessageOrigin, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Multisig`'s storage queries - **/ - multisig: { - /** - * The set of open multisig operations. - * - * @param {[AccountId32Like, FixedBytes<32>]} arg - * @param {Callback =} callback - **/ - multisigs: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined, - [AccountId32, FixedBytes<32>] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Proxy`'s storage queries - **/ - proxy: { - /** - * The set of account proxies. Maps the account which has delegated to the accounts - * which are being delegated to, together with the amount held on deposit. - * - * @param {AccountId32Like} arg - * @param {Callback<[Array, bigint]> =} callback - **/ - proxies: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => [Array, bigint], - AccountId32 - >; - - /** - * The announcements made by the proxy (key). - * - * @param {AccountId32Like} arg - * @param {Callback<[Array, bigint]> =} callback - **/ - announcements: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => [Array, bigint], - AccountId32 - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Assets`'s storage queries - **/ - assets: { - /** - * Details of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletAssetsAssetDetails | undefined, number>; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [number, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[number, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, - [number, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery PalletAssetsAssetMetadata, number>; - - /** - * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage - * item has no effect. - * - * This can be useful for setting up constraints for IDs of the new assets. For example, by - * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an - * auto-increment model can be applied to all new asset IDs. - * - * The initial next asset ID can be set using the [`GenesisConfig`] or the - * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration. - * - * @param {Callback =} callback - **/ - nextAssetId: GenericStorageQuery number | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Uniques`'s storage queries - **/ - uniques: { - /** - * Details of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - class: GenericStorageQuery PalletUniquesCollectionDetails | undefined, number>; - - /** - * The collection, if any, of which an account is willing to take ownership. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - ownershipAcceptance: GenericStorageQuery number | undefined, AccountId32>; - - /** - * The items held by any given account; set out this way so that items owned by a single - * account can be enumerated. - * - * @param {[AccountId32Like, number, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number, number]) => [] | undefined, - [AccountId32, number, number] - >; - - /** - * The collections owned by any given account; set out this way so that collections owned by - * a single account can be enumerated. - * - * @param {[AccountId32Like, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - classAccount: GenericStorageQuery [] | undefined, [AccountId32, number]>; - - /** - * The items in existence and their ownership details. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletUniquesItemDetails | undefined, [number, number]>; - - /** - * Metadata of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - classMetadataOf: GenericStorageQuery PalletUniquesCollectionMetadata | undefined, number>; - - /** - * Metadata of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - instanceMetadataOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletUniquesItemMetadata | undefined, - [number, number] - >; - - /** - * Attributes of a collection. - * - * @param {[number, number | undefined, BytesLike]} arg - * @param {Callback<[Bytes, bigint] | undefined> =} callback - **/ - attribute: GenericStorageQuery< - Rv, - (arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined, - [number, number | undefined, Bytes] - >; - - /** - * Price of an asset instance. - * - * @param {[number, number]} arg - * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback - **/ - itemPriceOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, - [number, number] - >; - - /** - * Keeps track of the number of items a collection might have. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionMaxSupply: GenericStorageQuery number | undefined, number>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Nfts`'s storage queries - **/ - nfts: { - /** - * Details of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collection: GenericStorageQuery PalletNftsCollectionDetails | undefined, number>; - - /** - * The collection, if any, of which an account is willing to take ownership. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - ownershipAcceptance: GenericStorageQuery number | undefined, AccountId32>; - - /** - * The items held by any given account; set out this way so that items owned by a single - * account can be enumerated. - * - * @param {[AccountId32Like, number, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number, number]) => [] | undefined, - [AccountId32, number, number] - >; - - /** - * The collections owned by any given account; set out this way so that collections owned by - * a single account can be enumerated. - * - * @param {[AccountId32Like, number]} arg - * @param {Callback<[] | undefined> =} callback - **/ - collectionAccount: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, number]) => [] | undefined, - [AccountId32, number] - >; - - /** - * The items in existence and their ownership details. - * Stores collection roles as per account. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - collectionRoleOf: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined, - [number, AccountId32] - >; - - /** - * The items in existence and their ownership details. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - item: GenericStorageQuery PalletNftsItemDetails | undefined, [number, number]>; - - /** - * Metadata of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionMetadataOf: GenericStorageQuery PalletNftsCollectionMetadata | undefined, number>; - - /** - * Metadata of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - itemMetadataOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsItemMetadata | undefined, - [number, number] - >; - - /** - * Attributes of a collection. - * - * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg - * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback - **/ - attribute: GenericStorageQuery< - Rv, - ( - arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike], - ) => [Bytes, PalletNftsAttributeDeposit] | undefined, - [number, number | undefined, PalletNftsAttributeNamespace, Bytes] - >; - - /** - * A price of an item. - * - * @param {[number, number]} arg - * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback - **/ - itemPriceOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, - [number, number] - >; - - /** - * Item attribute approvals. - * - * @param {[number, number]} arg - * @param {Callback> =} callback - **/ - itemAttributesApprovalsOf: GenericStorageQuery Array, [number, number]>; - - /** - * Stores the `CollectionId` that is going to be used for the next collection. - * This gets incremented whenever a new collection is created. - * - * @param {Callback =} callback - **/ - nextCollectionId: GenericStorageQuery number | undefined>; - - /** - * Handles all the pending swaps. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - pendingSwapOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsPendingSwap | undefined, - [number, number] - >; - - /** - * Config of a collection. - * - * @param {number} arg - * @param {Callback =} callback - **/ - collectionConfigOf: GenericStorageQuery PalletNftsCollectionConfig | undefined, number>; - - /** - * Config of an item. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - itemConfigOf: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftsItemConfig | undefined, - [number, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ForeignAssets`'s storage queries - **/ - foreignAssets: { - /** - * Details of an asset. - * - * @param {StagingXcmV3MultilocationMultiLocation} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery< - Rv, - (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined, - StagingXcmV3MultilocationMultiLocation - >; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like], - ) => PalletAssetsApproval | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {StagingXcmV3MultilocationMultiLocation} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery< - Rv, - (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata, - StagingXcmV3MultilocationMultiLocation - >; - - /** - * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage - * item has no effect. - * - * This can be useful for setting up constraints for IDs of the new assets. For example, by - * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an - * auto-increment model can be applied to all new asset IDs. - * - * The initial next asset ID can be set using the [`GenesisConfig`] or the - * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration. - * - * @param {Callback =} callback - **/ - nextAssetId: GenericStorageQuery StagingXcmV3MultilocationMultiLocation | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `NftFractionalization`'s storage queries - **/ - nftFractionalization: { - /** - * Keeps track of the corresponding NFT ID, asset ID and amount minted. - * - * @param {[number, number]} arg - * @param {Callback =} callback - **/ - nftToAsset: GenericStorageQuery< - Rv, - (arg: [number, number]) => PalletNftFractionalizationDetails | undefined, - [number, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PoolAssets`'s storage queries - **/ - poolAssets: { - /** - * Details of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - asset: GenericStorageQuery PalletAssetsAssetDetails | undefined, number>; - - /** - * The holdings of a specific account for a specific asset. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, - [number, AccountId32] - >; - - /** - * Approved balance transfers. First balance is the amount approved for transfer. Second - * is the amount of `T::Currency` reserved for storing this. - * First key is the asset ID, second key is the owner and third key is the delegate. - * - * @param {[number, AccountId32Like, AccountId32Like]} arg - * @param {Callback =} callback - **/ - approvals: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, - [number, AccountId32, AccountId32] - >; - - /** - * Metadata of an asset. - * - * @param {number} arg - * @param {Callback =} callback - **/ - metadata: GenericStorageQuery PalletAssetsAssetMetadata, number>; - - /** - * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage - * item has no effect. - * - * This can be useful for setting up constraints for IDs of the new assets. For example, by - * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an - * auto-increment model can be applied to all new asset IDs. - * - * The initial next asset ID can be set using the [`GenesisConfig`] or the - * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration. - * - * @param {Callback =} callback - **/ - nextAssetId: GenericStorageQuery number | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AssetConversion`'s storage queries - **/ - assetConversion: { - /** - * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially - * created rather than people sending tokens directly to a pool's public account. - * - * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg - * @param {Callback =} callback - **/ - pools: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation], - ) => PalletAssetConversionPoolInfo | undefined, - [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation] - >; - - /** - * Stores the `PoolAssetId` that is going to be used for the next lp token. - * This gets incremented whenever a new lp pool is created. - * - * @param {Callback =} callback - **/ - nextPoolAssetId: GenericStorageQuery number | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AssetsFreezer`'s storage queries - **/ - assetsFreezer: { - /** - * A map that stores freezes applied on an account for a given AssetId. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => Array, - [number, AccountId32] - >; - - /** - * A map that stores the current total frozen balance for every account on a given AssetId. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - frozenBalances: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => bigint | undefined, - [number, AccountId32] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ForeignAssetsFreezer`'s storage queries - **/ - foreignAssetsFreezer: { - /** - * A map that stores freezes applied on an account for a given AssetId. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery< - Rv, - ( - arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like], - ) => Array, - [StagingXcmV3MultilocationMultiLocation, AccountId32] - >; - - /** - * A map that stores the current total frozen balance for every account on a given AssetId. - * - * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg - * @param {Callback =} callback - **/ - frozenBalances: GenericStorageQuery< - Rv, - (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => bigint | undefined, - [StagingXcmV3MultilocationMultiLocation, AccountId32] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PoolAssetsFreezer`'s storage queries - **/ - poolAssetsFreezer: { - /** - * A map that stores freezes applied on an account for a given AssetId. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => Array, - [number, AccountId32] - >; - - /** - * A map that stores the current total frozen balance for every account on a given AssetId. - * - * @param {[number, AccountId32Like]} arg - * @param {Callback =} callback - **/ - frozenBalances: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like]) => bigint | undefined, - [number, AccountId32] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `StateTrieMigration`'s storage queries - **/ - stateTrieMigration: { - /** - * Migration progress. - * - * This stores the snapshot of the last migrated keys. It can be set into motion and move - * forward by any of the means provided by this pallet. - * - * @param {Callback =} callback - **/ - migrationProcess: GenericStorageQuery PalletStateTrieMigrationMigrationTask>; - - /** - * The limits that are imposed on automatic migrations. - * - * If set to None, then no automatic migration happens. - * - * @param {Callback =} callback - **/ - autoLimits: GenericStorageQuery PalletStateTrieMigrationMigrationLimits | undefined>; - - /** - * The maximum limits that the signed migration could use. - * - * If not set, no signed submission is allowed. - * - * @param {Callback =} callback - **/ - signedMigrationMaxLimits: GenericStorageQuery PalletStateTrieMigrationMigrationLimits | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; -} diff --git a/packages/chaintypes/src/westendAssetHub/runtime.d.ts b/packages/chaintypes/src/westendAssetHub/runtime.d.ts deleted file mode 100644 index 8d237e8..0000000 --- a/packages/chaintypes/src/westendAssetHub/runtime.d.ts +++ /dev/null @@ -1,798 +0,0 @@ -// Generated by dedot cli - -import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types'; -import type { - H256, - RuntimeVersion, - Header, - DispatchError, - Result, - UncheckedExtrinsicLike, - UncheckedExtrinsic, - Bytes, - BytesLike, - AccountId32Like, - AccountId32, -} from 'dedot/codecs'; -import type { - SpConsensusSlotsSlotDuration, - SpConsensusAuraSr25519AppSr25519Public, - SpConsensusSlotsSlot, - SpRuntimeBlock, - SpRuntimeExtrinsicInclusionMode, - SpCoreOpaqueMetadata, - SpRuntimeTransactionValidityTransactionValidityError, - SpInherentsInherentData, - SpInherentsCheckInherentsResult, - SpRuntimeTransactionValidityValidTransaction, - SpRuntimeTransactionValidityTransactionSource, - SpCoreCryptoKeyTypeId, - StagingXcmV3MultilocationMultiLocation, - PalletTransactionPaymentRuntimeDispatchInfo, - PalletTransactionPaymentFeeDetails, - SpWeightsWeightV2Weight, - XcmVersionedAssetId, - XcmRuntimeApisFeesError, - XcmVersionedXcm, - XcmVersionedAssets, - XcmVersionedLocation, - XcmRuntimeApisDryRunCallDryRunEffects, - XcmRuntimeApisDryRunError, - AssetHubWestendRuntimeOriginCaller, - AssetHubWestendRuntimeRuntimeCallLike, - XcmRuntimeApisDryRunXcmDryRunEffects, - XcmRuntimeApisConversionsError, - AssetsCommonRuntimeApiFungiblesAccessError, - CumulusPrimitivesCoreCollationInfo, -} from './types'; - -export interface RuntimeApis extends GenericRuntimeApis { - /** - * @runtimeapi: AuraApi - 0xdd718d5cc53262d4 - **/ - auraApi: { - /** - * Returns the slot duration for Aura. - * - * Currently, only the value provided by this type at genesis will be used. - * - * @callname: AuraApi_slot_duration - **/ - slotDuration: GenericRuntimeApiMethod Promise>; - - /** - * Return the current set of authorities. - * - * @callname: AuraApi_authorities - **/ - authorities: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65 - **/ - auraUnincludedSegmentApi: { - /** - * Whether it is legal to extend the chain, assuming the given block is the most - * recently included one as-of the relay parent that will be built against, and - * the given slot. - * - * This should be consistent with the logic the runtime uses when validating blocks to - * avoid issues. - * - * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block - * whose state we are querying against, this must always return `true` as long as the slot - * is more recent than the included block itself. - * - * @callname: AuraUnincludedSegmentApi_can_build_upon - * @param {H256} included_hash - * @param {SpConsensusSlotsSlot} slot - **/ - canBuildUpon: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Core - 0xdf6acb689907609b - **/ - core: { - /** - * Returns the version of the runtime. - * - * @callname: Core_version - **/ - version: GenericRuntimeApiMethod Promise>; - - /** - * Execute the given block. - * - * @callname: Core_execute_block - * @param {SpRuntimeBlock} block - **/ - executeBlock: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Initialize a block with the given header and return the runtime executive mode. - * - * @callname: Core_initialize_block - * @param {Header} header - **/ - initializeBlock: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Metadata - 0x37e397fc7c91f5e4 - **/ - metadata: { - /** - * Returns the metadata of a runtime. - * - * @callname: Metadata_metadata - **/ - metadata: GenericRuntimeApiMethod Promise>; - - /** - * Returns the metadata at a given version. - * - * If the given `version` isn't supported, this will return `None`. - * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime. - * - * @callname: Metadata_metadata_at_version - * @param {number} version - **/ - metadataAtVersion: GenericRuntimeApiMethod Promise>; - - /** - * Returns the supported metadata versions. - * - * This can be used to call `metadata_at_version`. - * - * @callname: Metadata_metadata_versions - **/ - metadataVersions: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a - **/ - blockBuilder: { - /** - * Apply the given extrinsic. - * - * Returns an inclusion outcome which specifies if this extrinsic is included in - * this block or not. - * - * @callname: BlockBuilder_apply_extrinsic - * @param {UncheckedExtrinsicLike} extrinsic - **/ - applyExtrinsic: GenericRuntimeApiMethod< - Rv, - ( - extrinsic: UncheckedExtrinsicLike, - ) => Promise, SpRuntimeTransactionValidityTransactionValidityError>> - >; - - /** - * Finish the current block. - * - * @callname: BlockBuilder_finalize_block - **/ - finalizeBlock: GenericRuntimeApiMethod Promise
>; - - /** - * Generate inherent extrinsics. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_inherent_extrinsics - * @param {SpInherentsInherentData} inherent - **/ - inherentExtrinsics: GenericRuntimeApiMethod< - Rv, - (inherent: SpInherentsInherentData) => Promise> - >; - - /** - * Check that the inherents are valid. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_check_inherents - * @param {SpRuntimeBlock} block - * @param {SpInherentsInherentData} data - **/ - checkInherents: GenericRuntimeApiMethod< - Rv, - (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15 - **/ - taggedTransactionQueue: { - /** - * Validate the transaction. - * - * This method is invoked by the transaction pool to learn details about given transaction. - * The implementation should make sure to verify the correctness of the transaction - * against current state. The given `block_hash` corresponds to the hash of the block - * that is used as current state. - * - * Note that this call may be performed by the pool multiple times and transactions - * might be verified in any possible order. - * - * @callname: TaggedTransactionQueue_validate_transaction - * @param {SpRuntimeTransactionValidityTransactionSource} source - * @param {UncheckedExtrinsicLike} tx - * @param {H256} block_hash - **/ - validateTransaction: GenericRuntimeApiMethod< - Rv, - ( - source: SpRuntimeTransactionValidityTransactionSource, - tx: UncheckedExtrinsicLike, - blockHash: H256, - ) => Promise< - Result - > - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c - **/ - offchainWorkerApi: { - /** - * Starts the off-chain task for given block header. - * - * @callname: OffchainWorkerApi_offchain_worker - * @param {Header} header - **/ - offchainWorker: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: SessionKeys - 0xab3c0572291feb8b - **/ - sessionKeys: { - /** - * Generate a set of session keys with optionally using the given seed. - * The keys should be stored within the keystore exposed via runtime - * externalities. - * - * The seed needs to be a valid `utf8` string. - * - * Returns the concatenated SCALE encoded public keys. - * - * @callname: SessionKeys_generate_session_keys - * @param {BytesLike | undefined} seed - **/ - generateSessionKeys: GenericRuntimeApiMethod Promise>; - - /** - * Decode the given public session keys. - * - * Returns the list of public raw public keys + key type. - * - * @callname: SessionKeys_decode_session_keys - * @param {BytesLike} encoded - **/ - decodeSessionKeys: GenericRuntimeApiMethod< - Rv, - (encoded: BytesLike) => Promise | undefined> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f - **/ - accountNonceApi: { - /** - * Get current account nonce of given `AccountId`. - * - * @callname: AccountNonceApi_account_nonce - * @param {AccountId32Like} account - **/ - accountNonce: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: NftsApi - 0x899a250cbe84f250 - **/ - nftsApi: { - /** - * - * @callname: NftsApi_owner - * @param {number} collection - * @param {number} item - **/ - owner: GenericRuntimeApiMethod Promise>; - - /** - * - * @callname: NftsApi_collection_owner - * @param {number} collection - **/ - collectionOwner: GenericRuntimeApiMethod Promise>; - - /** - * - * @callname: NftsApi_attribute - * @param {number} collection - * @param {number} item - * @param {BytesLike} key - **/ - attribute: GenericRuntimeApiMethod< - Rv, - (collection: number, item: number, key: BytesLike) => Promise - >; - - /** - * - * @callname: NftsApi_custom_attribute - * @param {AccountId32Like} account - * @param {number} collection - * @param {number} item - * @param {BytesLike} key - **/ - customAttribute: GenericRuntimeApiMethod< - Rv, - (account: AccountId32Like, collection: number, item: number, key: BytesLike) => Promise - >; - - /** - * - * @callname: NftsApi_system_attribute - * @param {number} collection - * @param {number | undefined} item - * @param {BytesLike} key - **/ - systemAttribute: GenericRuntimeApiMethod< - Rv, - (collection: number, item: number | undefined, key: BytesLike) => Promise - >; - - /** - * - * @callname: NftsApi_collection_attribute - * @param {number} collection - * @param {BytesLike} key - **/ - collectionAttribute: GenericRuntimeApiMethod< - Rv, - (collection: number, key: BytesLike) => Promise - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec - **/ - assetConversionApi: { - /** - * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`]. - * - * Note that the price may have changed by the time the transaction is executed. - * (Use `amount_in_max` to control slippage.) - * - * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount - * @param {boolean} include_fee - **/ - quotePriceTokensForExactTokens: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount: bigint, - includeFee: boolean, - ) => Promise - >; - - /** - * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`]. - * - * Note that the price may have changed by the time the transaction is executed. - * (Use `amount_out_min` to control slippage.) - * - * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount - * @param {boolean} include_fee - **/ - quotePriceExactTokensForTokens: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount: bigint, - includeFee: boolean, - ) => Promise - >; - - /** - * Returns the size of the liquidity pool for the given asset pair. - * - * @callname: AssetConversionApi_get_reserves - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - getReserves: GenericRuntimeApiMethod< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => Promise<[bigint, bigint] | undefined> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8 - **/ - transactionPaymentApi: { - /** - * - * @callname: TransactionPaymentApi_query_info - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryInfo: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_fee_details - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryFeeDetails: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * - * @callname: TransactionPaymentApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd - **/ - xcmPaymentApi: { - /** - * Returns a list of acceptable payment assets. - * - * # Arguments - * - * * `xcm_version`: Version. - * - * @callname: XcmPaymentApi_query_acceptable_payment_assets - * @param {number} xcm_version - **/ - queryAcceptablePaymentAssets: GenericRuntimeApiMethod< - Rv, - (xcmVersion: number) => Promise, XcmRuntimeApisFeesError>> - >; - - /** - * Returns a weight needed to execute a XCM. - * - * # Arguments - * - * * `message`: `VersionedXcm`. - * - * @callname: XcmPaymentApi_query_xcm_weight - * @param {XcmVersionedXcm} message - **/ - queryXcmWeight: GenericRuntimeApiMethod< - Rv, - (message: XcmVersionedXcm) => Promise> - >; - - /** - * Converts a weight into a fee for the specified `AssetId`. - * - * # Arguments - * - * * `weight`: convertible `Weight`. - * * `asset`: `VersionedAssetId`. - * - * @callname: XcmPaymentApi_query_weight_to_asset_fee - * @param {SpWeightsWeightV2Weight} weight - * @param {XcmVersionedAssetId} asset - **/ - queryWeightToAssetFee: GenericRuntimeApiMethod< - Rv, - (weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise> - >; - - /** - * Get delivery fees for sending a specific `message` to a `destination`. - * These always come in a specific asset, defined by the chain. - * - * # Arguments - * * `message`: The message that'll be sent, necessary because most delivery fees are based on the - * size of the message. - * * `destination`: The destination to send the message to. Different destinations may use - * different senders that charge different fees. - * - * @callname: XcmPaymentApi_query_delivery_fees - * @param {XcmVersionedLocation} destination - * @param {XcmVersionedXcm} message - **/ - queryDeliveryFees: GenericRuntimeApiMethod< - Rv, - ( - destination: XcmVersionedLocation, - message: XcmVersionedXcm, - ) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: DryRunApi - 0x91b1c8b16328eb92 - **/ - dryRunApi: { - /** - * Dry run call. - * - * @callname: DryRunApi_dry_run_call - * @param {AssetHubWestendRuntimeOriginCaller} origin - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - **/ - dryRunCall: GenericRuntimeApiMethod< - Rv, - ( - origin: AssetHubWestendRuntimeOriginCaller, - call: AssetHubWestendRuntimeRuntimeCallLike, - ) => Promise> - >; - - /** - * Dry run XCM program - * - * @callname: DryRunApi_dry_run_xcm - * @param {XcmVersionedLocation} origin_location - * @param {XcmVersionedXcm} xcm - **/ - dryRunXcm: GenericRuntimeApiMethod< - Rv, - ( - originLocation: XcmVersionedLocation, - xcm: XcmVersionedXcm, - ) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c - **/ - locationToAccountApi: { - /** - * Converts `Location` to `AccountId`. - * - * @callname: LocationToAccountApi_convert_location - * @param {XcmVersionedLocation} location - **/ - convertLocation: GenericRuntimeApiMethod< - Rv, - (location: XcmVersionedLocation) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059 - **/ - transactionPaymentCallApi: { - /** - * Query information of a dispatch class, weight, and fee of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_info - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallInfo: GenericRuntimeApiMethod< - Rv, - (call: AssetHubWestendRuntimeRuntimeCallLike, len: number) => Promise - >; - - /** - * Query fee details of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_fee_details - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallFeeDetails: GenericRuntimeApiMethod< - Rv, - (call: AssetHubWestendRuntimeRuntimeCallLike, len: number) => Promise - >; - - /** - * Query the output of the current `WeightToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * Query the output of the current `LengthToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6 - **/ - fungiblesApi: { - /** - * Returns the list of all [`Asset`] that an `AccountId` has. - * - * @callname: FungiblesApi_query_account_balances - * @param {AccountId32Like} account - **/ - queryAccountBalances: GenericRuntimeApiMethod< - Rv, - (account: AccountId32Like) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962 - **/ - collectCollationInfo: { - /** - * Collect information about a collation. - * - * The given `header` is the header of the built block for that - * we are collecting the collation info for. - * - * @callname: CollectCollationInfo_collect_collation_info - * @param {Header} header - **/ - collectCollationInfo: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6 - **/ - genesisBuilder: { - /** - * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the - * storage. - * - * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and - * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the - * deserialization fails, an error is returned. - * - * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no - * defaults will be used. - * - * @callname: GenesisBuilder_build_state - * @param {BytesLike} json - **/ - buildState: GenericRuntimeApiMethod Promise>>; - - /** - * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by - * `id`. - * - * If `id` is `None` the function returns JSON blob representation of the default - * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default - * `RuntimeGenesisConfig`. - * - * Otherwise function returns a JSON representation of the built-in, named - * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not - * exists. Returned `Vec` contains bytes of JSON blob (patch) which comprises a list of - * (potentially nested) key-value pairs that are intended for customizing the default - * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation - * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can - * be used in `build_state` method. - * - * @callname: GenesisBuilder_get_preset - * @param {string | undefined} id - **/ - getPreset: GenericRuntimeApiMethod Promise>; - - /** - * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets. - * - * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If - * no named presets are provided by the runtime the list is empty. - * - * @callname: GenesisBuilder_preset_names - **/ - presetNames: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; -} diff --git a/packages/chaintypes/src/westendAssetHub/tx.d.ts b/packages/chaintypes/src/westendAssetHub/tx.d.ts deleted file mode 100644 index c5a48ca..0000000 --- a/packages/chaintypes/src/westendAssetHub/tx.d.ts +++ /dev/null @@ -1,9199 +0,0 @@ -// Generated by dedot cli - -import type { - GenericChainTx, - GenericTxCall, - ISubmittableExtrinsic, - ISubmittableResult, - IRuntimeTxCall, - RpcVersion, - RpcV2, - ISubmittableExtrinsicLegacy, -} from 'dedot/types'; -import type { MultiAddressLike, Extrinsic, BytesLike, H256, AccountId32Like, FixedBytes } from 'dedot/codecs'; -import type { - AssetHubWestendRuntimeRuntimeCallLike, - SpRuntimeMultiSignature, - FrameSystemEventRecord, - CumulusPrimitivesParachainInherentParachainInherentData, - PalletBalancesAdjustmentDirection, - AssetHubWestendRuntimeSessionKeys, - XcmVersionedLocation, - XcmVersionedXcm, - XcmVersionedAssets, - SpWeightsWeightV2Weight, - StagingXcmV4Location, - XcmV3WeightLimit, - StagingXcmExecutorAssetTransferTransferType, - XcmVersionedAssetId, - CumulusPrimitivesCoreAggregateMessageOrigin, - AssetHubWestendRuntimeOriginCaller, - PalletMultisigTimepoint, - AssetHubWestendRuntimeProxyType, - PalletUniquesDestroyWitness, - PalletNftsCollectionConfig, - PalletNftsDestroyWitness, - PalletNftsMintWitness, - PalletNftsItemConfig, - PalletNftsBitFlags, - PalletNftsAttributeNamespace, - PalletNftsCancelAttributesApprovalWitness, - PalletNftsMintSettings, - PalletNftsItemTip, - PalletNftsPriceWithDirection, - PalletNftsPreSignedMint, - PalletNftsPreSignedAttributes, - StagingXcmV3MultilocationMultiLocation, - PalletStateTrieMigrationMigrationLimits, - PalletStateTrieMigrationMigrationTask, - PalletStateTrieMigrationProgress, -} from './types'; - -export type ChainSubmittableExtrinsic< - Rv extends RpcVersion, - T extends IRuntimeTxCall = AssetHubWestendRuntimeRuntimeCallLike, -> = Extrinsic & - (Rv extends RpcV2 - ? ISubmittableExtrinsic> - : ISubmittableExtrinsicLegacy>); - -export type TxCall = (...args: any[]) => ChainSubmittableExtrinsic; - -export interface ChainTx extends GenericChainTx> { - /** - * Pallet `System`'s transaction calls - **/ - system: { - /** - * Make some on-chain remark. - * - * Can be executed by every `origin`. - * - * @param {BytesLike} remark - **/ - remark: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'Remark'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * Set the number of pages in the WebAssembly environment's heap. - * - * @param {bigint} pages - **/ - setHeapPages: GenericTxCall< - Rv, - (pages: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetHeapPages'; - params: { pages: bigint }; - }; - } - > - >; - - /** - * Set the new runtime code. - * - * @param {BytesLike} code - **/ - setCode: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCode'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Set the new runtime code without doing any checks of the given `code`. - * - * Note that runtime upgrades will not run if this is called with a not-increasing spec - * version! - * - * @param {BytesLike} code - **/ - setCodeWithoutChecks: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCodeWithoutChecks'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Set some items of storage. - * - * @param {Array<[BytesLike, BytesLike]>} items - **/ - setStorage: GenericTxCall< - Rv, - (items: Array<[BytesLike, BytesLike]>) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetStorage'; - params: { items: Array<[BytesLike, BytesLike]> }; - }; - } - > - >; - - /** - * Kill some items from storage. - * - * @param {Array} keys - **/ - killStorage: GenericTxCall< - Rv, - (keys: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillStorage'; - params: { keys: Array }; - }; - } - > - >; - - /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. - * - * @param {BytesLike} prefix - * @param {number} subkeys - **/ - killPrefix: GenericTxCall< - Rv, - ( - prefix: BytesLike, - subkeys: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillPrefix'; - params: { prefix: BytesLike; subkeys: number }; - }; - } - > - >; - - /** - * Make some on-chain remark and emit event. - * - * @param {BytesLike} remark - **/ - remarkWithEvent: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'RemarkWithEvent'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * This call requires Root origin. - * - * @param {H256} codeHash - **/ - authorizeUpgrade: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * WARNING: This authorizes an upgrade that will take place without any safety checks, for - * example that the spec name remains the same and that the version number increases. Not - * recommended for normal use. Use `authorize_upgrade` instead. - * - * This call requires Root origin. - * - * @param {H256} codeHash - **/ - authorizeUpgradeWithoutChecks: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgradeWithoutChecks'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Depending on the runtime's `OnSetCode` configuration, this function may directly apply - * the new `code` in the same block or attempt to schedule the upgrade. - * - * All origins are allowed. - * - * @param {BytesLike} code - **/ - applyAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'ApplyAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainSystem`'s transaction calls - **/ - parachainSystem: { - /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. - * - * @param {CumulusPrimitivesParachainInherentParachainInherentData} data - **/ - setValidationData: GenericTxCall< - Rv, - (data: CumulusPrimitivesParachainInherentParachainInherentData) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SetValidationData'; - params: { data: CumulusPrimitivesParachainInherentParachainInherentData }; - }; - } - > - >; - - /** - * - * @param {BytesLike} message - **/ - sudoSendUpwardMessage: GenericTxCall< - Rv, - (message: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SudoSendUpwardMessage'; - params: { message: BytesLike }; - }; - } - > - >; - - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. - * - * @param {H256} codeHash - * @param {boolean} checkVersion - **/ - authorizeUpgrade: GenericTxCall< - Rv, - ( - codeHash: H256, - checkVersion: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256; checkVersion: boolean }; - }; - } - > - >; - - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. - * - * @param {BytesLike} code - **/ - enactAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'EnactAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Timestamp`'s transaction calls - **/ - timestamp: { - /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * [`Config::MinimumPeriod`]. - * - * The dispatch origin for this call must be _None_. - * - * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware - * that changing the complexity of this call could result exhausting the resources in a - * block to execute any other calls. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. - * - * @param {bigint} now - **/ - set: GenericTxCall< - Rv, - (now: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Timestamp'; - palletCall: { - name: 'Set'; - params: { now: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainInfo`'s transaction calls - **/ - parachainInfo: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Balances`'s transaction calls - **/ - balances: { - /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferAllowDeath: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAllowDeath'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. - * - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - forceTransfer: GenericTxCall< - Rv, - ( - source: MultiAddressLike, - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceTransfer'; - params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferKeepAlive'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - * - * @param {MultiAddressLike} dest - * @param {boolean} keepAlive - **/ - transferAll: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAll'; - params: { dest: MultiAddressLike; keepAlive: boolean }; - }; - } - > - >; - - /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. - * - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - forceUnreserve: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceUnreserve'; - params: { who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibility of churn). - * - * @param {Array} who - **/ - upgradeAccounts: GenericTxCall< - Rv, - (who: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'UpgradeAccounts'; - params: { who: Array }; - }; - } - > - >; - - /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. - * - * @param {MultiAddressLike} who - * @param {bigint} newFree - **/ - forceSetBalance: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - newFree: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceSetBalance'; - params: { who: MultiAddressLike; newFree: bigint }; - }; - } - > - >; - - /** - * Adjust the total issuance in a saturating way. - * - * Can only be called by root and always needs a positive `delta`. - * - * # Example - * - * @param {PalletBalancesAdjustmentDirection} direction - * @param {bigint} delta - **/ - forceAdjustTotalIssuance: GenericTxCall< - Rv, - ( - direction: PalletBalancesAdjustmentDirection, - delta: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceAdjustTotalIssuance'; - params: { direction: PalletBalancesAdjustmentDirection; delta: bigint }; - }; - } - > - >; - - /** - * Burn the specified liquid free balance from the origin account. - * - * If the origin's account ends up below the existential deposit as a result - * of the burn and `keep_alive` is false, the account will be reaped. - * - * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, - * this `burn` operation will reduce total issuance by the amount _burned_. - * - * @param {bigint} value - * @param {boolean} keepAlive - **/ - burn: GenericTxCall< - Rv, - ( - value: bigint, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'Burn'; - params: { value: bigint; keepAlive: boolean }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CollatorSelection`'s transaction calls - **/ - collatorSelection: { - /** - * Set the list of invulnerable (fixed) collators. These collators must do some - * preparation, namely to have registered session keys. - * - * The call will remove any accounts that have not registered keys from the set. That is, - * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as - * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. - * - * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It - * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A - * `batch_all` can also be used to enforce atomicity. If any candidates are included in - * `new`, they should be removed with `remove_invulnerable_candidate` after execution. - * - * Must be called by the `UpdateOrigin`. - * - * @param {Array} new_ - **/ - setInvulnerables: GenericTxCall< - Rv, - (new_: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetInvulnerables'; - params: { new: Array }; - }; - } - > - >; - - /** - * Set the ideal number of non-invulnerable collators. If lowering this number, then the - * number of running collators could be higher than this figure. Aside from that edge case, - * there should be no other way to have more candidates than the desired number. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {number} max - **/ - setDesiredCandidates: GenericTxCall< - Rv, - (max: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetDesiredCandidates'; - params: { max: number }; - }; - } - > - >; - - /** - * Set the candidacy bond amount. - * - * If the candidacy bond is increased by this call, all current candidates which have a - * deposit lower than the new bond will be kicked from the list and get their deposits - * back. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {bigint} bond - **/ - setCandidacyBond: GenericTxCall< - Rv, - (bond: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetCandidacyBond'; - params: { bond: bigint }; - }; - } - > - >; - - /** - * Register this account as a collator candidate. The account must (a) already have - * registered session keys and (b) be able to reserve the `CandidacyBond`. - * - * This call is not available to `Invulnerable` collators. - * - **/ - registerAsCandidate: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RegisterAsCandidate'; - }; - } - > - >; - - /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The `CandidacyBond` will be unreserved immediately. - * - * This call will fail if the total number of candidates would drop below - * `MinEligibleCollators`. - * - **/ - leaveIntent: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'LeaveIntent'; - }; - } - > - >; - - /** - * Add a new account `who` to the list of `Invulnerables` collators. `who` must have - * registered session keys. If `who` is a candidate, they will be removed. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {AccountId32Like} who - **/ - addInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'AddInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must - * be sorted. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {AccountId32Like} who - **/ - removeInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RemoveInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. - * - * Setting a `new_deposit` that is lower than the current deposit while `origin` is - * occupying a top-`DesiredCandidates` slot is not allowed. - * - * This call will fail if `origin` is not a collator candidate, the updated bond is lower - * than the minimum candidacy bond, and/or the amount cannot be reserved. - * - * @param {bigint} newDeposit - **/ - updateBond: GenericTxCall< - Rv, - (newDeposit: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'UpdateBond'; - params: { newDeposit: bigint }; - }; - } - > - >; - - /** - * The caller `origin` replaces a candidate `target` in the collator candidate list by - * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than - * the existing bond of the target it is trying to replace. - * - * This call will fail if the caller is already a collator candidate or invulnerable, the - * caller does not have registered session keys, the target is not a collator candidate, - * and/or the `deposit` amount cannot be reserved. - * - * @param {bigint} deposit - * @param {AccountId32Like} target - **/ - takeCandidateSlot: GenericTxCall< - Rv, - ( - deposit: bigint, - target: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'TakeCandidateSlot'; - params: { deposit: bigint; target: AccountId32Like }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Session`'s transaction calls - **/ - session: { - /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. - * - * @param {AssetHubWestendRuntimeSessionKeys} keys - * @param {BytesLike} proof - **/ - setKeys: GenericTxCall< - Rv, - ( - keys: AssetHubWestendRuntimeSessionKeys, - proof: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'SetKeys'; - params: { keys: AssetHubWestendRuntimeSessionKeys; proof: BytesLike }; - }; - } - > - >; - - /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. - * - **/ - purgeKeys: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'PurgeKeys'; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `XcmpQueue`'s transaction calls - **/ - xcmpQueue: { - /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. - * - **/ - suspendXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'SuspendXcmExecution'; - }; - } - > - >; - - /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. - * - **/ - resumeXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'ResumeXcmExecution'; - }; - } - > - >; - - /** - * Overwrites the number of pages which must be in the queue for the other side to be - * told to suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` - * - * @param {number} new_ - **/ - updateSuspendThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateSuspendThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Overwrites the number of pages which must be in the queue after which we drop any - * further messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` - * - * @param {number} new_ - **/ - updateDropThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateDropThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Overwrites the number of pages which the queue must be reduced to before it signals - * that message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` - * - * @param {number} new_ - **/ - updateResumeThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateResumeThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `PolkadotXcm`'s transaction calls - **/ - polkadotXcm: { - /** - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedXcm} message - **/ - send: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - message: XcmVersionedXcm, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Send'; - params: { dest: XcmVersionedLocation; message: XcmVersionedXcm }; - }; - } - > - >; - - /** - * Teleport some assets from the local chain to some destination chain. - * - * **This function is deprecated: Use `limited_teleport_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - teleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - reserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than - * the maximum amount of weight that the message could take to be executed, then no - * execution attempt will be made. - * - * @param {XcmVersionedXcm} message - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - execute: GenericTxCall< - Rv, - ( - message: XcmVersionedXcm, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Execute'; - params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - * - * @param {StagingXcmV4Location} location - * @param {number} version - **/ - forceXcmVersion: GenericTxCall< - Rv, - ( - location: StagingXcmV4Location, - version: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceXcmVersion'; - params: { location: StagingXcmV4Location; version: number }; - }; - } - > - >; - - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. - * - * @param {number | undefined} maybeXcmVersion - **/ - forceDefaultXcmVersion: GenericTxCall< - Rv, - (maybeXcmVersion: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceDefaultXcmVersion'; - params: { maybeXcmVersion: number | undefined }; - }; - } - > - >; - - /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. - * - * @param {XcmVersionedLocation} location - **/ - forceSubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - * - * @param {XcmVersionedLocation} location - **/ - forceUnsubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceUnsubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedReserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedTeleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. - * - * @param {boolean} suspended - **/ - forceSuspension: GenericTxCall< - Rv, - (suspended: boolean) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSuspension'; - params: { suspended: boolean }; - }; - } - > - >; - - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve, or through teleports. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for - * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the - * operation will fail and the sent assets may be at risk. - * - * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable - * to `dest`, no limitations imposed on `fees`. - * - for local reserve: transfer assets to sovereign account of destination chain and - * forward a notification XCM to `dest` to mint and deposit reserve-based assets to - * `beneficiary`. - * - for destination reserve: burn local assets and forward a notification to `dest` chain - * to withdraw the reserve assets from this chain's sovereign account and deposit them - * to `beneficiary`. - * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves - * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint - * and deposit reserve-based assets to `beneficiary`. - * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport - * assets and deposit them to `beneficiary`. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, - * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send - * from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Claims assets trapped on this pallet because of leftover assets during XCM execution. - * - * - `origin`: Anyone can call this extrinsic. - * - `assets`: The exact assets that were trapped. Use the version to specify what version - * was the latest when they were trapped. - * - `beneficiary`: The location/account where the claimed assets will be deposited. - * - * @param {XcmVersionedAssets} assets - * @param {XcmVersionedLocation} beneficiary - **/ - claimAssets: GenericTxCall< - Rv, - ( - assets: XcmVersionedAssets, - beneficiary: XcmVersionedLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ClaimAssets'; - params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation }; - }; - } - > - >; - - /** - * Transfer assets from the local chain to the destination chain using explicit transfer - * types for assets and fees. - * - * `assets` must have same reserve location or may be teleportable to `dest`. Caller must - * provide the `assets_transfer_type` to be used for `assets`: - * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `TransferType::DestinationReserve`: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve` - * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another - * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically - * the remote `reserve` is Asset Hub. - * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to - * mint/teleport assets and deposit them to `beneficiary`. - * - * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to - * buy execution using transferred `assets` identified by `remote_fees_id`. - * Make sure enough of the specified `remote_fees_id` asset is included in the given list - * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * `remote_fees_id` may use different transfer type than rest of `assets` and can be - * specified through `fees_transfer_type`. - * - * The caller needs to specify what should happen to the transferred assets once they reach - * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which - * contains the instructions to execute on `dest` as a final step. - * This is usually as simple as: - * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`, - * but could be something more exotic like sending the `assets` even further. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from - * parachain across a bridge to another ecosystem destination. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`. - * - `remote_fees_id`: One of the included `assets` to be used to pay fees. - * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets. - * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the - * transfer, which also determines what happens to the assets on the destination chain. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedAssets} assets - * @param {StagingXcmExecutorAssetTransferTransferType} assetsTransferType - * @param {XcmVersionedAssetId} remoteFeesId - * @param {StagingXcmExecutorAssetTransferTransferType} feesTransferType - * @param {XcmVersionedXcm} customXcmOnDest - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssetsUsingTypeAndThen: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - assets: XcmVersionedAssets, - assetsTransferType: StagingXcmExecutorAssetTransferTransferType, - remoteFeesId: XcmVersionedAssetId, - feesTransferType: StagingXcmExecutorAssetTransferTransferType, - customXcmOnDest: XcmVersionedXcm, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CumulusXcm`'s transaction calls - **/ - cumulusXcm: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ToRococoXcmRouter`'s transaction calls - **/ - toRococoXcmRouter: { - /** - * Notification about congested bridge queue. - * - * @param {H256} bridgeId - * @param {boolean} isCongested - **/ - reportBridgeStatus: GenericTxCall< - Rv, - ( - bridgeId: H256, - isCongested: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ToRococoXcmRouter'; - palletCall: { - name: 'ReportBridgeStatus'; - params: { bridgeId: H256; isCongested: boolean }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `MessageQueue`'s transaction calls - **/ - messageQueue: { - /** - * Remove a page which has no more messages remaining to be processed or is stale. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} pageIndex - **/ - reapPage: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - pageIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ReapPage'; - params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number }; - }; - } - > - >; - - /** - * Execute an overweight message. - * - * Temporary processing errors will be propagated whereas permanent errors are treated - * as success condition. - * - * - `origin`: Must be `Signed`. - * - `message_origin`: The origin from which the message to be executed arrived. - * - `page`: The page in the queue in which the message to be executed is sitting. - * - `index`: The index into the queue of the message to be executed. - * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution - * of the message. - * - * Benchmark complexity considerations: O(index + weight_limit). - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} page - * @param {number} index - * @param {SpWeightsWeightV2Weight} weightLimit - **/ - executeOverweight: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - page: number, - index: number, - weightLimit: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Utility`'s transaction calls - **/ - utility: { - /** - * Send a batch of dispatch calls. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * This will return `Ok` in all circumstances. To determine the success of the batch, an - * event is deposited. If a call failed and the batch was interrupted, then the - * `BatchInterrupted` event is deposited, along with the number of successful calls made - * and the error of the failed call. If all were successful, then the `BatchCompleted` - * event is deposited. - * - * @param {Array} calls - **/ - batch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'Batch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * Send a call through an indexed pseudonym of the sender. - * - * Filter from origin are passed along. The call will be dispatched with an origin which - * use the same filter as the origin of this call. - * - * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. - * because you expect `proxy` to have been used prior in the call stack and you do not want - * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` - * in the Multisig pallet instead. - * - * NOTE: Prior to version *12, this was called `as_limited_sub`. - * - * The dispatch origin for this call must be _Signed_. - * - * @param {number} index - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - **/ - asDerivative: GenericTxCall< - Rv, - ( - index: number, - call: AssetHubWestendRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'AsDerivative'; - params: { index: number; call: AssetHubWestendRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * Send a batch of dispatch calls and atomically execute them. - * The whole transaction will rollback and fail if any of the calls failed. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * @param {Array} calls - **/ - batchAll: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'BatchAll'; - params: { calls: Array }; - }; - } - > - >; - - /** - * Dispatches a function call with a provided origin. - * - * The dispatch origin for this call must be _Root_. - * - * ## Complexity - * - O(1). - * - * @param {AssetHubWestendRuntimeOriginCaller} asOrigin - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - **/ - dispatchAs: GenericTxCall< - Rv, - ( - asOrigin: AssetHubWestendRuntimeOriginCaller, - call: AssetHubWestendRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'DispatchAs'; - params: { asOrigin: AssetHubWestendRuntimeOriginCaller; call: AssetHubWestendRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * Send a batch of dispatch calls. - * Unlike `batch`, it allows errors and won't interrupt. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatch without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * @param {Array} calls - **/ - forceBatch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'ForceBatch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * Dispatch a function call with a specified weight. - * - * This function does not check the weight of the call, and instead allows the - * Root origin to specify the weight of the call. - * - * The dispatch origin for this call must be _Root_. - * - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} weight - **/ - withWeight: GenericTxCall< - Rv, - ( - call: AssetHubWestendRuntimeRuntimeCallLike, - weight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'WithWeight'; - params: { call: AssetHubWestendRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Multisig`'s transaction calls - **/ - multisig: { - /** - * Immediately dispatch a multi-signature call using a single approval from the caller. - * - * The dispatch origin for this call must be _Signed_. - * - * - `other_signatories`: The accounts (other than the sender) who are part of the - * multi-signature, but do not participate in the approval process. - * - `call`: The call to be executed. - * - * Result is equivalent to the dispatched result. - * - * ## Complexity - * O(Z + C) where Z is the length of the call and C its execution weight. - * - * @param {Array} otherSignatories - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - **/ - asMultiThreshold1: GenericTxCall< - Rv, - ( - otherSignatories: Array, - call: AssetHubWestendRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubWestendRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * ## Complexity - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - asMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - call: AssetHubWestendRuntimeRuntimeCallLike, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - call: AssetHubWestendRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {FixedBytes<32>} callHash - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - approveAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - callHash: FixedBytes<32>, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint} timepoint - * @param {FixedBytes<32>} callHash - **/ - cancelAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - timepoint: PalletMultisigTimepoint, - callHash: FixedBytes<32>, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Proxy`'s transaction calls - **/ - proxy: { - /** - * Dispatch the given `call` from an account that the sender is authorised for through - * `add_proxy`. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - * - * @param {MultiAddressLike} real - * @param {AssetHubWestendRuntimeProxyType | undefined} forceProxyType - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - **/ - proxy: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - forceProxyType: AssetHubWestendRuntimeProxyType | undefined, - call: AssetHubWestendRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'Proxy'; - params: { - real: MultiAddressLike; - forceProxyType: AssetHubWestendRuntimeProxyType | undefined; - call: AssetHubWestendRuntimeRuntimeCallLike; - }; - }; - } - > - >; - - /** - * Register a proxy account for the sender that is able to make calls on its behalf. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to make a proxy. - * - `proxy_type`: The permissions allowed for this proxy account. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - * - * @param {MultiAddressLike} delegate - * @param {AssetHubWestendRuntimeProxyType} proxyType - * @param {number} delay - **/ - addProxy: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - proxyType: AssetHubWestendRuntimeProxyType, - delay: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'AddProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubWestendRuntimeProxyType; delay: number }; - }; - } - > - >; - - /** - * Unregister a proxy account for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to remove as a proxy. - * - `proxy_type`: The permissions currently enabled for the removed proxy account. - * - * @param {MultiAddressLike} delegate - * @param {AssetHubWestendRuntimeProxyType} proxyType - * @param {number} delay - **/ - removeProxy: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - proxyType: AssetHubWestendRuntimeProxyType, - delay: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubWestendRuntimeProxyType; delay: number }; - }; - } - > - >; - - /** - * Unregister all proxy accounts for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * WARNING: This may be called on accounts created by `pure`, however if done, then - * the unreserved fees will be inaccessible. **All access to this account will be lost.** - * - **/ - removeProxies: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveProxies'; - }; - } - > - >; - - /** - * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and - * initialize it with a proxy of `proxy_type` for `origin` sender. - * - * Requires a `Signed` origin. - * - * - `proxy_type`: The type of the proxy that the sender will be registered as over the - * new account. This will almost always be the most permissive `ProxyType` possible to - * allow for maximum flexibility. - * - `index`: A disambiguation index, in case this is called multiple times in the same - * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just - * want to use `0`. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - * - * Fails with `Duplicate` if this has already been called in this transaction, from the - * same sender, with the same parameters. - * - * Fails if there are insufficient funds to pay for deposit. - * - * @param {AssetHubWestendRuntimeProxyType} proxyType - * @param {number} delay - * @param {number} index - **/ - createPure: GenericTxCall< - Rv, - ( - proxyType: AssetHubWestendRuntimeProxyType, - delay: number, - index: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'CreatePure'; - params: { proxyType: AssetHubWestendRuntimeProxyType; delay: number; index: number }; - }; - } - > - >; - - /** - * Removes a previously spawned pure proxy. - * - * WARNING: **All access to this account will be lost.** Any funds held in it will be - * inaccessible. - * - * Requires a `Signed` origin, and the sender account must have been created by a call to - * `pure` with corresponding parameters. - * - * - `spawner`: The account that originally called `pure` to create this account. - * - `index`: The disambiguation index originally passed to `pure`. Probably `0`. - * - `proxy_type`: The proxy type originally passed to `pure`. - * - `height`: The height of the chain when the call to `pure` was processed. - * - `ext_index`: The extrinsic index in which the call to `pure` was processed. - * - * Fails with `NoPermission` in case the caller is not a previously created pure - * account whose `pure` call has corresponding parameters. - * - * @param {MultiAddressLike} spawner - * @param {AssetHubWestendRuntimeProxyType} proxyType - * @param {number} index - * @param {number} height - * @param {number} extIndex - **/ - killPure: GenericTxCall< - Rv, - ( - spawner: MultiAddressLike, - proxyType: AssetHubWestendRuntimeProxyType, - index: number, - height: number, - extIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'KillPure'; - params: { - spawner: MultiAddressLike; - proxyType: AssetHubWestendRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - }; - } - > - >; - - /** - * Publish the hash of a proxy-call that will be made in the future. - * - * This must be called some number of blocks before the corresponding `proxy` is attempted - * if the delay associated with the proxy relationship is greater than zero. - * - * No more than `MaxPending` announcements may be made at any one time. - * - * This will take a deposit of `AnnouncementDepositFactor` as well as - * `AnnouncementDepositBase` if there are no other pending announcements. - * - * The dispatch origin for this call must be _Signed_ and a proxy of `real`. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - * - * @param {MultiAddressLike} real - * @param {H256} callHash - **/ - announce: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'Announce'; - params: { real: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * Remove a given announcement. - * - * May be called by a proxy account to remove a call they previously announced and return - * the deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - * - * @param {MultiAddressLike} real - * @param {H256} callHash - **/ - removeAnnouncement: GenericTxCall< - Rv, - ( - real: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RemoveAnnouncement'; - params: { real: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * Remove the given announcement of a delegate. - * - * May be called by a target (proxied) account to remove a call that one of their delegates - * (`delegate`) has announced they want to execute. The deposit is returned. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `delegate`: The account that previously announced the call. - * - `call_hash`: The hash of the call to be made. - * - * @param {MultiAddressLike} delegate - * @param {H256} callHash - **/ - rejectAnnouncement: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - callHash: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'RejectAnnouncement'; - params: { delegate: MultiAddressLike; callHash: H256 }; - }; - } - > - >; - - /** - * Dispatch the given `call` from an account that the sender is authorized for through - * `add_proxy`. - * - * Removes any corresponding announcement(s). - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - * - * @param {MultiAddressLike} delegate - * @param {MultiAddressLike} real - * @param {AssetHubWestendRuntimeProxyType | undefined} forceProxyType - * @param {AssetHubWestendRuntimeRuntimeCallLike} call - **/ - proxyAnnounced: GenericTxCall< - Rv, - ( - delegate: MultiAddressLike, - real: MultiAddressLike, - forceProxyType: AssetHubWestendRuntimeProxyType | undefined, - call: AssetHubWestendRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Proxy'; - palletCall: { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddressLike; - real: MultiAddressLike; - forceProxyType: AssetHubWestendRuntimeProxyType | undefined; - call: AssetHubWestendRuntimeRuntimeCallLike; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Assets`'s transaction calls - **/ - assets: { - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: number, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Create'; - params: { id: number; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceCreate'; - params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint }; - }; - } - > - >; - - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - * - * @param {number} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'StartDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - * - * @param {number} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: number }; - }; - } - > - >; - - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - * - * @param {number} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: number }; - }; - } - > - >; - - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - * - * @param {number} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - * - * @param {number} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: number, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Mint'; - params: { id: number; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - * - * @param {number} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Burn'; - params: { id: number; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Transfer'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - * - * @param {number} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: number, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceTransfer'; - params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Freeze'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Thaw'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ThawAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - }; - } - > - >; - - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: number; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'CancelApproval'; - params: { id: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - * - * @param {number} id - **/ - touch: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Touch'; - params: { id: number }; - }; - } - > - >; - - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - * - * @param {number} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: number, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Refund'; - params: { id: number; allowBurn: boolean }; - }; - } - > - >; - - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - * - * @param {number} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: number, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: number; minBalance: bigint }; - }; - } - > - >; - - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'TouchOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'RefundOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Assets'; - palletCall: { - name: 'Block'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Uniques`'s transaction calls - **/ - uniques: { - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * `ItemDeposit` funds of sender are reserved. - * - * Parameters: - * - `collection`: The identifier of the new collection. This must not be currently in use. - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} admin - **/ - create: GenericTxCall< - Rv, - ( - collection: number, - admin: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Create'; - params: { collection: number; admin: MultiAddressLike }; - }; - } - > - >; - - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `collection`: The identifier of the new item. This must not be currently in use. - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions - * over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} owner - * @param {boolean} freeHolding - **/ - forceCreate: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - freeHolding: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ForceCreate'; - params: { collection: number; owner: MultiAddressLike; freeHolding: boolean }; - }; - } - > - >; - - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(n + m)` where: - * - `n = witness.items` - * - `m = witness.item_metadatas` - * - `a = witness.attributes` - * - * @param {number} collection - * @param {PalletUniquesDestroyWitness} witness - **/ - destroy: GenericTxCall< - Rv, - ( - collection: number, - witness: PalletUniquesDestroyWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Destroy'; - params: { collection: number; witness: PalletUniquesDestroyWitness }; - }; - } - > - >; - - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must be the Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: The item value of the item to be minted. - * - `beneficiary`: The initial owner of the minted item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} owner - **/ - mint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Mint'; - params: { collection: number; item: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Destroy a single item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item of the item to be burned. - * - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the - * item is owned by this value. - * - * Emits `Burned` with the actual amount burned. - * - * Weight: `O(1)` - * Modes: `check_owner.is_some()`. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike | undefined} checkOwner - **/ - burn: GenericTxCall< - Rv, - ( - collection: number, - item: number, - checkOwner: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Burn'; - params: { collection: number; item: number; checkOwner: MultiAddressLike | undefined }; - }; - } - > - >; - - /** - * Move an item from the sender account to another. - * - * This resets the approved account of the item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item of the item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} dest - **/ - transfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - dest: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Transfer'; - params: { collection: number; item: number; dest: MultiAddressLike }; - }; - } - > - >; - - /** - * Reevaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be frozen. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown of the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - * - * @param {number} collection - * @param {Array} items - **/ - redeposit: GenericTxCall< - Rv, - ( - collection: number, - items: Array, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Redeposit'; - params: { collection: number; items: Array }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be frozen. - * - `item`: The item of the item to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - freeze: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Freeze'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be thawed. - * - `item`: The item of the item to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - thaw: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'Thaw'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection to be frozen. - * - * Emits `CollectionFrozen`. - * - * Weight: `O(1)` - * - * @param {number} collection - **/ - freezeCollection: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'FreezeCollection'; - params: { collection: number }; - }; - } - > - >; - - /** - * Re-allow unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Admin of the `collection`. - * - * - `collection`: The collection to be thawed. - * - * Emits `CollectionThawed`. - * - * Weight: `O(1)` - * - * @param {number} collection - **/ - thawCollection: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ThawCollection'; - params: { collection: number }; - }; - } - > - >; - - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} newOwner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - collection: number, - newOwner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'TransferOwnership'; - params: { collection: number; newOwner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - collection: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetTeam'; - params: { - collection: number; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - }; - } - > - >; - - /** - * Approve an item to be transferred by a delegated third-party account. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be - * either the owner of the `item` or the admin of the collection. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item of the item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - * Important NOTE: The `approved` account gets reset after each transfer. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - approveTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel the prior approval for the transfer of an item by a delegate. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Admin of the `collection`; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the item of whose approval will be cancelled. - * - `maybe_check_delegate`: If `Some` will ensure that the given account is the one to - * which permission of transfer is delegated. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike | undefined} maybeCheckDelegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - maybeCheckDelegate: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate: MultiAddressLike | undefined }; - }; - } - > - >; - - /** - * Alter the attributes of a given item. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the item. - * - `owner`: The new Owner of this item. - * - `issuer`: The new Issuer of this item. - * - `admin`: The new Admin of this item. - * - `freezer`: The new Freezer of this item. - * - `free_holding`: Whether a deposit is taken for holding an item of this collection. - * - `is_frozen`: Whether this collection is frozen except for permissioned/admin - * instructions. - * - * Emits `ItemStatusChanged` with the identity of the item. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {boolean} freeHolding - * @param {boolean} isFrozen - **/ - forceItemStatus: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - freeHolding: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - freeHolding: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Set an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {BytesLike} key - * @param {BytesLike} value - **/ - setAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetAttribute'; - params: { collection: number; maybeItem: number | undefined; key: BytesLike; value: BytesLike }; - }; - } - > - >; - - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {BytesLike} key - **/ - clearAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - key: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearAttribute'; - params: { collection: number; maybeItem: number | undefined; key: BytesLike }; - }; - } - > - >; - - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {BytesLike} data - * @param {boolean} isFrozen - **/ - setMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - data: BytesLike, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetMetadata'; - params: { collection: number; item: number; data: BytesLike; isFrozen: boolean }; - }; - } - > - >; - - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - clearMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearMetadata'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {BytesLike} data - * @param {boolean} isFrozen - **/ - setCollectionMetadata: GenericTxCall< - Rv, - ( - collection: number, - data: BytesLike, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetCollectionMetadata'; - params: { collection: number; data: BytesLike; isFrozen: boolean }; - }; - } - > - >; - - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - **/ - clearCollectionMetadata: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'ClearCollectionMetadata'; - params: { collection: number }; - }; - } - > - >; - - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - * - * @param {number | undefined} maybeCollection - **/ - setAcceptOwnership: GenericTxCall< - Rv, - (maybeCollection: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetAcceptOwnership'; - params: { maybeCollection: number | undefined }; - }; - } - > - >; - - /** - * Set the maximum amount of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Note: This function can only succeed once per collection. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum amount of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - * - * @param {number} collection - * @param {number} maxSupply - **/ - setCollectionMaxSupply: GenericTxCall< - Rv, - ( - collection: number, - maxSupply: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetCollectionMaxSupply'; - params: { collection: number; maxSupply: number }; - }; - } - > - >; - - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the asset `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - * - * @param {number} collection - * @param {number} item - * @param {bigint | undefined} price - * @param {MultiAddressLike | undefined} whitelistedBuyer - **/ - setPrice: GenericTxCall< - Rv, - ( - collection: number, - item: number, - price: bigint | undefined, - whitelistedBuyer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price: bigint | undefined; - whitelistedBuyer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - * - * @param {number} collection - * @param {number} item - * @param {bigint} bidPrice - **/ - buyItem: GenericTxCall< - Rv, - ( - collection: number, - item: number, - bidPrice: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Uniques'; - palletCall: { - name: 'BuyItem'; - params: { collection: number; item: number; bidPrice: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Nfts`'s transaction calls - **/ - nfts: { - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must be Signed and the sender must have sufficient funds free. - * - * `CollectionDeposit` funds of sender are reserved. - * - * Parameters: - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {MultiAddressLike} admin - * @param {PalletNftsCollectionConfig} config - **/ - create: GenericTxCall< - Rv, - ( - admin: MultiAddressLike, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Create'; - params: { admin: MultiAddressLike; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {MultiAddressLike} owner - * @param {PalletNftsCollectionConfig} config - **/ - forceCreate: GenericTxCall< - Rv, - ( - owner: MultiAddressLike, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCreate'; - params: { owner: MultiAddressLike; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * NOTE: The collection must have 0 items to be destroyed. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(m + c + a)` where: - * - `m = witness.item_metadatas` - * - `c = witness.item_configs` - * - `a = witness.attributes` - * - * @param {number} collection - * @param {PalletNftsDestroyWitness} witness - **/ - destroy: GenericTxCall< - Rv, - ( - collection: number, - witness: PalletNftsDestroyWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Destroy'; - params: { collection: number; witness: PalletNftsDestroyWitness }; - }; - } - > - >; - - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must comply with the `mint_settings` rules. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `witness_data`: When the mint type is `HolderOf(collection_id)`, then the owned - * item_id from that collection needs to be provided within the witness data object. If - * the mint price is set, then it should be additionally confirmed in the `witness_data`. - * - * Note: the deposit will be taken from the `origin` and not the `owner` of the `item`. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} mintTo - * @param {PalletNftsMintWitness | undefined} witnessData - **/ - mint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - mintTo: MultiAddressLike, - witnessData: PalletNftsMintWitness | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddressLike; - witnessData: PalletNftsMintWitness | undefined; - }; - }; - } - > - >; - - /** - * Mint an item of a particular collection from a privileged origin. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `item_config`: A config of the new item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} mintTo - * @param {PalletNftsItemConfig} itemConfig - **/ - forceMint: GenericTxCall< - Rv, - ( - collection: number, - item: number, - mintTo: MultiAddressLike, - itemConfig: PalletNftsItemConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddressLike; itemConfig: PalletNftsItemConfig }; - }; - } - > - >; - - /** - * Destroy a single item. - * - * The origin must conform to `ForceOrigin` or must be Signed and the signing account must - * be the owner of the `item`. - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item to be burned. - * - * Emits `Burned`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - burn: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Burn'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Move an item from the sender account to another. - * - * Origin must be Signed and the signing account must be either: - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} dest - **/ - transfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - dest: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Transfer'; - params: { collection: number; item: number; dest: MultiAddressLike }; - }; - } - > - >; - - /** - * Re-evaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection of the items to be reevaluated. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown or the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - * - * @param {number} collection - * @param {Array} items - **/ - redeposit: GenericTxCall< - Rv, - ( - collection: number, - items: Array, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'Redeposit'; - params: { collection: number; items: Array }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become non-transferable. - * - * Emits `ItemTransferLocked`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - lockItemTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockItemTransfer'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become transferable. - * - * Emits `ItemTransferUnlocked`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - unlockItemTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'UnlockItemTransfer'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Disallows specified settings for the whole collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be locked. - * - `lock_settings`: The settings to be locked. - * - * Note: it's possible to only lock(set) the setting, but not to unset it. - * - * Emits `CollectionLocked`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {PalletNftsBitFlags} lockSettings - **/ - lockCollection: GenericTxCall< - Rv, - ( - collection: number, - lockSettings: PalletNftsBitFlags, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockCollection'; - params: { collection: number; lockSettings: PalletNftsBitFlags }; - }; - } - > - >; - - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} newOwner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - collection: number, - newOwner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'TransferOwnership'; - params: { collection: number; newOwner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Note: by setting the role to `None` only the `ForceOrigin` will be able to change it - * after to `Some(account)`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike | undefined} issuer - * @param {MultiAddressLike | undefined} admin - * @param {MultiAddressLike | undefined} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - collection: number, - issuer: MultiAddressLike | undefined, - admin: MultiAddressLike | undefined, - freezer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetTeam'; - params: { - collection: number; - issuer: MultiAddressLike | undefined; - admin: MultiAddressLike | undefined; - freezer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * Change the Owner of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `owner`: The new Owner of this collection. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {MultiAddressLike} owner - **/ - forceCollectionOwner: GenericTxCall< - Rv, - ( - collection: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCollectionOwner'; - params: { collection: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the config of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `config`: The new config of this collection. - * - * Emits `CollectionConfigChanged`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {PalletNftsCollectionConfig} config - **/ - forceCollectionConfig: GenericTxCall< - Rv, - ( - collection: number, - config: PalletNftsCollectionConfig, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceCollectionConfig'; - params: { collection: number; config: PalletNftsCollectionConfig }; - }; - } - > - >; - - /** - * Approve an item to be transferred by a delegated third-party account. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - `maybe_deadline`: Optional deadline for the approval. Specified by providing the - * number of blocks after which the approval will expire - * - * Emits `TransferApproved` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - * @param {number | undefined} maybeDeadline - **/ - approveTransfer: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - maybeDeadline: number | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike; maybeDeadline: number | undefined }; - }; - } - > - >; - - /** - * Cancel one of the transfer approvals for a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the collection of whose approval will be cancelled. - * - `delegate`: The account that is going to loose their approval. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelApproval'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel all the approvals of a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approvals will be cleared. - * - `item`: The item of the collection of whose approvals will be cleared. - * - * Emits `AllApprovalsCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - clearAllTransferApprovals: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearAllTransferApprovals'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Disallows changing the metadata or attributes of the item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin - * of the `collection`. - * - * - `collection`: The collection if the `item`. - * - `item`: An item to be locked. - * - `lock_metadata`: Specifies whether the metadata should be locked. - * - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace - * should be locked. - * - * Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only. - * When the metadata or attributes are locked, it won't be possible the unlock them. - * - * Emits `ItemPropertiesLocked`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {boolean} lockMetadata - * @param {boolean} lockAttributes - **/ - lockItemProperties: GenericTxCall< - Rv, - ( - collection: number, - item: number, - lockMetadata: boolean, - lockAttributes: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - }; - } - > - >; - - /** - * Set an attribute for a collection or item. - * - * Origin must be Signed and must conform to the namespace ruleset: - * - `CollectionOwner` namespace could be modified by the `collection` Admin only; - * - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item` - * should be set in that case; - * - `Account(AccountId)` namespace could be modified only when the `origin` was given a - * permission to do so; - * - * The funds of `origin` are reserved according to the formula: - * `AttributeDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - * @param {BytesLike} value - **/ - setAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - }; - } - > - >; - - /** - * Force-set an attribute for a collection or item. - * - * Origin must be `ForceOrigin`. - * - * If the attribute already exists and it was set by another account, the deposit - * will be returned to the previous owner. - * - * - `set_as`: An optional owner of the attribute. - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - * - * @param {AccountId32Like | undefined} setAs - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - * @param {BytesLike} value - **/ - forceSetAttribute: GenericTxCall< - Rv, - ( - setAs: AccountId32Like | undefined, - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - value: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ForceSetAttribute'; - params: { - setAs: AccountId32Like | undefined; - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - }; - } - > - >; - - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * attribute. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number | undefined} maybeItem - * @param {PalletNftsAttributeNamespace} namespace - * @param {BytesLike} key - **/ - clearAttribute: GenericTxCall< - Rv, - ( - collection: number, - maybeItem: number | undefined, - namespace: PalletNftsAttributeNamespace, - key: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - }; - }; - } - > - >; - - /** - * Approve item's attributes to be changed by a delegated third-party account. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: A collection of the item. - * - `item`: The item that holds attributes. - * - `delegate`: The account to delegate permission to change attributes of the item. - * - * Emits `ItemAttributesApprovalAdded` on success. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - **/ - approveItemAttributes: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ApproveItemAttributes'; - params: { collection: number; item: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel the previously provided approval to change item's attributes. - * All the previously set attributes by the `delegate` will be removed. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: Collection that the item is contained within. - * - `item`: The item that holds attributes. - * - `delegate`: The previously approved account to remove. - * - * Emits `ItemAttributesApprovalRemoved` on success. - * - * @param {number} collection - * @param {number} item - * @param {MultiAddressLike} delegate - * @param {PalletNftsCancelAttributesApprovalWitness} witness - **/ - cancelItemAttributesApproval: GenericTxCall< - Rv, - ( - collection: number, - item: number, - delegate: MultiAddressLike, - witness: PalletNftsCancelAttributesApprovalWitness, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddressLike; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - }; - } - > - >; - - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `ItemMetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - * @param {BytesLike} data - **/ - setMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - data: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetMetadata'; - params: { collection: number; item: number; data: BytesLike }; - }; - } - > - >; - - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `ItemMetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {number} item - **/ - clearMetadata: GenericTxCall< - Rv, - ( - collection: number, - item: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearMetadata'; - params: { collection: number; item: number }; - }; - } - > - >; - - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} collection - * @param {BytesLike} data - **/ - setCollectionMetadata: GenericTxCall< - Rv, - ( - collection: number, - data: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetCollectionMetadata'; - params: { collection: number; data: BytesLike }; - }; - } - > - >; - - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} collection - **/ - clearCollectionMetadata: GenericTxCall< - Rv, - (collection: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClearCollectionMetadata'; - params: { collection: number }; - }; - } - > - >; - - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - * - * @param {number | undefined} maybeCollection - **/ - setAcceptOwnership: GenericTxCall< - Rv, - (maybeCollection: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAcceptOwnership'; - params: { maybeCollection: number | undefined }; - }; - } - > - >; - - /** - * Set the maximum number of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum number of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - * - * @param {number} collection - * @param {number} maxSupply - **/ - setCollectionMaxSupply: GenericTxCall< - Rv, - ( - collection: number, - maxSupply: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetCollectionMaxSupply'; - params: { collection: number; maxSupply: number }; - }; - } - > - >; - - /** - * Update mint settings. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer - * of the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `mint_settings`: The new mint settings. - * - * Emits `CollectionMintSettingsUpdated` event when successful. - * - * @param {number} collection - * @param {PalletNftsMintSettings} mintSettings - **/ - updateMintSettings: GenericTxCall< - Rv, - ( - collection: number, - mintSettings: PalletNftsMintSettings, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'UpdateMintSettings'; - params: { collection: number; mintSettings: PalletNftsMintSettings }; - }; - } - > - >; - - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - * - * @param {number} collection - * @param {number} item - * @param {bigint | undefined} price - * @param {MultiAddressLike | undefined} whitelistedBuyer - **/ - setPrice: GenericTxCall< - Rv, - ( - collection: number, - item: number, - price: bigint | undefined, - whitelistedBuyer: MultiAddressLike | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price: bigint | undefined; - whitelistedBuyer: MultiAddressLike | undefined; - }; - }; - } - > - >; - - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - * - * @param {number} collection - * @param {number} item - * @param {bigint} bidPrice - **/ - buyItem: GenericTxCall< - Rv, - ( - collection: number, - item: number, - bidPrice: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'BuyItem'; - params: { collection: number; item: number; bidPrice: bigint }; - }; - } - > - >; - - /** - * Allows to pay the tips. - * - * Origin must be Signed. - * - * - `tips`: Tips array. - * - * Emits `TipSent` on every tip transfer. - * - * @param {Array} tips - **/ - payTips: GenericTxCall< - Rv, - (tips: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'PayTips'; - params: { tips: Array }; - }; - } - > - >; - - /** - * Register a new atomic swap, declaring an intention to send an `item` in exchange for - * `desired_item` from origin to target on the current blockchain. - * The target can execute the swap during the specified `duration` of blocks (if set). - * Additionally, the price could be set for the desired `item`. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - `desired_collection`: The collection of the desired item. - * - `desired_item`: The desired item an owner wants to receive. - * - `maybe_price`: The price an owner is willing to pay or receive for the desired `item`. - * - `duration`: A deadline for the swap. Specified by providing the number of blocks - * after which the swap will expire. - * - * Emits `SwapCreated` on success. - * - * @param {number} offeredCollection - * @param {number} offeredItem - * @param {number} desiredCollection - * @param {number | undefined} maybeDesiredItem - * @param {PalletNftsPriceWithDirection | undefined} maybePrice - * @param {number} duration - **/ - createSwap: GenericTxCall< - Rv, - ( - offeredCollection: number, - offeredItem: number, - desiredCollection: number, - maybeDesiredItem: number | undefined, - maybePrice: PalletNftsPriceWithDirection | undefined, - duration: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem: number | undefined; - maybePrice: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - }; - } - > - >; - - /** - * Cancel an atomic swap. - * - * Origin must be Signed. - * Origin must be an owner of the `item` if the deadline hasn't expired. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - * Emits `SwapCancelled` on success. - * - * @param {number} offeredCollection - * @param {number} offeredItem - **/ - cancelSwap: GenericTxCall< - Rv, - ( - offeredCollection: number, - offeredItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'CancelSwap'; - params: { offeredCollection: number; offeredItem: number }; - }; - } - > - >; - - /** - * Claim an atomic swap. - * This method executes a pending swap, that was created by a counterpart before. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `send_collection`: The collection of the item to be sent. - * - `send_item`: The item to be sent. - * - `receive_collection`: The collection of the item to be received. - * - `receive_item`: The item to be received. - * - `witness_price`: A price that was previously agreed on. - * - * Emits `SwapClaimed` on success. - * - * @param {number} sendCollection - * @param {number} sendItem - * @param {number} receiveCollection - * @param {number} receiveItem - * @param {PalletNftsPriceWithDirection | undefined} witnessPrice - **/ - claimSwap: GenericTxCall< - Rv, - ( - sendCollection: number, - sendItem: number, - receiveCollection: number, - receiveItem: number, - witnessPrice: PalletNftsPriceWithDirection | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice: PalletNftsPriceWithDirection | undefined; - }; - }; - } - > - >; - - /** - * Mint an item by providing the pre-signed approval. - * - * Origin must be Signed. - * - * - `mint_data`: The pre-signed approval that consists of the information about the item, - * its metadata, attributes, who can mint it (`None` for anyone) and until what block - * number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Issuer of the collection. - * - * Emits `Issued` on success. - * Emits `AttributeSet` if the attributes were provided. - * Emits `ItemMetadataSet` if the metadata was not empty. - * - * @param {PalletNftsPreSignedMint} mintData - * @param {SpRuntimeMultiSignature} signature - * @param {AccountId32Like} signer - **/ - mintPreSigned: GenericTxCall< - Rv, - ( - mintData: PalletNftsPreSignedMint, - signature: SpRuntimeMultiSignature, - signer: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - }; - } - > - >; - - /** - * Set attributes for an item by providing the pre-signed approval. - * - * Origin must be Signed and must be an owner of the `data.item`. - * - * - `data`: The pre-signed approval that consists of the information about the item, - * attributes to update and until what block number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Admin of the collection for the - * `CollectionOwner` namespace. - * - * Emits `AttributeSet` for each provided attribute. - * Emits `ItemAttributesApprovalAdded` if the approval wasn't set before. - * Emits `PreSignedAttributesSet` on success. - * - * @param {PalletNftsPreSignedAttributes} data - * @param {SpRuntimeMultiSignature} signature - * @param {AccountId32Like} signer - **/ - setAttributesPreSigned: GenericTxCall< - Rv, - ( - data: PalletNftsPreSignedAttributes, - signature: SpRuntimeMultiSignature, - signer: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Nfts'; - palletCall: { - name: 'SetAttributesPreSigned'; - params: { - data: PalletNftsPreSignedAttributes; - signature: SpRuntimeMultiSignature; - signer: AccountId32Like; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ForeignAssets`'s transaction calls - **/ - foreignAssets: { - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Create'; - params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - isSufficient: boolean; - minBalance: bigint; - }; - }; - } - > - >; - - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'StartDestroy'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Mint'; - params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Burn'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Transfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceTransfer'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - source: MultiAddressLike; - dest: MultiAddressLike; - amount: bigint; - }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Freeze'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Thaw'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ThawAsset'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - }; - } - > - >; - - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'CancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - destination: MultiAddressLike; - amount: bigint; - }; - }; - } - > - >; - - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - **/ - touch: GenericTxCall< - Rv, - (id: StagingXcmV3MultilocationMultiLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Touch'; - params: { id: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Refund'; - params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean }; - }; - } - > - >; - - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint }; - }; - } - > - >; - - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'TouchOther'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'RefundOther'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - * - * @param {StagingXcmV3MultilocationMultiLocation} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: StagingXcmV3MultilocationMultiLocation, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ForeignAssets'; - palletCall: { - name: 'Block'; - params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `NftFractionalization`'s transaction calls - **/ - nftFractionalization: { - /** - * Lock the NFT and mint a new fungible asset. - * - * The dispatch origin for this call must be Signed. - * The origin must be the owner of the NFT they are trying to lock. - * - * `Deposit` funds of sender are reserved. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the new asset. It must not exist. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the newly created asset. - * - `fractions`: The total issuance of the newly created asset class. - * - * Emits `NftFractionalized` event when successful. - * - * @param {number} nftCollectionId - * @param {number} nftId - * @param {number} assetId - * @param {MultiAddressLike} beneficiary - * @param {bigint} fractions - **/ - fractionalize: GenericTxCall< - Rv, - ( - nftCollectionId: number, - nftId: number, - assetId: number, - beneficiary: MultiAddressLike, - fractions: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'NftFractionalization'; - palletCall: { - name: 'Fractionalize'; - params: { - nftCollectionId: number; - nftId: number; - assetId: number; - beneficiary: MultiAddressLike; - fractions: bigint; - }; - }; - } - > - >; - - /** - * Burn the total issuance of the fungible asset and return (unlock) the locked NFT. - * - * The dispatch origin for this call must be Signed. - * - * `Deposit` funds will be returned to `asset_creator`. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the asset being returned and destroyed. Must match - * the original ID of the created asset, corresponding to the NFT. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the unified NFT. - * - * Emits `NftUnified` event when successful. - * - * @param {number} nftCollectionId - * @param {number} nftId - * @param {number} assetId - * @param {MultiAddressLike} beneficiary - **/ - unify: GenericTxCall< - Rv, - ( - nftCollectionId: number, - nftId: number, - assetId: number, - beneficiary: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'NftFractionalization'; - palletCall: { - name: 'Unify'; - params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `PoolAssets`'s transaction calls - **/ - poolAssets: { - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} admin - * @param {bigint} minBalance - **/ - create: GenericTxCall< - Rv, - ( - id: number, - admin: MultiAddressLike, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Create'; - params: { id: number; admin: MultiAddressLike; minBalance: bigint }; - }; - } - > - >; - - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {boolean} isSufficient - * @param {bigint} minBalance - **/ - forceCreate: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - isSufficient: boolean, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceCreate'; - params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint }; - }; - } - > - >; - - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - * - * @param {number} id - **/ - startDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'StartDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - * - * @param {number} id - **/ - destroyAccounts: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'DestroyAccounts'; - params: { id: number }; - }; - } - > - >; - - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - * - * @param {number} id - **/ - destroyApprovals: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'DestroyApprovals'; - params: { id: number }; - }; - } - > - >; - - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - * - * @param {number} id - **/ - finishDestroy: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'FinishDestroy'; - params: { id: number }; - }; - } - > - >; - - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - * - * @param {number} id - * @param {MultiAddressLike} beneficiary - * @param {bigint} amount - **/ - mint: GenericTxCall< - Rv, - ( - id: number, - beneficiary: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Mint'; - params: { id: number; beneficiary: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - * - * @param {number} id - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - burn: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Burn'; - params: { id: number; who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transfer: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Transfer'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - * - * @param {number} id - * @param {MultiAddressLike} target - * @param {bigint} amount - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - id: number, - target: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferKeepAlive'; - params: { id: number; target: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - * - * @param {number} id - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} amount - **/ - forceTransfer: GenericTxCall< - Rv, - ( - id: number, - source: MultiAddressLike, - dest: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceTransfer'; - params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - freeze: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Freeze'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - thaw: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Thaw'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - freezeAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'FreezeAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - thawAsset: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ThawAsset'; - params: { id: number }; - }; - } - > - >; - - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - **/ - transferOwnership: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferOwnership'; - params: { id: number; owner: MultiAddressLike }; - }; - } - > - >; - - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - **/ - setTeam: GenericTxCall< - Rv, - ( - id: number, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - }; - } - > - >; - - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - **/ - setMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - clearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - * - * @param {number} id - * @param {BytesLike} name - * @param {BytesLike} symbol - * @param {number} decimals - * @param {boolean} isFrozen - **/ - forceSetMetadata: GenericTxCall< - Rv, - ( - id: number, - name: BytesLike, - symbol: BytesLike, - decimals: number, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - }; - } - > - >; - - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - * - * @param {number} id - **/ - forceClearMetadata: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceClearMetadata'; - params: { id: number }; - }; - } - > - >; - - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} issuer - * @param {MultiAddressLike} admin - * @param {MultiAddressLike} freezer - * @param {bigint} minBalance - * @param {boolean} isSufficient - * @param {boolean} isFrozen - **/ - forceAssetStatus: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - issuer: MultiAddressLike, - admin: MultiAddressLike, - freezer: MultiAddressLike, - minBalance: bigint, - isSufficient: boolean, - isFrozen: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - }; - } - > - >; - - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} delegate - * @param {bigint} amount - **/ - approveTransfer: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ApproveTransfer'; - params: { id: number; delegate: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} delegate - **/ - cancelApproval: GenericTxCall< - Rv, - ( - id: number, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'CancelApproval'; - params: { id: number; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} delegate - **/ - forceCancelApproval: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - delegate: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'ForceCancelApproval'; - params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike }; - }; - } - > - >; - - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} owner - * @param {MultiAddressLike} destination - * @param {bigint} amount - **/ - transferApproved: GenericTxCall< - Rv, - ( - id: number, - owner: MultiAddressLike, - destination: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - * - * @param {number} id - **/ - touch: GenericTxCall< - Rv, - (id: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Touch'; - params: { id: number }; - }; - } - > - >; - - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - * - * @param {number} id - * @param {boolean} allowBurn - **/ - refund: GenericTxCall< - Rv, - ( - id: number, - allowBurn: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Refund'; - params: { id: number; allowBurn: boolean }; - }; - } - > - >; - - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - * - * @param {number} id - * @param {bigint} minBalance - **/ - setMinBalance: GenericTxCall< - Rv, - ( - id: number, - minBalance: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'SetMinBalance'; - params: { id: number; minBalance: bigint }; - }; - } - > - >; - - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - touchOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'TouchOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - refundOther: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'RefundOther'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - * - * @param {number} id - * @param {MultiAddressLike} who - **/ - block: GenericTxCall< - Rv, - ( - id: number, - who: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PoolAssets'; - palletCall: { - name: 'Block'; - params: { id: number; who: MultiAddressLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `AssetConversion`'s transaction calls - **/ - assetConversion: { - /** - * Creates an empty liquidity pool and an associated new `lp_token` asset - * (the id of which is returned in the `Event::PoolCreated` event). - * - * Once a pool is created, someone may [`Pallet::add_liquidity`] to it. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - createPool: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Provide liquidity into the pool of `asset1` and `asset2`. - * NOTE: an optimal amount of asset1 and asset2 will be calculated and - * might be different than the provided `amount1_desired`/`amount2_desired` - * thus you should provide the min amount you're happy to provide. - * Params `amount1_min`/`amount2_min` represent that. - * `mint_to` will be sent the liquidity tokens that represent this share of the pool. - * - * NOTE: when encountering an incorrect exchange rate and non-withdrawable pool liquidity, - * batch an atomic call with [`Pallet::add_liquidity`] and - * [`Pallet::swap_exact_tokens_for_tokens`] or [`Pallet::swap_tokens_for_exact_tokens`] - * calls to render the liquidity withdrawable and rectify the exchange rate. - * - * Once liquidity is added, someone may successfully call - * [`Pallet::swap_exact_tokens_for_tokens`] successfully. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} amount1Desired - * @param {bigint} amount2Desired - * @param {bigint} amount1Min - * @param {bigint} amount2Min - * @param {AccountId32Like} mintTo - **/ - addLiquidity: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - amount1Desired: bigint, - amount2Desired: bigint, - amount1Min: bigint, - amount2Min: bigint, - mintTo: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32Like; - }; - }; - } - > - >; - - /** - * Allows you to remove liquidity by providing the `lp_token_burn` tokens that will be - * burned in the process. With the usage of `amount1_min_receive`/`amount2_min_receive` - * it's possible to control the min amount of returned tokens you're happy with. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - * @param {bigint} lpTokenBurn - * @param {bigint} amount1MinReceive - * @param {bigint} amount2MinReceive - * @param {AccountId32Like} withdrawTo - **/ - removeLiquidity: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - lpTokenBurn: bigint, - amount1MinReceive: bigint, - amount2MinReceive: bigint, - withdrawTo: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32Like; - }; - }; - } - > - >; - - /** - * Swap the exact amount of `asset1` into `asset2`. - * `amount_out_min` param allows you to specify the min amount of the `asset2` - * you're happy to receive. - * - * [`AssetConversionApi::quote_price_exact_tokens_for_tokens`] runtime call can be called - * for a quote. - * - * @param {Array} path - * @param {bigint} amountIn - * @param {bigint} amountOutMin - * @param {AccountId32Like} sendTo - * @param {boolean} keepAlive - **/ - swapExactTokensForTokens: GenericTxCall< - Rv, - ( - path: Array, - amountIn: bigint, - amountOutMin: bigint, - sendTo: AccountId32Like, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - } - > - >; - - /** - * Swap any amount of `asset1` to get the exact amount of `asset2`. - * `amount_in_max` param allows to specify the max amount of the `asset1` - * you're happy to provide. - * - * [`AssetConversionApi::quote_price_tokens_for_exact_tokens`] runtime call can be called - * for a quote. - * - * @param {Array} path - * @param {bigint} amountOut - * @param {bigint} amountInMax - * @param {AccountId32Like} sendTo - * @param {boolean} keepAlive - **/ - swapTokensForExactTokens: GenericTxCall< - Rv, - ( - path: Array, - amountOut: bigint, - amountInMax: bigint, - sendTo: AccountId32Like, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - }; - } - > - >; - - /** - * Touch an existing pool to fulfill prerequisites before providing liquidity, such as - * ensuring that the pool's accounts are in place. It is typically useful when a pool - * creator removes the pool's accounts and does not provide a liquidity. This action may - * involve holding assets from the caller as a deposit for creating the pool's accounts. - * - * The origin must be Signed. - * - * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2). - * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2). - * - * Emits `Touched` event when successful. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - touch: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversion'; - palletCall: { - name: 'Touch'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `StateTrieMigration`'s transaction calls - **/ - stateTrieMigration: { - /** - * Control the automatic migration. - * - * The dispatch origin of this call must be [`Config::ControlOrigin`]. - * - * @param {PalletStateTrieMigrationMigrationLimits | undefined} maybeConfig - **/ - controlAutoMigration: GenericTxCall< - Rv, - (maybeConfig: PalletStateTrieMigrationMigrationLimits | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'StateTrieMigration'; - palletCall: { - name: 'ControlAutoMigration'; - params: { maybeConfig: PalletStateTrieMigrationMigrationLimits | undefined }; - }; - } - > - >; - - /** - * Continue the migration for the given `limits`. - * - * The dispatch origin of this call can be any signed account. - * - * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit, - * Upon successful execution, the transaction fee is returned. - * - * The (potentially over-estimated) of the byte length of all the data read must be - * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing - * that executing the current `MigrationTask` with the given `limits` will not exceed - * `real_size_upper` bytes of read data. - * - * The `witness_task` is merely a helper to prevent the caller from being slashed or - * generally trigger a migration that they do not intend. This parameter is just a message - * from caller, saying that they believed `witness_task` was the last state of the - * migration, and they only wish for their transaction to do anything, if this assumption - * holds. In case `witness_task` does not match, the transaction fails. - * - * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the - * recommended way of doing this is to pass a `limit` that only bounds `count`, as the - * `size` limit can always be overwritten. - * - * @param {PalletStateTrieMigrationMigrationLimits} limits - * @param {number} realSizeUpper - * @param {PalletStateTrieMigrationMigrationTask} witnessTask - **/ - continueMigrate: GenericTxCall< - Rv, - ( - limits: PalletStateTrieMigrationMigrationLimits, - realSizeUpper: number, - witnessTask: PalletStateTrieMigrationMigrationTask, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'StateTrieMigration'; - palletCall: { - name: 'ContinueMigrate'; - params: { - limits: PalletStateTrieMigrationMigrationLimits; - realSizeUpper: number; - witnessTask: PalletStateTrieMigrationMigrationTask; - }; - }; - } - > - >; - - /** - * Migrate the list of top keys by iterating each of them one by one. - * - * This does not affect the global migration process tracker ([`MigrationProcess`]), and - * should only be used in case any keys are leftover due to a bug. - * - * @param {Array} keys - * @param {number} witnessSize - **/ - migrateCustomTop: GenericTxCall< - Rv, - ( - keys: Array, - witnessSize: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'StateTrieMigration'; - palletCall: { - name: 'MigrateCustomTop'; - params: { keys: Array; witnessSize: number }; - }; - } - > - >; - - /** - * Migrate the list of child keys by iterating each of them one by one. - * - * All of the given child keys must be present under one `child_root`. - * - * This does not affect the global migration process tracker ([`MigrationProcess`]), and - * should only be used in case any keys are leftover due to a bug. - * - * @param {BytesLike} root - * @param {Array} childKeys - * @param {number} totalSize - **/ - migrateCustomChild: GenericTxCall< - Rv, - ( - root: BytesLike, - childKeys: Array, - totalSize: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'StateTrieMigration'; - palletCall: { - name: 'MigrateCustomChild'; - params: { root: BytesLike; childKeys: Array; totalSize: number }; - }; - } - > - >; - - /** - * Set the maximum limit of the signed migration. - * - * @param {PalletStateTrieMigrationMigrationLimits} limits - **/ - setSignedMaxLimits: GenericTxCall< - Rv, - (limits: PalletStateTrieMigrationMigrationLimits) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'StateTrieMigration'; - palletCall: { - name: 'SetSignedMaxLimits'; - params: { limits: PalletStateTrieMigrationMigrationLimits }; - }; - } - > - >; - - /** - * Forcefully set the progress the running migration. - * - * This is only useful in one case: the next key to migrate is too big to be migrated with - * a signed account, in a parachain context, and we simply want to skip it. A reasonable - * example of this would be `:code:`, which is both very expensive to migrate, and commonly - * used, so probably it is already migrated. - * - * In case you mess things up, you can also, in principle, use this to reset the migration - * process. - * - * @param {PalletStateTrieMigrationProgress} progressTop - * @param {PalletStateTrieMigrationProgress} progressChild - **/ - forceSetProgress: GenericTxCall< - Rv, - ( - progressTop: PalletStateTrieMigrationProgress, - progressChild: PalletStateTrieMigrationProgress, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'StateTrieMigration'; - palletCall: { - name: 'ForceSetProgress'; - params: { progressTop: PalletStateTrieMigrationProgress; progressChild: PalletStateTrieMigrationProgress }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `AssetConversionMigration`'s transaction calls - **/ - assetConversionMigration: { - /** - * Migrates an existing pool to a new account ID derivation method for a given asset pair. - * If the migration is successful, transaction fees are refunded to the caller. - * - * Must be signed. - * - * @param {StagingXcmV3MultilocationMultiLocation} asset1 - * @param {StagingXcmV3MultilocationMultiLocation} asset2 - **/ - migrateToNewAccount: GenericTxCall< - Rv, - ( - asset1: StagingXcmV3MultilocationMultiLocation, - asset2: StagingXcmV3MultilocationMultiLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'AssetConversionMigration'; - palletCall: { - name: 'MigrateToNewAccount'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; -} diff --git a/packages/chaintypes/src/westendAssetHub/types.d.ts b/packages/chaintypes/src/westendAssetHub/types.d.ts deleted file mode 100644 index 85be6ec..0000000 --- a/packages/chaintypes/src/westendAssetHub/types.d.ts +++ /dev/null @@ -1,12661 +0,0 @@ -// Generated by dedot cli - -import type { - Phase, - H256, - DispatchInfo, - DispatchError, - AccountId32, - FixedBytes, - FixedArray, - Bytes, - Result, - Permill, - BytesLike, - MultiAddress, - MultiAddressLike, - AccountId32Like, - FixedU128, - Era, - Header, - UncheckedExtrinsic, -} from 'dedot/codecs'; - -export type FrameSystemAccountInfo = { - nonce: number; - consumers: number; - providers: number; - sufficients: number; - data: PalletBalancesAccountData; -}; - -export type PalletBalancesAccountData = { - free: bigint; - reserved: bigint; - frozen: bigint; - flags: PalletBalancesExtraFlags; -}; - -export type PalletBalancesExtraFlags = bigint; - -export type FrameSupportDispatchPerDispatchClass = { - normal: SpWeightsWeightV2Weight; - operational: SpWeightsWeightV2Weight; - mandatory: SpWeightsWeightV2Weight; -}; - -export type SpWeightsWeightV2Weight = { refTime: bigint; proofSize: bigint }; - -export type FrameSystemEventRecord = { phase: Phase; event: AssetHubWestendRuntimeRuntimeEvent; topics: Array }; - -export type AssetHubWestendRuntimeRuntimeEvent = - | { pallet: 'System'; palletEvent: FrameSystemEvent } - | { pallet: 'ParachainSystem'; palletEvent: CumulusPalletParachainSystemEvent } - | { pallet: 'Balances'; palletEvent: PalletBalancesEvent } - | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent } - | { pallet: 'AssetTxPayment'; palletEvent: PalletAssetConversionTxPaymentEvent } - | { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent } - | { pallet: 'Session'; palletEvent: PalletSessionEvent } - | { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent } - | { pallet: 'PolkadotXcm'; palletEvent: PalletXcmEvent } - | { pallet: 'CumulusXcm'; palletEvent: CumulusPalletXcmEvent } - | { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent } - | { pallet: 'Utility'; palletEvent: PalletUtilityEvent } - | { pallet: 'Multisig'; palletEvent: PalletMultisigEvent } - | { pallet: 'Proxy'; palletEvent: PalletProxyEvent } - | { pallet: 'Assets'; palletEvent: PalletAssetsEvent } - | { pallet: 'Uniques'; palletEvent: PalletUniquesEvent } - | { pallet: 'Nfts'; palletEvent: PalletNftsEvent } - | { pallet: 'ForeignAssets'; palletEvent: PalletAssetsEvent002 } - | { pallet: 'NftFractionalization'; palletEvent: PalletNftFractionalizationEvent } - | { pallet: 'PoolAssets'; palletEvent: PalletAssetsEvent } - | { pallet: 'AssetConversion'; palletEvent: PalletAssetConversionEvent } - | { pallet: 'AssetsFreezer'; palletEvent: PalletAssetsFreezerEvent } - | { pallet: 'ForeignAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent002 } - | { pallet: 'PoolAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent } - | { pallet: 'StateTrieMigration'; palletEvent: PalletStateTrieMigrationEvent } - | { pallet: 'AssetConversionMigration'; palletEvent: PalletAssetConversionOpsEvent }; - -/** - * Event for the System pallet. - **/ -export type FrameSystemEvent = - /** - * An extrinsic completed successfully. - **/ - | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: DispatchInfo } } - /** - * An extrinsic failed. - **/ - | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: DispatchInfo } } - /** - * `:code` was updated. - **/ - | { name: 'CodeUpdated' } - /** - * A new account was created. - **/ - | { name: 'NewAccount'; data: { account: AccountId32 } } - /** - * An account was reaped. - **/ - | { name: 'KilledAccount'; data: { account: AccountId32 } } - /** - * On on-chain remark happened. - **/ - | { name: 'Remarked'; data: { sender: AccountId32; hash: H256 } } - /** - * An upgrade was authorized. - **/ - | { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } }; - -export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory'; - -export type FrameSupportDispatchPays = 'Yes' | 'No'; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletParachainSystemEvent = - /** - * The validation function has been scheduled to apply. - **/ - | { name: 'ValidationFunctionStored' } - /** - * The validation function was applied as of the contained relay chain block number. - **/ - | { name: 'ValidationFunctionApplied'; data: { relayChainBlockNum: number } } - /** - * The relay-chain aborted the upgrade process. - **/ - | { name: 'ValidationFunctionDiscarded' } - /** - * Some downward messages have been received and will be processed. - **/ - | { name: 'DownwardMessagesReceived'; data: { count: number } } - /** - * Downward messages were processed using the given weight. - **/ - | { name: 'DownwardMessagesProcessed'; data: { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } } - /** - * An upward message was sent to the relay chain. - **/ - | { name: 'UpwardMessageSent'; data: { messageHash?: FixedBytes<32> | undefined } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletBalancesEvent = - /** - * An account was created with some free balance. - **/ - | { name: 'Endowed'; data: { account: AccountId32; freeBalance: bigint } } - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - | { name: 'DustLost'; data: { account: AccountId32; amount: bigint } } - /** - * Transfer succeeded. - **/ - | { name: 'Transfer'; data: { from: AccountId32; to: AccountId32; amount: bigint } } - /** - * A balance was set by root. - **/ - | { name: 'BalanceSet'; data: { who: AccountId32; free: bigint } } - /** - * Some balance was reserved (moved from free to reserved). - **/ - | { name: 'Reserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unreserved (moved from reserved to free). - **/ - | { name: 'Unreserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - | { - name: 'ReserveRepatriated'; - data: { - from: AccountId32; - to: AccountId32; - amount: bigint; - destinationStatus: FrameSupportTokensMiscBalanceStatus; - }; - } - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - | { name: 'Deposit'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - | { name: 'Withdraw'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - | { name: 'Slashed'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was minted into an account. - **/ - | { name: 'Minted'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was burned from an account. - **/ - | { name: 'Burned'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was suspended from an account (it can be restored later). - **/ - | { name: 'Suspended'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was restored into an account. - **/ - | { name: 'Restored'; data: { who: AccountId32; amount: bigint } } - /** - * An account was upgraded. - **/ - | { name: 'Upgraded'; data: { who: AccountId32 } } - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - | { name: 'Issued'; data: { amount: bigint } } - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - | { name: 'Rescinded'; data: { amount: bigint } } - /** - * Some balance was locked. - **/ - | { name: 'Locked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unlocked. - **/ - | { name: 'Unlocked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was frozen. - **/ - | { name: 'Frozen'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was thawed. - **/ - | { name: 'Thawed'; data: { who: AccountId32; amount: bigint } } - /** - * The `TotalIssuance` was forcefully changed. - **/ - | { name: 'TotalIssuanceForced'; data: { old: bigint; new: bigint } }; - -export type FrameSupportTokensMiscBalanceStatus = 'Free' | 'Reserved'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletTransactionPaymentEvent = - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - { name: 'TransactionFeePaid'; data: { who: AccountId32; actualFee: bigint; tip: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionTxPaymentEvent = - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who` in an asset `asset_id`. - **/ - | { - name: 'AssetTxFeePaid'; - data: { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV3MultilocationMultiLocation }; - } - /** - * A swap of the refund in native currency back to asset failed. - **/ - | { name: 'AssetRefundFailed'; data: { nativeAmountKept: bigint } }; - -export type StagingXcmV3MultilocationMultiLocation = { parents: number; interior: XcmV3Junctions }; - -export type XcmV3Junctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV3Junction } - | { type: 'X2'; value: [XcmV3Junction, XcmV3Junction] } - | { type: 'X3'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X4'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X5'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X6'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { - type: 'X7'; - value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]; - } - | { - type: 'X8'; - value: [ - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - ]; - }; - -export type XcmV3Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: XcmV3JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: XcmV3JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: XcmV3JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: XcmV3JunctionNetworkId }; - -export type XcmV3JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type XcmV3JunctionBodyId = - | { type: 'Unit' } - | { type: 'Moniker'; value: FixedBytes<4> } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV3JunctionBodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletCollatorSelectionEvent = - /** - * New Invulnerables were set. - **/ - | { name: 'NewInvulnerables'; data: { invulnerables: Array } } - /** - * A new Invulnerable was added. - **/ - | { name: 'InvulnerableAdded'; data: { accountId: AccountId32 } } - /** - * An Invulnerable was removed. - **/ - | { name: 'InvulnerableRemoved'; data: { accountId: AccountId32 } } - /** - * The number of desired candidates was set. - **/ - | { name: 'NewDesiredCandidates'; data: { desiredCandidates: number } } - /** - * The candidacy bond was set. - **/ - | { name: 'NewCandidacyBond'; data: { bondAmount: bigint } } - /** - * A new candidate joined. - **/ - | { name: 'CandidateAdded'; data: { accountId: AccountId32; deposit: bigint } } - /** - * Bond of a candidate updated. - **/ - | { name: 'CandidateBondUpdated'; data: { accountId: AccountId32; deposit: bigint } } - /** - * A candidate was removed. - **/ - | { name: 'CandidateRemoved'; data: { accountId: AccountId32 } } - /** - * An account was replaced in the candidate list by another one. - **/ - | { name: 'CandidateReplaced'; data: { old: AccountId32; new: AccountId32; deposit: bigint } } - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - | { name: 'InvalidInvulnerableSkipped'; data: { accountId: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletSessionEvent = - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - { name: 'NewSession'; data: { sessionIndex: number } }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmpQueueEvent = - /** - * An HRMP message was sent to a sibling parachain. - **/ - { name: 'XcmpMessageSent'; data: { messageHash: FixedBytes<32> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletXcmEvent = - /** - * Execution of an XCM message was attempted. - **/ - | { name: 'Attempted'; data: { outcome: StagingXcmV4TraitsOutcome } } - /** - * A XCM message was sent. - **/ - | { - name: 'Sent'; - data: { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - }; - } - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - | { name: 'UnexpectedResponse'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - | { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV4Response } } - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - | { name: 'Notified'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - | { - name: 'NotifyOverweight'; - data: { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - | { name: 'NotifyDispatchError'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - | { name: 'NotifyDecodeFailed'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidResponder'; - data: { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined }; - } - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Received query response has been read and removed. - **/ - | { name: 'ResponseTaken'; data: { queryId: bigint } } - /** - * Some assets have been placed in an asset trap. - **/ - | { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - | { - name: 'VersionChangeNotified'; - data: { - destination: StagingXcmV4Location; - result: number; - cost: StagingXcmV4AssetAssets; - messageId: FixedBytes<32>; - }; - } - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - | { name: 'SupportedVersionChanged'; data: { location: StagingXcmV4Location; version: number } } - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - | { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } } - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - | { name: 'NotifyTargetMigrationFail'; data: { location: XcmVersionedLocation; queryId: bigint } } - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidQuerier'; - data: { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - }; - } - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - | { - name: 'VersionNotifyStarted'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - | { - name: 'VersionNotifyRequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - | { - name: 'VersionNotifyUnrequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - | { name: 'FeesPaid'; data: { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } } - /** - * Some assets have been claimed from an asset trap - **/ - | { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * A XCM version migration finished. - **/ - | { name: 'VersionMigrationFinished'; data: { version: number } }; - -export type StagingXcmV4TraitsOutcome = - | { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } } - | { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV3TraitsError } } - | { type: 'Error'; value: { error: XcmV3TraitsError } }; - -export type XcmV3TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'LocationFull' } - | { type: 'LocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'ExpectationFalse' } - | { type: 'PalletNotFound' } - | { type: 'NameMismatch' } - | { type: 'VersionIncompatible' } - | { type: 'HoldingWouldOverflow' } - | { type: 'ExportError' } - | { type: 'ReanchorFailed' } - | { type: 'NoDeal' } - | { type: 'FeesNotMet' } - | { type: 'LockError' } - | { type: 'NoPermission' } - | { type: 'Unanchored' } - | { type: 'NotDepositable' } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' } - | { type: 'ExceedsStackLimit' }; - -export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions }; - -export type StagingXcmV4Junctions = - | { type: 'Here' } - | { type: 'X1'; value: FixedArray } - | { type: 'X2'; value: FixedArray } - | { type: 'X3'; value: FixedArray } - | { type: 'X4'; value: FixedArray } - | { type: 'X5'; value: FixedArray } - | { type: 'X6'; value: FixedArray } - | { type: 'X7'; value: FixedArray } - | { type: 'X8'; value: FixedArray }; - -export type StagingXcmV4Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId }; - -export type StagingXcmV4JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type StagingXcmV4Xcm = Array; - -export type StagingXcmV4Instruction = - | { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets } - | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: StagingXcmV4Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV4Location | undefined; - }; - } - | { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } } - | { - type: 'TransferReserveAsset'; - value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: StagingXcmV4Junctions } - | { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo } - | { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } } - | { - type: 'DepositReserveAsset'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ReportHolding'; - value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter }; - } - | { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: StagingXcmV4Xcm } - | { type: 'SetAppendix'; value: StagingXcmV4Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: StagingXcmV4Junction } - | { - type: 'ExportMessage'; - value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm }; - } - | { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } } - | { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } } - | { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } } - | { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV4Location } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined }; - }; - -export type StagingXcmV4AssetAssets = Array; - -export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility }; - -export type StagingXcmV4AssetAssetId = StagingXcmV4Location; - -export type StagingXcmV4AssetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance }; - -export type StagingXcmV4AssetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type StagingXcmV4Response = - | { type: 'Null' } - | { type: 'Assets'; value: StagingXcmV4AssetAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type StagingXcmV4PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type XcmV3MaybeErrorCode = - | { type: 'Success' } - | { type: 'Error'; value: Bytes } - | { type: 'TruncatedError'; value: Bytes }; - -export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; - -export type XcmDoubleEncoded = { encoded: Bytes }; - -export type StagingXcmV4QueryResponseInfo = { - destination: StagingXcmV4Location; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type StagingXcmV4AssetAssetFilter = - | { type: 'Definite'; value: StagingXcmV4AssetAssets } - | { type: 'Wild'; value: StagingXcmV4AssetWildAsset }; - -export type StagingXcmV4AssetWildAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { - type: 'AllOfCounted'; - value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number }; - }; - -export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight }; - -export type XcmVersionedAssets = - | { type: 'V2'; value: XcmV2MultiassetMultiAssets } - | { type: 'V3'; value: XcmV3MultiassetMultiAssets } - | { type: 'V4'; value: StagingXcmV4AssetAssets }; - -export type XcmV2MultiassetMultiAssets = Array; - -export type XcmV2MultiassetMultiAsset = { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetFungibility }; - -export type XcmV2MultiassetAssetId = - | { type: 'Concrete'; value: XcmV2MultilocationMultiLocation } - | { type: 'Abstract'; value: Bytes }; - -export type XcmV2MultilocationMultiLocation = { parents: number; interior: XcmV2MultilocationJunctions }; - -export type XcmV2MultilocationJunctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV2Junction } - | { type: 'X2'; value: [XcmV2Junction, XcmV2Junction] } - | { type: 'X3'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X4'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X5'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X6'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { - type: 'X7'; - value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]; - } - | { - type: 'X8'; - value: [ - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - ]; - }; - -export type XcmV2Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network: XcmV2NetworkId; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network: XcmV2NetworkId; index: bigint } } - | { type: 'AccountKey20'; value: { network: XcmV2NetworkId; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: Bytes } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV2BodyId; part: XcmV2BodyPart } }; - -export type XcmV2NetworkId = - | { type: 'Any' } - | { type: 'Named'; value: Bytes } - | { type: 'Polkadot' } - | { type: 'Kusama' }; - -export type XcmV2BodyId = - | { type: 'Unit' } - | { type: 'Named'; value: Bytes } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV2BodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -export type XcmV2MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV2MultiassetAssetInstance }; - -export type XcmV2MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> } - | { type: 'Blob'; value: Bytes }; - -export type XcmV3MultiassetMultiAssets = Array; - -export type XcmV3MultiassetMultiAsset = { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetFungibility }; - -export type XcmV3MultiassetAssetId = - | { type: 'Concrete'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'Abstract'; value: FixedBytes<32> }; - -export type XcmV3MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV3MultiassetAssetInstance }; - -export type XcmV3MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type XcmVersionedLocation = - | { type: 'V2'; value: XcmV2MultilocationMultiLocation } - | { type: 'V3'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'V4'; value: StagingXcmV4Location }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmEvent = - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - | { name: 'InvalidFormat'; data: FixedBytes<32> } - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - | { name: 'UnsupportedVersion'; data: FixedBytes<32> } - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - | { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV4TraitsOutcome] }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMessageQueueEvent = - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - | { - name: 'ProcessingFailed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - }; - } - /** - * Message is processed. - **/ - | { - name: 'Processed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - }; - } - /** - * Message placed in overweight queue. - **/ - | { - name: 'OverweightEnqueued'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - }; - } - /** - * This page was reaped. - **/ - | { - name: 'PageReaped'; - data: { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - }; - }; - -export type CumulusPrimitivesCoreAggregateMessageOrigin = - | { type: 'Here' } - | { type: 'Parent' } - | { type: 'Sibling'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type PolkadotParachainPrimitivesPrimitivesId = number; - -export type FrameSupportMessagesProcessMessageError = - | { type: 'BadFormat' } - | { type: 'Corrupt' } - | { type: 'Unsupported' } - | { type: 'Overweight'; value: SpWeightsWeightV2Weight } - | { type: 'Yield' } - | { type: 'StackLimitReached' }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletUtilityEvent = - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - | { name: 'BatchInterrupted'; data: { index: number; error: DispatchError } } - /** - * Batch of dispatches completed fully with no error. - **/ - | { name: 'BatchCompleted' } - /** - * Batch of dispatches completed but has errors. - **/ - | { name: 'BatchCompletedWithErrors' } - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - | { name: 'ItemCompleted' } - /** - * A single item within a Batch of dispatches has completed with error. - **/ - | { name: 'ItemFailed'; data: { error: DispatchError } } - /** - * A call was dispatched. - **/ - | { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMultisigEvent = - /** - * A new multisig operation has begun. - **/ - | { name: 'NewMultisig'; data: { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } } - /** - * A multisig operation has been approved by someone. - **/ - | { - name: 'MultisigApproval'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - } - /** - * A multisig operation has been executed. - **/ - | { - name: 'MultisigExecuted'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - }; - } - /** - * A multisig operation has been cancelled. - **/ - | { - name: 'MultisigCancelled'; - data: { - cancelling: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigTimepoint = { height: number; index: number }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletProxyEvent = - /** - * A proxy was executed correctly, with the given. - **/ - | { name: 'ProxyExecuted'; data: { result: Result<[], DispatchError> } } - /** - * A pure account has been created by new proxy with given - * disambiguation index and proxy type. - **/ - | { - name: 'PureCreated'; - data: { - pure: AccountId32; - who: AccountId32; - proxyType: AssetHubWestendRuntimeProxyType; - disambiguationIndex: number; - }; - } - /** - * An announcement was placed to make a call in the future. - **/ - | { name: 'Announced'; data: { real: AccountId32; proxy: AccountId32; callHash: H256 } } - /** - * A proxy was added. - **/ - | { - name: 'ProxyAdded'; - data: { - delegator: AccountId32; - delegatee: AccountId32; - proxyType: AssetHubWestendRuntimeProxyType; - delay: number; - }; - } - /** - * A proxy was removed. - **/ - | { - name: 'ProxyRemoved'; - data: { - delegator: AccountId32; - delegatee: AccountId32; - proxyType: AssetHubWestendRuntimeProxyType; - delay: number; - }; - }; - -export type AssetHubWestendRuntimeProxyType = - | 'Any' - | 'NonTransfer' - | 'CancelProxy' - | 'Assets' - | 'AssetOwner' - | 'AssetManager' - | 'Collator'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsEvent = - /** - * Some asset class was created. - **/ - | { name: 'Created'; data: { assetId: number; creator: AccountId32; owner: AccountId32 } } - /** - * Some assets were issued. - **/ - | { name: 'Issued'; data: { assetId: number; owner: AccountId32; amount: bigint } } - /** - * Some assets were transferred. - **/ - | { name: 'Transferred'; data: { assetId: number; from: AccountId32; to: AccountId32; amount: bigint } } - /** - * Some assets were destroyed. - **/ - | { name: 'Burned'; data: { assetId: number; owner: AccountId32; balance: bigint } } - /** - * The management team changed. - **/ - | { name: 'TeamChanged'; data: { assetId: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { assetId: number; owner: AccountId32 } } - /** - * Some account `who` was frozen. - **/ - | { name: 'Frozen'; data: { assetId: number; who: AccountId32 } } - /** - * Some account `who` was thawed. - **/ - | { name: 'Thawed'; data: { assetId: number; who: AccountId32 } } - /** - * Some asset `asset_id` was frozen. - **/ - | { name: 'AssetFrozen'; data: { assetId: number } } - /** - * Some asset `asset_id` was thawed. - **/ - | { name: 'AssetThawed'; data: { assetId: number } } - /** - * Accounts were destroyed for given asset. - **/ - | { name: 'AccountsDestroyed'; data: { assetId: number; accountsDestroyed: number; accountsRemaining: number } } - /** - * Approvals were destroyed for given asset. - **/ - | { name: 'ApprovalsDestroyed'; data: { assetId: number; approvalsDestroyed: number; approvalsRemaining: number } } - /** - * An asset class is in the process of being destroyed. - **/ - | { name: 'DestructionStarted'; data: { assetId: number } } - /** - * An asset class was destroyed. - **/ - | { name: 'Destroyed'; data: { assetId: number } } - /** - * Some asset class was force-created. - **/ - | { name: 'ForceCreated'; data: { assetId: number; owner: AccountId32 } } - /** - * New metadata has been set for an asset. - **/ - | { name: 'MetadataSet'; data: { assetId: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } } - /** - * Metadata has been cleared for an asset. - **/ - | { name: 'MetadataCleared'; data: { assetId: number } } - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - | { name: 'ApprovedTransfer'; data: { assetId: number; source: AccountId32; delegate: AccountId32; amount: bigint } } - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { assetId: number; owner: AccountId32; delegate: AccountId32 } } - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - | { - name: 'TransferredApproved'; - data: { assetId: number; owner: AccountId32; delegate: AccountId32; destination: AccountId32; amount: bigint }; - } - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - | { name: 'AssetStatusChanged'; data: { assetId: number } } - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - | { name: 'AssetMinBalanceChanged'; data: { assetId: number; newMinBalance: bigint } } - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - | { name: 'Touched'; data: { assetId: number; who: AccountId32; depositor: AccountId32 } } - /** - * Some account `who` was blocked. - **/ - | { name: 'Blocked'; data: { assetId: number; who: AccountId32 } } - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - | { name: 'Deposited'; data: { assetId: number; who: AccountId32; amount: bigint } } - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - | { name: 'Withdrawn'; data: { assetId: number; who: AccountId32; amount: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletUniquesEvent = - /** - * A `collection` was created. - **/ - | { name: 'Created'; data: { collection: number; creator: AccountId32; owner: AccountId32 } } - /** - * A `collection` was force-created. - **/ - | { name: 'ForceCreated'; data: { collection: number; owner: AccountId32 } } - /** - * A `collection` was destroyed. - **/ - | { name: 'Destroyed'; data: { collection: number } } - /** - * An `item` was issued. - **/ - | { name: 'Issued'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` was transferred. - **/ - | { name: 'Transferred'; data: { collection: number; item: number; from: AccountId32; to: AccountId32 } } - /** - * An `item` was destroyed. - **/ - | { name: 'Burned'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * Some `item` was frozen. - **/ - | { name: 'Frozen'; data: { collection: number; item: number } } - /** - * Some `item` was thawed. - **/ - | { name: 'Thawed'; data: { collection: number; item: number } } - /** - * Some `collection` was frozen. - **/ - | { name: 'CollectionFrozen'; data: { collection: number } } - /** - * Some `collection` was thawed. - **/ - | { name: 'CollectionThawed'; data: { collection: number } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { collection: number; newOwner: AccountId32 } } - /** - * The management team changed. - **/ - | { name: 'TeamChanged'; data: { collection: number; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 } } - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - | { name: 'ApprovedTransfer'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * A `collection` has had its attributes changed by the `Force` origin. - **/ - | { name: 'ItemStatusChanged'; data: { collection: number } } - /** - * New metadata has been set for a `collection`. - **/ - | { name: 'CollectionMetadataSet'; data: { collection: number; data: Bytes; isFrozen: boolean } } - /** - * Metadata has been cleared for a `collection`. - **/ - | { name: 'CollectionMetadataCleared'; data: { collection: number } } - /** - * New metadata has been set for an item. - **/ - | { name: 'MetadataSet'; data: { collection: number; item: number; data: Bytes; isFrozen: boolean } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'MetadataCleared'; data: { collection: number; item: number } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'Redeposited'; data: { collection: number; successfulItems: Array } } - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - | { name: 'AttributeSet'; data: { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } } - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - | { name: 'AttributeCleared'; data: { collection: number; maybeItem?: number | undefined; key: Bytes } } - /** - * Ownership acceptance has changed for an account. - **/ - | { name: 'OwnershipAcceptanceChanged'; data: { who: AccountId32; maybeCollection?: number | undefined } } - /** - * Max supply has been set for a collection. - **/ - | { name: 'CollectionMaxSupplySet'; data: { collection: number; maxSupply: number } } - /** - * The price was set for the instance. - **/ - | { - name: 'ItemPriceSet'; - data: { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined }; - } - /** - * The price for the instance was removed. - **/ - | { name: 'ItemPriceRemoved'; data: { collection: number; item: number } } - /** - * An item was bought. - **/ - | { - name: 'ItemBought'; - data: { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 }; - }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletNftsEvent = - /** - * A `collection` was created. - **/ - | { name: 'Created'; data: { collection: number; creator: AccountId32; owner: AccountId32 } } - /** - * A `collection` was force-created. - **/ - | { name: 'ForceCreated'; data: { collection: number; owner: AccountId32 } } - /** - * A `collection` was destroyed. - **/ - | { name: 'Destroyed'; data: { collection: number } } - /** - * An `item` was issued. - **/ - | { name: 'Issued'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` was transferred. - **/ - | { name: 'Transferred'; data: { collection: number; item: number; from: AccountId32; to: AccountId32 } } - /** - * An `item` was destroyed. - **/ - | { name: 'Burned'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * An `item` became non-transferable. - **/ - | { name: 'ItemTransferLocked'; data: { collection: number; item: number } } - /** - * An `item` became transferable. - **/ - | { name: 'ItemTransferUnlocked'; data: { collection: number; item: number } } - /** - * `item` metadata or attributes were locked. - **/ - | { - name: 'ItemPropertiesLocked'; - data: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * Some `collection` was locked. - **/ - | { name: 'CollectionLocked'; data: { collection: number } } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { collection: number; newOwner: AccountId32 } } - /** - * The management team changed. - **/ - | { - name: 'TeamChanged'; - data: { - collection: number; - issuer?: AccountId32 | undefined; - admin?: AccountId32 | undefined; - freezer?: AccountId32 | undefined; - }; - } - /** - * An `item` of a `collection` has been approved by the `owner` for transfer by - * a `delegate`. - **/ - | { - name: 'TransferApproved'; - data: { - collection: number; - item: number; - owner: AccountId32; - delegate: AccountId32; - deadline?: number | undefined; - }; - } - /** - * An approval for a `delegate` account to transfer the `item` of an item - * `collection` was cancelled by its `owner`. - **/ - | { name: 'ApprovalCancelled'; data: { collection: number; item: number; owner: AccountId32; delegate: AccountId32 } } - /** - * All approvals of an item got cancelled. - **/ - | { name: 'AllApprovalsCancelled'; data: { collection: number; item: number; owner: AccountId32 } } - /** - * A `collection` has had its config changed by the `Force` origin. - **/ - | { name: 'CollectionConfigChanged'; data: { collection: number } } - /** - * New metadata has been set for a `collection`. - **/ - | { name: 'CollectionMetadataSet'; data: { collection: number; data: Bytes } } - /** - * Metadata has been cleared for a `collection`. - **/ - | { name: 'CollectionMetadataCleared'; data: { collection: number } } - /** - * New metadata has been set for an item. - **/ - | { name: 'ItemMetadataSet'; data: { collection: number; item: number; data: Bytes } } - /** - * Metadata has been cleared for an item. - **/ - | { name: 'ItemMetadataCleared'; data: { collection: number; item: number } } - /** - * The deposit for a set of `item`s within a `collection` has been updated. - **/ - | { name: 'Redeposited'; data: { collection: number; successfulItems: Array } } - /** - * New attribute metadata has been set for a `collection` or `item`. - **/ - | { - name: 'AttributeSet'; - data: { - collection: number; - maybeItem?: number | undefined; - key: Bytes; - value: Bytes; - namespace: PalletNftsAttributeNamespace; - }; - } - /** - * Attribute metadata has been cleared for a `collection` or `item`. - **/ - | { - name: 'AttributeCleared'; - data: { collection: number; maybeItem?: number | undefined; key: Bytes; namespace: PalletNftsAttributeNamespace }; - } - /** - * A new approval to modify item attributes was added. - **/ - | { name: 'ItemAttributesApprovalAdded'; data: { collection: number; item: number; delegate: AccountId32 } } - /** - * A new approval to modify item attributes was removed. - **/ - | { name: 'ItemAttributesApprovalRemoved'; data: { collection: number; item: number; delegate: AccountId32 } } - /** - * Ownership acceptance has changed for an account. - **/ - | { name: 'OwnershipAcceptanceChanged'; data: { who: AccountId32; maybeCollection?: number | undefined } } - /** - * Max supply has been set for a collection. - **/ - | { name: 'CollectionMaxSupplySet'; data: { collection: number; maxSupply: number } } - /** - * Mint settings for a collection had changed. - **/ - | { name: 'CollectionMintSettingsUpdated'; data: { collection: number } } - /** - * Event gets emitted when the `NextCollectionId` gets incremented. - **/ - | { name: 'NextCollectionIdIncremented'; data: { nextId?: number | undefined } } - /** - * The price was set for the item. - **/ - | { - name: 'ItemPriceSet'; - data: { collection: number; item: number; price: bigint; whitelistedBuyer?: AccountId32 | undefined }; - } - /** - * The price for the item was removed. - **/ - | { name: 'ItemPriceRemoved'; data: { collection: number; item: number } } - /** - * An item was bought. - **/ - | { - name: 'ItemBought'; - data: { collection: number; item: number; price: bigint; seller: AccountId32; buyer: AccountId32 }; - } - /** - * A tip was sent. - **/ - | { - name: 'TipSent'; - data: { collection: number; item: number; sender: AccountId32; receiver: AccountId32; amount: bigint }; - } - /** - * An `item` swap intent was created. - **/ - | { - name: 'SwapCreated'; - data: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * The swap was cancelled. - **/ - | { - name: 'SwapCancelled'; - data: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * The swap has been claimed. - **/ - | { - name: 'SwapClaimed'; - data: { - sentCollection: number; - sentItem: number; - sentItemOwner: AccountId32; - receivedCollection: number; - receivedItem: number; - receivedItemOwner: AccountId32; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; - }; - } - /** - * New attributes have been set for an `item` of the `collection`. - **/ - | { - name: 'PreSignedAttributesSet'; - data: { collection: number; item: number; namespace: PalletNftsAttributeNamespace }; - } - /** - * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` - * within that `collection`. - **/ - | { - name: 'PalletAttributeSet'; - data: { collection: number; item?: number | undefined; attribute: PalletNftsPalletAttributes; value: Bytes }; - }; - -export type PalletNftsAttributeNamespace = - | { type: 'Pallet' } - | { type: 'CollectionOwner' } - | { type: 'ItemOwner' } - | { type: 'Account'; value: AccountId32 }; - -export type PalletNftsPriceWithDirection = { amount: bigint; direction: PalletNftsPriceDirection }; - -export type PalletNftsPriceDirection = 'Send' | 'Receive'; - -export type PalletNftsPalletAttributes = { type: 'UsedToClaim'; value: number } | { type: 'TransferDisabled' }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsEvent002 = - /** - * Some asset class was created. - **/ - | { - name: 'Created'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; creator: AccountId32; owner: AccountId32 }; - } - /** - * Some assets were issued. - **/ - | { name: 'Issued'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; amount: bigint } } - /** - * Some assets were transferred. - **/ - | { - name: 'Transferred'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; from: AccountId32; to: AccountId32; amount: bigint }; - } - /** - * Some assets were destroyed. - **/ - | { name: 'Burned'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; balance: bigint } } - /** - * The management team changed. - **/ - | { - name: 'TeamChanged'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - }; - } - /** - * The owner changed. - **/ - | { name: 'OwnerChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } } - /** - * Some account `who` was frozen. - **/ - | { name: 'Frozen'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some account `who` was thawed. - **/ - | { name: 'Thawed'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some asset `asset_id` was frozen. - **/ - | { name: 'AssetFrozen'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Some asset `asset_id` was thawed. - **/ - | { name: 'AssetThawed'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Accounts were destroyed for given asset. - **/ - | { - name: 'AccountsDestroyed'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; accountsDestroyed: number; accountsRemaining: number }; - } - /** - * Approvals were destroyed for given asset. - **/ - | { - name: 'ApprovalsDestroyed'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; approvalsDestroyed: number; approvalsRemaining: number }; - } - /** - * An asset class is in the process of being destroyed. - **/ - | { name: 'DestructionStarted'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * An asset class was destroyed. - **/ - | { name: 'Destroyed'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * Some asset class was force-created. - **/ - | { name: 'ForceCreated'; data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 } } - /** - * New metadata has been set for an asset. - **/ - | { - name: 'MetadataSet'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - }; - } - /** - * Metadata has been cleared for an asset. - **/ - | { name: 'MetadataCleared'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * (Additional) funds have been approved for transfer to a destination account. - **/ - | { - name: 'ApprovedTransfer'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - source: AccountId32; - delegate: AccountId32; - amount: bigint; - }; - } - /** - * An approval for account `delegate` was cancelled by `owner`. - **/ - | { - name: 'ApprovalCancelled'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; delegate: AccountId32 }; - } - /** - * An `amount` was transferred in its entirety from `owner` to `destination` by - * the approved `delegate`. - **/ - | { - name: 'TransferredApproved'; - data: { - assetId: StagingXcmV3MultilocationMultiLocation; - owner: AccountId32; - delegate: AccountId32; - destination: AccountId32; - amount: bigint; - }; - } - /** - * An asset has had its attributes changed by the `Force` origin. - **/ - | { name: 'AssetStatusChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation } } - /** - * The min_balance of an asset has been updated by the asset owner. - **/ - | { name: 'AssetMinBalanceChanged'; data: { assetId: StagingXcmV3MultilocationMultiLocation; newMinBalance: bigint } } - /** - * Some account `who` was created with a deposit from `depositor`. - **/ - | { - name: 'Touched'; - data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; depositor: AccountId32 }; - } - /** - * Some account `who` was blocked. - **/ - | { name: 'Blocked'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 } } - /** - * Some assets were deposited (e.g. for transaction fees). - **/ - | { name: 'Deposited'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint } } - /** - * Some assets were withdrawn from the account (e.g. for transaction fees). - **/ - | { name: 'Withdrawn'; data: { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletNftFractionalizationEvent = - /** - * An NFT was successfully fractionalized. - **/ - | { - name: 'NftFractionalized'; - data: { nftCollection: number; nft: number; fractions: bigint; asset: number; beneficiary: AccountId32 }; - } - /** - * An NFT was successfully returned back. - **/ - | { name: 'NftUnified'; data: { nftCollection: number; nft: number; asset: number; beneficiary: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionEvent = - /** - * A successful call of the `CreatePool` extrinsic will create this event. - **/ - | { - name: 'PoolCreated'; - data: { - /** - * The account that created the pool. - **/ - creator: AccountId32; - - /** - * The pool id associated with the pool. Note that the order of the assets may not be - * the same as the order specified in the create pool extrinsic. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account ID of the pool. - **/ - poolAccount: AccountId32; - - /** - * The id of the liquidity tokens that will be minted when assets are added to this - * pool. - **/ - lpToken: number; - }; - } - /** - * A successful call of the `AddLiquidity` extrinsic will create this event. - **/ - | { - name: 'LiquidityAdded'; - data: { - /** - * The account that the liquidity was taken from. - **/ - who: AccountId32; - - /** - * The account that the liquidity tokens were minted to. - **/ - mintTo: AccountId32; - - /** - * The pool id of the pool that the liquidity was added to. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was added to the pool. - **/ - amount1Provided: bigint; - - /** - * The amount of the second asset that was added to the pool. - **/ - amount2Provided: bigint; - - /** - * The id of the lp token that was minted. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were minted of that id. - **/ - lpTokenMinted: bigint; - }; - } - /** - * A successful call of the `RemoveLiquidity` extrinsic will create this event. - **/ - | { - name: 'LiquidityRemoved'; - data: { - /** - * The account that the liquidity tokens were burned from. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - withdrawTo: AccountId32; - - /** - * The pool id that the liquidity was removed from. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The amount of the first asset that was removed from the pool. - **/ - amount1: bigint; - - /** - * The amount of the second asset that was removed from the pool. - **/ - amount2: bigint; - - /** - * The id of the lp token that was burned. - **/ - lpToken: number; - - /** - * The amount of lp tokens that were burned of that id. - **/ - lpTokenBurned: bigint; - - /** - * Liquidity withdrawal fee (%). - **/ - withdrawalFee: Permill; - }; - } - /** - * Assets have been converted from one to another. Both `SwapExactTokenForToken` - * and `SwapTokenForExactToken` will generate this event. - **/ - | { - name: 'SwapExecuted'; - data: { - /** - * Which account was the instigator of the swap. - **/ - who: AccountId32; - - /** - * The account that the assets were transferred to. - **/ - sendTo: AccountId32; - - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - }; - } - /** - * Assets have been converted from one to another. - **/ - | { - name: 'SwapCreditExecuted'; - data: { - /** - * The amount of the first asset that was swapped. - **/ - amountIn: bigint; - - /** - * The amount of the second asset that was received. - **/ - amountOut: bigint; - - /** - * The route of asset IDs with amounts that the swap went through. - * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) - **/ - path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>; - }; - } - /** - * Pool has been touched in order to fulfill operational requirements. - **/ - | { - name: 'Touched'; - data: { - /** - * The ID of the pool. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * The account initiating the touch. - **/ - who: AccountId32; - }; - }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsFreezerEvent = - | { name: 'Frozen'; data: { who: AccountId32; assetId: number; amount: bigint } } - | { name: 'Thawed'; data: { who: AccountId32; assetId: number; amount: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetsFreezerEvent002 = - | { name: 'Frozen'; data: { who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint } } - | { name: 'Thawed'; data: { who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint } }; - -/** - * Inner events of this pallet. - **/ -export type PalletStateTrieMigrationEvent = - /** - * Given number of `(top, child)` keys were migrated respectively, with the given - * `compute`. - **/ - | { name: 'Migrated'; data: { top: number; child: number; compute: PalletStateTrieMigrationMigrationCompute } } - /** - * Some account got slashed by the given amount. - **/ - | { name: 'Slashed'; data: { who: AccountId32; amount: bigint } } - /** - * The auto migration task finished. - **/ - | { name: 'AutoMigrationFinished' } - /** - * Migration got halted due to an error or miss-configuration. - **/ - | { name: 'Halted'; data: { error: PalletStateTrieMigrationError } }; - -export type PalletStateTrieMigrationMigrationCompute = 'Signed' | 'Auto'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletStateTrieMigrationError = - /** - * Max signed limits not respected. - **/ - | 'MaxSignedLimits' - /** - * A key was longer than the configured maximum. - * - * This means that the migration halted at the current [`Progress`] and - * can be resumed with a larger [`crate::Config::MaxKeyLen`] value. - * Retrying with the same [`crate::Config::MaxKeyLen`] value will not work. - * The value should only be increased to avoid a storage migration for the currently - * stored [`crate::Progress::LastKey`]. - **/ - | 'KeyTooLong' - /** - * submitter does not have enough funds. - **/ - | 'NotEnoughFunds' - /** - * Bad witness data provided. - **/ - | 'BadWitness' - /** - * Signed migration is not allowed because the maximum limit is not set yet. - **/ - | 'SignedMigrationNotAllowed' - /** - * Bad child root provided. - **/ - | 'BadChildRoot'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletAssetConversionOpsEvent = - /** - * Indicates that a pool has been migrated to the new account ID. - **/ - { - name: 'MigratedToNewAccount'; - data: { - /** - * Pool's ID. - **/ - poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]; - - /** - * Pool's prior account ID. - **/ - priorAccount: AccountId32; - - /** - * Pool's new account ID. - **/ - newAccount: AccountId32; - }; - }; - -export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string }; - -export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type FrameSystemCall = - /** - * Make some on-chain remark. - * - * Can be executed by every `origin`. - **/ - | { name: 'Remark'; params: { remark: Bytes } } - /** - * Set the number of pages in the WebAssembly environment's heap. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * Set the new runtime code. - **/ - | { name: 'SetCode'; params: { code: Bytes } } - /** - * Set the new runtime code without doing any checks of the given `code`. - * - * Note that runtime upgrades will not run if this is called with a not-increasing spec - * version! - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: Bytes } } - /** - * Set some items of storage. - **/ - | { name: 'SetStorage'; params: { items: Array<[Bytes, Bytes]> } } - /** - * Kill some items from storage. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. - **/ - | { name: 'KillPrefix'; params: { prefix: Bytes; subkeys: number } } - /** - * Make some on-chain remark and emit event. - **/ - | { name: 'RemarkWithEvent'; params: { remark: Bytes } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * WARNING: This authorizes an upgrade that will take place without any safety checks, for - * example that the spec name remains the same and that the version number increases. Not - * recommended for normal use. Use `authorize_upgrade` instead. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Depending on the runtime's `OnSetCode` configuration, this function may directly apply - * the new `code` in the same block or attempt to schedule the upgrade. - * - * All origins are allowed. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: Bytes } }; - -export type FrameSystemCallLike = - /** - * Make some on-chain remark. - * - * Can be executed by every `origin`. - **/ - | { name: 'Remark'; params: { remark: BytesLike } } - /** - * Set the number of pages in the WebAssembly environment's heap. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * Set the new runtime code. - **/ - | { name: 'SetCode'; params: { code: BytesLike } } - /** - * Set the new runtime code without doing any checks of the given `code`. - * - * Note that runtime upgrades will not run if this is called with a not-increasing spec - * version! - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: BytesLike } } - /** - * Set some items of storage. - **/ - | { name: 'SetStorage'; params: { items: Array<[BytesLike, BytesLike]> } } - /** - * Kill some items from storage. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. - **/ - | { name: 'KillPrefix'; params: { prefix: BytesLike; subkeys: number } } - /** - * Make some on-chain remark and emit event. - **/ - | { name: 'RemarkWithEvent'; params: { remark: BytesLike } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * WARNING: This authorizes an upgrade that will take place without any safety checks, for - * example that the spec name remains the same and that the version number increases. Not - * recommended for normal use. Use `authorize_upgrade` instead. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Depending on the runtime's `OnSetCode` configuration, this function may directly apply - * the new `code` in the same block or attempt to schedule the upgrade. - * - * All origins are allowed. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type FrameSystemLimitsBlockWeights = { - baseBlock: SpWeightsWeightV2Weight; - maxBlock: SpWeightsWeightV2Weight; - perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; -}; - -export type FrameSupportDispatchPerDispatchClassWeightsPerClass = { - normal: FrameSystemLimitsWeightsPerClass; - operational: FrameSystemLimitsWeightsPerClass; - mandatory: FrameSystemLimitsWeightsPerClass; -}; - -export type FrameSystemLimitsWeightsPerClass = { - baseExtrinsic: SpWeightsWeightV2Weight; - maxExtrinsic?: SpWeightsWeightV2Weight | undefined; - maxTotal?: SpWeightsWeightV2Weight | undefined; - reserved?: SpWeightsWeightV2Weight | undefined; -}; - -export type FrameSystemLimitsBlockLength = { max: FrameSupportDispatchPerDispatchClassU32 }; - -export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number }; - -export type SpWeightsRuntimeDbWeight = { read: bigint; write: bigint }; - -/** - * Error for the System pallet - **/ -export type FrameSystemError = - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - | 'InvalidSpecName' - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - | 'SpecVersionNeedsToIncrease' - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - | 'FailedToExtractRuntimeVersion' - /** - * Suicide called when the account has non-default composite data. - **/ - | 'NonDefaultComposite' - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - | 'NonZeroRefCount' - /** - * The origin filter prevent the call to be dispatched. - **/ - | 'CallFiltered' - /** - * A multi-block migration is ongoing and prevents the current code from being replaced. - **/ - | 'MultiBlockMigrationsOngoing' - /** - * No upgrade authorized. - **/ - | 'NothingAuthorized' - /** - * The submitted code is not authorized. - **/ - | 'Unauthorized'; - -export type CumulusPalletParachainSystemUnincludedSegmentAncestor = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - paraHeadHash?: H256 | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = { - umpMsgCount: number; - umpTotalBytes: number; - hrmpOutgoing: Array< - [PolkadotParachainPrimitivesPrimitivesId, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate] - >; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number }; - -export type PolkadotPrimitivesV7UpgradeGoAhead = 'Abort' | 'GoAhead'; - -export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - hrmpWatermark?: number | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined; -}; - -export type PolkadotPrimitivesV7PersistedValidationData = { - parentHead: PolkadotParachainPrimitivesPrimitivesHeadData; - relayParentNumber: number; - relayParentStorageRoot: H256; - maxPovSize: number; -}; - -export type PolkadotParachainPrimitivesPrimitivesHeadData = Bytes; - -export type PolkadotPrimitivesV7UpgradeRestriction = 'Present'; - -export type SpTrieStorageProof = { trieNodes: Array }; - -export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = { - dmqMqcHead: H256; - relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; - ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>; - egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>; -}; - -export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = { - remainingCount: number; - remainingSize: number; -}; - -export type PolkadotPrimitivesV7AbridgedHrmpChannel = { - maxCapacity: number; - maxTotalSize: number; - maxMessageSize: number; - msgCount: number; - totalSize: number; - mqcHead?: H256 | undefined; -}; - -export type PolkadotPrimitivesV7AbridgedHostConfiguration = { - maxCodeSize: number; - maxHeadDataSize: number; - maxUpwardQueueCount: number; - maxUpwardQueueSize: number; - maxUpwardMessageSize: number; - maxUpwardMessageNumPerCandidate: number; - hrmpMaxMessageNumPerCandidate: number; - validationUpgradeCooldown: number; - validationUpgradeDelay: number; - asyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams; -}; - -export type PolkadotPrimitivesV7AsyncBackingAsyncBackingParams = { - maxCandidateDepth: number; - allowedAncestryLen: number; -}; - -export type CumulusPrimitivesParachainInherentMessageQueueChain = H256; - -export type PolkadotCorePrimitivesOutboundHrmpMessage = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - data: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletParachainSystemCall = - /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - | { name: 'SudoSendUpwardMessage'; params: { message: Bytes } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: Bytes } }; - -export type CumulusPalletParachainSystemCallLike = - /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type CumulusPrimitivesParachainInherentParachainInherentData = { - validationData: PolkadotPrimitivesV7PersistedValidationData; - relayChainState: SpTrieStorageProof; - downwardMessages: Array; - horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array]>; -}; - -export type PolkadotCorePrimitivesInboundDownwardMessage = { sentAt: number; msg: Bytes }; - -export type PolkadotCorePrimitivesInboundHrmpMessage = { sentAt: number; data: Bytes }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletParachainSystemError = - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - | 'OverlappingUpgrades' - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - | 'ProhibitedByPolkadot' - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - | 'TooBig' - /** - * The inherent which supplies the validation data did not run this block. - **/ - | 'ValidationDataNotAvailable' - /** - * The inherent which supplies the host configuration did not run this block. - **/ - | 'HostConfigurationNotAvailable' - /** - * No validation function upgrade is currently scheduled. - **/ - | 'NotScheduled' - /** - * No code upgrade has been authorized. - **/ - | 'NothingAuthorized' - /** - * The given code upgrade has not been authorized. - **/ - | 'Unauthorized'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletTimestampCall = - /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * [`Config::MinimumPeriod`]. - * - * The dispatch origin for this call must be _None_. - * - * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware - * that changing the complexity of this call could result exhausting the resources in a - * block to execute any other calls. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. - **/ - { name: 'Set'; params: { now: bigint } }; - -export type PalletTimestampCallLike = - /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * [`Config::MinimumPeriod`]. - * - * The dispatch origin for this call must be _None_. - * - * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware - * that changing the complexity of this call could result exhausting the resources in a - * block to execute any other calls. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. - **/ - { name: 'Set'; params: { now: bigint } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type StagingParachainInfoCall = null; - -export type StagingParachainInfoCallLike = null; - -export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons }; - -export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All'; - -export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint }; - -export type FrameSupportTokensMiscIdAmount = { id: AssetHubWestendRuntimeRuntimeHoldReason; amount: bigint }; - -export type AssetHubWestendRuntimeRuntimeHoldReason = - | { type: 'NftFractionalization'; value: PalletNftFractionalizationHoldReason } - | { type: 'StateTrieMigration'; value: PalletStateTrieMigrationHoldReason }; - -export type PalletNftFractionalizationHoldReason = 'Fractionalized'; - -export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate'; - -export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletBalancesCall = - /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddress; value: bigint } } - /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddress; dest: MultiAddress; value: bigint } } - /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddress; value: bigint } } - /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - **/ - | { name: 'TransferAll'; params: { dest: MultiAddress; keepAlive: boolean } } - /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddress; amount: bigint } } - /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibility of churn). - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddress; newFree: bigint } } - /** - * Adjust the total issuance in a saturating way. - * - * Can only be called by root and always needs a positive `delta`. - * - * # Example - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } } - /** - * Burn the specified liquid free balance from the origin account. - * - * If the origin's account ends up below the existential deposit as a result - * of the burn and `keep_alive` is false, the account will be reaped. - * - * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, - * this `burn` operation will reduce total issuance by the amount _burned_. - **/ - | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } }; - -export type PalletBalancesCallLike = - /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddressLike; value: bigint } } - /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint } } - /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddressLike; value: bigint } } - /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - **/ - | { name: 'TransferAll'; params: { dest: MultiAddressLike; keepAlive: boolean } } - /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddressLike; amount: bigint } } - /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibility of churn). - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddressLike; newFree: bigint } } - /** - * Adjust the total issuance in a saturating way. - * - * Can only be called by root and always needs a positive `delta`. - * - * # Example - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } } - /** - * Burn the specified liquid free balance from the origin account. - * - * If the origin's account ends up below the existential deposit as a result - * of the burn and `keep_alive` is false, the account will be reaped. - * - * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, - * this `burn` operation will reduce total issuance by the amount _burned_. - **/ - | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } }; - -export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletBalancesError = - /** - * Vesting balance too high to send value. - **/ - | 'VestingBalance' - /** - * Account liquidity restrictions prevent withdrawal. - **/ - | 'LiquidityRestrictions' - /** - * Balance too low to send value. - **/ - | 'InsufficientBalance' - /** - * Value too low to create account due to existential deposit. - **/ - | 'ExistentialDeposit' - /** - * Transfer/payment would kill account. - **/ - | 'Expendability' - /** - * A vesting schedule already exists for this account. - **/ - | 'ExistingVestingSchedule' - /** - * Beneficiary account must pre-exist. - **/ - | 'DeadAccount' - /** - * Number of named reserves exceed `MaxReserves`. - **/ - | 'TooManyReserves' - /** - * Number of holds exceed `VariantCountOf`. - **/ - | 'TooManyHolds' - /** - * Number of freezes exceed `MaxFreezes`. - **/ - | 'TooManyFreezes' - /** - * The issuance cannot be modified since it is already deactivated. - **/ - | 'IssuanceDeactivated' - /** - * The delta cannot be zero. - **/ - | 'DeltaZero'; - -export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2'; - -export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletCollatorSelectionCall = - /** - * Set the list of invulnerable (fixed) collators. These collators must do some - * preparation, namely to have registered session keys. - * - * The call will remove any accounts that have not registered keys from the set. That is, - * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as - * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. - * - * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It - * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A - * `batch_all` can also be used to enforce atomicity. If any candidates are included in - * `new`, they should be removed with `remove_invulnerable_candidate` after execution. - * - * Must be called by the `UpdateOrigin`. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * Set the ideal number of non-invulnerable collators. If lowering this number, then the - * number of running collators could be higher than this figure. Aside from that edge case, - * there should be no other way to have more candidates than the desired number. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * Set the candidacy bond amount. - * - * If the candidacy bond is increased by this call, all current candidates which have a - * deposit lower than the new bond will be kicked from the list and get their deposits - * back. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * Register this account as a collator candidate. The account must (a) already have - * registered session keys and (b) be able to reserve the `CandidacyBond`. - * - * This call is not available to `Invulnerable` collators. - **/ - | { name: 'RegisterAsCandidate' } - /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The `CandidacyBond` will be unreserved immediately. - * - * This call will fail if the total number of candidates would drop below - * `MinEligibleCollators`. - **/ - | { name: 'LeaveIntent' } - /** - * Add a new account `who` to the list of `Invulnerables` collators. `who` must have - * registered session keys. If `who` is a candidate, they will be removed. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32 } } - /** - * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must - * be sorted. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32 } } - /** - * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. - * - * Setting a `new_deposit` that is lower than the current deposit while `origin` is - * occupying a top-`DesiredCandidates` slot is not allowed. - * - * This call will fail if `origin` is not a collator candidate, the updated bond is lower - * than the minimum candidacy bond, and/or the amount cannot be reserved. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * The caller `origin` replaces a candidate `target` in the collator candidate list by - * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than - * the existing bond of the target it is trying to replace. - * - * This call will fail if the caller is already a collator candidate or invulnerable, the - * caller does not have registered session keys, the target is not a collator candidate, - * and/or the `deposit` amount cannot be reserved. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32 } }; - -export type PalletCollatorSelectionCallLike = - /** - * Set the list of invulnerable (fixed) collators. These collators must do some - * preparation, namely to have registered session keys. - * - * The call will remove any accounts that have not registered keys from the set. That is, - * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as - * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. - * - * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It - * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A - * `batch_all` can also be used to enforce atomicity. If any candidates are included in - * `new`, they should be removed with `remove_invulnerable_candidate` after execution. - * - * Must be called by the `UpdateOrigin`. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * Set the ideal number of non-invulnerable collators. If lowering this number, then the - * number of running collators could be higher than this figure. Aside from that edge case, - * there should be no other way to have more candidates than the desired number. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * Set the candidacy bond amount. - * - * If the candidacy bond is increased by this call, all current candidates which have a - * deposit lower than the new bond will be kicked from the list and get their deposits - * back. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * Register this account as a collator candidate. The account must (a) already have - * registered session keys and (b) be able to reserve the `CandidacyBond`. - * - * This call is not available to `Invulnerable` collators. - **/ - | { name: 'RegisterAsCandidate' } - /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The `CandidacyBond` will be unreserved immediately. - * - * This call will fail if the total number of candidates would drop below - * `MinEligibleCollators`. - **/ - | { name: 'LeaveIntent' } - /** - * Add a new account `who` to the list of `Invulnerables` collators. `who` must have - * registered session keys. If `who` is a candidate, they will be removed. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32Like } } - /** - * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must - * be sorted. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32Like } } - /** - * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. - * - * Setting a `new_deposit` that is lower than the current deposit while `origin` is - * occupying a top-`DesiredCandidates` slot is not allowed. - * - * This call will fail if `origin` is not a collator candidate, the updated bond is lower - * than the minimum candidacy bond, and/or the amount cannot be reserved. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * The caller `origin` replaces a candidate `target` in the collator candidate list by - * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than - * the existing bond of the target it is trying to replace. - * - * This call will fail if the caller is already a collator candidate or invulnerable, the - * caller does not have registered session keys, the target is not a collator candidate, - * and/or the `deposit` amount cannot be reserved. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32Like } }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletCollatorSelectionError = - /** - * The pallet has too many candidates. - **/ - | 'TooManyCandidates' - /** - * Leaving would result in too few candidates. - **/ - | 'TooFewEligibleCollators' - /** - * Account is already a candidate. - **/ - | 'AlreadyCandidate' - /** - * Account is not a candidate. - **/ - | 'NotCandidate' - /** - * There are too many Invulnerables. - **/ - | 'TooManyInvulnerables' - /** - * Account is already an Invulnerable. - **/ - | 'AlreadyInvulnerable' - /** - * Account is not an Invulnerable. - **/ - | 'NotInvulnerable' - /** - * Account has no associated validator ID. - **/ - | 'NoAssociatedValidatorId' - /** - * Validator ID is not yet registered. - **/ - | 'ValidatorNotRegistered' - /** - * Could not insert in the candidate list. - **/ - | 'InsertToCandidateListFailed' - /** - * Could not remove from the candidate list. - **/ - | 'RemoveFromCandidateListFailed' - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - | 'DepositTooLow' - /** - * Could not update the candidate list. - **/ - | 'UpdateCandidateListFailed' - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - | 'InsufficientBond' - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - | 'TargetIsNotCandidate' - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - | 'IdenticalDeposit' - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - | 'InvalidUnreserve'; - -export type AssetHubWestendRuntimeSessionKeys = { aura: SpConsensusAuraSr25519AppSr25519Public }; - -export type SpConsensusAuraSr25519AppSr25519Public = FixedBytes<32>; - -export type SpCoreCryptoKeyTypeId = FixedBytes<4>; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletSessionCall = - /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. - **/ - | { name: 'SetKeys'; params: { keys: AssetHubWestendRuntimeSessionKeys; proof: Bytes } } - /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. - **/ - | { name: 'PurgeKeys' }; - -export type PalletSessionCallLike = - /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. - **/ - | { name: 'SetKeys'; params: { keys: AssetHubWestendRuntimeSessionKeys; proof: BytesLike } } - /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. - **/ - | { name: 'PurgeKeys' }; - -/** - * Error for the session pallet. - **/ -export type PalletSessionError = - /** - * Invalid ownership proof. - **/ - | 'InvalidProof' - /** - * No associated validator ID for account. - **/ - | 'NoAssociatedValidatorId' - /** - * Registered duplicate key. - **/ - | 'DuplicatedKey' - /** - * No keys are associated with this account. - **/ - | 'NoKeys' - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - | 'NoAccount'; - -export type SpConsensusSlotsSlot = bigint; - -export type CumulusPalletXcmpQueueOutboundChannelDetails = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - state: CumulusPalletXcmpQueueOutboundState; - signalsExist: boolean; - firstIndex: number; - lastIndex: number; -}; - -export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended'; - -export type CumulusPalletXcmpQueueQueueConfigData = { - suspendThreshold: number; - dropThreshold: number; - resumeThreshold: number; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmpQueueCall = - /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'SuspendXcmExecution' } - /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'ResumeXcmExecution' } - /** - * Overwrites the number of pages which must be in the queue for the other side to be - * told to suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which must be in the queue after which we drop any - * further messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which the queue must be reduced to before it signals - * that message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -export type CumulusPalletXcmpQueueCallLike = - /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'SuspendXcmExecution' } - /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'ResumeXcmExecution' } - /** - * Overwrites the number of pages which must be in the queue for the other side to be - * told to suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which must be in the queue after which we drop any - * further messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which the queue must be reduced to before it signals - * that message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletXcmpQueueError = - /** - * Setting the queue config failed since one of its values was invalid. - **/ - | 'BadQueueConfig' - /** - * The execution is already suspended. - **/ - | 'AlreadySuspended' - /** - * The execution is already resumed. - **/ - | 'AlreadyResumed' - /** - * There are too many active outbound channels. - **/ - | 'TooManyActiveOutboundChannels' - /** - * The message is too big. - **/ - | 'TooBig'; - -export type PalletXcmQueryStatus = - | { - type: 'Pending'; - value: { - responder: XcmVersionedLocation; - maybeMatchQuerier?: XcmVersionedLocation | undefined; - maybeNotify?: [number, number] | undefined; - timeout: number; - }; - } - | { type: 'VersionNotifier'; value: { origin: XcmVersionedLocation; isActive: boolean } } - | { type: 'Ready'; value: { response: XcmVersionedResponse; at: number } }; - -export type XcmVersionedResponse = - | { type: 'V2'; value: XcmV2Response } - | { type: 'V3'; value: XcmV3Response } - | { type: 'V4'; value: StagingXcmV4Response }; - -export type XcmV2Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV2MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV2TraitsError] | undefined } - | { type: 'Version'; value: number }; - -export type XcmV2TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'MultiLocationFull' } - | { type: 'MultiLocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: bigint } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' }; - -export type XcmV3Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type XcmV3PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type PalletXcmVersionMigrationStage = - | { type: 'MigrateSupportedVersion' } - | { type: 'MigrateVersionNotifiers' } - | { type: 'NotifyCurrentTargets'; value?: Bytes | undefined } - | { type: 'MigrateAndNotifyOldTargets' }; - -export type XcmVersionedAssetId = - | { type: 'V3'; value: XcmV3MultiassetAssetId } - | { type: 'V4'; value: StagingXcmV4AssetAssetId }; - -export type PalletXcmRemoteLockedFungibleRecord = { - amount: bigint; - owner: XcmVersionedLocation; - locker: XcmVersionedLocation; - consumers: Array<[[], bigint]>; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletXcmCall = - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * Teleport some assets from the local chain to some destination chain. - * - * **This function is deprecated: Use `limited_teleport_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than - * the maximum amount of weight that the message could take to be executed, then no - * execution attempt will be made. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve, or through teleports. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for - * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the - * operation will fail and the sent assets may be at risk. - * - * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable - * to `dest`, no limitations imposed on `fees`. - * - for local reserve: transfer assets to sovereign account of destination chain and - * forward a notification XCM to `dest` to mint and deposit reserve-based assets to - * `beneficiary`. - * - for destination reserve: burn local assets and forward a notification to `dest` chain - * to withdraw the reserve assets from this chain's sovereign account and deposit them - * to `beneficiary`. - * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves - * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint - * and deposit reserve-based assets to `beneficiary`. - * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport - * assets and deposit them to `beneficiary`. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, - * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send - * from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Claims assets trapped on this pallet because of leftover assets during XCM execution. - * - * - `origin`: Anyone can call this extrinsic. - * - `assets`: The exact assets that were trapped. Use the version to specify what version - * was the latest when they were trapped. - * - `beneficiary`: The location/account where the claimed assets will be deposited. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * Transfer assets from the local chain to the destination chain using explicit transfer - * types for assets and fees. - * - * `assets` must have same reserve location or may be teleportable to `dest`. Caller must - * provide the `assets_transfer_type` to be used for `assets`: - * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `TransferType::DestinationReserve`: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve` - * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another - * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically - * the remote `reserve` is Asset Hub. - * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to - * mint/teleport assets and deposit them to `beneficiary`. - * - * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to - * buy execution using transferred `assets` identified by `remote_fees_id`. - * Make sure enough of the specified `remote_fees_id` asset is included in the given list - * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * `remote_fees_id` may use different transfer type than rest of `assets` and can be - * specified through `fees_transfer_type`. - * - * The caller needs to specify what should happen to the transferred assets once they reach - * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which - * contains the instructions to execute on `dest` as a final step. - * This is usually as simple as: - * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`, - * but could be something more exotic like sending the `assets` even further. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from - * parachain across a bridge to another ecosystem destination. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`. - * - `remote_fees_id`: One of the included `assets` to be used to pay fees. - * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets. - * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the - * transfer, which also determines what happens to the assets on the destination chain. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type PalletXcmCallLike = - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * Teleport some assets from the local chain to some destination chain. - * - * **This function is deprecated: Use `limited_teleport_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than - * the maximum amount of weight that the message could take to be executed, then no - * execution attempt will be made. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve, or through teleports. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for - * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the - * operation will fail and the sent assets may be at risk. - * - * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable - * to `dest`, no limitations imposed on `fees`. - * - for local reserve: transfer assets to sovereign account of destination chain and - * forward a notification XCM to `dest` to mint and deposit reserve-based assets to - * `beneficiary`. - * - for destination reserve: burn local assets and forward a notification to `dest` chain - * to withdraw the reserve assets from this chain's sovereign account and deposit them - * to `beneficiary`. - * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves - * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint - * and deposit reserve-based assets to `beneficiary`. - * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport - * assets and deposit them to `beneficiary`. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, - * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send - * from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Claims assets trapped on this pallet because of leftover assets during XCM execution. - * - * - `origin`: Anyone can call this extrinsic. - * - `assets`: The exact assets that were trapped. Use the version to specify what version - * was the latest when they were trapped. - * - `beneficiary`: The location/account where the claimed assets will be deposited. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * Transfer assets from the local chain to the destination chain using explicit transfer - * types for assets and fees. - * - * `assets` must have same reserve location or may be teleportable to `dest`. Caller must - * provide the `assets_transfer_type` to be used for `assets`: - * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `TransferType::DestinationReserve`: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve` - * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another - * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically - * the remote `reserve` is Asset Hub. - * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to - * mint/teleport assets and deposit them to `beneficiary`. - * - * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to - * buy execution using transferred `assets` identified by `remote_fees_id`. - * Make sure enough of the specified `remote_fees_id` asset is included in the given list - * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * `remote_fees_id` may use different transfer type than rest of `assets` and can be - * specified through `fees_transfer_type`. - * - * The caller needs to specify what should happen to the transferred assets once they reach - * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which - * contains the instructions to execute on `dest` as a final step. - * This is usually as simple as: - * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`, - * but could be something more exotic like sending the `assets` even further. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from - * parachain across a bridge to another ecosystem destination. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`. - * - `remote_fees_id`: One of the included `assets` to be used to pay fees. - * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets. - * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the - * transfer, which also determines what happens to the assets on the destination chain. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type XcmVersionedXcm = - | { type: 'V2'; value: XcmV2Xcm } - | { type: 'V3'; value: XcmV3Xcm } - | { type: 'V4'; value: StagingXcmV4Xcm }; - -export type XcmV2Xcm = Array; - -export type XcmV2Instruction = - | { type: 'WithdrawAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'QueryResponse'; value: { queryId: bigint; response: XcmV2Response; maxWeight: bigint } } - | { - type: 'TransferAsset'; - value: { assets: XcmV2MultiassetMultiAssets; beneficiary: XcmV2MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV2MultiassetMultiAssets; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { type: 'Transact'; value: { originType: XcmV2OriginKind; requireWeightAtMost: bigint; call: XcmDoubleEncoded } } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV2MultilocationJunctions } - | { - type: 'ReportError'; - value: { queryId: bigint; dest: XcmV2MultilocationMultiLocation; maxResponseWeight: bigint }; - } - | { - type: 'DepositAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - beneficiary: XcmV2MultilocationMultiLocation; - }; - } - | { - type: 'DepositReserveAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - dest: XcmV2MultilocationMultiLocation; - xcm: XcmV2Xcm; - }; - } - | { type: 'ExchangeAsset'; value: { give: XcmV2MultiassetMultiAssetFilter; receive: XcmV2MultiassetMultiAssets } } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: XcmV2MultiassetMultiAssetFilter; reserve: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV2MultiassetMultiAssetFilter; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'QueryHolding'; - value: { - queryId: bigint; - dest: XcmV2MultilocationMultiLocation; - assets: XcmV2MultiassetMultiAssetFilter; - maxResponseWeight: bigint; - }; - } - | { type: 'BuyExecution'; value: { fees: XcmV2MultiassetMultiAsset; weightLimit: XcmV2WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV2Xcm } - | { type: 'SetAppendix'; value: XcmV2Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: XcmV2MultiassetMultiAssets; ticket: XcmV2MultilocationMultiLocation } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } } - | { type: 'UnsubscribeVersion' }; - -export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; - -export type XcmV2MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV2MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset }; - -export type XcmV2MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetWildFungibility } }; - -export type XcmV2MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV2WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: bigint }; - -export type XcmV3Xcm = Array; - -export type XcmV3Instruction = - | { type: 'WithdrawAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV3MultiassetMultiAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: XcmV3Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV3MultilocationMultiLocation | undefined; - }; - } - | { - type: 'TransferAsset'; - value: { assets: XcmV3MultiassetMultiAssets; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssets; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV3Junctions } - | { type: 'ReportError'; value: XcmV3QueryResponseInfo } - | { - type: 'DepositAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'DepositReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: XcmV3MultiassetMultiAssetFilter; want: XcmV3MultiassetMultiAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { - assets: XcmV3MultiassetMultiAssetFilter; - reserve: StagingXcmV3MultilocationMultiLocation; - xcm: XcmV3Xcm; - }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { type: 'ReportHolding'; value: { responseInfo: XcmV3QueryResponseInfo; assets: XcmV3MultiassetMultiAssetFilter } } - | { type: 'BuyExecution'; value: { fees: XcmV3MultiassetMultiAsset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV3Xcm } - | { type: 'SetAppendix'; value: XcmV3Xcm } - | { type: 'ClearError' } - | { - type: 'ClaimAsset'; - value: { assets: XcmV3MultiassetMultiAssets; ticket: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV3MultilocationMultiLocation | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: XcmV3QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: XcmV3QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: XcmV3Junction } - | { type: 'ExportMessage'; value: { network: XcmV3JunctionNetworkId; destination: XcmV3Junctions; xcm: XcmV3Xcm } } - | { type: 'LockAsset'; value: { asset: XcmV3MultiassetMultiAsset; unlocker: StagingXcmV3MultilocationMultiLocation } } - | { type: 'UnlockAsset'; value: { asset: XcmV3MultiassetMultiAsset; target: StagingXcmV3MultilocationMultiLocation } } - | { - type: 'NoteUnlockable'; - value: { asset: XcmV3MultiassetMultiAsset; owner: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'RequestUnlock'; - value: { asset: XcmV3MultiassetMultiAsset; locker: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV3MultilocationMultiLocation } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV3MultilocationMultiLocation | undefined }; - }; - -export type XcmV3QueryResponseInfo = { - destination: StagingXcmV3MultilocationMultiLocation; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type XcmV3MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV3MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV3MultiassetWildMultiAsset }; - -export type XcmV3MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { type: 'AllOfCounted'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility; count: number } }; - -export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type StagingXcmExecutorAssetTransferTransferType = - | { type: 'Teleport' } - | { type: 'LocalReserve' } - | { type: 'DestinationReserve' } - | { type: 'RemoteReserve'; value: XcmVersionedLocation }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletXcmError = - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - | 'Unreachable' - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - | 'SendFailure' - /** - * The message execution fails the filter. - **/ - | 'Filtered' - /** - * The message's weight could not be determined. - **/ - | 'UnweighableMessage' - /** - * The destination `Location` provided cannot be inverted. - **/ - | 'DestinationNotInvertible' - /** - * The assets to be sent are empty. - **/ - | 'Empty' - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - | 'CannotReanchor' - /** - * Too many assets have been attempted for transfer. - **/ - | 'TooManyAssets' - /** - * Origin is invalid for sending. - **/ - | 'InvalidOrigin' - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - | 'BadVersion' - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - | 'BadLocation' - /** - * The referenced subscription could not be found. - **/ - | 'NoSubscription' - /** - * The location is invalid since it already has a subscription from us. - **/ - | 'AlreadySubscribed' - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - | 'CannotCheckOutTeleport' - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - | 'LowBalance' - /** - * The asset owner has too many locks on the asset. - **/ - | 'TooManyLocks' - /** - * The given account is not an identifiable sovereign account for any location. - **/ - | 'AccountNotSovereign' - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - | 'FeesNotMet' - /** - * A remote lock with the corresponding data could not be found. - **/ - | 'LockNotFound' - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - | 'InUse' - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - | 'InvalidAssetUnknownReserve' - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - | 'InvalidAssetUnsupportedReserve' - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - | 'TooManyReserves' - /** - * Local XCM execution incomplete. - **/ - | 'LocalExecutionIncomplete'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmCall = null; - -export type CumulusPalletXcmCallLike = null; - -export type BpXcmBridgeHubRouterBridgeState = { deliveryFeeFactor: FixedU128; isCongested: boolean }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletXcmBridgeHubRouterCall = - /** - * Notification about congested bridge queue. - **/ - { name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } }; - -export type PalletXcmBridgeHubRouterCallLike = - /** - * Notification about congested bridge queue. - **/ - { name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } }; - -export type PalletMessageQueueBookState = { - begin: number; - end: number; - count: number; - readyNeighbours?: PalletMessageQueueNeighbours | undefined; - messageCount: bigint; - size: bigint; -}; - -export type PalletMessageQueueNeighbours = { - prev: CumulusPrimitivesCoreAggregateMessageOrigin; - next: CumulusPrimitivesCoreAggregateMessageOrigin; -}; - -export type PalletMessageQueuePage = { - remaining: number; - remainingSize: number; - firstIndex: number; - first: number; - last: number; - heap: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMessageQueueCall = - /** - * Remove a page which has no more messages remaining to be processed or is stale. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * Execute an overweight message. - * - * Temporary processing errors will be propagated whereas permanent errors are treated - * as success condition. - * - * - `origin`: Must be `Signed`. - * - `message_origin`: The origin from which the message to be executed arrived. - * - `page`: The page in the queue in which the message to be executed is sitting. - * - `index`: The index into the queue of the message to be executed. - * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution - * of the message. - * - * Benchmark complexity considerations: O(index + weight_limit). - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -export type PalletMessageQueueCallLike = - /** - * Remove a page which has no more messages remaining to be processed or is stale. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * Execute an overweight message. - * - * Temporary processing errors will be propagated whereas permanent errors are treated - * as success condition. - * - * - `origin`: Must be `Signed`. - * - `message_origin`: The origin from which the message to be executed arrived. - * - `page`: The page in the queue in which the message to be executed is sitting. - * - `index`: The index into the queue of the message to be executed. - * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution - * of the message. - * - * Benchmark complexity considerations: O(index + weight_limit). - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMessageQueueError = - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - | 'NotReapable' - /** - * Page to be reaped does not exist. - **/ - | 'NoPage' - /** - * The referenced message could not be found. - **/ - | 'NoMessage' - /** - * The message was already processed and cannot be processed again. - **/ - | 'AlreadyProcessed' - /** - * The message is queued for future execution. - **/ - | 'Queued' - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - | 'InsufficientWeight' - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - | 'TemporarilyUnprocessable' - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - | 'QueuePaused' - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - | 'RecursiveDisallowed'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletUtilityCall = - /** - * Send a batch of dispatch calls. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * This will return `Ok` in all circumstances. To determine the success of the batch, an - * event is deposited. If a call failed and the batch was interrupted, then the - * `BatchInterrupted` event is deposited, along with the number of successful calls made - * and the error of the failed call. If all were successful, then the `BatchCompleted` - * event is deposited. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * Send a call through an indexed pseudonym of the sender. - * - * Filter from origin are passed along. The call will be dispatched with an origin which - * use the same filter as the origin of this call. - * - * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. - * because you expect `proxy` to have been used prior in the call stack and you do not want - * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` - * in the Multisig pallet instead. - * - * NOTE: Prior to version *12, this was called `as_limited_sub`. - * - * The dispatch origin for this call must be _Signed_. - **/ - | { name: 'AsDerivative'; params: { index: number; call: AssetHubWestendRuntimeRuntimeCall } } - /** - * Send a batch of dispatch calls and atomically execute them. - * The whole transaction will rollback and fail if any of the calls failed. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * Dispatches a function call with a provided origin. - * - * The dispatch origin for this call must be _Root_. - * - * ## Complexity - * - O(1). - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: AssetHubWestendRuntimeOriginCaller; call: AssetHubWestendRuntimeRuntimeCall }; - } - /** - * Send a batch of dispatch calls. - * Unlike `batch`, it allows errors and won't interrupt. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatch without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * Dispatch a function call with a specified weight. - * - * This function does not check the weight of the call, and instead allows the - * Root origin to specify the weight of the call. - * - * The dispatch origin for this call must be _Root_. - **/ - | { name: 'WithWeight'; params: { call: AssetHubWestendRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }; - -export type PalletUtilityCallLike = - /** - * Send a batch of dispatch calls. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * This will return `Ok` in all circumstances. To determine the success of the batch, an - * event is deposited. If a call failed and the batch was interrupted, then the - * `BatchInterrupted` event is deposited, along with the number of successful calls made - * and the error of the failed call. If all were successful, then the `BatchCompleted` - * event is deposited. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * Send a call through an indexed pseudonym of the sender. - * - * Filter from origin are passed along. The call will be dispatched with an origin which - * use the same filter as the origin of this call. - * - * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. - * because you expect `proxy` to have been used prior in the call stack and you do not want - * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` - * in the Multisig pallet instead. - * - * NOTE: Prior to version *12, this was called `as_limited_sub`. - * - * The dispatch origin for this call must be _Signed_. - **/ - | { name: 'AsDerivative'; params: { index: number; call: AssetHubWestendRuntimeRuntimeCallLike } } - /** - * Send a batch of dispatch calls and atomically execute them. - * The whole transaction will rollback and fail if any of the calls failed. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * Dispatches a function call with a provided origin. - * - * The dispatch origin for this call must be _Root_. - * - * ## Complexity - * - O(1). - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: AssetHubWestendRuntimeOriginCaller; call: AssetHubWestendRuntimeRuntimeCallLike }; - } - /** - * Send a batch of dispatch calls. - * Unlike `batch`, it allows errors and won't interrupt. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatch without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * Dispatch a function call with a specified weight. - * - * This function does not check the weight of the call, and instead allows the - * Root origin to specify the weight of the call. - * - * The dispatch origin for this call must be _Root_. - **/ - | { name: 'WithWeight'; params: { call: AssetHubWestendRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }; - -export type AssetHubWestendRuntimeRuntimeCall = - | { pallet: 'System'; palletCall: FrameSystemCall } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCall } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCall } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall } - | { pallet: 'Balances'; palletCall: PalletBalancesCall } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall } - | { pallet: 'Session'; palletCall: PalletSessionCall } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCall } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCall } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCall } - | { pallet: 'ToRococoXcmRouter'; palletCall: PalletXcmBridgeHubRouterCall } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall } - | { pallet: 'Utility'; palletCall: PalletUtilityCall } - | { pallet: 'Multisig'; palletCall: PalletMultisigCall } - | { pallet: 'Proxy'; palletCall: PalletProxyCall } - | { pallet: 'Assets'; palletCall: PalletAssetsCall } - | { pallet: 'Uniques'; palletCall: PalletUniquesCall } - | { pallet: 'Nfts'; palletCall: PalletNftsCall } - | { pallet: 'ForeignAssets'; palletCall: PalletAssetsCall002 } - | { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCall } - | { pallet: 'PoolAssets'; palletCall: PalletAssetsCall003 } - | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCall } - | { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCall } - | { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCall }; - -export type AssetHubWestendRuntimeRuntimeCallLike = - | { pallet: 'System'; palletCall: FrameSystemCallLike } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCallLike } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike } - | { pallet: 'Balances'; palletCall: PalletBalancesCallLike } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike } - | { pallet: 'Session'; palletCall: PalletSessionCallLike } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCallLike } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCallLike } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCallLike } - | { pallet: 'ToRococoXcmRouter'; palletCall: PalletXcmBridgeHubRouterCallLike } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike } - | { pallet: 'Utility'; palletCall: PalletUtilityCallLike } - | { pallet: 'Multisig'; palletCall: PalletMultisigCallLike } - | { pallet: 'Proxy'; palletCall: PalletProxyCallLike } - | { pallet: 'Assets'; palletCall: PalletAssetsCallLike } - | { pallet: 'Uniques'; palletCall: PalletUniquesCallLike } - | { pallet: 'Nfts'; palletCall: PalletNftsCallLike } - | { pallet: 'ForeignAssets'; palletCall: PalletAssetsCallLike002 } - | { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCallLike } - | { pallet: 'PoolAssets'; palletCall: PalletAssetsCallLike003 } - | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCallLike } - | { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCallLike } - | { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCallLike }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMultisigCall = - /** - * Immediately dispatch a multi-signature call using a single approval from the caller. - * - * The dispatch origin for this call must be _Signed_. - * - * - `other_signatories`: The accounts (other than the sender) who are part of the - * multi-signature, but do not participate in the approval process. - * - `call`: The call to be executed. - * - * Result is equivalent to the dispatched result. - * - * ## Complexity - * O(Z + C) where Z is the length of the call and C its execution weight. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubWestendRuntimeRuntimeCall }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * ## Complexity - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: AssetHubWestendRuntimeRuntimeCall; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigCallLike = - /** - * Immediately dispatch a multi-signature call using a single approval from the caller. - * - * The dispatch origin for this call must be _Signed_. - * - * - `other_signatories`: The accounts (other than the sender) who are part of the - * multi-signature, but do not participate in the approval process. - * - `call`: The call to be executed. - * - * Result is equivalent to the dispatched result. - * - * ## Complexity - * O(Z + C) where Z is the length of the call and C its execution weight. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: AssetHubWestendRuntimeRuntimeCallLike }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * ## Complexity - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: AssetHubWestendRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletProxyCall = - /** - * Dispatch the given `call` from an account that the sender is authorised for through - * `add_proxy`. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - **/ - | { - name: 'Proxy'; - params: { - real: MultiAddress; - forceProxyType?: AssetHubWestendRuntimeProxyType | undefined; - call: AssetHubWestendRuntimeRuntimeCall; - }; - } - /** - * Register a proxy account for the sender that is able to make calls on its behalf. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to make a proxy. - * - `proxy_type`: The permissions allowed for this proxy account. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - **/ - | { name: 'AddProxy'; params: { delegate: MultiAddress; proxyType: AssetHubWestendRuntimeProxyType; delay: number } } - /** - * Unregister a proxy account for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to remove as a proxy. - * - `proxy_type`: The permissions currently enabled for the removed proxy account. - **/ - | { - name: 'RemoveProxy'; - params: { delegate: MultiAddress; proxyType: AssetHubWestendRuntimeProxyType; delay: number }; - } - /** - * Unregister all proxy accounts for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * WARNING: This may be called on accounts created by `pure`, however if done, then - * the unreserved fees will be inaccessible. **All access to this account will be lost.** - **/ - | { name: 'RemoveProxies' } - /** - * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and - * initialize it with a proxy of `proxy_type` for `origin` sender. - * - * Requires a `Signed` origin. - * - * - `proxy_type`: The type of the proxy that the sender will be registered as over the - * new account. This will almost always be the most permissive `ProxyType` possible to - * allow for maximum flexibility. - * - `index`: A disambiguation index, in case this is called multiple times in the same - * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just - * want to use `0`. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - * - * Fails with `Duplicate` if this has already been called in this transaction, from the - * same sender, with the same parameters. - * - * Fails if there are insufficient funds to pay for deposit. - **/ - | { name: 'CreatePure'; params: { proxyType: AssetHubWestendRuntimeProxyType; delay: number; index: number } } - /** - * Removes a previously spawned pure proxy. - * - * WARNING: **All access to this account will be lost.** Any funds held in it will be - * inaccessible. - * - * Requires a `Signed` origin, and the sender account must have been created by a call to - * `pure` with corresponding parameters. - * - * - `spawner`: The account that originally called `pure` to create this account. - * - `index`: The disambiguation index originally passed to `pure`. Probably `0`. - * - `proxy_type`: The proxy type originally passed to `pure`. - * - `height`: The height of the chain when the call to `pure` was processed. - * - `ext_index`: The extrinsic index in which the call to `pure` was processed. - * - * Fails with `NoPermission` in case the caller is not a previously created pure - * account whose `pure` call has corresponding parameters. - **/ - | { - name: 'KillPure'; - params: { - spawner: MultiAddress; - proxyType: AssetHubWestendRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - } - /** - * Publish the hash of a proxy-call that will be made in the future. - * - * This must be called some number of blocks before the corresponding `proxy` is attempted - * if the delay associated with the proxy relationship is greater than zero. - * - * No more than `MaxPending` announcements may be made at any one time. - * - * This will take a deposit of `AnnouncementDepositFactor` as well as - * `AnnouncementDepositBase` if there are no other pending announcements. - * - * The dispatch origin for this call must be _Signed_ and a proxy of `real`. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - **/ - | { name: 'Announce'; params: { real: MultiAddress; callHash: H256 } } - /** - * Remove a given announcement. - * - * May be called by a proxy account to remove a call they previously announced and return - * the deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - **/ - | { name: 'RemoveAnnouncement'; params: { real: MultiAddress; callHash: H256 } } - /** - * Remove the given announcement of a delegate. - * - * May be called by a target (proxied) account to remove a call that one of their delegates - * (`delegate`) has announced they want to execute. The deposit is returned. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `delegate`: The account that previously announced the call. - * - `call_hash`: The hash of the call to be made. - **/ - | { name: 'RejectAnnouncement'; params: { delegate: MultiAddress; callHash: H256 } } - /** - * Dispatch the given `call` from an account that the sender is authorized for through - * `add_proxy`. - * - * Removes any corresponding announcement(s). - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - **/ - | { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddress; - real: MultiAddress; - forceProxyType?: AssetHubWestendRuntimeProxyType | undefined; - call: AssetHubWestendRuntimeRuntimeCall; - }; - }; - -export type PalletProxyCallLike = - /** - * Dispatch the given `call` from an account that the sender is authorised for through - * `add_proxy`. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - **/ - | { - name: 'Proxy'; - params: { - real: MultiAddressLike; - forceProxyType?: AssetHubWestendRuntimeProxyType | undefined; - call: AssetHubWestendRuntimeRuntimeCallLike; - }; - } - /** - * Register a proxy account for the sender that is able to make calls on its behalf. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to make a proxy. - * - `proxy_type`: The permissions allowed for this proxy account. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - **/ - | { - name: 'AddProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubWestendRuntimeProxyType; delay: number }; - } - /** - * Unregister a proxy account for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `proxy`: The account that the `caller` would like to remove as a proxy. - * - `proxy_type`: The permissions currently enabled for the removed proxy account. - **/ - | { - name: 'RemoveProxy'; - params: { delegate: MultiAddressLike; proxyType: AssetHubWestendRuntimeProxyType; delay: number }; - } - /** - * Unregister all proxy accounts for the sender. - * - * The dispatch origin for this call must be _Signed_. - * - * WARNING: This may be called on accounts created by `pure`, however if done, then - * the unreserved fees will be inaccessible. **All access to this account will be lost.** - **/ - | { name: 'RemoveProxies' } - /** - * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and - * initialize it with a proxy of `proxy_type` for `origin` sender. - * - * Requires a `Signed` origin. - * - * - `proxy_type`: The type of the proxy that the sender will be registered as over the - * new account. This will almost always be the most permissive `ProxyType` possible to - * allow for maximum flexibility. - * - `index`: A disambiguation index, in case this is called multiple times in the same - * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just - * want to use `0`. - * - `delay`: The announcement period required of the initial proxy. Will generally be - * zero. - * - * Fails with `Duplicate` if this has already been called in this transaction, from the - * same sender, with the same parameters. - * - * Fails if there are insufficient funds to pay for deposit. - **/ - | { name: 'CreatePure'; params: { proxyType: AssetHubWestendRuntimeProxyType; delay: number; index: number } } - /** - * Removes a previously spawned pure proxy. - * - * WARNING: **All access to this account will be lost.** Any funds held in it will be - * inaccessible. - * - * Requires a `Signed` origin, and the sender account must have been created by a call to - * `pure` with corresponding parameters. - * - * - `spawner`: The account that originally called `pure` to create this account. - * - `index`: The disambiguation index originally passed to `pure`. Probably `0`. - * - `proxy_type`: The proxy type originally passed to `pure`. - * - `height`: The height of the chain when the call to `pure` was processed. - * - `ext_index`: The extrinsic index in which the call to `pure` was processed. - * - * Fails with `NoPermission` in case the caller is not a previously created pure - * account whose `pure` call has corresponding parameters. - **/ - | { - name: 'KillPure'; - params: { - spawner: MultiAddressLike; - proxyType: AssetHubWestendRuntimeProxyType; - index: number; - height: number; - extIndex: number; - }; - } - /** - * Publish the hash of a proxy-call that will be made in the future. - * - * This must be called some number of blocks before the corresponding `proxy` is attempted - * if the delay associated with the proxy relationship is greater than zero. - * - * No more than `MaxPending` announcements may be made at any one time. - * - * This will take a deposit of `AnnouncementDepositFactor` as well as - * `AnnouncementDepositBase` if there are no other pending announcements. - * - * The dispatch origin for this call must be _Signed_ and a proxy of `real`. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - **/ - | { name: 'Announce'; params: { real: MultiAddressLike; callHash: H256 } } - /** - * Remove a given announcement. - * - * May be called by a proxy account to remove a call they previously announced and return - * the deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `call_hash`: The hash of the call to be made by the `real` account. - **/ - | { name: 'RemoveAnnouncement'; params: { real: MultiAddressLike; callHash: H256 } } - /** - * Remove the given announcement of a delegate. - * - * May be called by a target (proxied) account to remove a call that one of their delegates - * (`delegate`) has announced they want to execute. The deposit is returned. - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `delegate`: The account that previously announced the call. - * - `call_hash`: The hash of the call to be made. - **/ - | { name: 'RejectAnnouncement'; params: { delegate: MultiAddressLike; callHash: H256 } } - /** - * Dispatch the given `call` from an account that the sender is authorized for through - * `add_proxy`. - * - * Removes any corresponding announcement(s). - * - * The dispatch origin for this call must be _Signed_. - * - * Parameters: - * - `real`: The account that the proxy will make a call on behalf of. - * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. - * - `call`: The call to be made by the `real` account. - **/ - | { - name: 'ProxyAnnounced'; - params: { - delegate: MultiAddressLike; - real: MultiAddressLike; - forceProxyType?: AssetHubWestendRuntimeProxyType | undefined; - call: AssetHubWestendRuntimeRuntimeCallLike; - }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddress; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddress; isSufficient: boolean; minBalance: bigint } } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddress; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddress; dest: MultiAddress; amount: bigint } } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddress } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddress } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'SetTeam'; params: { id: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress } } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { id: number; name: Bytes; symbol: Bytes; decimals: number } } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddress; amount: bigint } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddress } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddress; delegate: MultiAddress } } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { name: 'TransferApproved'; params: { id: number; owner: MultiAddress; destination: MultiAddress; amount: bigint } } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddress } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddress } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: number; who: MultiAddress } }; - -export type PalletAssetsCallLike = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddressLike; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint } } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddressLike; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint } } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddressLike } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number } } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddressLike; amount: bigint } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddressLike } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike } } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddressLike } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: number; who: MultiAddressLike } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletUniquesCall = - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * `ItemDeposit` funds of sender are reserved. - * - * Parameters: - * - `collection`: The identifier of the new collection. This must not be currently in use. - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { collection: number; admin: MultiAddress } } - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `collection`: The identifier of the new item. This must not be currently in use. - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions - * over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { collection: number; owner: MultiAddress; freeHolding: boolean } } - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(n + m)` where: - * - `n = witness.items` - * - `m = witness.item_metadatas` - * - `a = witness.attributes` - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletUniquesDestroyWitness } } - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must be the Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: The item value of the item to be minted. - * - `beneficiary`: The initial owner of the minted item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Mint'; params: { collection: number; item: number; owner: MultiAddress } } - /** - * Destroy a single item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item of the item to be burned. - * - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the - * item is owned by this value. - * - * Emits `Burned` with the actual amount burned. - * - * Weight: `O(1)` - * Modes: `check_owner.is_some()`. - **/ - | { name: 'Burn'; params: { collection: number; item: number; checkOwner?: MultiAddress | undefined } } - /** - * Move an item from the sender account to another. - * - * This resets the approved account of the item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item of the item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddress } } - /** - * Reevaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be frozen. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown of the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be frozen. - * - `item`: The item of the item to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { collection: number; item: number } } - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be thawed. - * - `item`: The item of the item to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { collection: number; item: number } } - /** - * Disallow further unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection to be frozen. - * - * Emits `CollectionFrozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeCollection'; params: { collection: number } } - /** - * Re-allow unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Admin of the `collection`. - * - * - `collection`: The collection to be thawed. - * - * Emits `CollectionThawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawCollection'; params: { collection: number } } - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { collection: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress }; - } - /** - * Approve an item to be transferred by a delegated third-party account. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be - * either the owner of the `item` or the admin of the collection. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item of the item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - * Important NOTE: The `approved` account gets reset after each transfer. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * Cancel the prior approval for the transfer of an item by a delegate. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Admin of the `collection`; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the item of whose approval will be cancelled. - * - `maybe_check_delegate`: If `Some` will ensure that the given account is the one to - * which permission of transfer is delegated. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate?: MultiAddress | undefined }; - } - /** - * Alter the attributes of a given item. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the item. - * - `owner`: The new Owner of this item. - * - `issuer`: The new Issuer of this item. - * - `admin`: The new Admin of this item. - * - `freezer`: The new Freezer of this item. - * - `free_holding`: Whether a deposit is taken for holding an item of this collection. - * - `is_frozen`: Whether this collection is frozen except for permissioned/admin - * instructions. - * - * Emits `ItemStatusChanged` with the identity of the item. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - freeHolding: boolean; - isFrozen: boolean; - }; - } - /** - * Set an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetAttribute'; params: { collection: number; maybeItem?: number | undefined; key: Bytes; value: Bytes } } - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearAttribute'; params: { collection: number; maybeItem?: number | undefined; key: Bytes } } - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: Bytes; isFrozen: boolean } } - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: Bytes; isFrozen: boolean } } - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * Set the maximum amount of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Note: This function can only succeed once per collection. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum amount of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the asset `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddress | undefined; - }; - } - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } }; - -export type PalletUniquesCallLike = - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * `ItemDeposit` funds of sender are reserved. - * - * Parameters: - * - `collection`: The identifier of the new collection. This must not be currently in use. - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { collection: number; admin: MultiAddressLike } } - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `collection`: The identifier of the new item. This must not be currently in use. - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions - * over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { collection: number; owner: MultiAddressLike; freeHolding: boolean } } - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(n + m)` where: - * - `n = witness.items` - * - `m = witness.item_metadatas` - * - `a = witness.attributes` - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletUniquesDestroyWitness } } - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must be the Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: The item value of the item to be minted. - * - `beneficiary`: The initial owner of the minted item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Mint'; params: { collection: number; item: number; owner: MultiAddressLike } } - /** - * Destroy a single item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item of the item to be burned. - * - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the - * item is owned by this value. - * - * Emits `Burned` with the actual amount burned. - * - * Weight: `O(1)` - * Modes: `check_owner.is_some()`. - **/ - | { name: 'Burn'; params: { collection: number; item: number; checkOwner?: MultiAddressLike | undefined } } - /** - * Move an item from the sender account to another. - * - * This resets the approved account of the item. - * - * Origin must be Signed and the signing account must be either: - * - the Admin of the `collection`; - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item of the item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddressLike } } - /** - * Reevaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be frozen. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown of the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be frozen. - * - `item`: The item of the item to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { collection: number; item: number } } - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be thawed. - * - `item`: The item of the item to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { collection: number; item: number } } - /** - * Disallow further unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection to be frozen. - * - * Emits `CollectionFrozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeCollection'; params: { collection: number } } - /** - * Re-allow unprivileged transfers for a whole collection. - * - * Origin must be Signed and the sender should be the Admin of the `collection`. - * - * - `collection`: The collection to be thawed. - * - * Emits `CollectionThawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawCollection'; params: { collection: number } } - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { collection: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * Approve an item to be transferred by a delegated third-party account. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be - * either the owner of the `item` or the admin of the collection. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item of the item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - * Important NOTE: The `approved` account gets reset after each transfer. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * Cancel the prior approval for the transfer of an item by a delegate. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Admin of the `collection`; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the item of whose approval will be cancelled. - * - `maybe_check_delegate`: If `Some` will ensure that the given account is the one to - * which permission of transfer is delegated. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'CancelApproval'; - params: { collection: number; item: number; maybeCheckDelegate?: MultiAddressLike | undefined }; - } - /** - * Alter the attributes of a given item. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the item. - * - `owner`: The new Owner of this item. - * - `issuer`: The new Issuer of this item. - * - `admin`: The new Admin of this item. - * - `freezer`: The new Freezer of this item. - * - `free_holding`: Whether a deposit is taken for holding an item of this collection. - * - `is_frozen`: Whether this collection is frozen except for permissioned/admin - * instructions. - * - * Emits `ItemStatusChanged` with the identity of the item. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceItemStatus'; - params: { - collection: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - freeHolding: boolean; - isFrozen: boolean; - }; - } - /** - * Set an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetAttribute'; - params: { collection: number; maybeItem?: number | undefined; key: BytesLike; value: BytesLike }; - } - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearAttribute'; params: { collection: number; maybeItem?: number | undefined; key: BytesLike } } - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: BytesLike; isFrozen: boolean } } - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - `is_frozen`: Whether the metadata should be frozen against further changes. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: BytesLike; isFrozen: boolean } } - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * Set the maximum amount of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * Note: This function can only succeed once per collection. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum amount of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the asset `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddressLike | undefined; - }; - } - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } }; - -export type PalletUniquesDestroyWitness = { items: number; itemMetadatas: number; attributes: number }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletNftsCall = - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must be Signed and the sender must have sufficient funds free. - * - * `CollectionDeposit` funds of sender are reserved. - * - * Parameters: - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { admin: MultiAddress; config: PalletNftsCollectionConfig } } - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { owner: MultiAddress; config: PalletNftsCollectionConfig } } - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * NOTE: The collection must have 0 items to be destroyed. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(m + c + a)` where: - * - `m = witness.item_metadatas` - * - `c = witness.item_configs` - * - `a = witness.attributes` - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletNftsDestroyWitness } } - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must comply with the `mint_settings` rules. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `witness_data`: When the mint type is `HolderOf(collection_id)`, then the owned - * item_id from that collection needs to be provided within the witness data object. If - * the mint price is set, then it should be additionally confirmed in the `witness_data`. - * - * Note: the deposit will be taken from the `origin` and not the `owner` of the `item`. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddress; - witnessData?: PalletNftsMintWitness | undefined; - }; - } - /** - * Mint an item of a particular collection from a privileged origin. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `item_config`: A config of the new item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddress; itemConfig: PalletNftsItemConfig }; - } - /** - * Destroy a single item. - * - * The origin must conform to `ForceOrigin` or must be Signed and the signing account must - * be the owner of the `item`. - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item to be burned. - * - * Emits `Burned`. - * - * Weight: `O(1)` - **/ - | { name: 'Burn'; params: { collection: number; item: number } } - /** - * Move an item from the sender account to another. - * - * Origin must be Signed and the signing account must be either: - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddress } } - /** - * Re-evaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection of the items to be reevaluated. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown or the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become non-transferable. - * - * Emits `ItemTransferLocked`. - * - * Weight: `O(1)` - **/ - | { name: 'LockItemTransfer'; params: { collection: number; item: number } } - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become transferable. - * - * Emits `ItemTransferUnlocked`. - * - * Weight: `O(1)` - **/ - | { name: 'UnlockItemTransfer'; params: { collection: number; item: number } } - /** - * Disallows specified settings for the whole collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be locked. - * - `lock_settings`: The settings to be locked. - * - * Note: it's possible to only lock(set) the setting, but not to unset it. - * - * Emits `CollectionLocked`. - * - * Weight: `O(1)` - **/ - | { name: 'LockCollection'; params: { collection: number; lockSettings: PalletNftsBitFlags } } - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Note: by setting the role to `None` only the `ForceOrigin` will be able to change it - * after to `Some(account)`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { - collection: number; - issuer?: MultiAddress | undefined; - admin?: MultiAddress | undefined; - freezer?: MultiAddress | undefined; - }; - } - /** - * Change the Owner of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `owner`: The new Owner of this collection. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCollectionOwner'; params: { collection: number; owner: MultiAddress } } - /** - * Change the config of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `config`: The new config of this collection. - * - * Emits `CollectionConfigChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCollectionConfig'; params: { collection: number; config: PalletNftsCollectionConfig } } - /** - * Approve an item to be transferred by a delegated third-party account. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - `maybe_deadline`: Optional deadline for the approval. Specified by providing the - * number of blocks after which the approval will expire - * - * Emits `TransferApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddress; maybeDeadline?: number | undefined }; - } - /** - * Cancel one of the transfer approvals for a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the collection of whose approval will be cancelled. - * - `delegate`: The account that is going to loose their approval. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * Cancel all the approvals of a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approvals will be cleared. - * - `item`: The item of the collection of whose approvals will be cleared. - * - * Emits `AllApprovalsCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ClearAllTransferApprovals'; params: { collection: number; item: number } } - /** - * Disallows changing the metadata or attributes of the item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin - * of the `collection`. - * - * - `collection`: The collection if the `item`. - * - `item`: An item to be locked. - * - `lock_metadata`: Specifies whether the metadata should be locked. - * - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace - * should be locked. - * - * Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only. - * When the metadata or attributes are locked, it won't be possible the unlock them. - * - * Emits `ItemPropertiesLocked`. - * - * Weight: `O(1)` - **/ - | { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * Set an attribute for a collection or item. - * - * Origin must be Signed and must conform to the namespace ruleset: - * - `CollectionOwner` namespace could be modified by the `collection` Admin only; - * - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item` - * should be set in that case; - * - `Account(AccountId)` namespace could be modified only when the `origin` was given a - * permission to do so; - * - * The funds of `origin` are reserved according to the formula: - * `AttributeDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - value: Bytes; - }; - } - /** - * Force-set an attribute for a collection or item. - * - * Origin must be `ForceOrigin`. - * - * If the attribute already exists and it was set by another account, the deposit - * will be returned to the previous owner. - * - * - `set_as`: An optional owner of the attribute. - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceSetAttribute'; - params: { - setAs?: AccountId32 | undefined; - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - value: Bytes; - }; - } - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * attribute. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - **/ - | { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: Bytes; - }; - } - /** - * Approve item's attributes to be changed by a delegated third-party account. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: A collection of the item. - * - `item`: The item that holds attributes. - * - `delegate`: The account to delegate permission to change attributes of the item. - * - * Emits `ItemAttributesApprovalAdded` on success. - **/ - | { name: 'ApproveItemAttributes'; params: { collection: number; item: number; delegate: MultiAddress } } - /** - * Cancel the previously provided approval to change item's attributes. - * All the previously set attributes by the `delegate` will be removed. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: Collection that the item is contained within. - * - `item`: The item that holds attributes. - * - `delegate`: The previously approved account to remove. - * - * Emits `ItemAttributesApprovalRemoved` on success. - **/ - | { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddress; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - } - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `ItemMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: Bytes } } - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `ItemMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: Bytes } } - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * Set the maximum number of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum number of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * Update mint settings. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer - * of the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `mint_settings`: The new mint settings. - * - * Emits `CollectionMintSettingsUpdated` event when successful. - **/ - | { name: 'UpdateMintSettings'; params: { collection: number; mintSettings: PalletNftsMintSettings } } - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddress | undefined; - }; - } - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } } - /** - * Allows to pay the tips. - * - * Origin must be Signed. - * - * - `tips`: Tips array. - * - * Emits `TipSent` on every tip transfer. - **/ - | { name: 'PayTips'; params: { tips: Array } } - /** - * Register a new atomic swap, declaring an intention to send an `item` in exchange for - * `desired_item` from origin to target on the current blockchain. - * The target can execute the swap during the specified `duration` of blocks (if set). - * Additionally, the price could be set for the desired `item`. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - `desired_collection`: The collection of the desired item. - * - `desired_item`: The desired item an owner wants to receive. - * - `maybe_price`: The price an owner is willing to pay or receive for the desired `item`. - * - `duration`: A deadline for the swap. Specified by providing the number of blocks - * after which the swap will expire. - * - * Emits `SwapCreated` on success. - **/ - | { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem?: number | undefined; - maybePrice?: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - } - /** - * Cancel an atomic swap. - * - * Origin must be Signed. - * Origin must be an owner of the `item` if the deadline hasn't expired. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - * Emits `SwapCancelled` on success. - **/ - | { name: 'CancelSwap'; params: { offeredCollection: number; offeredItem: number } } - /** - * Claim an atomic swap. - * This method executes a pending swap, that was created by a counterpart before. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `send_collection`: The collection of the item to be sent. - * - `send_item`: The item to be sent. - * - `receive_collection`: The collection of the item to be received. - * - `receive_item`: The item to be received. - * - `witness_price`: A price that was previously agreed on. - * - * Emits `SwapClaimed` on success. - **/ - | { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice?: PalletNftsPriceWithDirection | undefined; - }; - } - /** - * Mint an item by providing the pre-signed approval. - * - * Origin must be Signed. - * - * - `mint_data`: The pre-signed approval that consists of the information about the item, - * its metadata, attributes, who can mint it (`None` for anyone) and until what block - * number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Issuer of the collection. - * - * Emits `Issued` on success. - * Emits `AttributeSet` if the attributes were provided. - * Emits `ItemMetadataSet` if the metadata was not empty. - **/ - | { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32 }; - } - /** - * Set attributes for an item by providing the pre-signed approval. - * - * Origin must be Signed and must be an owner of the `data.item`. - * - * - `data`: The pre-signed approval that consists of the information about the item, - * attributes to update and until what block number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Admin of the collection for the - * `CollectionOwner` namespace. - * - * Emits `AttributeSet` for each provided attribute. - * Emits `ItemAttributesApprovalAdded` if the approval wasn't set before. - * Emits `PreSignedAttributesSet` on success. - **/ - | { - name: 'SetAttributesPreSigned'; - params: { data: PalletNftsPreSignedAttributes; signature: SpRuntimeMultiSignature; signer: AccountId32 }; - }; - -export type PalletNftsCallLike = - /** - * Issue a new collection of non-fungible items from a public origin. - * - * This new collection has no items initially and its owner is the origin. - * - * The origin must be Signed and the sender must have sufficient funds free. - * - * `CollectionDeposit` funds of sender are reserved. - * - * Parameters: - * - `admin`: The admin of this collection. The admin is the initial address of each - * member of the collection's admin team. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { admin: MultiAddressLike; config: PalletNftsCollectionConfig } } - /** - * Issue a new collection of non-fungible items from a privileged origin. - * - * This new collection has no items initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `owner`: The owner of this collection of items. The owner has full superuser - * permissions over this item, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { owner: MultiAddressLike; config: PalletNftsCollectionConfig } } - /** - * Destroy a collection of fungible items. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * owner of the `collection`. - * - * NOTE: The collection must have 0 items to be destroyed. - * - * - `collection`: The identifier of the collection to be destroyed. - * - `witness`: Information on the items minted in the collection. This must be - * correct. - * - * Emits `Destroyed` event when successful. - * - * Weight: `O(m + c + a)` where: - * - `m = witness.item_metadatas` - * - `c = witness.item_configs` - * - `a = witness.attributes` - **/ - | { name: 'Destroy'; params: { collection: number; witness: PalletNftsDestroyWitness } } - /** - * Mint an item of a particular collection. - * - * The origin must be Signed and the sender must comply with the `mint_settings` rules. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `witness_data`: When the mint type is `HolderOf(collection_id)`, then the owned - * item_id from that collection needs to be provided within the witness data object. If - * the mint price is set, then it should be additionally confirmed in the `witness_data`. - * - * Note: the deposit will be taken from the `origin` and not the `owner` of the `item`. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'Mint'; - params: { - collection: number; - item: number; - mintTo: MultiAddressLike; - witnessData?: PalletNftsMintWitness | undefined; - }; - } - /** - * Mint an item of a particular collection from a privileged origin. - * - * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the - * Issuer of the `collection`. - * - * - `collection`: The collection of the item to be minted. - * - `item`: An identifier of the new item. - * - `mint_to`: Account into which the item will be minted. - * - `item_config`: A config of the new item. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceMint'; - params: { collection: number; item: number; mintTo: MultiAddressLike; itemConfig: PalletNftsItemConfig }; - } - /** - * Destroy a single item. - * - * The origin must conform to `ForceOrigin` or must be Signed and the signing account must - * be the owner of the `item`. - * - * - `collection`: The collection of the item to be burned. - * - `item`: The item to be burned. - * - * Emits `Burned`. - * - * Weight: `O(1)` - **/ - | { name: 'Burn'; params: { collection: number; item: number } } - /** - * Move an item from the sender account to another. - * - * Origin must be Signed and the signing account must be either: - * - the Owner of the `item`; - * - the approved delegate for the `item` (in this case, the approval is reset). - * - * Arguments: - * - `collection`: The collection of the item to be transferred. - * - `item`: The item to be transferred. - * - `dest`: The account to receive ownership of the item. - * - * Emits `Transferred`. - * - * Weight: `O(1)` - **/ - | { name: 'Transfer'; params: { collection: number; item: number; dest: MultiAddressLike } } - /** - * Re-evaluate the deposits on some items. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection of the items to be reevaluated. - * - `items`: The items of the collection whose deposits will be reevaluated. - * - * NOTE: This exists as a best-effort function. Any items which are unknown or - * in the case that the owner account does not have reservable funds to pay for a - * deposit increase are ignored. Generally the owner isn't going to call this on items - * whose existing deposit is less than the refreshed deposit as it would only cost them, - * so it's of little consequence. - * - * It will still return an error in the case that the collection is unknown or the signer - * is not permitted to call it. - * - * Weight: `O(items.len())` - **/ - | { name: 'Redeposit'; params: { collection: number; items: Array } } - /** - * Disallow further unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become non-transferable. - * - * Emits `ItemTransferLocked`. - * - * Weight: `O(1)` - **/ - | { name: 'LockItemTransfer'; params: { collection: number; item: number } } - /** - * Re-allow unprivileged transfer of an item. - * - * Origin must be Signed and the sender should be the Freezer of the `collection`. - * - * - `collection`: The collection of the item to be changed. - * - `item`: The item to become transferable. - * - * Emits `ItemTransferUnlocked`. - * - * Weight: `O(1)` - **/ - | { name: 'UnlockItemTransfer'; params: { collection: number; item: number } } - /** - * Disallows specified settings for the whole collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection to be locked. - * - `lock_settings`: The settings to be locked. - * - * Note: it's possible to only lock(set) the setting, but not to unset it. - * - * Emits `CollectionLocked`. - * - * Weight: `O(1)` - **/ - | { name: 'LockCollection'; params: { collection: number; lockSettings: PalletNftsBitFlags } } - /** - * Change the Owner of a collection. - * - * Origin must be Signed and the sender should be the Owner of the `collection`. - * - * - `collection`: The collection whose owner should be changed. - * - `owner`: The new Owner of this collection. They must have called - * `set_accept_ownership` with `collection` in order for this operation to succeed. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { collection: number; newOwner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of a collection. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `collection`. - * - * Note: by setting the role to `None` only the `ForceOrigin` will be able to change it - * after to `Some(account)`. - * - * - `collection`: The collection whose team should be changed. - * - `issuer`: The new Issuer of this collection. - * - `admin`: The new Admin of this collection. - * - `freezer`: The new Freezer of this collection. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { - collection: number; - issuer?: MultiAddressLike | undefined; - admin?: MultiAddressLike | undefined; - freezer?: MultiAddressLike | undefined; - }; - } - /** - * Change the Owner of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `owner`: The new Owner of this collection. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCollectionOwner'; params: { collection: number; owner: MultiAddressLike } } - /** - * Change the config of a collection. - * - * Origin must be `ForceOrigin`. - * - * - `collection`: The identifier of the collection. - * - `config`: The new config of this collection. - * - * Emits `CollectionConfigChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCollectionConfig'; params: { collection: number; config: PalletNftsCollectionConfig } } - /** - * Approve an item to be transferred by a delegated third-party account. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * `item`. - * - * - `collection`: The collection of the item to be approved for delegated transfer. - * - `item`: The item to be approved for delegated transfer. - * - `delegate`: The account to delegate permission to transfer the item. - * - `maybe_deadline`: Optional deadline for the approval. Specified by providing the - * number of blocks after which the approval will expire - * - * Emits `TransferApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ApproveTransfer'; - params: { collection: number; item: number; delegate: MultiAddressLike; maybeDeadline?: number | undefined }; - } - /** - * Cancel one of the transfer approvals for a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approval will be cancelled. - * - `item`: The item of the collection of whose approval will be cancelled. - * - `delegate`: The account that is going to loose their approval. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * Cancel all the approvals of a specific item. - * - * Origin must be either: - * - the `Force` origin; - * - `Signed` with the signer being the Owner of the `item`; - * - * Arguments: - * - `collection`: The collection of the item of whose approvals will be cleared. - * - `item`: The item of the collection of whose approvals will be cleared. - * - * Emits `AllApprovalsCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ClearAllTransferApprovals'; params: { collection: number; item: number } } - /** - * Disallows changing the metadata or attributes of the item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin - * of the `collection`. - * - * - `collection`: The collection if the `item`. - * - `item`: An item to be locked. - * - `lock_metadata`: Specifies whether the metadata should be locked. - * - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace - * should be locked. - * - * Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only. - * When the metadata or attributes are locked, it won't be possible the unlock them. - * - * Emits `ItemPropertiesLocked`. - * - * Weight: `O(1)` - **/ - | { - name: 'LockItemProperties'; - params: { collection: number; item: number; lockMetadata: boolean; lockAttributes: boolean }; - } - /** - * Set an attribute for a collection or item. - * - * Origin must be Signed and must conform to the namespace ruleset: - * - `CollectionOwner` namespace could be modified by the `collection` Admin only; - * - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item` - * should be set in that case; - * - `Account(AccountId)` namespace could be modified only when the `origin` was given a - * permission to do so; - * - * The funds of `origin` are reserved according to the formula: - * `AttributeDepositBase + DepositPerByte * (key.len + value.len)` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - } - /** - * Force-set an attribute for a collection or item. - * - * Origin must be `ForceOrigin`. - * - * If the attribute already exists and it was set by another account, the deposit - * will be returned to the previous owner. - * - * - `set_as`: An optional owner of the attribute. - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `maybe_item`: The identifier of the item whose metadata to set. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - `value`: The value to which to set the attribute. - * - * Emits `AttributeSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceSetAttribute'; - params: { - setAs?: AccountId32Like | undefined; - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - value: BytesLike; - }; - } - /** - * Clear an attribute for a collection or item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the - * attribute. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `maybe_item`: The identifier of the item whose metadata to clear. - * - `namespace`: Attribute's namespace. - * - `key`: The key of the attribute. - * - * Emits `AttributeCleared`. - * - * Weight: `O(1)` - **/ - | { - name: 'ClearAttribute'; - params: { - collection: number; - maybeItem?: number | undefined; - namespace: PalletNftsAttributeNamespace; - key: BytesLike; - }; - } - /** - * Approve item's attributes to be changed by a delegated third-party account. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: A collection of the item. - * - `item`: The item that holds attributes. - * - `delegate`: The account to delegate permission to change attributes of the item. - * - * Emits `ItemAttributesApprovalAdded` on success. - **/ - | { name: 'ApproveItemAttributes'; params: { collection: number; item: number; delegate: MultiAddressLike } } - /** - * Cancel the previously provided approval to change item's attributes. - * All the previously set attributes by the `delegate` will be removed. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: Collection that the item is contained within. - * - `item`: The item that holds attributes. - * - `delegate`: The previously approved account to remove. - * - * Emits `ItemAttributesApprovalRemoved` on success. - **/ - | { - name: 'CancelItemAttributesApproval'; - params: { - collection: number; - item: number; - delegate: MultiAddressLike; - witness: PalletNftsCancelAttributesApprovalWitness; - }; - } - /** - * Set the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * If the origin is Signed, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the collection whose item's metadata to set. - * - `item`: The identifier of the item whose metadata to set. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `ItemMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { collection: number; item: number; data: BytesLike } } - /** - * Clear the metadata for an item. - * - * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the - * `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose item's metadata to clear. - * - `item`: The identifier of the item whose metadata to clear. - * - * Emits `ItemMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { collection: number; item: number } } - /** - * Set the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * If the origin is `Signed`, then funds of signer are reserved according to the formula: - * `MetadataDepositBase + DepositPerByte * data.len` taking into - * account any already reserved funds. - * - * - `collection`: The identifier of the item whose metadata to update. - * - `data`: The general information of this item. Limited in length by `StringLimit`. - * - * Emits `CollectionMetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetCollectionMetadata'; params: { collection: number; data: BytesLike } } - /** - * Clear the metadata for a collection. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of - * the `collection`. - * - * Any deposit is freed for the collection's owner. - * - * - `collection`: The identifier of the collection whose metadata to clear. - * - * Emits `CollectionMetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearCollectionMetadata'; params: { collection: number } } - /** - * Set (or reset) the acceptance of ownership for a particular account. - * - * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a - * provider reference. - * - * - `maybe_collection`: The identifier of the collection whose ownership the signer is - * willing to accept, or if `None`, an indication that the signer is willing to accept no - * ownership transferal. - * - * Emits `OwnershipAcceptanceChanged`. - **/ - | { name: 'SetAcceptOwnership'; params: { maybeCollection?: number | undefined } } - /** - * Set the maximum number of items a collection could have. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of - * the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `max_supply`: The maximum number of items a collection could have. - * - * Emits `CollectionMaxSupplySet` event when successful. - **/ - | { name: 'SetCollectionMaxSupply'; params: { collection: number; maxSupply: number } } - /** - * Update mint settings. - * - * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer - * of the `collection`. - * - * - `collection`: The identifier of the collection to change. - * - `mint_settings`: The new mint settings. - * - * Emits `CollectionMintSettingsUpdated` event when successful. - **/ - | { name: 'UpdateMintSettings'; params: { collection: number; mintSettings: PalletNftsMintSettings } } - /** - * Set (or reset) the price for an item. - * - * Origin must be Signed and must be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item to set the price for. - * - `price`: The price for the item. Pass `None`, to reset the price. - * - `buyer`: Restricts the buy operation to a specific account. - * - * Emits `ItemPriceSet` on success if the price is not `None`. - * Emits `ItemPriceRemoved` on success if the price is `None`. - **/ - | { - name: 'SetPrice'; - params: { - collection: number; - item: number; - price?: bigint | undefined; - whitelistedBuyer?: MultiAddressLike | undefined; - }; - } - /** - * Allows to buy an item if it's up for sale. - * - * Origin must be Signed and must not be the owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item the sender wants to buy. - * - `bid_price`: The price the sender is willing to pay. - * - * Emits `ItemBought` on success. - **/ - | { name: 'BuyItem'; params: { collection: number; item: number; bidPrice: bigint } } - /** - * Allows to pay the tips. - * - * Origin must be Signed. - * - * - `tips`: Tips array. - * - * Emits `TipSent` on every tip transfer. - **/ - | { name: 'PayTips'; params: { tips: Array } } - /** - * Register a new atomic swap, declaring an intention to send an `item` in exchange for - * `desired_item` from origin to target on the current blockchain. - * The target can execute the swap during the specified `duration` of blocks (if set). - * Additionally, the price could be set for the desired `item`. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - `desired_collection`: The collection of the desired item. - * - `desired_item`: The desired item an owner wants to receive. - * - `maybe_price`: The price an owner is willing to pay or receive for the desired `item`. - * - `duration`: A deadline for the swap. Specified by providing the number of blocks - * after which the swap will expire. - * - * Emits `SwapCreated` on success. - **/ - | { - name: 'CreateSwap'; - params: { - offeredCollection: number; - offeredItem: number; - desiredCollection: number; - maybeDesiredItem?: number | undefined; - maybePrice?: PalletNftsPriceWithDirection | undefined; - duration: number; - }; - } - /** - * Cancel an atomic swap. - * - * Origin must be Signed. - * Origin must be an owner of the `item` if the deadline hasn't expired. - * - * - `collection`: The collection of the item. - * - `item`: The item an owner wants to give. - * - * Emits `SwapCancelled` on success. - **/ - | { name: 'CancelSwap'; params: { offeredCollection: number; offeredItem: number } } - /** - * Claim an atomic swap. - * This method executes a pending swap, that was created by a counterpart before. - * - * Origin must be Signed and must be an owner of the `item`. - * - * - `send_collection`: The collection of the item to be sent. - * - `send_item`: The item to be sent. - * - `receive_collection`: The collection of the item to be received. - * - `receive_item`: The item to be received. - * - `witness_price`: A price that was previously agreed on. - * - * Emits `SwapClaimed` on success. - **/ - | { - name: 'ClaimSwap'; - params: { - sendCollection: number; - sendItem: number; - receiveCollection: number; - receiveItem: number; - witnessPrice?: PalletNftsPriceWithDirection | undefined; - }; - } - /** - * Mint an item by providing the pre-signed approval. - * - * Origin must be Signed. - * - * - `mint_data`: The pre-signed approval that consists of the information about the item, - * its metadata, attributes, who can mint it (`None` for anyone) and until what block - * number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Issuer of the collection. - * - * Emits `Issued` on success. - * Emits `AttributeSet` if the attributes were provided. - * Emits `ItemMetadataSet` if the metadata was not empty. - **/ - | { - name: 'MintPreSigned'; - params: { mintData: PalletNftsPreSignedMint; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - } - /** - * Set attributes for an item by providing the pre-signed approval. - * - * Origin must be Signed and must be an owner of the `data.item`. - * - * - `data`: The pre-signed approval that consists of the information about the item, - * attributes to update and until what block number. - * - `signature`: The signature of the `data` object. - * - `signer`: The `data` object's signer. Should be an Admin of the collection for the - * `CollectionOwner` namespace. - * - * Emits `AttributeSet` for each provided attribute. - * Emits `ItemAttributesApprovalAdded` if the approval wasn't set before. - * Emits `PreSignedAttributesSet` on success. - **/ - | { - name: 'SetAttributesPreSigned'; - params: { data: PalletNftsPreSignedAttributes; signature: SpRuntimeMultiSignature; signer: AccountId32Like }; - }; - -export type PalletNftsCollectionConfig = { - settings: PalletNftsBitFlags; - maxSupply?: number | undefined; - mintSettings: PalletNftsMintSettings; -}; - -export type PalletNftsBitFlags = bigint; - -export type PalletNftsCollectionSetting = - | 'TransferableItems' - | 'UnlockedMetadata' - | 'UnlockedAttributes' - | 'UnlockedMaxSupply' - | 'DepositRequired'; - -export type PalletNftsMintSettings = { - mintType: PalletNftsMintType; - price?: bigint | undefined; - startBlock?: number | undefined; - endBlock?: number | undefined; - defaultItemSettings: PalletNftsBitFlagsItemSetting; -}; - -export type PalletNftsMintType = { type: 'Issuer' } | { type: 'Public' } | { type: 'HolderOf'; value: number }; - -export type PalletNftsBitFlagsItemSetting = bigint; - -export type PalletNftsItemSetting = 'Transferable' | 'UnlockedMetadata' | 'UnlockedAttributes'; - -export type PalletNftsDestroyWitness = { itemMetadatas: number; itemConfigs: number; attributes: number }; - -export type PalletNftsMintWitness = { ownedItem?: number | undefined; mintPrice?: bigint | undefined }; - -export type PalletNftsItemConfig = { settings: PalletNftsBitFlagsItemSetting }; - -export type PalletNftsCancelAttributesApprovalWitness = { accountAttributes: number }; - -export type PalletNftsItemTip = { collection: number; item: number; receiver: AccountId32; amount: bigint }; - -export type PalletNftsPreSignedMint = { - collection: number; - item: number; - attributes: Array<[Bytes, Bytes]>; - metadata: Bytes; - onlyAccount?: AccountId32 | undefined; - deadline: number; - mintPrice?: bigint | undefined; -}; - -export type SpRuntimeMultiSignature = - | { type: 'Ed25519'; value: FixedBytes<64> } - | { type: 'Sr25519'; value: FixedBytes<64> } - | { type: 'Ecdsa'; value: FixedBytes<65> }; - -export type PalletNftsPreSignedAttributes = { - collection: number; - item: number; - attributes: Array<[Bytes, Bytes]>; - namespace: PalletNftsAttributeNamespace; - deadline: number; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall002 = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddress; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - isSufficient: boolean; - minBalance: bigint; - }; - } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddress; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddress; amount: bigint }; - } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { - name: 'ForceTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; source: MultiAddress; dest: MultiAddress; amount: bigint }; - } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - }; - } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation; name: Bytes; symbol: Bytes; decimals: number }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; - }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddress; amount: bigint }; - } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddress } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddress; delegate: MultiAddress }; - } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddress; - destination: MultiAddress; - amount: bigint; - }; - } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddress } }; - -export type PalletAssetsCallLike002 = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'Create'; - params: { id: StagingXcmV3MultilocationMultiLocation; admin: MultiAddressLike; minBalance: bigint }; - } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceCreate'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - isSufficient: boolean; - minBalance: bigint; - }; - } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { - name: 'Mint'; - params: { id: StagingXcmV3MultilocationMultiLocation; beneficiary: MultiAddressLike; amount: bigint }; - } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { - name: 'Transfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { - name: 'TransferKeepAlive'; - params: { id: StagingXcmV3MultilocationMultiLocation; target: MultiAddressLike; amount: bigint }; - } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { - name: 'ForceTransfer'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - source: MultiAddressLike; - dest: MultiAddressLike; - amount: bigint; - }; - } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - }; - } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetMetadata'; - params: { id: StagingXcmV3MultilocationMultiLocation; name: BytesLike; symbol: BytesLike; decimals: number }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - name: BytesLike; - symbol: BytesLike; - decimals: number; - isFrozen: boolean; - }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ApproveTransfer'; - params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike; amount: bigint }; - } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: StagingXcmV3MultilocationMultiLocation; delegate: MultiAddressLike } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceCancelApproval'; - params: { id: StagingXcmV3MultilocationMultiLocation; owner: MultiAddressLike; delegate: MultiAddressLike }; - } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'TransferApproved'; - params: { - id: StagingXcmV3MultilocationMultiLocation; - owner: MultiAddressLike; - destination: MultiAddressLike; - amount: bigint; - }; - } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: StagingXcmV3MultilocationMultiLocation } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: StagingXcmV3MultilocationMultiLocation; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: StagingXcmV3MultilocationMultiLocation; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: StagingXcmV3MultilocationMultiLocation; who: MultiAddressLike } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletNftFractionalizationCall = - /** - * Lock the NFT and mint a new fungible asset. - * - * The dispatch origin for this call must be Signed. - * The origin must be the owner of the NFT they are trying to lock. - * - * `Deposit` funds of sender are reserved. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the new asset. It must not exist. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the newly created asset. - * - `fractions`: The total issuance of the newly created asset class. - * - * Emits `NftFractionalized` event when successful. - **/ - | { - name: 'Fractionalize'; - params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddress; fractions: bigint }; - } - /** - * Burn the total issuance of the fungible asset and return (unlock) the locked NFT. - * - * The dispatch origin for this call must be Signed. - * - * `Deposit` funds will be returned to `asset_creator`. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the asset being returned and destroyed. Must match - * the original ID of the created asset, corresponding to the NFT. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the unified NFT. - * - * Emits `NftUnified` event when successful. - **/ - | { name: 'Unify'; params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddress } }; - -export type PalletNftFractionalizationCallLike = - /** - * Lock the NFT and mint a new fungible asset. - * - * The dispatch origin for this call must be Signed. - * The origin must be the owner of the NFT they are trying to lock. - * - * `Deposit` funds of sender are reserved. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the new asset. It must not exist. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the newly created asset. - * - `fractions`: The total issuance of the newly created asset class. - * - * Emits `NftFractionalized` event when successful. - **/ - | { - name: 'Fractionalize'; - params: { - nftCollectionId: number; - nftId: number; - assetId: number; - beneficiary: MultiAddressLike; - fractions: bigint; - }; - } - /** - * Burn the total issuance of the fungible asset and return (unlock) the locked NFT. - * - * The dispatch origin for this call must be Signed. - * - * `Deposit` funds will be returned to `asset_creator`. - * - * - `nft_collection_id`: The ID used to identify the collection of the NFT. - * Is used within the context of `pallet_nfts`. - * - `nft_id`: The ID used to identify the NFT within the given collection. - * Is used within the context of `pallet_nfts`. - * - `asset_id`: The ID of the asset being returned and destroyed. Must match - * the original ID of the created asset, corresponding to the NFT. - * Is used within the context of `pallet_assets`. - * - `beneficiary`: The account that will receive the unified NFT. - * - * Emits `NftUnified` event when successful. - **/ - | { - name: 'Unify'; - params: { nftCollectionId: number; nftId: number; assetId: number; beneficiary: MultiAddressLike }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletAssetsCall003 = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddress; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddress; isSufficient: boolean; minBalance: bigint } } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddress; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddress; amount: bigint } } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddress; dest: MultiAddress; amount: bigint } } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddress } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddress } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddress } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'SetTeam'; params: { id: number; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress } } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { id: number; name: Bytes; symbol: Bytes; decimals: number } } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddress; - issuer: MultiAddress; - admin: MultiAddress; - freezer: MultiAddress; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddress; amount: bigint } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddress } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddress; delegate: MultiAddress } } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { name: 'TransferApproved'; params: { id: number; owner: MultiAddress; destination: MultiAddress; amount: bigint } } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddress } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddress } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: number; who: MultiAddress } }; - -export type PalletAssetsCallLike003 = - /** - * Issue a new class of fungible assets from a public origin. - * - * This new asset class has no assets initially and its owner is the origin. - * - * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. - * - * Funds of sender are reserved by `AssetDeposit`. - * - * Parameters: - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `admin`: The admin of this class of assets. The admin is the initial address of each - * member of the asset class's admin team. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `Created` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'Create'; params: { id: number; admin: MultiAddressLike; minBalance: bigint } } - /** - * Issue a new class of fungible assets from a privileged origin. - * - * This new asset class has no assets initially. - * - * The origin must conform to `ForceOrigin`. - * - * Unlike `create`, no funds are reserved. - * - * - `id`: The identifier of the new asset. This must not be currently in use to identify - * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. - * - `owner`: The owner of this class of assets. The owner has full superuser permissions - * over this asset, but may later change and configure the permissions using - * `transfer_ownership` and `set_team`. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - * Emits `ForceCreated` event when successful. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCreate'; params: { id: number; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint } } - /** - * Start the process of destroying a fungible asset class. - * - * `start_destroy` is the first in a series of extrinsics that should be called, to allow - * destruction of an asset class. - * - * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * The asset class must be frozen before calling `start_destroy`. - **/ - | { name: 'StartDestroy'; params: { id: number } } - /** - * Destroy all accounts associated with a given asset. - * - * `destroy_accounts` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedAccounts` event. - **/ - | { name: 'DestroyAccounts'; params: { id: number } } - /** - * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). - * - * `destroy_approvals` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. - * - * Due to weight restrictions, this function may need to be called multiple times to fully - * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each call emits the `Event::DestroyedApprovals` event. - **/ - | { name: 'DestroyApprovals'; params: { id: number } } - /** - * Complete destroying asset and unreserve currency. - * - * `finish_destroy` should only be called after `start_destroy` has been called, and the - * asset is in a `Destroying` state. All accounts or approvals should be destroyed before - * hand. - * - * - `id`: The identifier of the asset to be destroyed. This must identify an existing - * asset. - * - * Each successful call emits the `Event::Destroyed` event. - **/ - | { name: 'FinishDestroy'; params: { id: number } } - /** - * Mint assets of a particular class. - * - * The origin must be Signed and the sender must be the Issuer of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount minted. - * - `beneficiary`: The account to be credited with the minted assets. - * - `amount`: The amount of the asset to be minted. - * - * Emits `Issued` event when successful. - * - * Weight: `O(1)` - * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. - **/ - | { name: 'Mint'; params: { id: number; beneficiary: MultiAddressLike; amount: bigint } } - /** - * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. - * - * Origin must be Signed and the sender should be the Manager of the asset `id`. - * - * Bails with `NoAccount` if the `who` is already dead. - * - * - `id`: The identifier of the asset to have some amount burned. - * - `who`: The account to be debited from. - * - `amount`: The maximum amount by which `who`'s balance should be reduced. - * - * Emits `Burned` with the actual amount burned. If this takes the balance to below the - * minimum for the asset, then the amount burned is increased to take it to zero. - * - * Weight: `O(1)` - * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. - **/ - | { name: 'Burn'; params: { id: number; who: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'Transfer'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * Move some assets from the sender account to another, keeping the sender account alive. - * - * Origin must be Signed. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `target`: The account to be credited. - * - `amount`: The amount by which the sender's balance of assets should be reduced and - * `target`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the sender balance above zero but below - * the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of - * `target`. - **/ - | { name: 'TransferKeepAlive'; params: { id: number; target: MultiAddressLike; amount: bigint } } - /** - * Move some assets from one account to another. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to have some amount transferred. - * - `source`: The account to be debited. - * - `dest`: The account to be credited. - * - `amount`: The amount by which the `source`'s balance of assets should be reduced and - * `dest`'s balance increased. The amount actually transferred may be slightly greater in - * the case that the transfer would otherwise take the `source` balance above zero but - * below the minimum balance. Must be greater than zero. - * - * Emits `Transferred` with the actual amount transferred. If this takes the source balance - * to below the minimum for the asset, then the amount transferred is increased to take it - * to zero. - * - * Weight: `O(1)` - * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of - * `dest`. - **/ - | { name: 'ForceTransfer'; params: { id: number; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint } } - /** - * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` - * must already exist as an entry in `Account`s of the asset. If you want to freeze an - * account that does not have an entry, use `touch_other` first. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'Freeze'; params: { id: number; who: MultiAddressLike } } - /** - * Allow unprivileged transfers to and from an account again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `who`: The account to be unfrozen. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'Thaw'; params: { id: number; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers for the asset class. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - * Emits `Frozen`. - * - * Weight: `O(1)` - **/ - | { name: 'FreezeAsset'; params: { id: number } } - /** - * Allow unprivileged transfers for the asset again. - * - * Origin must be Signed and the sender should be the Admin of the asset `id`. - * - * - `id`: The identifier of the asset to be thawed. - * - * Emits `Thawed`. - * - * Weight: `O(1)` - **/ - | { name: 'ThawAsset'; params: { id: number } } - /** - * Change the Owner of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - * Emits `OwnerChanged`. - * - * Weight: `O(1)` - **/ - | { name: 'TransferOwnership'; params: { id: number; owner: MultiAddressLike } } - /** - * Change the Issuer, Admin and Freezer of an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * - `id`: The identifier of the asset to be frozen. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - * Emits `TeamChanged`. - * - * Weight: `O(1)` - **/ - | { - name: 'SetTeam'; - params: { id: number; issuer: MultiAddressLike; admin: MultiAddressLike; freezer: MultiAddressLike }; - } - /** - * Set the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Funds of sender are reserved according to the formula: - * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into - * account any already reserved funds. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(1)` - **/ - | { name: 'SetMetadata'; params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number } } - /** - * Clear the metadata for an asset. - * - * Origin must be Signed and the sender should be the Owner of the asset `id`. - * - * Any deposit is freed for the asset owner. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ClearMetadata'; params: { id: number } } - /** - * Force the metadata for an asset to some value. - * - * Origin must be ForceOrigin. - * - * Any deposit is left alone. - * - * - `id`: The identifier of the asset to update. - * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. - * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. - * - `decimals`: The number of decimals this asset uses to represent one unit. - * - * Emits `MetadataSet`. - * - * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. - **/ - | { - name: 'ForceSetMetadata'; - params: { id: number; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean }; - } - /** - * Clear the metadata for an asset. - * - * Origin must be ForceOrigin. - * - * Any deposit is returned. - * - * - `id`: The identifier of the asset to clear. - * - * Emits `MetadataCleared`. - * - * Weight: `O(1)` - **/ - | { name: 'ForceClearMetadata'; params: { id: number } } - /** - * Alter the attributes of a given asset. - * - * Origin must be `ForceOrigin`. - * - * - `id`: The identifier of the asset. - * - `owner`: The new Owner of this asset. - * - `issuer`: The new Issuer of this asset. - * - `admin`: The new Admin of this asset. - * - `freezer`: The new Freezer of this asset. - * - `min_balance`: The minimum balance of this new asset that any single account must - * have. If an account's balance is reduced below this, then it collapses to zero. - * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient - * value to account for the state bloat associated with its balance storage. If set to - * `true`, then non-zero balances may be stored without a `consumer` reference (and thus - * an ED in the Balances pallet or whatever else is used to control user-account state - * growth). - * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin - * instructions. - * - * Emits `AssetStatusChanged` with the identity of the asset. - * - * Weight: `O(1)` - **/ - | { - name: 'ForceAssetStatus'; - params: { - id: number; - owner: MultiAddressLike; - issuer: MultiAddressLike; - admin: MultiAddressLike; - freezer: MultiAddressLike; - minBalance: bigint; - isSufficient: boolean; - isFrozen: boolean; - }; - } - /** - * Approve an amount of asset for transfer by a delegated third-party account. - * - * Origin must be Signed. - * - * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account - * for the purpose of holding the approval. If some non-zero amount of assets is already - * approved from signing account to `delegate`, then it is topped up or unreserved to - * meet the right value. - * - * NOTE: The signing account does not need to own `amount` of assets at the point of - * making this call. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account to delegate permission to transfer asset. - * - `amount`: The amount of asset that may be transferred by `delegate`. If there is - * already an approval in place, then this acts additively. - * - * Emits `ApprovedTransfer` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ApproveTransfer'; params: { id: number; delegate: MultiAddressLike; amount: bigint } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be Signed and there must be an approval in place between signer and - * `delegate`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'CancelApproval'; params: { id: number; delegate: MultiAddressLike } } - /** - * Cancel all of some asset approved for delegated transfer by a third-party account. - * - * Origin must be either ForceOrigin or Signed origin with the signer being the Admin - * account of the asset `id`. - * - * Unreserves any deposit previously reserved by `approve_transfer` for the approval. - * - * - `id`: The identifier of the asset. - * - `delegate`: The account delegated permission to transfer asset. - * - * Emits `ApprovalCancelled` on success. - * - * Weight: `O(1)` - **/ - | { name: 'ForceCancelApproval'; params: { id: number; owner: MultiAddressLike; delegate: MultiAddressLike } } - /** - * Transfer some asset balance from a previously delegated account to some third-party - * account. - * - * Origin must be Signed and there must be an approval in place by the `owner` to the - * signer. - * - * If the entire amount approved for transfer is transferred, then any deposit previously - * reserved by `approve_transfer` is unreserved. - * - * - `id`: The identifier of the asset. - * - `owner`: The account which previously approved for a transfer of at least `amount` and - * from which the asset balance will be withdrawn. - * - `destination`: The account to which the asset balance of `amount` will be transferred. - * - `amount`: The amount of assets to transfer. - * - * Emits `TransferredApproved` on success. - * - * Weight: `O(1)` - **/ - | { - name: 'TransferApproved'; - params: { id: number; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint }; - } - /** - * Create an asset account for non-provider assets. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit - * to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'Touch'; params: { id: number } } - /** - * Return the deposit (if any) of an asset account or a consumer reference (if any) of an - * account. - * - * The origin must be Signed. - * - * - `id`: The identifier of the asset for which the caller would like the deposit - * refunded. - * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'Refund'; params: { id: number; allowBurn: boolean } } - /** - * Sets the minimum balance of an asset. - * - * Only works if there aren't any accounts that are holding the asset or if - * the new value of `min_balance` is less than the old one. - * - * Origin must be Signed and the sender has to be the Owner of the - * asset `id`. - * - * - `id`: The identifier of the asset. - * - `min_balance`: The new value of `min_balance`. - * - * Emits `AssetMinBalanceChanged` event when successful. - **/ - | { name: 'SetMinBalance'; params: { id: number; minBalance: bigint } } - /** - * Create an asset account for `who`. - * - * A deposit will be taken from the signer account. - * - * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account - * must have sufficient funds for a deposit to be taken. - * - `id`: The identifier of the asset for the account to be created. - * - `who`: The account to be created. - * - * Emits `Touched` event when successful. - **/ - | { name: 'TouchOther'; params: { id: number; who: MultiAddressLike } } - /** - * Return the deposit (if any) of a target asset account. Useful if you are the depositor. - * - * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In - * order to burn a non-zero balance of the asset, the caller must be the account and should - * use `refund`. - * - * - `id`: The identifier of the asset for the account holding a deposit. - * - `who`: The account to refund. - * - * Emits `Refunded` event when successful. - **/ - | { name: 'RefundOther'; params: { id: number; who: MultiAddressLike } } - /** - * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. - * - * Origin must be Signed and the sender should be the Freezer of the asset `id`. - * - * - `id`: The identifier of the account's asset. - * - `who`: The account to be unblocked. - * - * Emits `Blocked`. - * - * Weight: `O(1)` - **/ - | { name: 'Block'; params: { id: number; who: MultiAddressLike } }; - -/** - * Pallet's callable functions. - **/ -export type PalletAssetConversionCall = - /** - * Creates an empty liquidity pool and an associated new `lp_token` asset - * (the id of which is returned in the `Event::PoolCreated` event). - * - * Once a pool is created, someone may [`Pallet::add_liquidity`] to it. - **/ - | { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - } - /** - * Provide liquidity into the pool of `asset1` and `asset2`. - * NOTE: an optimal amount of asset1 and asset2 will be calculated and - * might be different than the provided `amount1_desired`/`amount2_desired` - * thus you should provide the min amount you're happy to provide. - * Params `amount1_min`/`amount2_min` represent that. - * `mint_to` will be sent the liquidity tokens that represent this share of the pool. - * - * NOTE: when encountering an incorrect exchange rate and non-withdrawable pool liquidity, - * batch an atomic call with [`Pallet::add_liquidity`] and - * [`Pallet::swap_exact_tokens_for_tokens`] or [`Pallet::swap_tokens_for_exact_tokens`] - * calls to render the liquidity withdrawable and rectify the exchange rate. - * - * Once liquidity is added, someone may successfully call - * [`Pallet::swap_exact_tokens_for_tokens`] successfully. - **/ - | { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32; - }; - } - /** - * Allows you to remove liquidity by providing the `lp_token_burn` tokens that will be - * burned in the process. With the usage of `amount1_min_receive`/`amount2_min_receive` - * it's possible to control the min amount of returned tokens you're happy with. - **/ - | { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32; - }; - } - /** - * Swap the exact amount of `asset1` into `asset2`. - * `amount_out_min` param allows you to specify the min amount of the `asset2` - * you're happy to receive. - * - * [`AssetConversionApi::quote_price_exact_tokens_for_tokens`] runtime call can be called - * for a quote. - **/ - | { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32; - keepAlive: boolean; - }; - } - /** - * Swap any amount of `asset1` to get the exact amount of `asset2`. - * `amount_in_max` param allows to specify the max amount of the `asset1` - * you're happy to provide. - * - * [`AssetConversionApi::quote_price_tokens_for_exact_tokens`] runtime call can be called - * for a quote. - **/ - | { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32; - keepAlive: boolean; - }; - } - /** - * Touch an existing pool to fulfill prerequisites before providing liquidity, such as - * ensuring that the pool's accounts are in place. It is typically useful when a pool - * creator removes the pool's accounts and does not provide a liquidity. This action may - * involve holding assets from the caller as a deposit for creating the pool's accounts. - * - * The origin must be Signed. - * - * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2). - * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2). - * - * Emits `Touched` event when successful. - **/ - | { - name: 'Touch'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - -export type PalletAssetConversionCallLike = - /** - * Creates an empty liquidity pool and an associated new `lp_token` asset - * (the id of which is returned in the `Event::PoolCreated` event). - * - * Once a pool is created, someone may [`Pallet::add_liquidity`] to it. - **/ - | { - name: 'CreatePool'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - } - /** - * Provide liquidity into the pool of `asset1` and `asset2`. - * NOTE: an optimal amount of asset1 and asset2 will be calculated and - * might be different than the provided `amount1_desired`/`amount2_desired` - * thus you should provide the min amount you're happy to provide. - * Params `amount1_min`/`amount2_min` represent that. - * `mint_to` will be sent the liquidity tokens that represent this share of the pool. - * - * NOTE: when encountering an incorrect exchange rate and non-withdrawable pool liquidity, - * batch an atomic call with [`Pallet::add_liquidity`] and - * [`Pallet::swap_exact_tokens_for_tokens`] or [`Pallet::swap_tokens_for_exact_tokens`] - * calls to render the liquidity withdrawable and rectify the exchange rate. - * - * Once liquidity is added, someone may successfully call - * [`Pallet::swap_exact_tokens_for_tokens`] successfully. - **/ - | { - name: 'AddLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - amount1Desired: bigint; - amount2Desired: bigint; - amount1Min: bigint; - amount2Min: bigint; - mintTo: AccountId32Like; - }; - } - /** - * Allows you to remove liquidity by providing the `lp_token_burn` tokens that will be - * burned in the process. With the usage of `amount1_min_receive`/`amount2_min_receive` - * it's possible to control the min amount of returned tokens you're happy with. - **/ - | { - name: 'RemoveLiquidity'; - params: { - asset1: StagingXcmV3MultilocationMultiLocation; - asset2: StagingXcmV3MultilocationMultiLocation; - lpTokenBurn: bigint; - amount1MinReceive: bigint; - amount2MinReceive: bigint; - withdrawTo: AccountId32Like; - }; - } - /** - * Swap the exact amount of `asset1` into `asset2`. - * `amount_out_min` param allows you to specify the min amount of the `asset2` - * you're happy to receive. - * - * [`AssetConversionApi::quote_price_exact_tokens_for_tokens`] runtime call can be called - * for a quote. - **/ - | { - name: 'SwapExactTokensForTokens'; - params: { - path: Array; - amountIn: bigint; - amountOutMin: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - } - /** - * Swap any amount of `asset1` to get the exact amount of `asset2`. - * `amount_in_max` param allows to specify the max amount of the `asset1` - * you're happy to provide. - * - * [`AssetConversionApi::quote_price_tokens_for_exact_tokens`] runtime call can be called - * for a quote. - **/ - | { - name: 'SwapTokensForExactTokens'; - params: { - path: Array; - amountOut: bigint; - amountInMax: bigint; - sendTo: AccountId32Like; - keepAlive: boolean; - }; - } - /** - * Touch an existing pool to fulfill prerequisites before providing liquidity, such as - * ensuring that the pool's accounts are in place. It is typically useful when a pool - * creator removes the pool's accounts and does not provide a liquidity. This action may - * involve holding assets from the caller as a deposit for creating the pool's accounts. - * - * The origin must be Signed. - * - * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2). - * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2). - * - * Emits `Touched` event when successful. - **/ - | { - name: 'Touch'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletStateTrieMigrationCall = - /** - * Control the automatic migration. - * - * The dispatch origin of this call must be [`Config::ControlOrigin`]. - **/ - | { name: 'ControlAutoMigration'; params: { maybeConfig?: PalletStateTrieMigrationMigrationLimits | undefined } } - /** - * Continue the migration for the given `limits`. - * - * The dispatch origin of this call can be any signed account. - * - * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit, - * Upon successful execution, the transaction fee is returned. - * - * The (potentially over-estimated) of the byte length of all the data read must be - * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing - * that executing the current `MigrationTask` with the given `limits` will not exceed - * `real_size_upper` bytes of read data. - * - * The `witness_task` is merely a helper to prevent the caller from being slashed or - * generally trigger a migration that they do not intend. This parameter is just a message - * from caller, saying that they believed `witness_task` was the last state of the - * migration, and they only wish for their transaction to do anything, if this assumption - * holds. In case `witness_task` does not match, the transaction fails. - * - * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the - * recommended way of doing this is to pass a `limit` that only bounds `count`, as the - * `size` limit can always be overwritten. - **/ - | { - name: 'ContinueMigrate'; - params: { - limits: PalletStateTrieMigrationMigrationLimits; - realSizeUpper: number; - witnessTask: PalletStateTrieMigrationMigrationTask; - }; - } - /** - * Migrate the list of top keys by iterating each of them one by one. - * - * This does not affect the global migration process tracker ([`MigrationProcess`]), and - * should only be used in case any keys are leftover due to a bug. - **/ - | { name: 'MigrateCustomTop'; params: { keys: Array; witnessSize: number } } - /** - * Migrate the list of child keys by iterating each of them one by one. - * - * All of the given child keys must be present under one `child_root`. - * - * This does not affect the global migration process tracker ([`MigrationProcess`]), and - * should only be used in case any keys are leftover due to a bug. - **/ - | { name: 'MigrateCustomChild'; params: { root: Bytes; childKeys: Array; totalSize: number } } - /** - * Set the maximum limit of the signed migration. - **/ - | { name: 'SetSignedMaxLimits'; params: { limits: PalletStateTrieMigrationMigrationLimits } } - /** - * Forcefully set the progress the running migration. - * - * This is only useful in one case: the next key to migrate is too big to be migrated with - * a signed account, in a parachain context, and we simply want to skip it. A reasonable - * example of this would be `:code:`, which is both very expensive to migrate, and commonly - * used, so probably it is already migrated. - * - * In case you mess things up, you can also, in principle, use this to reset the migration - * process. - **/ - | { - name: 'ForceSetProgress'; - params: { progressTop: PalletStateTrieMigrationProgress; progressChild: PalletStateTrieMigrationProgress }; - }; - -export type PalletStateTrieMigrationCallLike = - /** - * Control the automatic migration. - * - * The dispatch origin of this call must be [`Config::ControlOrigin`]. - **/ - | { name: 'ControlAutoMigration'; params: { maybeConfig?: PalletStateTrieMigrationMigrationLimits | undefined } } - /** - * Continue the migration for the given `limits`. - * - * The dispatch origin of this call can be any signed account. - * - * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit, - * Upon successful execution, the transaction fee is returned. - * - * The (potentially over-estimated) of the byte length of all the data read must be - * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing - * that executing the current `MigrationTask` with the given `limits` will not exceed - * `real_size_upper` bytes of read data. - * - * The `witness_task` is merely a helper to prevent the caller from being slashed or - * generally trigger a migration that they do not intend. This parameter is just a message - * from caller, saying that they believed `witness_task` was the last state of the - * migration, and they only wish for their transaction to do anything, if this assumption - * holds. In case `witness_task` does not match, the transaction fails. - * - * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the - * recommended way of doing this is to pass a `limit` that only bounds `count`, as the - * `size` limit can always be overwritten. - **/ - | { - name: 'ContinueMigrate'; - params: { - limits: PalletStateTrieMigrationMigrationLimits; - realSizeUpper: number; - witnessTask: PalletStateTrieMigrationMigrationTask; - }; - } - /** - * Migrate the list of top keys by iterating each of them one by one. - * - * This does not affect the global migration process tracker ([`MigrationProcess`]), and - * should only be used in case any keys are leftover due to a bug. - **/ - | { name: 'MigrateCustomTop'; params: { keys: Array; witnessSize: number } } - /** - * Migrate the list of child keys by iterating each of them one by one. - * - * All of the given child keys must be present under one `child_root`. - * - * This does not affect the global migration process tracker ([`MigrationProcess`]), and - * should only be used in case any keys are leftover due to a bug. - **/ - | { name: 'MigrateCustomChild'; params: { root: BytesLike; childKeys: Array; totalSize: number } } - /** - * Set the maximum limit of the signed migration. - **/ - | { name: 'SetSignedMaxLimits'; params: { limits: PalletStateTrieMigrationMigrationLimits } } - /** - * Forcefully set the progress the running migration. - * - * This is only useful in one case: the next key to migrate is too big to be migrated with - * a signed account, in a parachain context, and we simply want to skip it. A reasonable - * example of this would be `:code:`, which is both very expensive to migrate, and commonly - * used, so probably it is already migrated. - * - * In case you mess things up, you can also, in principle, use this to reset the migration - * process. - **/ - | { - name: 'ForceSetProgress'; - params: { progressTop: PalletStateTrieMigrationProgress; progressChild: PalletStateTrieMigrationProgress }; - }; - -export type PalletStateTrieMigrationMigrationLimits = { size: number; item: number }; - -export type PalletStateTrieMigrationMigrationTask = { - progressTop: PalletStateTrieMigrationProgress; - progressChild: PalletStateTrieMigrationProgress; - size: number; - topItems: number; - childItems: number; -}; - -export type PalletStateTrieMigrationProgress = - | { type: 'ToStart' } - | { type: 'LastKey'; value: Bytes } - | { type: 'Complete' }; - -/** - * Pallet's callable functions. - **/ -export type PalletAssetConversionOpsCall = - /** - * Migrates an existing pool to a new account ID derivation method for a given asset pair. - * If the migration is successful, transaction fees are refunded to the caller. - * - * Must be signed. - **/ - { - name: 'MigrateToNewAccount'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - -export type PalletAssetConversionOpsCallLike = - /** - * Migrates an existing pool to a new account ID derivation method for a given asset pair. - * If the migration is successful, transaction fees are refunded to the caller. - * - * Must be signed. - **/ - { - name: 'MigrateToNewAccount'; - params: { asset1: StagingXcmV3MultilocationMultiLocation; asset2: StagingXcmV3MultilocationMultiLocation }; - }; - -export type AssetHubWestendRuntimeOriginCaller = - | { type: 'System'; value: FrameSupportDispatchRawOrigin } - | { type: 'PolkadotXcm'; value: PalletXcmOrigin } - | { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin } - | { type: 'Void'; value: SpCoreVoid }; - -export type FrameSupportDispatchRawOrigin = - | { type: 'Root' } - | { type: 'Signed'; value: AccountId32 } - | { type: 'None' }; - -export type PalletXcmOrigin = - | { type: 'Xcm'; value: StagingXcmV4Location } - | { type: 'Response'; value: StagingXcmV4Location }; - -export type CumulusPalletXcmOrigin = - | { type: 'Relay' } - | { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type SpCoreVoid = null; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletUtilityError = - /** - * Too many calls batched. - **/ - 'TooManyCalls'; - -export type PalletMultisigMultisig = { - when: PalletMultisigTimepoint; - deposit: bigint; - depositor: AccountId32; - approvals: Array; -}; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMultisigError = - /** - * Threshold must be 2 or greater. - **/ - | 'MinimumThreshold' - /** - * Call is already approved by this signatory. - **/ - | 'AlreadyApproved' - /** - * Call doesn't need any (more) approvals. - **/ - | 'NoApprovalsNeeded' - /** - * There are too few signatories in the list. - **/ - | 'TooFewSignatories' - /** - * There are too many signatories in the list. - **/ - | 'TooManySignatories' - /** - * The signatories were provided out of order; they should be ordered. - **/ - | 'SignatoriesOutOfOrder' - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - | 'SenderInSignatories' - /** - * Multisig operation not found when attempting to cancel. - **/ - | 'NotFound' - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - | 'NotOwner' - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - | 'NoTimepoint' - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - | 'WrongTimepoint' - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - | 'UnexpectedTimepoint' - /** - * The maximum weight information provided was too low. - **/ - | 'MaxWeightTooLow' - /** - * The data to be stored is already stored. - **/ - | 'AlreadyStored'; - -export type PalletProxyProxyDefinition = { - delegate: AccountId32; - proxyType: AssetHubWestendRuntimeProxyType; - delay: number; -}; - -export type PalletProxyAnnouncement = { real: AccountId32; callHash: H256; height: number }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletProxyError = - /** - * There are too many proxies registered or too many announcements pending. - **/ - | 'TooMany' - /** - * Proxy registration not found. - **/ - | 'NotFound' - /** - * Sender is not a proxy of the account to be proxied. - **/ - | 'NotProxy' - /** - * A call which is incompatible with the proxy type's filter was attempted. - **/ - | 'Unproxyable' - /** - * Account is already a proxy. - **/ - | 'Duplicate' - /** - * Call may not be made by proxy because it may escalate its privileges. - **/ - | 'NoPermission' - /** - * Announcement, if made at all, was made too recently. - **/ - | 'Unannounced' - /** - * Cannot add self as proxy. - **/ - | 'NoSelfProxy'; - -export type PalletAssetsAssetDetails = { - owner: AccountId32; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - supply: bigint; - deposit: bigint; - minBalance: bigint; - isSufficient: boolean; - accounts: number; - sufficients: number; - approvals: number; - status: PalletAssetsAssetStatus; -}; - -export type PalletAssetsAssetStatus = 'Live' | 'Frozen' | 'Destroying'; - -export type PalletAssetsAssetAccount = { - balance: bigint; - status: PalletAssetsAccountStatus; - reason: PalletAssetsExistenceReason; - extra: []; -}; - -export type PalletAssetsAccountStatus = 'Liquid' | 'Frozen' | 'Blocked'; - -export type PalletAssetsExistenceReason = - | { type: 'Consumer' } - | { type: 'Sufficient' } - | { type: 'DepositHeld'; value: bigint } - | { type: 'DepositRefunded' } - | { type: 'DepositFrom'; value: [AccountId32, bigint] }; - -export type PalletAssetsApproval = { amount: bigint; deposit: bigint }; - -export type PalletAssetsAssetMetadata = { - deposit: bigint; - name: Bytes; - symbol: Bytes; - decimals: number; - isFrozen: boolean; -}; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetsError = - /** - * Account balance must be greater than or equal to the transfer amount. - **/ - | 'BalanceLow' - /** - * The account to alter does not exist. - **/ - | 'NoAccount' - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given asset ID is unknown. - **/ - | 'Unknown' - /** - * The origin account is frozen. - **/ - | 'Frozen' - /** - * The asset ID is already taken. - **/ - | 'InUse' - /** - * Invalid witness data given. - **/ - | 'BadWitness' - /** - * Minimum balance should be non-zero. - **/ - | 'MinBalanceZero' - /** - * Unable to increment the consumer reference counters on the account. Either no provider - * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one - * fewer then the maximum number of consumers has been reached. - **/ - | 'UnavailableConsumer' - /** - * Invalid metadata given. - **/ - | 'BadMetadata' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The source account would not survive the transfer and it needs to stay alive. - **/ - | 'WouldDie' - /** - * The asset-account already exists. - **/ - | 'AlreadyExists' - /** - * The asset-account doesn't have an associated deposit. - **/ - | 'NoDeposit' - /** - * The operation would result in funds being burned. - **/ - | 'WouldBurn' - /** - * The asset is a live asset and is actively being used. Usually emit for operations such - * as `start_destroy` which require the asset to be in a destroying state. - **/ - | 'LiveAsset' - /** - * The asset is not live, and likely being destroyed. - **/ - | 'AssetNotLive' - /** - * The asset status is not the expected status. - **/ - | 'IncorrectStatus' - /** - * The asset should be frozen before the given operation. - **/ - | 'NotFrozen' - /** - * Callback action resulted in error - **/ - | 'CallbackFailed' - /** - * The asset ID must be equal to the [`NextAssetId`]. - **/ - | 'BadAssetId'; - -export type PalletUniquesCollectionDetails = { - owner: AccountId32; - issuer: AccountId32; - admin: AccountId32; - freezer: AccountId32; - totalDeposit: bigint; - freeHolding: boolean; - items: number; - itemMetadatas: number; - attributes: number; - isFrozen: boolean; -}; - -export type PalletUniquesItemDetails = { - owner: AccountId32; - approved?: AccountId32 | undefined; - isFrozen: boolean; - deposit: bigint; -}; - -export type PalletUniquesCollectionMetadata = { deposit: bigint; data: Bytes; isFrozen: boolean }; - -export type PalletUniquesItemMetadata = { deposit: bigint; data: Bytes; isFrozen: boolean }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletUniquesError = - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given item ID is unknown. - **/ - | 'UnknownCollection' - /** - * The item ID has already been used for an item. - **/ - | 'AlreadyExists' - /** - * The owner turned out to be different to what was expected. - **/ - | 'WrongOwner' - /** - * Invalid witness data given. - **/ - | 'BadWitness' - /** - * The item ID is already taken. - **/ - | 'InUse' - /** - * The item or collection is frozen. - **/ - | 'Frozen' - /** - * The delegate turned out to be different to what was expected. - **/ - | 'WrongDelegate' - /** - * There is no delegate approved. - **/ - | 'NoDelegate' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The named owner has not signed ownership of the collection is acceptable. - **/ - | 'Unaccepted' - /** - * The item is locked. - **/ - | 'Locked' - /** - * All items have been minted. - **/ - | 'MaxSupplyReached' - /** - * The max supply has already been set. - **/ - | 'MaxSupplyAlreadySet' - /** - * The provided max supply is less to the amount of items a collection already has. - **/ - | 'MaxSupplyTooSmall' - /** - * The given item ID is unknown. - **/ - | 'UnknownItem' - /** - * Item is not for sale. - **/ - | 'NotForSale' - /** - * The provided bid is too low. - **/ - | 'BidTooLow'; - -export type PalletNftsCollectionDetails = { - owner: AccountId32; - ownerDeposit: bigint; - items: number; - itemMetadatas: number; - itemConfigs: number; - attributes: number; -}; - -export type PalletNftsBitFlagsCollectionRole = number; - -export type PalletNftsCollectionRole = 'Issuer' | 'Freezer' | 'Admin'; - -export type PalletNftsItemDetails = { - owner: AccountId32; - approvals: Array<[AccountId32, number | undefined]>; - deposit: PalletNftsItemDeposit; -}; - -export type PalletNftsItemDeposit = { account: AccountId32; amount: bigint }; - -export type PalletNftsCollectionMetadata = { deposit: bigint; data: Bytes }; - -export type PalletNftsItemMetadata = { deposit: PalletNftsItemMetadataDeposit; data: Bytes }; - -export type PalletNftsItemMetadataDeposit = { account?: AccountId32 | undefined; amount: bigint }; - -export type PalletNftsAttributeDeposit = { account?: AccountId32 | undefined; amount: bigint }; - -export type PalletNftsPendingSwap = { - desiredCollection: number; - desiredItem?: number | undefined; - price?: PalletNftsPriceWithDirection | undefined; - deadline: number; -}; - -export type PalletNftsBitFlagsPalletFeature = bigint; - -export type PalletNftsPalletFeature = 'Trading' | 'Attributes' | 'Approvals' | 'Swaps'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletNftsError = - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * The given item ID is unknown. - **/ - | 'UnknownCollection' - /** - * The item ID has already been used for an item. - **/ - | 'AlreadyExists' - /** - * The approval had a deadline that expired, so the approval isn't valid anymore. - **/ - | 'ApprovalExpired' - /** - * The owner turned out to be different to what was expected. - **/ - | 'WrongOwner' - /** - * The witness data given does not match the current state of the chain. - **/ - | 'BadWitness' - /** - * Collection ID is already taken. - **/ - | 'CollectionIdInUse' - /** - * Items within that collection are non-transferable. - **/ - | 'ItemsNonTransferable' - /** - * The provided account is not a delegate. - **/ - | 'NotDelegate' - /** - * The delegate turned out to be different to what was expected. - **/ - | 'WrongDelegate' - /** - * No approval exists that would allow the transfer. - **/ - | 'Unapproved' - /** - * The named owner has not signed ownership acceptance of the collection. - **/ - | 'Unaccepted' - /** - * The item is locked (non-transferable). - **/ - | 'ItemLocked' - /** - * Item's attributes are locked. - **/ - | 'LockedItemAttributes' - /** - * Collection's attributes are locked. - **/ - | 'LockedCollectionAttributes' - /** - * Item's metadata is locked. - **/ - | 'LockedItemMetadata' - /** - * Collection's metadata is locked. - **/ - | 'LockedCollectionMetadata' - /** - * All items have been minted. - **/ - | 'MaxSupplyReached' - /** - * The max supply is locked and can't be changed. - **/ - | 'MaxSupplyLocked' - /** - * The provided max supply is less than the number of items a collection already has. - **/ - | 'MaxSupplyTooSmall' - /** - * The given item ID is unknown. - **/ - | 'UnknownItem' - /** - * Swap doesn't exist. - **/ - | 'UnknownSwap' - /** - * The given item has no metadata set. - **/ - | 'MetadataNotFound' - /** - * The provided attribute can't be found. - **/ - | 'AttributeNotFound' - /** - * Item is not for sale. - **/ - | 'NotForSale' - /** - * The provided bid is too low. - **/ - | 'BidTooLow' - /** - * The item has reached its approval limit. - **/ - | 'ReachedApprovalLimit' - /** - * The deadline has already expired. - **/ - | 'DeadlineExpired' - /** - * The duration provided should be less than or equal to `MaxDeadlineDuration`. - **/ - | 'WrongDuration' - /** - * The method is disabled by system settings. - **/ - | 'MethodDisabled' - /** - * The provided setting can't be set. - **/ - | 'WrongSetting' - /** - * Item's config already exists and should be equal to the provided one. - **/ - | 'InconsistentItemConfig' - /** - * Config for a collection or an item can't be found. - **/ - | 'NoConfig' - /** - * Some roles were not cleared. - **/ - | 'RolesNotCleared' - /** - * Mint has not started yet. - **/ - | 'MintNotStarted' - /** - * Mint has already ended. - **/ - | 'MintEnded' - /** - * The provided Item was already used for claiming. - **/ - | 'AlreadyClaimed' - /** - * The provided data is incorrect. - **/ - | 'IncorrectData' - /** - * The extrinsic was sent by the wrong origin. - **/ - | 'WrongOrigin' - /** - * The provided signature is incorrect. - **/ - | 'WrongSignature' - /** - * The provided metadata might be too long. - **/ - | 'IncorrectMetadata' - /** - * Can't set more attributes per one call. - **/ - | 'MaxAttributesLimitReached' - /** - * The provided namespace isn't supported in this call. - **/ - | 'WrongNamespace' - /** - * Can't delete non-empty collections. - **/ - | 'CollectionNotEmpty' - /** - * The witness data should be provided. - **/ - | 'WitnessRequired'; - -export type PalletNftFractionalizationDetails = { - asset: number; - fractions: bigint; - deposit: bigint; - assetCreator: AccountId32; -}; - -export type FrameSupportPalletId = FixedBytes<8>; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletNftFractionalizationError = - /** - * Asset ID does not correspond to locked NFT. - **/ - | 'IncorrectAssetId' - /** - * The signing account has no permission to do the operation. - **/ - | 'NoPermission' - /** - * NFT doesn't exist. - **/ - | 'NftNotFound' - /** - * NFT has not yet been fractionalised. - **/ - | 'NftNotFractionalized'; - -export type PalletAssetConversionPoolInfo = { lpToken: number }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetConversionError = - /** - * Provided asset pair is not supported for pool. - **/ - | 'InvalidAssetPair' - /** - * Pool already exists. - **/ - | 'PoolExists' - /** - * Desired amount can't be zero. - **/ - | 'WrongDesiredAmount' - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'AmountOneLessThanMinimal' - /** - * Provided amount should be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'AmountTwoLessThanMinimal' - /** - * Reserve needs to always be greater than or equal to the existential deposit/asset's - * minimal amount. - **/ - | 'ReserveLeftLessThanMinimal' - /** - * Desired amount can't be equal to the pool reserve. - **/ - | 'AmountOutTooHigh' - /** - * The pool doesn't exist. - **/ - | 'PoolNotFound' - /** - * An overflow happened. - **/ - | 'Overflow' - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - | 'AssetOneDepositDidNotMeetMinimum' - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - | 'AssetTwoDepositDidNotMeetMinimum' - /** - * The minimal amount requirement for the first token in the pair wasn't met. - **/ - | 'AssetOneWithdrawalDidNotMeetMinimum' - /** - * The minimal amount requirement for the second token in the pair wasn't met. - **/ - | 'AssetTwoWithdrawalDidNotMeetMinimum' - /** - * Optimal calculated amount is less than desired. - **/ - | 'OptimalAmountLessThanDesired' - /** - * Insufficient liquidity minted. - **/ - | 'InsufficientLiquidityMinted' - /** - * Requested liquidity can't be zero. - **/ - | 'ZeroLiquidity' - /** - * Amount can't be zero. - **/ - | 'ZeroAmount' - /** - * Calculated amount out is less than provided minimum amount. - **/ - | 'ProvidedMinimumNotSufficientForSwap' - /** - * Provided maximum amount is not sufficient for swap. - **/ - | 'ProvidedMaximumNotSufficientForSwap' - /** - * The provided path must consists of 2 assets at least. - **/ - | 'InvalidPath' - /** - * The provided path must consists of unique assets. - **/ - | 'NonUniquePath' - /** - * It was not possible to get or increment the Id of the pool. - **/ - | 'IncorrectPoolAssetId' - /** - * The destination account cannot exist with the swapped funds. - **/ - | 'BelowMinimum'; - -export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = { - id: AssetHubWestendRuntimeRuntimeFreezeReason; - amount: bigint; -}; - -export type AssetHubWestendRuntimeRuntimeFreezeReason = null; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetsFreezerError = - /** - * Number of freezes on an account would exceed `MaxFreezes`. - **/ - 'TooManyFreezes'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletAssetConversionOpsError = - /** - * Provided asset pair is not supported for pool. - **/ - | 'InvalidAssetPair' - /** - * The pool doesn't exist. - **/ - | 'PoolNotFound' - /** - * Pool's balance cannot be zero. - **/ - | 'ZeroBalance' - /** - * Indicates a partial transfer of balance to the new account during a migration. - **/ - | 'PartialTransfer'; - -export type FrameSystemExtensionsCheckNonZeroSender = {}; - -export type FrameSystemExtensionsCheckSpecVersion = {}; - -export type FrameSystemExtensionsCheckTxVersion = {}; - -export type FrameSystemExtensionsCheckGenesis = {}; - -export type FrameSystemExtensionsCheckMortality = Era; - -export type FrameSystemExtensionsCheckNonce = number; - -export type FrameSystemExtensionsCheckWeight = {}; - -export type PalletAssetConversionTxPaymentChargeAssetTxPayment = { - tip: bigint; - assetId?: StagingXcmV3MultilocationMultiLocation | undefined; -}; - -export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {}; - -export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode }; - -export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled'; - -export type AssetHubWestendRuntimeRuntime = {}; - -export type SpConsensusSlotsSlotDuration = bigint; - -export type SpRuntimeBlock = { header: Header; extrinsics: Array }; - -export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents'; - -export type SpCoreOpaqueMetadata = Bytes; - -export type SpRuntimeTransactionValidityTransactionValidityError = - | { type: 'Invalid'; value: SpRuntimeTransactionValidityInvalidTransaction } - | { type: 'Unknown'; value: SpRuntimeTransactionValidityUnknownTransaction }; - -export type SpRuntimeTransactionValidityInvalidTransaction = - | { type: 'Call' } - | { type: 'Payment' } - | { type: 'Future' } - | { type: 'Stale' } - | { type: 'BadProof' } - | { type: 'AncientBirthBlock' } - | { type: 'ExhaustsResources' } - | { type: 'Custom'; value: number } - | { type: 'BadMandatory' } - | { type: 'MandatoryValidation' } - | { type: 'BadSigner' }; - -export type SpRuntimeTransactionValidityUnknownTransaction = - | { type: 'CannotLookup' } - | { type: 'NoUnsignedValidator' } - | { type: 'Custom'; value: number }; - -export type SpInherentsInherentData = { data: Array<[FixedBytes<8>, Bytes]> }; - -export type SpInherentsCheckInherentsResult = { okay: boolean; fatalError: boolean; errors: SpInherentsInherentData }; - -export type SpRuntimeTransactionValidityTransactionSource = 'InBlock' | 'Local' | 'External'; - -export type SpRuntimeTransactionValidityValidTransaction = { - priority: bigint; - requires: Array; - provides: Array; - longevity: bigint; - propagate: boolean; -}; - -export type PalletTransactionPaymentRuntimeDispatchInfo = { - weight: SpWeightsWeightV2Weight; - class: FrameSupportDispatchDispatchClass; - partialFee: bigint; -}; - -export type PalletTransactionPaymentFeeDetails = { - inclusionFee?: PalletTransactionPaymentInclusionFee | undefined; - tip: bigint; -}; - -export type PalletTransactionPaymentInclusionFee = { baseFee: bigint; lenFee: bigint; adjustedWeightFee: bigint }; - -export type XcmRuntimeApisFeesError = - | 'Unimplemented' - | 'VersionedConversionFailed' - | 'WeightNotComputable' - | 'UnhandledXcmVersion' - | 'AssetNotFound' - | 'Unroutable'; - -export type XcmRuntimeApisDryRunCallDryRunEffects = { - executionResult: Result; - emittedEvents: Array; - localXcm?: XcmVersionedXcm | undefined; - forwardedXcms: Array<[XcmVersionedLocation, Array]>; -}; - -export type FrameSupportDispatchPostDispatchInfo = { - actualWeight?: SpWeightsWeightV2Weight | undefined; - paysFee: FrameSupportDispatchPays; -}; - -export type SpRuntimeDispatchErrorWithPostInfo = { - postInfo: FrameSupportDispatchPostDispatchInfo; - error: DispatchError; -}; - -export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed'; - -export type XcmRuntimeApisDryRunXcmDryRunEffects = { - executionResult: StagingXcmV4TraitsOutcome; - emittedEvents: Array; - forwardedXcms: Array<[XcmVersionedLocation, Array]>; -}; - -export type XcmRuntimeApisConversionsError = 'Unsupported' | 'VersionedConversionFailed'; - -export type AssetsCommonRuntimeApiFungiblesAccessError = 'AssetIdConversionFailed' | 'AmountToBalanceConversionFailed'; - -export type CumulusPrimitivesCoreCollationInfo = { - upwardMessages: Array; - horizontalMessages: Array; - newValidationCode?: PolkadotParachainPrimitivesPrimitivesValidationCode | undefined; - processedDownwardMessages: number; - hrmpWatermark: number; - headData: PolkadotParachainPrimitivesPrimitivesHeadData; -}; - -export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes; - -export type AssetHubWestendRuntimeRuntimeError = - | { pallet: 'System'; palletError: FrameSystemError } - | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError } - | { pallet: 'Balances'; palletError: PalletBalancesError } - | { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError } - | { pallet: 'Session'; palletError: PalletSessionError } - | { pallet: 'XcmpQueue'; palletError: CumulusPalletXcmpQueueError } - | { pallet: 'PolkadotXcm'; palletError: PalletXcmError } - | { pallet: 'MessageQueue'; palletError: PalletMessageQueueError } - | { pallet: 'Utility'; palletError: PalletUtilityError } - | { pallet: 'Multisig'; palletError: PalletMultisigError } - | { pallet: 'Proxy'; palletError: PalletProxyError } - | { pallet: 'Assets'; palletError: PalletAssetsError } - | { pallet: 'Uniques'; palletError: PalletUniquesError } - | { pallet: 'Nfts'; palletError: PalletNftsError } - | { pallet: 'ForeignAssets'; palletError: PalletAssetsError } - | { pallet: 'NftFractionalization'; palletError: PalletNftFractionalizationError } - | { pallet: 'PoolAssets'; palletError: PalletAssetsError } - | { pallet: 'AssetConversion'; palletError: PalletAssetConversionError } - | { pallet: 'AssetsFreezer'; palletError: PalletAssetsFreezerError } - | { pallet: 'ForeignAssetsFreezer'; palletError: PalletAssetsFreezerError } - | { pallet: 'PoolAssetsFreezer'; palletError: PalletAssetsFreezerError } - | { pallet: 'StateTrieMigration'; palletError: PalletStateTrieMigrationError } - | { pallet: 'AssetConversionMigration'; palletError: PalletAssetConversionOpsError }; diff --git a/packages/chaintypes/src/westendPeople/consts.d.ts b/packages/chaintypes/src/westendPeople/consts.d.ts deleted file mode 100644 index 3507e4f..0000000 --- a/packages/chaintypes/src/westendPeople/consts.d.ts +++ /dev/null @@ -1,434 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainConsts, RpcVersion } from 'dedot/types'; -import type { RuntimeVersion } from 'dedot/codecs'; -import type { - FrameSystemLimitsBlockWeights, - FrameSystemLimitsBlockLength, - SpWeightsRuntimeDbWeight, - PolkadotParachainPrimitivesPrimitivesId, - SpWeightsWeightV2Weight, -} from './types'; - -export interface ChainConsts extends GenericChainConsts { - /** - * Pallet `System`'s constants - **/ - system: { - /** - * Block & extrinsics weights: base values and limits. - **/ - blockWeights: FrameSystemLimitsBlockWeights; - - /** - * The maximum length of a block (in bytes). - **/ - blockLength: FrameSystemLimitsBlockLength; - - /** - * Maximum number of block number to block hash mappings to keep (oldest pruned first). - **/ - blockHashCount: number; - - /** - * The weight of runtime database operations the runtime can invoke. - **/ - dbWeight: SpWeightsRuntimeDbWeight; - - /** - * Get the chain's in-code version. - **/ - version: RuntimeVersion; - - /** - * The designated SS58 prefix of this chain. - * - * This replaces the "ss58Format" property declared in the chain spec. Reason is - * that the runtime should know about the prefix in order to make use of it as - * an identifier of the chain. - **/ - ss58Prefix: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainSystem`'s constants - **/ - parachainSystem: { - /** - * Returns the parachain ID we are running with. - **/ - selfParaId: PolkadotParachainPrimitivesPrimitivesId; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Timestamp`'s constants - **/ - timestamp: { - /** - * The minimum period between blocks. - * - * Be aware that this is different to the *expected* period that the block production - * apparatus provides. Your chosen consensus system will generally work with this to - * determine a sensible block time. For example, in the Aura pallet it will be double this - * period on default settings. - **/ - minimumPeriod: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `ParachainInfo`'s constants - **/ - parachainInfo: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Balances`'s constants - **/ - balances: { - /** - * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! - * - * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for - * this pallet. However, you do so at your own risk: this will open up a major DoS vector. - * In case you have multiple sources of provider references, you may also get unexpected - * behaviour if you set this to zero. - * - * Bottom line: Do yourself a favour and make it at least one! - **/ - existentialDeposit: bigint; - - /** - * The maximum number of locks that should exist on an account. - * Not strictly enforced, but used for weight estimation. - * - * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` - **/ - maxLocks: number; - - /** - * The maximum number of named reserves that can exist on an account. - * - * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` - **/ - maxReserves: number; - - /** - * The maximum number of individual freeze locks that can exist on an account at any time. - **/ - maxFreezes: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `TransactionPayment`'s constants - **/ - transactionPayment: { - /** - * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their - * `priority` - * - * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later - * added to a tip component in regular `priority` calculations. - * It means that a `Normal` transaction can front-run a similarly-sized `Operational` - * extrinsic (with no tip), by including a tip value greater than the virtual tip. - * - * ```rust,ignore - * // For `Normal` - * let priority = priority_calc(tip); - * - * // For `Operational` - * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; - * let priority = priority_calc(tip + virtual_tip); - * ``` - * - * Note that since we use `final_fee` the multiplier applies also to the regular `tip` - * sent with the transaction. So, not only does the transaction get a priority bump based - * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational` - * transactions. - **/ - operationalFeeMultiplier: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Authorship`'s constants - **/ - authorship: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CollatorSelection`'s constants - **/ - collatorSelection: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Session`'s constants - **/ - session: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Aura`'s constants - **/ - aura: { - /** - * The slot duration Aura should run with, expressed in milliseconds. - * The effective value of this type should not change while the chain is running. - * - * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const. - **/ - slotDuration: bigint; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `AuraExt`'s constants - **/ - auraExt: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `XcmpQueue`'s constants - **/ - xcmpQueue: { - /** - * The maximum number of inbound XCMP channels that can be suspended simultaneously. - * - * Any further channel suspensions will fail and messages may get dropped without further - * notice. Choosing a high value (1000) is okay; the trade-off that is described in - * [`InboundXcmpSuspended`] still applies at that scale. - **/ - maxInboundSuspended: number; - - /** - * Maximal number of outbound XCMP channels that can have messages queued at the same time. - * - * If this is reached, then no further messages can be sent to channels that do not yet - * have a message queued. This should be set to the expected maximum of outbound channels - * which is determined by [`Self::ChannelInfo`]. It is important to set this large enough, - * since otherwise the congestion control protocol will not work as intended and messages - * may be dropped. This value increases the PoV and should therefore not be picked too - * high. Governance needs to pay attention to not open more channels than this value. - **/ - maxActiveOutboundChannels: number; - - /** - * The maximal page size for HRMP message pages. - * - * A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case - * benchmarking. The limit for the size of a message is slightly below this, since some - * overhead is incurred for encoding the format. - **/ - maxPageSize: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `PolkadotXcm`'s constants - **/ - polkadotXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `CumulusXcm`'s constants - **/ - cumulusXcm: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `MessageQueue`'s constants - **/ - messageQueue: { - /** - * The size of the page; this implies the maximum message size which can be sent. - * - * A good value depends on the expected message sizes, their weights, the weight that is - * available for processing them and the maximal needed message size. The maximal message - * size is slightly lower than this as defined by [`MaxMessageLenOf`]. - **/ - heapSize: number; - - /** - * The maximum number of stale pages (i.e. of overweight messages) allowed before culling - * can happen. Once there are more stale pages than this, then historical pages may be - * dropped, even if they contain unprocessed overweight messages. - **/ - maxStale: number; - - /** - * The amount of weight (if any) which should be provided to the message queue for - * servicing enqueued items `on_initialize`. - * - * This may be legitimately `None` in the case that you will call - * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have - * it run in `on_idle`. - **/ - serviceWeight: SpWeightsWeightV2Weight | undefined; - - /** - * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which - * should be provided to the message queue for servicing enqueued items `on_idle`. - * Useful for parachains to process messages at the same block they are received. - * - * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`. - **/ - idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Utility`'s constants - **/ - utility: { - /** - * The limit on the number of batched calls. - **/ - batchedCallsLimit: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Multisig`'s constants - **/ - multisig: { - /** - * The base amount of currency needed to reserve for creating a multisig execution or to - * store a dispatch call for later. - * - * This is held for an additional storage item whose value size is - * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is - * `32 + sizeof(AccountId)` bytes. - **/ - depositBase: bigint; - - /** - * The amount of currency needed per unit threshold when creating a multisig execution. - * - * This is held for adding 32 bytes more into a pre-existing storage value. - **/ - depositFactor: bigint; - - /** - * The maximum amount of signatories allowed in the multisig. - **/ - maxSignatories: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `Identity`'s constants - **/ - identity: { - /** - * The amount held on deposit for a registered identity. - **/ - basicDeposit: bigint; - - /** - * The amount held on deposit per encoded byte for a registered identity. - **/ - byteDeposit: bigint; - - /** - * The amount held on deposit for a registered subaccount. This should account for the fact - * that one storage item's value will increase by the size of an account ID, and there will - * be another trie item whose value is the size of an account ID plus 32 bytes. - **/ - subAccountDeposit: bigint; - - /** - * The maximum number of sub-accounts allowed per identified account. - **/ - maxSubAccounts: number; - - /** - * Maximum number of registrars allowed in the system. Needed to bound the complexity - * of, e.g., updating judgements. - **/ - maxRegistrars: number; - - /** - * The number of blocks within which a username grant must be accepted. - **/ - pendingUsernameExpiration: number; - - /** - * The maximum length of a suffix. - **/ - maxSuffixLength: number; - - /** - * The maximum length of a username, including its suffix and any system-added delimiters. - **/ - maxUsernameLength: number; - - /** - * Generic pallet constant - **/ - [name: string]: any; - }; - /** - * Pallet `IdentityMigrator`'s constants - **/ - identityMigrator: { - /** - * Generic pallet constant - **/ - [name: string]: any; - }; -} diff --git a/packages/chaintypes/src/westendPeople/errors.d.ts b/packages/chaintypes/src/westendPeople/errors.d.ts deleted file mode 100644 index aed0158..0000000 --- a/packages/chaintypes/src/westendPeople/errors.d.ts +++ /dev/null @@ -1,769 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainErrors, GenericPalletError, RpcVersion } from 'dedot/types'; - -export interface ChainErrors extends GenericChainErrors { - /** - * Pallet `System`'s errors - **/ - system: { - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - InvalidSpecName: GenericPalletError; - - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - SpecVersionNeedsToIncrease: GenericPalletError; - - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - FailedToExtractRuntimeVersion: GenericPalletError; - - /** - * Suicide called when the account has non-default composite data. - **/ - NonDefaultComposite: GenericPalletError; - - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - NonZeroRefCount: GenericPalletError; - - /** - * The origin filter prevent the call to be dispatched. - **/ - CallFiltered: GenericPalletError; - - /** - * A multi-block migration is ongoing and prevents the current code from being replaced. - **/ - MultiBlockMigrationsOngoing: GenericPalletError; - - /** - * No upgrade authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The submitted code is not authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `ParachainSystem`'s errors - **/ - parachainSystem: { - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - OverlappingUpgrades: GenericPalletError; - - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - ProhibitedByPolkadot: GenericPalletError; - - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - TooBig: GenericPalletError; - - /** - * The inherent which supplies the validation data did not run this block. - **/ - ValidationDataNotAvailable: GenericPalletError; - - /** - * The inherent which supplies the host configuration did not run this block. - **/ - HostConfigurationNotAvailable: GenericPalletError; - - /** - * No validation function upgrade is currently scheduled. - **/ - NotScheduled: GenericPalletError; - - /** - * No code upgrade has been authorized. - **/ - NothingAuthorized: GenericPalletError; - - /** - * The given code upgrade has not been authorized. - **/ - Unauthorized: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Balances`'s errors - **/ - balances: { - /** - * Vesting balance too high to send value. - **/ - VestingBalance: GenericPalletError; - - /** - * Account liquidity restrictions prevent withdrawal. - **/ - LiquidityRestrictions: GenericPalletError; - - /** - * Balance too low to send value. - **/ - InsufficientBalance: GenericPalletError; - - /** - * Value too low to create account due to existential deposit. - **/ - ExistentialDeposit: GenericPalletError; - - /** - * Transfer/payment would kill account. - **/ - Expendability: GenericPalletError; - - /** - * A vesting schedule already exists for this account. - **/ - ExistingVestingSchedule: GenericPalletError; - - /** - * Beneficiary account must pre-exist. - **/ - DeadAccount: GenericPalletError; - - /** - * Number of named reserves exceed `MaxReserves`. - **/ - TooManyReserves: GenericPalletError; - - /** - * Number of holds exceed `VariantCountOf`. - **/ - TooManyHolds: GenericPalletError; - - /** - * Number of freezes exceed `MaxFreezes`. - **/ - TooManyFreezes: GenericPalletError; - - /** - * The issuance cannot be modified since it is already deactivated. - **/ - IssuanceDeactivated: GenericPalletError; - - /** - * The delta cannot be zero. - **/ - DeltaZero: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `CollatorSelection`'s errors - **/ - collatorSelection: { - /** - * The pallet has too many candidates. - **/ - TooManyCandidates: GenericPalletError; - - /** - * Leaving would result in too few candidates. - **/ - TooFewEligibleCollators: GenericPalletError; - - /** - * Account is already a candidate. - **/ - AlreadyCandidate: GenericPalletError; - - /** - * Account is not a candidate. - **/ - NotCandidate: GenericPalletError; - - /** - * There are too many Invulnerables. - **/ - TooManyInvulnerables: GenericPalletError; - - /** - * Account is already an Invulnerable. - **/ - AlreadyInvulnerable: GenericPalletError; - - /** - * Account is not an Invulnerable. - **/ - NotInvulnerable: GenericPalletError; - - /** - * Account has no associated validator ID. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Validator ID is not yet registered. - **/ - ValidatorNotRegistered: GenericPalletError; - - /** - * Could not insert in the candidate list. - **/ - InsertToCandidateListFailed: GenericPalletError; - - /** - * Could not remove from the candidate list. - **/ - RemoveFromCandidateListFailed: GenericPalletError; - - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - DepositTooLow: GenericPalletError; - - /** - * Could not update the candidate list. - **/ - UpdateCandidateListFailed: GenericPalletError; - - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - InsufficientBond: GenericPalletError; - - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - TargetIsNotCandidate: GenericPalletError; - - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - IdenticalDeposit: GenericPalletError; - - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - InvalidUnreserve: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Session`'s errors - **/ - session: { - /** - * Invalid ownership proof. - **/ - InvalidProof: GenericPalletError; - - /** - * No associated validator ID for account. - **/ - NoAssociatedValidatorId: GenericPalletError; - - /** - * Registered duplicate key. - **/ - DuplicatedKey: GenericPalletError; - - /** - * No keys are associated with this account. - **/ - NoKeys: GenericPalletError; - - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - NoAccount: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `XcmpQueue`'s errors - **/ - xcmpQueue: { - /** - * Setting the queue config failed since one of its values was invalid. - **/ - BadQueueConfig: GenericPalletError; - - /** - * The execution is already suspended. - **/ - AlreadySuspended: GenericPalletError; - - /** - * The execution is already resumed. - **/ - AlreadyResumed: GenericPalletError; - - /** - * There are too many active outbound channels. - **/ - TooManyActiveOutboundChannels: GenericPalletError; - - /** - * The message is too big. - **/ - TooBig: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `PolkadotXcm`'s errors - **/ - polkadotXcm: { - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - Unreachable: GenericPalletError; - - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - SendFailure: GenericPalletError; - - /** - * The message execution fails the filter. - **/ - Filtered: GenericPalletError; - - /** - * The message's weight could not be determined. - **/ - UnweighableMessage: GenericPalletError; - - /** - * The destination `Location` provided cannot be inverted. - **/ - DestinationNotInvertible: GenericPalletError; - - /** - * The assets to be sent are empty. - **/ - Empty: GenericPalletError; - - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - CannotReanchor: GenericPalletError; - - /** - * Too many assets have been attempted for transfer. - **/ - TooManyAssets: GenericPalletError; - - /** - * Origin is invalid for sending. - **/ - InvalidOrigin: GenericPalletError; - - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - BadVersion: GenericPalletError; - - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - BadLocation: GenericPalletError; - - /** - * The referenced subscription could not be found. - **/ - NoSubscription: GenericPalletError; - - /** - * The location is invalid since it already has a subscription from us. - **/ - AlreadySubscribed: GenericPalletError; - - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - CannotCheckOutTeleport: GenericPalletError; - - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - LowBalance: GenericPalletError; - - /** - * The asset owner has too many locks on the asset. - **/ - TooManyLocks: GenericPalletError; - - /** - * The given account is not an identifiable sovereign account for any location. - **/ - AccountNotSovereign: GenericPalletError; - - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - FeesNotMet: GenericPalletError; - - /** - * A remote lock with the corresponding data could not be found. - **/ - LockNotFound: GenericPalletError; - - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - InUse: GenericPalletError; - - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - InvalidAssetUnknownReserve: GenericPalletError; - - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - InvalidAssetUnsupportedReserve: GenericPalletError; - - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - TooManyReserves: GenericPalletError; - - /** - * Local XCM execution incomplete. - **/ - LocalExecutionIncomplete: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `MessageQueue`'s errors - **/ - messageQueue: { - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - NotReapable: GenericPalletError; - - /** - * Page to be reaped does not exist. - **/ - NoPage: GenericPalletError; - - /** - * The referenced message could not be found. - **/ - NoMessage: GenericPalletError; - - /** - * The message was already processed and cannot be processed again. - **/ - AlreadyProcessed: GenericPalletError; - - /** - * The message is queued for future execution. - **/ - Queued: GenericPalletError; - - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - InsufficientWeight: GenericPalletError; - - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - TemporarilyUnprocessable: GenericPalletError; - - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - QueuePaused: GenericPalletError; - - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - RecursiveDisallowed: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Utility`'s errors - **/ - utility: { - /** - * Too many calls batched. - **/ - TooManyCalls: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Multisig`'s errors - **/ - multisig: { - /** - * Threshold must be 2 or greater. - **/ - MinimumThreshold: GenericPalletError; - - /** - * Call is already approved by this signatory. - **/ - AlreadyApproved: GenericPalletError; - - /** - * Call doesn't need any (more) approvals. - **/ - NoApprovalsNeeded: GenericPalletError; - - /** - * There are too few signatories in the list. - **/ - TooFewSignatories: GenericPalletError; - - /** - * There are too many signatories in the list. - **/ - TooManySignatories: GenericPalletError; - - /** - * The signatories were provided out of order; they should be ordered. - **/ - SignatoriesOutOfOrder: GenericPalletError; - - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - SenderInSignatories: GenericPalletError; - - /** - * Multisig operation not found when attempting to cancel. - **/ - NotFound: GenericPalletError; - - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - NotOwner: GenericPalletError; - - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - NoTimepoint: GenericPalletError; - - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - WrongTimepoint: GenericPalletError; - - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - UnexpectedTimepoint: GenericPalletError; - - /** - * The maximum weight information provided was too low. - **/ - MaxWeightTooLow: GenericPalletError; - - /** - * The data to be stored is already stored. - **/ - AlreadyStored: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; - /** - * Pallet `Identity`'s errors - **/ - identity: { - /** - * Too many subs-accounts. - **/ - TooManySubAccounts: GenericPalletError; - - /** - * Account isn't found. - **/ - NotFound: GenericPalletError; - - /** - * Account isn't named. - **/ - NotNamed: GenericPalletError; - - /** - * Empty index. - **/ - EmptyIndex: GenericPalletError; - - /** - * Fee is changed. - **/ - FeeChanged: GenericPalletError; - - /** - * No identity found. - **/ - NoIdentity: GenericPalletError; - - /** - * Sticky judgement. - **/ - StickyJudgement: GenericPalletError; - - /** - * Judgement given. - **/ - JudgementGiven: GenericPalletError; - - /** - * Invalid judgement. - **/ - InvalidJudgement: GenericPalletError; - - /** - * The index is invalid. - **/ - InvalidIndex: GenericPalletError; - - /** - * The target is invalid. - **/ - InvalidTarget: GenericPalletError; - - /** - * Maximum amount of registrars reached. Cannot add any more. - **/ - TooManyRegistrars: GenericPalletError; - - /** - * Account ID is already named. - **/ - AlreadyClaimed: GenericPalletError; - - /** - * Sender is not a sub-account. - **/ - NotSub: GenericPalletError; - - /** - * Sub-account isn't owned by sender. - **/ - NotOwned: GenericPalletError; - - /** - * The provided judgement was for a different identity. - **/ - JudgementForDifferentIdentity: GenericPalletError; - - /** - * Error that occurs when there is an issue paying for judgement. - **/ - JudgementPaymentFailed: GenericPalletError; - - /** - * The provided suffix is too long. - **/ - InvalidSuffix: GenericPalletError; - - /** - * The sender does not have permission to issue a username. - **/ - NotUsernameAuthority: GenericPalletError; - - /** - * The authority cannot allocate any more usernames. - **/ - NoAllocation: GenericPalletError; - - /** - * The signature on a username was not valid. - **/ - InvalidSignature: GenericPalletError; - - /** - * Setting this username requires a signature, but none was provided. - **/ - RequiresSignature: GenericPalletError; - - /** - * The username does not meet the requirements. - **/ - InvalidUsername: GenericPalletError; - - /** - * The username is already taken. - **/ - UsernameTaken: GenericPalletError; - - /** - * The requested username does not exist. - **/ - NoUsername: GenericPalletError; - - /** - * The username cannot be forcefully removed because it can still be accepted. - **/ - NotExpired: GenericPalletError; - - /** - * Generic pallet error - **/ - [error: string]: GenericPalletError; - }; -} diff --git a/packages/chaintypes/src/westendPeople/events.d.ts b/packages/chaintypes/src/westendPeople/events.d.ts deleted file mode 100644 index 2149584..0000000 --- a/packages/chaintypes/src/westendPeople/events.d.ts +++ /dev/null @@ -1,1082 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types'; -import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result, Bytes } from 'dedot/codecs'; -import type { - SpWeightsWeightV2Weight, - FrameSupportTokensMiscBalanceStatus, - StagingXcmV4TraitsOutcome, - StagingXcmV4Location, - StagingXcmV4Xcm, - StagingXcmV4Response, - XcmVersionedAssets, - StagingXcmV4AssetAssets, - XcmV3TraitsError, - XcmVersionedLocation, - CumulusPrimitivesCoreAggregateMessageOrigin, - FrameSupportMessagesProcessMessageError, - PalletMultisigTimepoint, -} from './types'; - -export interface ChainEvents extends GenericChainEvents { - /** - * Pallet `System`'s events - **/ - system: { - /** - * An extrinsic completed successfully. - **/ - ExtrinsicSuccess: GenericPalletEvent; - - /** - * An extrinsic failed. - **/ - ExtrinsicFailed: GenericPalletEvent< - Rv, - 'System', - 'ExtrinsicFailed', - { dispatchError: DispatchError; dispatchInfo: DispatchInfo } - >; - - /** - * `:code` was updated. - **/ - CodeUpdated: GenericPalletEvent; - - /** - * A new account was created. - **/ - NewAccount: GenericPalletEvent; - - /** - * An account was reaped. - **/ - KilledAccount: GenericPalletEvent; - - /** - * On on-chain remark happened. - **/ - Remarked: GenericPalletEvent; - - /** - * An upgrade was authorized. - **/ - UpgradeAuthorized: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `ParachainSystem`'s events - **/ - parachainSystem: { - /** - * The validation function has been scheduled to apply. - **/ - ValidationFunctionStored: GenericPalletEvent; - - /** - * The validation function was applied as of the contained relay chain block number. - **/ - ValidationFunctionApplied: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'ValidationFunctionApplied', - { relayChainBlockNum: number } - >; - - /** - * The relay-chain aborted the upgrade process. - **/ - ValidationFunctionDiscarded: GenericPalletEvent; - - /** - * Some downward messages have been received and will be processed. - **/ - DownwardMessagesReceived: GenericPalletEvent; - - /** - * Downward messages were processed using the given weight. - **/ - DownwardMessagesProcessed: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'DownwardMessagesProcessed', - { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } - >; - - /** - * An upward message was sent to the relay chain. - **/ - UpwardMessageSent: GenericPalletEvent< - Rv, - 'ParachainSystem', - 'UpwardMessageSent', - { messageHash?: FixedBytes<32> | undefined } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Balances`'s events - **/ - balances: { - /** - * An account was created with some free balance. - **/ - Endowed: GenericPalletEvent; - - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - DustLost: GenericPalletEvent; - - /** - * Transfer succeeded. - **/ - Transfer: GenericPalletEvent; - - /** - * A balance was set by root. - **/ - BalanceSet: GenericPalletEvent; - - /** - * Some balance was reserved (moved from free to reserved). - **/ - Reserved: GenericPalletEvent; - - /** - * Some balance was unreserved (moved from reserved to free). - **/ - Unreserved: GenericPalletEvent; - - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - ReserveRepatriated: GenericPalletEvent< - Rv, - 'Balances', - 'ReserveRepatriated', - { from: AccountId32; to: AccountId32; amount: bigint; destinationStatus: FrameSupportTokensMiscBalanceStatus } - >; - - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - Deposit: GenericPalletEvent; - - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - Withdraw: GenericPalletEvent; - - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - Slashed: GenericPalletEvent; - - /** - * Some amount was minted into an account. - **/ - Minted: GenericPalletEvent; - - /** - * Some amount was burned from an account. - **/ - Burned: GenericPalletEvent; - - /** - * Some amount was suspended from an account (it can be restored later). - **/ - Suspended: GenericPalletEvent; - - /** - * Some amount was restored into an account. - **/ - Restored: GenericPalletEvent; - - /** - * An account was upgraded. - **/ - Upgraded: GenericPalletEvent; - - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - Issued: GenericPalletEvent; - - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - Rescinded: GenericPalletEvent; - - /** - * Some balance was locked. - **/ - Locked: GenericPalletEvent; - - /** - * Some balance was unlocked. - **/ - Unlocked: GenericPalletEvent; - - /** - * Some balance was frozen. - **/ - Frozen: GenericPalletEvent; - - /** - * Some balance was thawed. - **/ - Thawed: GenericPalletEvent; - - /** - * The `TotalIssuance` was forcefully changed. - **/ - TotalIssuanceForced: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `TransactionPayment`'s events - **/ - transactionPayment: { - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - TransactionFeePaid: GenericPalletEvent< - Rv, - 'TransactionPayment', - 'TransactionFeePaid', - { who: AccountId32; actualFee: bigint; tip: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CollatorSelection`'s events - **/ - collatorSelection: { - /** - * New Invulnerables were set. - **/ - NewInvulnerables: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewInvulnerables', - { invulnerables: Array } - >; - - /** - * A new Invulnerable was added. - **/ - InvulnerableAdded: GenericPalletEvent; - - /** - * An Invulnerable was removed. - **/ - InvulnerableRemoved: GenericPalletEvent; - - /** - * The number of desired candidates was set. - **/ - NewDesiredCandidates: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'NewDesiredCandidates', - { desiredCandidates: number } - >; - - /** - * The candidacy bond was set. - **/ - NewCandidacyBond: GenericPalletEvent; - - /** - * A new candidate joined. - **/ - CandidateAdded: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateAdded', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * Bond of a candidate updated. - **/ - CandidateBondUpdated: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateBondUpdated', - { accountId: AccountId32; deposit: bigint } - >; - - /** - * A candidate was removed. - **/ - CandidateRemoved: GenericPalletEvent; - - /** - * An account was replaced in the candidate list by another one. - **/ - CandidateReplaced: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'CandidateReplaced', - { old: AccountId32; new: AccountId32; deposit: bigint } - >; - - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - InvalidInvulnerableSkipped: GenericPalletEvent< - Rv, - 'CollatorSelection', - 'InvalidInvulnerableSkipped', - { accountId: AccountId32 } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Session`'s events - **/ - session: { - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - NewSession: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `XcmpQueue`'s events - **/ - xcmpQueue: { - /** - * An HRMP message was sent to a sibling parachain. - **/ - XcmpMessageSent: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `PolkadotXcm`'s events - **/ - polkadotXcm: { - /** - * Execution of an XCM message was attempted. - **/ - Attempted: GenericPalletEvent; - - /** - * A XCM message was sent. - **/ - Sent: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Sent', - { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - } - >; - - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - UnexpectedResponse: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'UnexpectedResponse', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - ResponseReady: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'ResponseReady', - { queryId: bigint; response: StagingXcmV4Response } - >; - - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - Notified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'Notified', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - NotifyOverweight: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyOverweight', - { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - } - >; - - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - NotifyDispatchError: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDispatchError', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - NotifyDecodeFailed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyDecodeFailed', - { queryId: bigint; palletIndex: number; callIndex: number } - >; - - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidResponder: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponder', - { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined } - >; - - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidResponderVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidResponderVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Received query response has been read and removed. - **/ - ResponseTaken: GenericPalletEvent; - - /** - * Some assets have been placed in an asset trap. - **/ - AssetsTrapped: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsTrapped', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - VersionChangeNotified: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionChangeNotified', - { destination: StagingXcmV4Location; result: number; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - SupportedVersionChanged: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'SupportedVersionChanged', - { location: StagingXcmV4Location; version: number } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - NotifyTargetSendFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetSendFail', - { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } - >; - - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - NotifyTargetMigrationFail: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'NotifyTargetMigrationFail', - { location: XcmVersionedLocation; queryId: bigint } - >; - - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - InvalidQuerierVersion: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerierVersion', - { origin: StagingXcmV4Location; queryId: bigint } - >; - - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - InvalidQuerier: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'InvalidQuerier', - { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - } - >; - - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - VersionNotifyStarted: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyStarted', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - VersionNotifyRequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyRequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - VersionNotifyUnrequested: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'VersionNotifyUnrequested', - { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> } - >; - - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - FeesPaid: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'FeesPaid', - { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } - >; - - /** - * Some assets have been claimed from an asset trap - **/ - AssetsClaimed: GenericPalletEvent< - Rv, - 'PolkadotXcm', - 'AssetsClaimed', - { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } - >; - - /** - * A XCM version migration finished. - **/ - VersionMigrationFinished: GenericPalletEvent; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `CumulusXcm`'s events - **/ - cumulusXcm: { - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - InvalidFormat: GenericPalletEvent>; - - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - UnsupportedVersion: GenericPalletEvent>; - - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - ExecutedDownward: GenericPalletEvent< - Rv, - 'CumulusXcm', - 'ExecutedDownward', - [FixedBytes<32>, StagingXcmV4TraitsOutcome] - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `MessageQueue`'s events - **/ - messageQueue: { - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - ProcessingFailed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'ProcessingFailed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - } - >; - - /** - * Message is processed. - **/ - Processed: GenericPalletEvent< - Rv, - 'MessageQueue', - 'Processed', - { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - } - >; - - /** - * Message placed in overweight queue. - **/ - OverweightEnqueued: GenericPalletEvent< - Rv, - 'MessageQueue', - 'OverweightEnqueued', - { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - } - >; - - /** - * This page was reaped. - **/ - PageReaped: GenericPalletEvent< - Rv, - 'MessageQueue', - 'PageReaped', - { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Utility`'s events - **/ - utility: { - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - BatchInterrupted: GenericPalletEvent; - - /** - * Batch of dispatches completed fully with no error. - **/ - BatchCompleted: GenericPalletEvent; - - /** - * Batch of dispatches completed but has errors. - **/ - BatchCompletedWithErrors: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - ItemCompleted: GenericPalletEvent; - - /** - * A single item within a Batch of dispatches has completed with error. - **/ - ItemFailed: GenericPalletEvent; - - /** - * A call was dispatched. - **/ - DispatchedAs: GenericPalletEvent }>; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Multisig`'s events - **/ - multisig: { - /** - * A new multisig operation has begun. - **/ - NewMultisig: GenericPalletEvent< - Rv, - 'Multisig', - 'NewMultisig', - { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been approved by someone. - **/ - MultisigApproval: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigApproval', - { approving: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * A multisig operation has been executed. - **/ - MultisigExecuted: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigExecuted', - { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - } - >; - - /** - * A multisig operation has been cancelled. - **/ - MultisigCancelled: GenericPalletEvent< - Rv, - 'Multisig', - 'MultisigCancelled', - { cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `Identity`'s events - **/ - identity: { - /** - * A name was set or reset (which will remove all judgements). - **/ - IdentitySet: GenericPalletEvent; - - /** - * A name was cleared, and the given balance returned. - **/ - IdentityCleared: GenericPalletEvent; - - /** - * A name was removed and the given balance slashed. - **/ - IdentityKilled: GenericPalletEvent; - - /** - * A judgement was asked from a registrar. - **/ - JudgementRequested: GenericPalletEvent< - Rv, - 'Identity', - 'JudgementRequested', - { who: AccountId32; registrarIndex: number } - >; - - /** - * A judgement request was retracted. - **/ - JudgementUnrequested: GenericPalletEvent< - Rv, - 'Identity', - 'JudgementUnrequested', - { who: AccountId32; registrarIndex: number } - >; - - /** - * A judgement was given by a registrar. - **/ - JudgementGiven: GenericPalletEvent< - Rv, - 'Identity', - 'JudgementGiven', - { target: AccountId32; registrarIndex: number } - >; - - /** - * A registrar was added. - **/ - RegistrarAdded: GenericPalletEvent; - - /** - * A sub-identity was added to an identity and the deposit paid. - **/ - SubIdentityAdded: GenericPalletEvent< - Rv, - 'Identity', - 'SubIdentityAdded', - { sub: AccountId32; main: AccountId32; deposit: bigint } - >; - - /** - * A sub-identity was removed from an identity and the deposit freed. - **/ - SubIdentityRemoved: GenericPalletEvent< - Rv, - 'Identity', - 'SubIdentityRemoved', - { sub: AccountId32; main: AccountId32; deposit: bigint } - >; - - /** - * A sub-identity was cleared, and the given deposit repatriated from the - * main identity account to the sub-identity account. - **/ - SubIdentityRevoked: GenericPalletEvent< - Rv, - 'Identity', - 'SubIdentityRevoked', - { sub: AccountId32; main: AccountId32; deposit: bigint } - >; - - /** - * A username authority was added. - **/ - AuthorityAdded: GenericPalletEvent; - - /** - * A username authority was removed. - **/ - AuthorityRemoved: GenericPalletEvent; - - /** - * A username was set for `who`. - **/ - UsernameSet: GenericPalletEvent; - - /** - * A username was queued, but `who` must accept it prior to `expiration`. - **/ - UsernameQueued: GenericPalletEvent< - Rv, - 'Identity', - 'UsernameQueued', - { who: AccountId32; username: Bytes; expiration: number } - >; - - /** - * A queued username passed its expiration without being claimed and was removed. - **/ - PreapprovalExpired: GenericPalletEvent; - - /** - * A username was set as a primary and can be looked up from `who`. - **/ - PrimaryUsernameSet: GenericPalletEvent; - - /** - * A dangling username (as in, a username corresponding to an account that has removed its - * identity) has been removed. - **/ - DanglingUsernameRemoved: GenericPalletEvent< - Rv, - 'Identity', - 'DanglingUsernameRemoved', - { who: AccountId32; username: Bytes } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; - /** - * Pallet `IdentityMigrator`'s events - **/ - identityMigrator: { - /** - * The identity and all sub accounts were reaped for `who`. - **/ - IdentityReaped: GenericPalletEvent; - - /** - * The deposits held for `who` were updated. `identity` is the new deposit held for - * identity info, and `subs` is the new deposit held for the sub-accounts. - **/ - DepositUpdated: GenericPalletEvent< - Rv, - 'IdentityMigrator', - 'DepositUpdated', - { who: AccountId32; identity: bigint; subs: bigint } - >; - - /** - * Generic pallet event - **/ - [prop: string]: GenericPalletEvent; - }; -} diff --git a/packages/chaintypes/src/westendPeople/index.d.ts b/packages/chaintypes/src/westendPeople/index.d.ts deleted file mode 100644 index f8f58f0..0000000 --- a/packages/chaintypes/src/westendPeople/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by dedot cli - -import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types'; -import { ChainConsts } from './consts'; -import { ChainStorage } from './query'; -import { ChainJsonRpcApis } from './json-rpc'; -import { ChainErrors } from './errors'; -import { ChainEvents } from './events'; -import { RuntimeApis } from './runtime'; -import { ChainTx } from './tx'; - -export * from './types'; - -export interface VersionedWestendPeopleApi extends GenericSubstrateApi { - rpc: ChainJsonRpcApis; - consts: ChainConsts; - query: ChainStorage; - errors: ChainErrors; - events: ChainEvents; - call: RuntimeApis; - tx: ChainTx; -} - -export interface WestendPeopleApi { - legacy: VersionedWestendPeopleApi; - v2: VersionedWestendPeopleApi; -} diff --git a/packages/chaintypes/src/westendPeople/json-rpc.d.ts b/packages/chaintypes/src/westendPeople/json-rpc.d.ts deleted file mode 100644 index dd35fe5..0000000 --- a/packages/chaintypes/src/westendPeople/json-rpc.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -// Generated by dedot cli - -import type { GenericJsonRpcApis, RpcVersion } from 'dedot/types'; -import type { JsonRpcApis } from 'dedot/types/json-rpc'; - -export type ChainJsonRpcApis = Pick< - JsonRpcApis, - | 'archive_unstable_body' - | 'archive_unstable_call' - | 'archive_unstable_finalizedHeight' - | 'archive_unstable_genesisHash' - | 'archive_unstable_hashByHeight' - | 'archive_unstable_header' - | 'archive_unstable_storage' - | 'author_hasKey' - | 'author_hasSessionKeys' - | 'author_insertKey' - | 'author_pendingExtrinsics' - | 'author_removeExtrinsic' - | 'author_rotateKeys' - | 'author_submitAndWatchExtrinsic' - | 'author_submitExtrinsic' - | 'chainHead_v1_body' - | 'chainHead_v1_call' - | 'chainHead_v1_continue' - | 'chainHead_v1_follow' - | 'chainHead_v1_header' - | 'chainHead_v1_stopOperation' - | 'chainHead_v1_storage' - | 'chainHead_v1_unpin' - | 'chain_getBlock' - | 'chain_getBlockHash' - | 'chain_getFinalizedHead' - | 'chain_getHeader' - | 'chain_subscribeAllHeads' - | 'chain_subscribeFinalizedHeads' - | 'chain_subscribeNewHeads' - | 'childstate_getKeys' - | 'childstate_getKeysPaged' - | 'childstate_getStorage' - | 'childstate_getStorageEntries' - | 'childstate_getStorageHash' - | 'childstate_getStorageSize' - | 'offchain_localStorageGet' - | 'offchain_localStorageSet' - | 'payment_queryFeeDetails' - | 'payment_queryInfo' - | 'rpc_methods' - | 'state_call' - | 'state_getChildReadProof' - | 'state_getKeys' - | 'state_getKeysPaged' - | 'state_getMetadata' - | 'state_getPairs' - | 'state_getReadProof' - | 'state_getRuntimeVersion' - | 'state_getStorage' - | 'state_getStorageHash' - | 'state_getStorageSize' - | 'state_queryStorage' - | 'state_queryStorageAt' - | 'state_subscribeRuntimeVersion' - | 'state_subscribeStorage' - | 'state_traceBlock' - | 'state_trieMigrationStatus' - | 'system_accountNextIndex' - | 'system_addLogFilter' - | 'system_addReservedPeer' - | 'system_chain' - | 'system_chainType' - | 'system_dryRun' - | 'system_health' - | 'system_localListenAddresses' - | 'system_localPeerId' - | 'system_name' - | 'system_nodeRoles' - | 'system_peers' - | 'system_properties' - | 'system_removeReservedPeer' - | 'system_reservedPeers' - | 'system_resetLogFilter' - | 'system_syncState' - | 'system_unstable_networkState' - | 'system_version' - | 'transactionWatch_v1_submitAndWatch' - | 'transaction_v1_broadcast' - | 'transaction_v1_stop' -> & - GenericJsonRpcApis; diff --git a/packages/chaintypes/src/westendPeople/query.d.ts b/packages/chaintypes/src/westendPeople/query.d.ts deleted file mode 100644 index 43f0d35..0000000 --- a/packages/chaintypes/src/westendPeople/query.d.ts +++ /dev/null @@ -1,1209 +0,0 @@ -// Generated by dedot cli - -import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types'; -import type { - AccountId32, - AccountId32Like, - H256, - Bytes, - Digest, - Phase, - FixedU128, - BytesLike, - FixedBytes, - Data, -} from 'dedot/codecs'; -import type { - FrameSystemAccountInfo, - FrameSupportDispatchPerDispatchClass, - FrameSystemEventRecord, - FrameSystemLastRuntimeUpgradeInfo, - FrameSystemCodeUpgradeAuthorization, - CumulusPalletParachainSystemUnincludedSegmentAncestor, - CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, - PolkadotPrimitivesV7PersistedValidationData, - PolkadotPrimitivesV7UpgradeRestriction, - PolkadotPrimitivesV7UpgradeGoAhead, - SpTrieStorageProof, - CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, - PolkadotPrimitivesV7AbridgedHostConfiguration, - CumulusPrimitivesParachainInherentMessageQueueChain, - PolkadotParachainPrimitivesPrimitivesId, - PolkadotCorePrimitivesOutboundHrmpMessage, - SpWeightsWeightV2Weight, - PalletBalancesAccountData, - PalletBalancesBalanceLock, - PalletBalancesReserveData, - FrameSupportTokensMiscIdAmount, - FrameSupportTokensMiscIdAmount002, - PalletTransactionPaymentReleases, - PalletCollatorSelectionCandidateInfo, - PeopleWestendRuntimeSessionKeys, - SpCoreCryptoKeyTypeId, - SpConsensusAuraSr25519AppSr25519Public, - SpConsensusSlotsSlot, - CumulusPalletXcmpQueueOutboundChannelDetails, - CumulusPalletXcmpQueueQueueConfigData, - PalletXcmQueryStatus, - XcmVersionedLocation, - PalletXcmVersionMigrationStage, - PalletXcmRemoteLockedFungibleRecord, - XcmVersionedAssetId, - StagingXcmV4Xcm, - PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin, - PalletMessageQueuePage, - PalletMultisigMultisig, - PalletIdentityRegistration, - PalletIdentityRegistrarInfo, - PalletIdentityAuthorityProperties, -} from './types'; - -export interface ChainStorage extends GenericChainStorage { - /** - * Pallet `System`'s storage queries - **/ - system: { - /** - * The full account information for a particular account ID. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery FrameSystemAccountInfo, AccountId32>; - - /** - * Total extrinsics count for the current block. - * - * @param {Callback =} callback - **/ - extrinsicCount: GenericStorageQuery number | undefined>; - - /** - * Whether all inherents have been applied. - * - * @param {Callback =} callback - **/ - inherentsApplied: GenericStorageQuery boolean>; - - /** - * The current weight for the block. - * - * @param {Callback =} callback - **/ - blockWeight: GenericStorageQuery FrameSupportDispatchPerDispatchClass>; - - /** - * Total length (in bytes) for all extrinsics put together, for the current block. - * - * @param {Callback =} callback - **/ - allExtrinsicsLen: GenericStorageQuery number | undefined>; - - /** - * Map of block numbers to block hashes. - * - * @param {number} arg - * @param {Callback =} callback - **/ - blockHash: GenericStorageQuery H256, number>; - - /** - * Extrinsics data for the current block (maps an extrinsic's index to its data). - * - * @param {number} arg - * @param {Callback =} callback - **/ - extrinsicData: GenericStorageQuery Bytes, number>; - - /** - * The current block number being processed. Set by `execute_block`. - * - * @param {Callback =} callback - **/ - number: GenericStorageQuery number>; - - /** - * Hash of the previous block. - * - * @param {Callback =} callback - **/ - parentHash: GenericStorageQuery H256>; - - /** - * Digest of the current block, also part of the block header. - * - * @param {Callback =} callback - **/ - digest: GenericStorageQuery Digest>; - - /** - * Events deposited for the current block. - * - * NOTE: The item is unbound and should therefore never be read on chain. - * It could otherwise inflate the PoV size of a block. - * - * Events have a large in-memory size. Box the events to not go out-of-memory - * just in case someone still reads them from within the runtime. - * - * @param {Callback> =} callback - **/ - events: GenericStorageQuery Array>; - - /** - * The number of events in the `Events` list. - * - * @param {Callback =} callback - **/ - eventCount: GenericStorageQuery number>; - - /** - * Mapping between a topic (represented by T::Hash) and a vector of indexes - * of events in the `>` list. - * - * All topic vectors have deterministic storage locations depending on the topic. This - * allows light-clients to leverage the changes trie storage tracking mechanism and - * in case of changes fetch the list of events of interest. - * - * The value has the type `(BlockNumberFor, EventIndex)` because if we used only just - * the `EventIndex` then in case if the topic has the same contents on the next block - * no notification will be triggered thus the event might be lost. - * - * @param {H256} arg - * @param {Callback> =} callback - **/ - eventTopics: GenericStorageQuery Array<[number, number]>, H256>; - - /** - * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. - * - * @param {Callback =} callback - **/ - lastRuntimeUpgrade: GenericStorageQuery FrameSystemLastRuntimeUpgradeInfo | undefined>; - - /** - * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToU32RefCount: GenericStorageQuery boolean>; - - /** - * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False - * (default) if not. - * - * @param {Callback =} callback - **/ - upgradedToTripleRefCount: GenericStorageQuery boolean>; - - /** - * The execution phase of the block. - * - * @param {Callback =} callback - **/ - executionPhase: GenericStorageQuery Phase | undefined>; - - /** - * `Some` if a code upgrade has been authorized. - * - * @param {Callback =} callback - **/ - authorizedUpgrade: GenericStorageQuery FrameSystemCodeUpgradeAuthorization | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainSystem`'s storage queries - **/ - parachainSystem: { - /** - * Latest included block descendants the runtime accepted. In other words, these are - * ancestors of the currently executing block which have not been included in the observed - * relay-chain state. - * - * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured - * in the pallet. - * - * @param {Callback> =} callback - **/ - unincludedSegment: GenericStorageQuery Array>; - - /** - * Storage field that keeps track of bandwidth used by the unincluded segment along with the - * latest HRMP watermark. Used for limiting the acceptance of new blocks with - * respect to relay chain constraints. - * - * @param {Callback =} callback - **/ - aggregatedUnincludedSegment: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined - >; - - /** - * In case of a scheduled upgrade, this storage field contains the validation code to be - * applied. - * - * As soon as the relay chain gives us the go-ahead signal, we will overwrite the - * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process - * with the new validation code. This concludes the upgrade process. - * - * @param {Callback =} callback - **/ - pendingValidationCode: GenericStorageQuery Bytes>; - - /** - * Validation code that is set by the parachain and is to be communicated to collator and - * consequently the relay-chain. - * - * This will be cleared in `on_initialize` of each new block if no other pallet already set - * the value. - * - * @param {Callback =} callback - **/ - newValidationCode: GenericStorageQuery Bytes | undefined>; - - /** - * The [`PersistedValidationData`] set for this block. - * This value is expected to be set only once per block and it's never stored - * in the trie. - * - * @param {Callback =} callback - **/ - validationData: GenericStorageQuery PolkadotPrimitivesV7PersistedValidationData | undefined>; - - /** - * Were the validation data set to notify the relay chain? - * - * @param {Callback =} callback - **/ - didSetValidationCode: GenericStorageQuery boolean>; - - /** - * The relay chain block number associated with the last parachain block. - * - * This is updated in `on_finalize`. - * - * @param {Callback =} callback - **/ - lastRelayChainBlockNumber: GenericStorageQuery number>; - - /** - * An option which indicates if the relay-chain restricts signalling a validation code upgrade. - * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced - * candidate will be invalid. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeRestrictionSignal: GenericStorageQuery PolkadotPrimitivesV7UpgradeRestriction | undefined>; - - /** - * Optional upgrade go-ahead signal from the relay-chain. - * - * This storage item is a mirror of the corresponding value for the current parachain from the - * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is - * set after the inherent. - * - * @param {Callback =} callback - **/ - upgradeGoAhead: GenericStorageQuery PolkadotPrimitivesV7UpgradeGoAhead | undefined>; - - /** - * The state proof for the last relay parent block. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relayStateProof: GenericStorageQuery SpTrieStorageProof | undefined>; - - /** - * The snapshot of some state related to messaging relevant to the current parachain as per - * the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - relevantMessagingState: GenericStorageQuery< - Rv, - () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined - >; - - /** - * The parachain host configuration that was obtained from the relay parent. - * - * This field is meant to be updated each block with the validation data inherent. Therefore, - * before processing of the inherent, e.g. in `on_initialize` this data may be stale. - * - * This data is also absent from the genesis. - * - * @param {Callback =} callback - **/ - hostConfiguration: GenericStorageQuery PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>; - - /** - * The last downward message queue chain head we have observed. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback =} callback - **/ - lastDmqMqcHead: GenericStorageQuery CumulusPrimitivesParachainInherentMessageQueueChain>; - - /** - * The message queue chain heads we have observed per each channel incoming channel. - * - * This value is loaded before and saved after processing inbound downward messages carried - * by the system inherent. - * - * @param {Callback> =} callback - **/ - lastHrmpMqcHeads: GenericStorageQuery< - Rv, - () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]> - >; - - /** - * Number of downward messages processed in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - processedDownwardMessages: GenericStorageQuery number>; - - /** - * HRMP watermark that was set in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback =} callback - **/ - hrmpWatermark: GenericStorageQuery number>; - - /** - * HRMP messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - hrmpOutboundMessages: GenericStorageQuery Array>; - - /** - * Upward messages that were sent in a block. - * - * This will be cleared in `on_initialize` of each new block. - * - * @param {Callback> =} callback - **/ - upwardMessages: GenericStorageQuery Array>; - - /** - * Upward messages that are still pending and not yet send to the relay chain. - * - * @param {Callback> =} callback - **/ - pendingUpwardMessages: GenericStorageQuery Array>; - - /** - * The factor to multiply the base delivery fee by for UMP. - * - * @param {Callback =} callback - **/ - upwardDeliveryFeeFactor: GenericStorageQuery FixedU128>; - - /** - * The number of HRMP messages we observed in `on_initialize` and thus used that number for - * announcing the weight of `on_initialize` and `on_finalize`. - * - * @param {Callback =} callback - **/ - announcedHrmpMessagesPerCandidate: GenericStorageQuery number>; - - /** - * The weight we reserve at the beginning of the block for processing XCMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedXcmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * The weight we reserve at the beginning of the block for processing DMP messages. This - * overrides the amount set in the Config trait. - * - * @param {Callback =} callback - **/ - reservedDmpWeightOverride: GenericStorageQuery SpWeightsWeightV2Weight | undefined>; - - /** - * A custom head data that should be returned as result of `validate_block`. - * - * See `Pallet::set_custom_validation_head_data` for more information. - * - * @param {Callback =} callback - **/ - customValidationHeadData: GenericStorageQuery Bytes | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Timestamp`'s storage queries - **/ - timestamp: { - /** - * The current time for the current block. - * - * @param {Callback =} callback - **/ - now: GenericStorageQuery bigint>; - - /** - * Whether the timestamp has been updated in this block. - * - * This value is updated to `true` upon successful submission of a timestamp by a node. - * It is then checked at the end of each block execution in the `on_finalize` hook. - * - * @param {Callback =} callback - **/ - didUpdate: GenericStorageQuery boolean>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `ParachainInfo`'s storage queries - **/ - parachainInfo: { - /** - * - * @param {Callback =} callback - **/ - parachainId: GenericStorageQuery PolkadotParachainPrimitivesPrimitivesId>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Balances`'s storage queries - **/ - balances: { - /** - * The total units issued in the system. - * - * @param {Callback =} callback - **/ - totalIssuance: GenericStorageQuery bigint>; - - /** - * The total units of outstanding deactivated balance in the system. - * - * @param {Callback =} callback - **/ - inactiveIssuance: GenericStorageQuery bigint>; - - /** - * The Balances pallet example of storing the balance of an account. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> - * } - * ``` - * - * You can also store the balance of an account in the `System` pallet. - * - * # Example - * - * ```nocompile - * impl pallet_balances::Config for Runtime { - * type AccountStore = System - * } - * ``` - * - * But this comes with tradeoffs, storing account balances in the system pallet stores - * `frame_system` data alongside the account data contrary to storing account balances in the - * `Balances` pallet, which uses a `StorageMap` to store balances data only. - * NOTE: This is only used in the case that this pallet is used to store balances. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - account: GenericStorageQuery PalletBalancesAccountData, AccountId32>; - - /** - * Any liquidity locks on some account balances. - * NOTE: Should only be accessed when setting, changing and freeing a lock. - * - * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - locks: GenericStorageQuery Array, AccountId32>; - - /** - * Named reserves on some account balances. - * - * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - reserves: GenericStorageQuery Array, AccountId32>; - - /** - * Holds on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - holds: GenericStorageQuery Array, AccountId32>; - - /** - * Freeze locks on account balances. - * - * @param {AccountId32Like} arg - * @param {Callback> =} callback - **/ - freezes: GenericStorageQuery Array, AccountId32>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `TransactionPayment`'s storage queries - **/ - transactionPayment: { - /** - * - * @param {Callback =} callback - **/ - nextFeeMultiplier: GenericStorageQuery FixedU128>; - - /** - * - * @param {Callback =} callback - **/ - storageVersion: GenericStorageQuery PalletTransactionPaymentReleases>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Authorship`'s storage queries - **/ - authorship: { - /** - * Author of current block. - * - * @param {Callback =} callback - **/ - author: GenericStorageQuery AccountId32 | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `CollatorSelection`'s storage queries - **/ - collatorSelection: { - /** - * The invulnerable, permissioned collators. This list must be sorted. - * - * @param {Callback> =} callback - **/ - invulnerables: GenericStorageQuery Array>; - - /** - * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be - * mutually exclusive. - * - * This list is sorted in ascending order by deposit and when the deposits are equal, the least - * recently updated is considered greater. - * - * @param {Callback> =} callback - **/ - candidateList: GenericStorageQuery Array>; - - /** - * Last block authored by collator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - lastAuthoredBlock: GenericStorageQuery number, AccountId32>; - - /** - * Desired number of candidates. - * - * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct. - * - * @param {Callback =} callback - **/ - desiredCandidates: GenericStorageQuery number>; - - /** - * Fixed amount to deposit to become a collator. - * - * When a collator calls `leave_intent` they immediately receive the deposit back. - * - * @param {Callback =} callback - **/ - candidacyBond: GenericStorageQuery bigint>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Session`'s storage queries - **/ - session: { - /** - * The current set of validators. - * - * @param {Callback> =} callback - **/ - validators: GenericStorageQuery Array>; - - /** - * Current index of the session. - * - * @param {Callback =} callback - **/ - currentIndex: GenericStorageQuery number>; - - /** - * True if the underlying economic identities or weighting behind the validators - * has changed in the queued validator set. - * - * @param {Callback =} callback - **/ - queuedChanged: GenericStorageQuery boolean>; - - /** - * The queued keys for the next session. When the next session begins, these keys - * will be used to determine the validator's session keys. - * - * @param {Callback> =} callback - **/ - queuedKeys: GenericStorageQuery Array<[AccountId32, PeopleWestendRuntimeSessionKeys]>>; - - /** - * Indices of disabled validators. - * - * The vec is always kept sorted so that we can find whether a given validator is - * disabled using binary search. It gets cleared when `on_session_ending` returns - * a new set of identities. - * - * @param {Callback> =} callback - **/ - disabledValidators: GenericStorageQuery Array>; - - /** - * The next session keys for a validator. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - nextKeys: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => PeopleWestendRuntimeSessionKeys | undefined, - AccountId32 - >; - - /** - * The owner of a key. The key is the `KeyTypeId` + the encoded key. - * - * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg - * @param {Callback =} callback - **/ - keyOwner: GenericStorageQuery< - Rv, - (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined, - [SpCoreCryptoKeyTypeId, Bytes] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Aura`'s storage queries - **/ - aura: { - /** - * The current authority set. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * The current slot of this block. - * - * This will be set in `on_initialize`. - * - * @param {Callback =} callback - **/ - currentSlot: GenericStorageQuery SpConsensusSlotsSlot>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `AuraExt`'s storage queries - **/ - auraExt: { - /** - * Serves as cache for the authorities. - * - * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session, - * but we require the old authorities to verify the seal when validating a PoV. This will - * always be updated to the latest AuRa authorities in `on_finalize`. - * - * @param {Callback> =} callback - **/ - authorities: GenericStorageQuery Array>; - - /** - * Current slot paired with a number of authored blocks. - * - * Updated on each block initialization. - * - * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback - **/ - slotInfo: GenericStorageQuery [SpConsensusSlotsSlot, number] | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `XcmpQueue`'s storage queries - **/ - xcmpQueue: { - /** - * The suspended inbound XCMP channels. All others are not suspended. - * - * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block - * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached - * within the block and therefore only included once in the proof size. - * - * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof - * will be smaller. - * - * @param {Callback> =} callback - **/ - inboundXcmpSuspended: GenericStorageQuery Array>; - - /** - * The non-empty XCMP channels in order of becoming non-empty, and the index of the first - * and last outbound message. If the two indices are equal, then it indicates an empty - * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater - * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in - * case of the need to send a high-priority signal message this block. - * The bool is true if there is a signal message waiting to be sent. - * - * @param {Callback> =} callback - **/ - outboundXcmpStatus: GenericStorageQuery Array>; - - /** - * The messages outbound in a given XCMP channel. - * - * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg - * @param {Callback =} callback - **/ - outboundXcmpMessages: GenericStorageQuery< - Rv, - (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes, - [PolkadotParachainPrimitivesPrimitivesId, number] - >; - - /** - * Any signal messages waiting to be sent. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - signalMessages: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * The configuration which controls the dynamics of the outbound queue. - * - * @param {Callback =} callback - **/ - queueConfig: GenericStorageQuery CumulusPalletXcmpQueueQueueConfigData>; - - /** - * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. - * - * @param {Callback =} callback - **/ - queueSuspended: GenericStorageQuery boolean>; - - /** - * The factor to multiply the base delivery fee by. - * - * @param {PolkadotParachainPrimitivesPrimitivesId} arg - * @param {Callback =} callback - **/ - deliveryFeeFactor: GenericStorageQuery< - Rv, - (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128, - PolkadotParachainPrimitivesPrimitivesId - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `PolkadotXcm`'s storage queries - **/ - polkadotXcm: { - /** - * The latest available query index. - * - * @param {Callback =} callback - **/ - queryCounter: GenericStorageQuery bigint>; - - /** - * The ongoing queries. - * - * @param {bigint} arg - * @param {Callback =} callback - **/ - queries: GenericStorageQuery PalletXcmQueryStatus | undefined, bigint>; - - /** - * The existing asset traps. - * - * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of - * times this pair has been trapped (usually just 1 if it exists at all). - * - * @param {H256} arg - * @param {Callback =} callback - **/ - assetTraps: GenericStorageQuery number, H256>; - - /** - * Default version to encode XCM when latest version of destination is unknown. If `None`, - * then the destinations whose XCM version is unknown are considered unreachable. - * - * @param {Callback =} callback - **/ - safeXcmVersion: GenericStorageQuery number | undefined>; - - /** - * The Latest versions that we know various locations support. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - supportedVersion: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => number | undefined, - [number, XcmVersionedLocation] - >; - - /** - * All locations that we have requested version notifications from. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback =} callback - **/ - versionNotifiers: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => bigint | undefined, - [number, XcmVersionedLocation] - >; - - /** - * The target locations that are subscribed to our version changes, as well as the most recent - * of our versions we informed them of. - * - * @param {[number, XcmVersionedLocation]} arg - * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback - **/ - versionNotifyTargets: GenericStorageQuery< - Rv, - (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined, - [number, XcmVersionedLocation] - >; - - /** - * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and - * the `u32` counter is the number of times that a send to the destination has been attempted, - * which is used as a prioritization. - * - * @param {Callback> =} callback - **/ - versionDiscoveryQueue: GenericStorageQuery Array<[XcmVersionedLocation, number]>>; - - /** - * The current migration's stage, if any. - * - * @param {Callback =} callback - **/ - currentMigration: GenericStorageQuery PalletXcmVersionMigrationStage | undefined>; - - /** - * Fungible assets which we know are locked on a remote chain. - * - * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg - * @param {Callback =} callback - **/ - remoteLockedFungibles: GenericStorageQuery< - Rv, - (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined, - [number, AccountId32, XcmVersionedAssetId] - >; - - /** - * Fungible assets which we know are locked on this chain. - * - * @param {AccountId32Like} arg - * @param {Callback | undefined> =} callback - **/ - lockedFungibles: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined, - AccountId32 - >; - - /** - * Global suspension state of the XCM executor. - * - * @param {Callback =} callback - **/ - xcmExecutionSuspended: GenericStorageQuery boolean>; - - /** - * Whether or not incoming XCMs (both executed locally and received) should be recorded. - * Only one XCM program will be recorded at a time. - * This is meant to be used in runtime APIs, and it's advised it stays false - * for all other use cases, so as to not degrade regular performance. - * - * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`] - * implementation in the XCM executor configuration. - * - * @param {Callback =} callback - **/ - shouldRecordXcm: GenericStorageQuery boolean>; - - /** - * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally - * will be stored here. - * Runtime APIs can fetch the XCM that was executed by accessing this value. - * - * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`] - * implementation in the XCM executor configuration. - * - * @param {Callback =} callback - **/ - recordedXcm: GenericStorageQuery StagingXcmV4Xcm | undefined>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `MessageQueue`'s storage queries - **/ - messageQueue: { - /** - * The index of the first and last (non-empty) pages. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg - * @param {Callback =} callback - **/ - bookStateFor: GenericStorageQuery< - Rv, - (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState, - CumulusPrimitivesCoreAggregateMessageOrigin - >; - - /** - * The origin at which we should begin servicing. - * - * @param {Callback =} callback - **/ - serviceHead: GenericStorageQuery CumulusPrimitivesCoreAggregateMessageOrigin | undefined>; - - /** - * The map of page indices to pages. - * - * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg - * @param {Callback =} callback - **/ - pages: GenericStorageQuery< - Rv, - (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined, - [CumulusPrimitivesCoreAggregateMessageOrigin, number] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Multisig`'s storage queries - **/ - multisig: { - /** - * The set of open multisig operations. - * - * @param {[AccountId32Like, FixedBytes<32>]} arg - * @param {Callback =} callback - **/ - multisigs: GenericStorageQuery< - Rv, - (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined, - [AccountId32, FixedBytes<32>] - >; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; - /** - * Pallet `Identity`'s storage queries - **/ - identity: { - /** - * Information that is pertinent to identify the entity behind an account. First item is the - * registration, second is the account's primary username. - * - * TWOX-NOTE: OK ― `AccountId` is a secure hash. - * - * @param {AccountId32Like} arg - * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback - **/ - identityOf: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined, - AccountId32 - >; - - /** - * The super-identity of an alternative "sub" identity together with its name, within that - * context. If the account is not some other account's sub-identity, then just `None`. - * - * @param {AccountId32Like} arg - * @param {Callback<[AccountId32, Data] | undefined> =} callback - **/ - superOf: GenericStorageQuery [AccountId32, Data] | undefined, AccountId32>; - - /** - * Alternative "sub" identities of this account. - * - * The first item is the deposit, the second is a vector of the accounts. - * - * TWOX-NOTE: OK ― `AccountId` is a secure hash. - * - * @param {AccountId32Like} arg - * @param {Callback<[bigint, Array]> =} callback - **/ - subsOf: GenericStorageQuery [bigint, Array], AccountId32>; - - /** - * The set of registrars. Not expected to get very big as can only be added through a - * special origin (likely a council motion). - * - * The index into this can be cast to `RegistrarIndex` to get a valid value. - * - * @param {Callback> =} callback - **/ - registrars: GenericStorageQuery Array>; - - /** - * A map of the accounts who are authorized to grant usernames. - * - * @param {AccountId32Like} arg - * @param {Callback =} callback - **/ - usernameAuthorities: GenericStorageQuery< - Rv, - (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined, - AccountId32 - >; - - /** - * Reverse lookup from `username` to the `AccountId` that has registered it. The value should - * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity. - * - * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one - * primary username. - * - * @param {BytesLike} arg - * @param {Callback =} callback - **/ - accountOfUsername: GenericStorageQuery AccountId32 | undefined, Bytes>; - - /** - * Usernames that an authority has granted, but that the account controller has not confirmed - * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature - * because they are a pure proxy, multisig, etc. In order to confirm it, they should call - * [`Call::accept_username`]. - * - * First tuple item is the account and second is the acceptance deadline. - * - * @param {BytesLike} arg - * @param {Callback<[AccountId32, number] | undefined> =} callback - **/ - pendingUsernames: GenericStorageQuery [AccountId32, number] | undefined, Bytes>; - - /** - * Generic pallet storage query - **/ - [storage: string]: GenericStorageQuery; - }; -} diff --git a/packages/chaintypes/src/westendPeople/runtime.d.ts b/packages/chaintypes/src/westendPeople/runtime.d.ts deleted file mode 100644 index 4696812..0000000 --- a/packages/chaintypes/src/westendPeople/runtime.d.ts +++ /dev/null @@ -1,636 +0,0 @@ -// Generated by dedot cli - -import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types'; -import type { - H256, - RuntimeVersion, - Header, - DispatchError, - Result, - UncheckedExtrinsicLike, - UncheckedExtrinsic, - Bytes, - BytesLike, - AccountId32Like, - AccountId32, -} from 'dedot/codecs'; -import type { - SpConsensusSlotsSlotDuration, - SpConsensusAuraSr25519AppSr25519Public, - SpConsensusSlotsSlot, - SpRuntimeBlock, - SpRuntimeExtrinsicInclusionMode, - SpCoreOpaqueMetadata, - SpRuntimeTransactionValidityTransactionValidityError, - SpInherentsInherentData, - SpInherentsCheckInherentsResult, - SpRuntimeTransactionValidityValidTransaction, - SpRuntimeTransactionValidityTransactionSource, - SpCoreCryptoKeyTypeId, - PalletTransactionPaymentRuntimeDispatchInfo, - PalletTransactionPaymentFeeDetails, - SpWeightsWeightV2Weight, - PeopleWestendRuntimeRuntimeCallLike, - XcmVersionedAssetId, - XcmRuntimeApisFeesError, - XcmVersionedXcm, - XcmVersionedAssets, - XcmVersionedLocation, - XcmRuntimeApisDryRunCallDryRunEffects, - XcmRuntimeApisDryRunError, - PeopleWestendRuntimeOriginCaller, - XcmRuntimeApisDryRunXcmDryRunEffects, - XcmRuntimeApisConversionsError, - CumulusPrimitivesCoreCollationInfo, -} from './types'; - -export interface RuntimeApis extends GenericRuntimeApis { - /** - * @runtimeapi: AuraApi - 0xdd718d5cc53262d4 - **/ - auraApi: { - /** - * Returns the slot duration for Aura. - * - * Currently, only the value provided by this type at genesis will be used. - * - * @callname: AuraApi_slot_duration - **/ - slotDuration: GenericRuntimeApiMethod Promise>; - - /** - * Return the current set of authorities. - * - * @callname: AuraApi_authorities - **/ - authorities: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65 - **/ - auraUnincludedSegmentApi: { - /** - * Whether it is legal to extend the chain, assuming the given block is the most - * recently included one as-of the relay parent that will be built against, and - * the given slot. - * - * This should be consistent with the logic the runtime uses when validating blocks to - * avoid issues. - * - * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block - * whose state we are querying against, this must always return `true` as long as the slot - * is more recent than the included block itself. - * - * @callname: AuraUnincludedSegmentApi_can_build_upon - * @param {H256} included_hash - * @param {SpConsensusSlotsSlot} slot - **/ - canBuildUpon: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Core - 0xdf6acb689907609b - **/ - core: { - /** - * Returns the version of the runtime. - * - * @callname: Core_version - **/ - version: GenericRuntimeApiMethod Promise>; - - /** - * Execute the given block. - * - * @callname: Core_execute_block - * @param {SpRuntimeBlock} block - **/ - executeBlock: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Initialize a block with the given header and return the runtime executive mode. - * - * @callname: Core_initialize_block - * @param {Header} header - **/ - initializeBlock: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: Metadata - 0x37e397fc7c91f5e4 - **/ - metadata: { - /** - * Returns the metadata of a runtime. - * - * @callname: Metadata_metadata - **/ - metadata: GenericRuntimeApiMethod Promise>; - - /** - * Returns the metadata at a given version. - * - * If the given `version` isn't supported, this will return `None`. - * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime. - * - * @callname: Metadata_metadata_at_version - * @param {number} version - **/ - metadataAtVersion: GenericRuntimeApiMethod Promise>; - - /** - * Returns the supported metadata versions. - * - * This can be used to call `metadata_at_version`. - * - * @callname: Metadata_metadata_versions - **/ - metadataVersions: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a - **/ - blockBuilder: { - /** - * Apply the given extrinsic. - * - * Returns an inclusion outcome which specifies if this extrinsic is included in - * this block or not. - * - * @callname: BlockBuilder_apply_extrinsic - * @param {UncheckedExtrinsicLike} extrinsic - **/ - applyExtrinsic: GenericRuntimeApiMethod< - Rv, - ( - extrinsic: UncheckedExtrinsicLike, - ) => Promise, SpRuntimeTransactionValidityTransactionValidityError>> - >; - - /** - * Finish the current block. - * - * @callname: BlockBuilder_finalize_block - **/ - finalizeBlock: GenericRuntimeApiMethod Promise
>; - - /** - * Generate inherent extrinsics. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_inherent_extrinsics - * @param {SpInherentsInherentData} inherent - **/ - inherentExtrinsics: GenericRuntimeApiMethod< - Rv, - (inherent: SpInherentsInherentData) => Promise> - >; - - /** - * Check that the inherents are valid. The inherent data will vary from chain to chain. - * - * @callname: BlockBuilder_check_inherents - * @param {SpRuntimeBlock} block - * @param {SpInherentsInherentData} data - **/ - checkInherents: GenericRuntimeApiMethod< - Rv, - (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15 - **/ - taggedTransactionQueue: { - /** - * Validate the transaction. - * - * This method is invoked by the transaction pool to learn details about given transaction. - * The implementation should make sure to verify the correctness of the transaction - * against current state. The given `block_hash` corresponds to the hash of the block - * that is used as current state. - * - * Note that this call may be performed by the pool multiple times and transactions - * might be verified in any possible order. - * - * @callname: TaggedTransactionQueue_validate_transaction - * @param {SpRuntimeTransactionValidityTransactionSource} source - * @param {UncheckedExtrinsicLike} tx - * @param {H256} block_hash - **/ - validateTransaction: GenericRuntimeApiMethod< - Rv, - ( - source: SpRuntimeTransactionValidityTransactionSource, - tx: UncheckedExtrinsicLike, - blockHash: H256, - ) => Promise< - Result - > - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c - **/ - offchainWorkerApi: { - /** - * Starts the off-chain task for given block header. - * - * @callname: OffchainWorkerApi_offchain_worker - * @param {Header} header - **/ - offchainWorker: GenericRuntimeApiMethod Promise<[]>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: SessionKeys - 0xab3c0572291feb8b - **/ - sessionKeys: { - /** - * Generate a set of session keys with optionally using the given seed. - * The keys should be stored within the keystore exposed via runtime - * externalities. - * - * The seed needs to be a valid `utf8` string. - * - * Returns the concatenated SCALE encoded public keys. - * - * @callname: SessionKeys_generate_session_keys - * @param {BytesLike | undefined} seed - **/ - generateSessionKeys: GenericRuntimeApiMethod Promise>; - - /** - * Decode the given public session keys. - * - * Returns the list of public raw public keys + key type. - * - * @callname: SessionKeys_decode_session_keys - * @param {BytesLike} encoded - **/ - decodeSessionKeys: GenericRuntimeApiMethod< - Rv, - (encoded: BytesLike) => Promise | undefined> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f - **/ - accountNonceApi: { - /** - * Get current account nonce of given `AccountId`. - * - * @callname: AccountNonceApi_account_nonce - * @param {AccountId32Like} account - **/ - accountNonce: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8 - **/ - transactionPaymentApi: { - /** - * - * @callname: TransactionPaymentApi_query_info - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryInfo: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_fee_details - * @param {UncheckedExtrinsicLike} uxt - * @param {number} len - **/ - queryFeeDetails: GenericRuntimeApiMethod< - Rv, - (uxt: UncheckedExtrinsicLike, len: number) => Promise - >; - - /** - * - * @callname: TransactionPaymentApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * - * @callname: TransactionPaymentApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059 - **/ - transactionPaymentCallApi: { - /** - * Query information of a dispatch class, weight, and fee of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_info - * @param {PeopleWestendRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallInfo: GenericRuntimeApiMethod< - Rv, - (call: PeopleWestendRuntimeRuntimeCallLike, len: number) => Promise - >; - - /** - * Query fee details of a given encoded `Call`. - * - * @callname: TransactionPaymentCallApi_query_call_fee_details - * @param {PeopleWestendRuntimeRuntimeCallLike} call - * @param {number} len - **/ - queryCallFeeDetails: GenericRuntimeApiMethod< - Rv, - (call: PeopleWestendRuntimeRuntimeCallLike, len: number) => Promise - >; - - /** - * Query the output of the current `WeightToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_weight_to_fee - * @param {SpWeightsWeightV2Weight} weight - **/ - queryWeightToFee: GenericRuntimeApiMethod Promise>; - - /** - * Query the output of the current `LengthToFee` given some input. - * - * @callname: TransactionPaymentCallApi_query_length_to_fee - * @param {number} length - **/ - queryLengthToFee: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd - **/ - xcmPaymentApi: { - /** - * Returns a list of acceptable payment assets. - * - * # Arguments - * - * * `xcm_version`: Version. - * - * @callname: XcmPaymentApi_query_acceptable_payment_assets - * @param {number} xcm_version - **/ - queryAcceptablePaymentAssets: GenericRuntimeApiMethod< - Rv, - (xcmVersion: number) => Promise, XcmRuntimeApisFeesError>> - >; - - /** - * Returns a weight needed to execute a XCM. - * - * # Arguments - * - * * `message`: `VersionedXcm`. - * - * @callname: XcmPaymentApi_query_xcm_weight - * @param {XcmVersionedXcm} message - **/ - queryXcmWeight: GenericRuntimeApiMethod< - Rv, - (message: XcmVersionedXcm) => Promise> - >; - - /** - * Converts a weight into a fee for the specified `AssetId`. - * - * # Arguments - * - * * `weight`: convertible `Weight`. - * * `asset`: `VersionedAssetId`. - * - * @callname: XcmPaymentApi_query_weight_to_asset_fee - * @param {SpWeightsWeightV2Weight} weight - * @param {XcmVersionedAssetId} asset - **/ - queryWeightToAssetFee: GenericRuntimeApiMethod< - Rv, - (weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise> - >; - - /** - * Get delivery fees for sending a specific `message` to a `destination`. - * These always come in a specific asset, defined by the chain. - * - * # Arguments - * * `message`: The message that'll be sent, necessary because most delivery fees are based on the - * size of the message. - * * `destination`: The destination to send the message to. Different destinations may use - * different senders that charge different fees. - * - * @callname: XcmPaymentApi_query_delivery_fees - * @param {XcmVersionedLocation} destination - * @param {XcmVersionedXcm} message - **/ - queryDeliveryFees: GenericRuntimeApiMethod< - Rv, - ( - destination: XcmVersionedLocation, - message: XcmVersionedXcm, - ) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: DryRunApi - 0x91b1c8b16328eb92 - **/ - dryRunApi: { - /** - * Dry run call. - * - * @callname: DryRunApi_dry_run_call - * @param {PeopleWestendRuntimeOriginCaller} origin - * @param {PeopleWestendRuntimeRuntimeCallLike} call - **/ - dryRunCall: GenericRuntimeApiMethod< - Rv, - ( - origin: PeopleWestendRuntimeOriginCaller, - call: PeopleWestendRuntimeRuntimeCallLike, - ) => Promise> - >; - - /** - * Dry run XCM program - * - * @callname: DryRunApi_dry_run_xcm - * @param {XcmVersionedLocation} origin_location - * @param {XcmVersionedXcm} xcm - **/ - dryRunXcm: GenericRuntimeApiMethod< - Rv, - ( - originLocation: XcmVersionedLocation, - xcm: XcmVersionedXcm, - ) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c - **/ - locationToAccountApi: { - /** - * Converts `Location` to `AccountId`. - * - * @callname: LocationToAccountApi_convert_location - * @param {XcmVersionedLocation} location - **/ - convertLocation: GenericRuntimeApiMethod< - Rv, - (location: XcmVersionedLocation) => Promise> - >; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962 - **/ - collectCollationInfo: { - /** - * Collect information about a collation. - * - * The given `header` is the header of the built block for that - * we are collecting the collation info for. - * - * @callname: CollectCollationInfo_collect_collation_info - * @param {Header} header - **/ - collectCollationInfo: GenericRuntimeApiMethod Promise>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; - /** - * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6 - **/ - genesisBuilder: { - /** - * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the - * storage. - * - * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and - * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the - * deserialization fails, an error is returned. - * - * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no - * defaults will be used. - * - * @callname: GenesisBuilder_build_state - * @param {BytesLike} json - **/ - buildState: GenericRuntimeApiMethod Promise>>; - - /** - * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by - * `id`. - * - * If `id` is `None` the function returns JSON blob representation of the default - * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default - * `RuntimeGenesisConfig`. - * - * Otherwise function returns a JSON representation of the built-in, named - * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not - * exists. Returned `Vec` contains bytes of JSON blob (patch) which comprises a list of - * (potentially nested) key-value pairs that are intended for customizing the default - * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation - * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can - * be used in `build_state` method. - * - * @callname: GenesisBuilder_get_preset - * @param {string | undefined} id - **/ - getPreset: GenericRuntimeApiMethod Promise>; - - /** - * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets. - * - * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If - * no named presets are provided by the runtime the list is empty. - * - * @callname: GenesisBuilder_preset_names - **/ - presetNames: GenericRuntimeApiMethod Promise>>; - - /** - * Generic runtime api call - **/ - [method: string]: GenericRuntimeApiMethod; - }; -} diff --git a/packages/chaintypes/src/westendPeople/tx.d.ts b/packages/chaintypes/src/westendPeople/tx.d.ts deleted file mode 100644 index 51b7a2e..0000000 --- a/packages/chaintypes/src/westendPeople/tx.d.ts +++ /dev/null @@ -1,2891 +0,0 @@ -// Generated by dedot cli - -import type { - GenericChainTx, - GenericTxCall, - ISubmittableExtrinsic, - ISubmittableResult, - IRuntimeTxCall, - RpcVersion, - RpcV2, - ISubmittableExtrinsicLegacy, -} from 'dedot/types'; -import type { MultiAddressLike, Extrinsic, BytesLike, H256, AccountId32Like, FixedBytes, Data } from 'dedot/codecs'; -import type { - PeopleWestendRuntimeRuntimeCallLike, - SpRuntimeMultiSignature, - FrameSystemEventRecord, - CumulusPrimitivesParachainInherentParachainInherentData, - PalletBalancesAdjustmentDirection, - PeopleWestendRuntimeSessionKeys, - XcmVersionedLocation, - XcmVersionedXcm, - XcmVersionedAssets, - SpWeightsWeightV2Weight, - StagingXcmV4Location, - XcmV3WeightLimit, - StagingXcmExecutorAssetTransferTransferType, - XcmVersionedAssetId, - CumulusPrimitivesCoreAggregateMessageOrigin, - PeopleWestendRuntimeOriginCaller, - PalletMultisigTimepoint, - PeopleWestendRuntimePeopleIdentityInfo, - PalletIdentityJudgement, -} from './types'; - -export type ChainSubmittableExtrinsic< - Rv extends RpcVersion, - T extends IRuntimeTxCall = PeopleWestendRuntimeRuntimeCallLike, -> = Extrinsic & - (Rv extends RpcV2 - ? ISubmittableExtrinsic> - : ISubmittableExtrinsicLegacy>); - -export type TxCall = (...args: any[]) => ChainSubmittableExtrinsic; - -export interface ChainTx extends GenericChainTx> { - /** - * Pallet `System`'s transaction calls - **/ - system: { - /** - * Make some on-chain remark. - * - * Can be executed by every `origin`. - * - * @param {BytesLike} remark - **/ - remark: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'Remark'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * Set the number of pages in the WebAssembly environment's heap. - * - * @param {bigint} pages - **/ - setHeapPages: GenericTxCall< - Rv, - (pages: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetHeapPages'; - params: { pages: bigint }; - }; - } - > - >; - - /** - * Set the new runtime code. - * - * @param {BytesLike} code - **/ - setCode: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCode'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Set the new runtime code without doing any checks of the given `code`. - * - * Note that runtime upgrades will not run if this is called with a not-increasing spec - * version! - * - * @param {BytesLike} code - **/ - setCodeWithoutChecks: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetCodeWithoutChecks'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Set some items of storage. - * - * @param {Array<[BytesLike, BytesLike]>} items - **/ - setStorage: GenericTxCall< - Rv, - (items: Array<[BytesLike, BytesLike]>) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'SetStorage'; - params: { items: Array<[BytesLike, BytesLike]> }; - }; - } - > - >; - - /** - * Kill some items from storage. - * - * @param {Array} keys - **/ - killStorage: GenericTxCall< - Rv, - (keys: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillStorage'; - params: { keys: Array }; - }; - } - > - >; - - /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. - * - * @param {BytesLike} prefix - * @param {number} subkeys - **/ - killPrefix: GenericTxCall< - Rv, - ( - prefix: BytesLike, - subkeys: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'KillPrefix'; - params: { prefix: BytesLike; subkeys: number }; - }; - } - > - >; - - /** - * Make some on-chain remark and emit event. - * - * @param {BytesLike} remark - **/ - remarkWithEvent: GenericTxCall< - Rv, - (remark: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'RemarkWithEvent'; - params: { remark: BytesLike }; - }; - } - > - >; - - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * This call requires Root origin. - * - * @param {H256} codeHash - **/ - authorizeUpgrade: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * WARNING: This authorizes an upgrade that will take place without any safety checks, for - * example that the spec name remains the same and that the version number increases. Not - * recommended for normal use. Use `authorize_upgrade` instead. - * - * This call requires Root origin. - * - * @param {H256} codeHash - **/ - authorizeUpgradeWithoutChecks: GenericTxCall< - Rv, - (codeHash: H256) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'AuthorizeUpgradeWithoutChecks'; - params: { codeHash: H256 }; - }; - } - > - >; - - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Depending on the runtime's `OnSetCode` configuration, this function may directly apply - * the new `code` in the same block or attempt to schedule the upgrade. - * - * All origins are allowed. - * - * @param {BytesLike} code - **/ - applyAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'System'; - palletCall: { - name: 'ApplyAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainSystem`'s transaction calls - **/ - parachainSystem: { - /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. - * - * @param {CumulusPrimitivesParachainInherentParachainInherentData} data - **/ - setValidationData: GenericTxCall< - Rv, - (data: CumulusPrimitivesParachainInherentParachainInherentData) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SetValidationData'; - params: { data: CumulusPrimitivesParachainInherentParachainInherentData }; - }; - } - > - >; - - /** - * - * @param {BytesLike} message - **/ - sudoSendUpwardMessage: GenericTxCall< - Rv, - (message: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'SudoSendUpwardMessage'; - params: { message: BytesLike }; - }; - } - > - >; - - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. - * - * @param {H256} codeHash - * @param {boolean} checkVersion - **/ - authorizeUpgrade: GenericTxCall< - Rv, - ( - codeHash: H256, - checkVersion: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'AuthorizeUpgrade'; - params: { codeHash: H256; checkVersion: boolean }; - }; - } - > - >; - - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. - * - * @param {BytesLike} code - **/ - enactAuthorizedUpgrade: GenericTxCall< - Rv, - (code: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'ParachainSystem'; - palletCall: { - name: 'EnactAuthorizedUpgrade'; - params: { code: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Timestamp`'s transaction calls - **/ - timestamp: { - /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * [`Config::MinimumPeriod`]. - * - * The dispatch origin for this call must be _None_. - * - * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware - * that changing the complexity of this call could result exhausting the resources in a - * block to execute any other calls. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. - * - * @param {bigint} now - **/ - set: GenericTxCall< - Rv, - (now: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Timestamp'; - palletCall: { - name: 'Set'; - params: { now: bigint }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `ParachainInfo`'s transaction calls - **/ - parachainInfo: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Balances`'s transaction calls - **/ - balances: { - /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferAllowDeath: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAllowDeath'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. - * - * @param {MultiAddressLike} source - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - forceTransfer: GenericTxCall< - Rv, - ( - source: MultiAddressLike, - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceTransfer'; - params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer - * - * @param {MultiAddressLike} dest - * @param {bigint} value - **/ - transferKeepAlive: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - value: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferKeepAlive'; - params: { dest: MultiAddressLike; value: bigint }; - }; - } - > - >; - - /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - * - * @param {MultiAddressLike} dest - * @param {boolean} keepAlive - **/ - transferAll: GenericTxCall< - Rv, - ( - dest: MultiAddressLike, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'TransferAll'; - params: { dest: MultiAddressLike; keepAlive: boolean }; - }; - } - > - >; - - /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. - * - * @param {MultiAddressLike} who - * @param {bigint} amount - **/ - forceUnreserve: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - amount: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceUnreserve'; - params: { who: MultiAddressLike; amount: bigint }; - }; - } - > - >; - - /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibility of churn). - * - * @param {Array} who - **/ - upgradeAccounts: GenericTxCall< - Rv, - (who: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'UpgradeAccounts'; - params: { who: Array }; - }; - } - > - >; - - /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. - * - * @param {MultiAddressLike} who - * @param {bigint} newFree - **/ - forceSetBalance: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - newFree: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceSetBalance'; - params: { who: MultiAddressLike; newFree: bigint }; - }; - } - > - >; - - /** - * Adjust the total issuance in a saturating way. - * - * Can only be called by root and always needs a positive `delta`. - * - * # Example - * - * @param {PalletBalancesAdjustmentDirection} direction - * @param {bigint} delta - **/ - forceAdjustTotalIssuance: GenericTxCall< - Rv, - ( - direction: PalletBalancesAdjustmentDirection, - delta: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'ForceAdjustTotalIssuance'; - params: { direction: PalletBalancesAdjustmentDirection; delta: bigint }; - }; - } - > - >; - - /** - * Burn the specified liquid free balance from the origin account. - * - * If the origin's account ends up below the existential deposit as a result - * of the burn and `keep_alive` is false, the account will be reaped. - * - * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, - * this `burn` operation will reduce total issuance by the amount _burned_. - * - * @param {bigint} value - * @param {boolean} keepAlive - **/ - burn: GenericTxCall< - Rv, - ( - value: bigint, - keepAlive: boolean, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Balances'; - palletCall: { - name: 'Burn'; - params: { value: bigint; keepAlive: boolean }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CollatorSelection`'s transaction calls - **/ - collatorSelection: { - /** - * Set the list of invulnerable (fixed) collators. These collators must do some - * preparation, namely to have registered session keys. - * - * The call will remove any accounts that have not registered keys from the set. That is, - * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as - * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. - * - * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It - * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A - * `batch_all` can also be used to enforce atomicity. If any candidates are included in - * `new`, they should be removed with `remove_invulnerable_candidate` after execution. - * - * Must be called by the `UpdateOrigin`. - * - * @param {Array} new_ - **/ - setInvulnerables: GenericTxCall< - Rv, - (new_: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetInvulnerables'; - params: { new: Array }; - }; - } - > - >; - - /** - * Set the ideal number of non-invulnerable collators. If lowering this number, then the - * number of running collators could be higher than this figure. Aside from that edge case, - * there should be no other way to have more candidates than the desired number. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {number} max - **/ - setDesiredCandidates: GenericTxCall< - Rv, - (max: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetDesiredCandidates'; - params: { max: number }; - }; - } - > - >; - - /** - * Set the candidacy bond amount. - * - * If the candidacy bond is increased by this call, all current candidates which have a - * deposit lower than the new bond will be kicked from the list and get their deposits - * back. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {bigint} bond - **/ - setCandidacyBond: GenericTxCall< - Rv, - (bond: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'SetCandidacyBond'; - params: { bond: bigint }; - }; - } - > - >; - - /** - * Register this account as a collator candidate. The account must (a) already have - * registered session keys and (b) be able to reserve the `CandidacyBond`. - * - * This call is not available to `Invulnerable` collators. - * - **/ - registerAsCandidate: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RegisterAsCandidate'; - }; - } - > - >; - - /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The `CandidacyBond` will be unreserved immediately. - * - * This call will fail if the total number of candidates would drop below - * `MinEligibleCollators`. - * - **/ - leaveIntent: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'LeaveIntent'; - }; - } - > - >; - - /** - * Add a new account `who` to the list of `Invulnerables` collators. `who` must have - * registered session keys. If `who` is a candidate, they will be removed. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {AccountId32Like} who - **/ - addInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'AddInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must - * be sorted. - * - * The origin for this call must be the `UpdateOrigin`. - * - * @param {AccountId32Like} who - **/ - removeInvulnerable: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'RemoveInvulnerable'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. - * - * Setting a `new_deposit` that is lower than the current deposit while `origin` is - * occupying a top-`DesiredCandidates` slot is not allowed. - * - * This call will fail if `origin` is not a collator candidate, the updated bond is lower - * than the minimum candidacy bond, and/or the amount cannot be reserved. - * - * @param {bigint} newDeposit - **/ - updateBond: GenericTxCall< - Rv, - (newDeposit: bigint) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'UpdateBond'; - params: { newDeposit: bigint }; - }; - } - > - >; - - /** - * The caller `origin` replaces a candidate `target` in the collator candidate list by - * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than - * the existing bond of the target it is trying to replace. - * - * This call will fail if the caller is already a collator candidate or invulnerable, the - * caller does not have registered session keys, the target is not a collator candidate, - * and/or the `deposit` amount cannot be reserved. - * - * @param {bigint} deposit - * @param {AccountId32Like} target - **/ - takeCandidateSlot: GenericTxCall< - Rv, - ( - deposit: bigint, - target: AccountId32Like, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'CollatorSelection'; - palletCall: { - name: 'TakeCandidateSlot'; - params: { deposit: bigint; target: AccountId32Like }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Session`'s transaction calls - **/ - session: { - /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. - * - * @param {PeopleWestendRuntimeSessionKeys} keys - * @param {BytesLike} proof - **/ - setKeys: GenericTxCall< - Rv, - ( - keys: PeopleWestendRuntimeSessionKeys, - proof: BytesLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'SetKeys'; - params: { keys: PeopleWestendRuntimeSessionKeys; proof: BytesLike }; - }; - } - > - >; - - /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. - * - **/ - purgeKeys: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Session'; - palletCall: { - name: 'PurgeKeys'; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `XcmpQueue`'s transaction calls - **/ - xcmpQueue: { - /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. - * - **/ - suspendXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'SuspendXcmExecution'; - }; - } - > - >; - - /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. - * - **/ - resumeXcmExecution: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'ResumeXcmExecution'; - }; - } - > - >; - - /** - * Overwrites the number of pages which must be in the queue for the other side to be - * told to suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` - * - * @param {number} new_ - **/ - updateSuspendThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateSuspendThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Overwrites the number of pages which must be in the queue after which we drop any - * further messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` - * - * @param {number} new_ - **/ - updateDropThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateDropThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Overwrites the number of pages which the queue must be reduced to before it signals - * that message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` - * - * @param {number} new_ - **/ - updateResumeThreshold: GenericTxCall< - Rv, - (new_: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'XcmpQueue'; - palletCall: { - name: 'UpdateResumeThreshold'; - params: { new: number }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `PolkadotXcm`'s transaction calls - **/ - polkadotXcm: { - /** - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedXcm} message - **/ - send: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - message: XcmVersionedXcm, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Send'; - params: { dest: XcmVersionedLocation; message: XcmVersionedXcm }; - }; - } - > - >; - - /** - * Teleport some assets from the local chain to some destination chain. - * - * **This function is deprecated: Use `limited_teleport_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - teleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - **/ - reserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - }; - } - > - >; - - /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than - * the maximum amount of weight that the message could take to be executed, then no - * execution attempt will be made. - * - * @param {XcmVersionedXcm} message - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - execute: GenericTxCall< - Rv, - ( - message: XcmVersionedXcm, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'Execute'; - params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - * - * @param {StagingXcmV4Location} location - * @param {number} version - **/ - forceXcmVersion: GenericTxCall< - Rv, - ( - location: StagingXcmV4Location, - version: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceXcmVersion'; - params: { location: StagingXcmV4Location; version: number }; - }; - } - > - >; - - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. - * - * @param {number | undefined} maybeXcmVersion - **/ - forceDefaultXcmVersion: GenericTxCall< - Rv, - (maybeXcmVersion: number | undefined) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceDefaultXcmVersion'; - params: { maybeXcmVersion: number | undefined }; - }; - } - > - >; - - /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. - * - * @param {XcmVersionedLocation} location - **/ - forceSubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - * - * @param {XcmVersionedLocation} location - **/ - forceUnsubscribeVersionNotify: GenericTxCall< - Rv, - (location: XcmVersionedLocation) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceUnsubscribeVersionNotify'; - params: { location: XcmVersionedLocation }; - }; - } - > - >; - - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedReserveTransferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - limitedTeleportAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. - * - * @param {boolean} suspended - **/ - forceSuspension: GenericTxCall< - Rv, - (suspended: boolean) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ForceSuspension'; - params: { suspended: boolean }; - }; - } - > - >; - - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve, or through teleports. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for - * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the - * operation will fail and the sent assets may be at risk. - * - * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable - * to `dest`, no limitations imposed on `fees`. - * - for local reserve: transfer assets to sovereign account of destination chain and - * forward a notification XCM to `dest` to mint and deposit reserve-based assets to - * `beneficiary`. - * - for destination reserve: burn local assets and forward a notification to `dest` chain - * to withdraw the reserve assets from this chain's sovereign account and deposit them - * to `beneficiary`. - * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves - * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint - * and deposit reserve-based assets to `beneficiary`. - * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport - * assets and deposit them to `beneficiary`. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, - * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send - * from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedLocation} beneficiary - * @param {XcmVersionedAssets} assets - * @param {number} feeAssetItem - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssets: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - beneficiary: XcmVersionedLocation, - assets: XcmVersionedAssets, - feeAssetItem: number, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Claims assets trapped on this pallet because of leftover assets during XCM execution. - * - * - `origin`: Anyone can call this extrinsic. - * - `assets`: The exact assets that were trapped. Use the version to specify what version - * was the latest when they were trapped. - * - `beneficiary`: The location/account where the claimed assets will be deposited. - * - * @param {XcmVersionedAssets} assets - * @param {XcmVersionedLocation} beneficiary - **/ - claimAssets: GenericTxCall< - Rv, - ( - assets: XcmVersionedAssets, - beneficiary: XcmVersionedLocation, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'ClaimAssets'; - params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation }; - }; - } - > - >; - - /** - * Transfer assets from the local chain to the destination chain using explicit transfer - * types for assets and fees. - * - * `assets` must have same reserve location or may be teleportable to `dest`. Caller must - * provide the `assets_transfer_type` to be used for `assets`: - * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `TransferType::DestinationReserve`: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve` - * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another - * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically - * the remote `reserve` is Asset Hub. - * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to - * mint/teleport assets and deposit them to `beneficiary`. - * - * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to - * buy execution using transferred `assets` identified by `remote_fees_id`. - * Make sure enough of the specified `remote_fees_id` asset is included in the given list - * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * `remote_fees_id` may use different transfer type than rest of `assets` and can be - * specified through `fees_transfer_type`. - * - * The caller needs to specify what should happen to the transferred assets once they reach - * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which - * contains the instructions to execute on `dest` as a final step. - * This is usually as simple as: - * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`, - * but could be something more exotic like sending the `assets` even further. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from - * parachain across a bridge to another ecosystem destination. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`. - * - `remote_fees_id`: One of the included `assets` to be used to pay fees. - * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets. - * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the - * transfer, which also determines what happens to the assets on the destination chain. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - * - * @param {XcmVersionedLocation} dest - * @param {XcmVersionedAssets} assets - * @param {StagingXcmExecutorAssetTransferTransferType} assetsTransferType - * @param {XcmVersionedAssetId} remoteFeesId - * @param {StagingXcmExecutorAssetTransferTransferType} feesTransferType - * @param {XcmVersionedXcm} customXcmOnDest - * @param {XcmV3WeightLimit} weightLimit - **/ - transferAssetsUsingTypeAndThen: GenericTxCall< - Rv, - ( - dest: XcmVersionedLocation, - assets: XcmVersionedAssets, - assetsTransferType: StagingXcmExecutorAssetTransferTransferType, - remoteFeesId: XcmVersionedAssetId, - feesTransferType: StagingXcmExecutorAssetTransferTransferType, - customXcmOnDest: XcmVersionedXcm, - weightLimit: XcmV3WeightLimit, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'PolkadotXcm'; - palletCall: { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `CumulusXcm`'s transaction calls - **/ - cumulusXcm: { - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `MessageQueue`'s transaction calls - **/ - messageQueue: { - /** - * Remove a page which has no more messages remaining to be processed or is stale. - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} pageIndex - **/ - reapPage: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - pageIndex: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ReapPage'; - params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number }; - }; - } - > - >; - - /** - * Execute an overweight message. - * - * Temporary processing errors will be propagated whereas permanent errors are treated - * as success condition. - * - * - `origin`: Must be `Signed`. - * - `message_origin`: The origin from which the message to be executed arrived. - * - `page`: The page in the queue in which the message to be executed is sitting. - * - `index`: The index into the queue of the message to be executed. - * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution - * of the message. - * - * Benchmark complexity considerations: O(index + weight_limit). - * - * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin - * @param {number} page - * @param {number} index - * @param {SpWeightsWeightV2Weight} weightLimit - **/ - executeOverweight: GenericTxCall< - Rv, - ( - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin, - page: number, - index: number, - weightLimit: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'MessageQueue'; - palletCall: { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Utility`'s transaction calls - **/ - utility: { - /** - * Send a batch of dispatch calls. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * This will return `Ok` in all circumstances. To determine the success of the batch, an - * event is deposited. If a call failed and the batch was interrupted, then the - * `BatchInterrupted` event is deposited, along with the number of successful calls made - * and the error of the failed call. If all were successful, then the `BatchCompleted` - * event is deposited. - * - * @param {Array} calls - **/ - batch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'Batch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * Send a call through an indexed pseudonym of the sender. - * - * Filter from origin are passed along. The call will be dispatched with an origin which - * use the same filter as the origin of this call. - * - * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. - * because you expect `proxy` to have been used prior in the call stack and you do not want - * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` - * in the Multisig pallet instead. - * - * NOTE: Prior to version *12, this was called `as_limited_sub`. - * - * The dispatch origin for this call must be _Signed_. - * - * @param {number} index - * @param {PeopleWestendRuntimeRuntimeCallLike} call - **/ - asDerivative: GenericTxCall< - Rv, - ( - index: number, - call: PeopleWestendRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'AsDerivative'; - params: { index: number; call: PeopleWestendRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * Send a batch of dispatch calls and atomically execute them. - * The whole transaction will rollback and fail if any of the calls failed. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * @param {Array} calls - **/ - batchAll: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'BatchAll'; - params: { calls: Array }; - }; - } - > - >; - - /** - * Dispatches a function call with a provided origin. - * - * The dispatch origin for this call must be _Root_. - * - * ## Complexity - * - O(1). - * - * @param {PeopleWestendRuntimeOriginCaller} asOrigin - * @param {PeopleWestendRuntimeRuntimeCallLike} call - **/ - dispatchAs: GenericTxCall< - Rv, - ( - asOrigin: PeopleWestendRuntimeOriginCaller, - call: PeopleWestendRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'DispatchAs'; - params: { asOrigin: PeopleWestendRuntimeOriginCaller; call: PeopleWestendRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * Send a batch of dispatch calls. - * Unlike `batch`, it allows errors and won't interrupt. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatch without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * @param {Array} calls - **/ - forceBatch: GenericTxCall< - Rv, - (calls: Array) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'ForceBatch'; - params: { calls: Array }; - }; - } - > - >; - - /** - * Dispatch a function call with a specified weight. - * - * This function does not check the weight of the call, and instead allows the - * Root origin to specify the weight of the call. - * - * The dispatch origin for this call must be _Root_. - * - * @param {PeopleWestendRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} weight - **/ - withWeight: GenericTxCall< - Rv, - ( - call: PeopleWestendRuntimeRuntimeCallLike, - weight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Utility'; - palletCall: { - name: 'WithWeight'; - params: { call: PeopleWestendRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Multisig`'s transaction calls - **/ - multisig: { - /** - * Immediately dispatch a multi-signature call using a single approval from the caller. - * - * The dispatch origin for this call must be _Signed_. - * - * - `other_signatories`: The accounts (other than the sender) who are part of the - * multi-signature, but do not participate in the approval process. - * - `call`: The call to be executed. - * - * Result is equivalent to the dispatched result. - * - * ## Complexity - * O(Z + C) where Z is the length of the call and C its execution weight. - * - * @param {Array} otherSignatories - * @param {PeopleWestendRuntimeRuntimeCallLike} call - **/ - asMultiThreshold1: GenericTxCall< - Rv, - ( - otherSignatories: Array, - call: PeopleWestendRuntimeRuntimeCallLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: PeopleWestendRuntimeRuntimeCallLike }; - }; - } - > - >; - - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * ## Complexity - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {PeopleWestendRuntimeRuntimeCallLike} call - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - asMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - call: PeopleWestendRuntimeRuntimeCallLike, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - call: PeopleWestendRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint | undefined} maybeTimepoint - * @param {FixedBytes<32>} callHash - * @param {SpWeightsWeightV2Weight} maxWeight - **/ - approveAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - maybeTimepoint: PalletMultisigTimepoint | undefined, - callHash: FixedBytes<32>, - maxWeight: SpWeightsWeightV2Weight, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - }; - } - > - >; - - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - * - * @param {number} threshold - * @param {Array} otherSignatories - * @param {PalletMultisigTimepoint} timepoint - * @param {FixedBytes<32>} callHash - **/ - cancelAsMulti: GenericTxCall< - Rv, - ( - threshold: number, - otherSignatories: Array, - timepoint: PalletMultisigTimepoint, - callHash: FixedBytes<32>, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Multisig'; - palletCall: { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `Identity`'s transaction calls - **/ - identity: { - /** - * Add a registrar to the system. - * - * The dispatch origin for this call must be `T::RegistrarOrigin`. - * - * - `account`: the account of the registrar. - * - * Emits `RegistrarAdded` if successful. - * - * @param {MultiAddressLike} account - **/ - addRegistrar: GenericTxCall< - Rv, - (account: MultiAddressLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'AddRegistrar'; - params: { account: MultiAddressLike }; - }; - } - > - >; - - /** - * Set an account's identity information and reserve the appropriate deposit. - * - * If the account already has identity information, the deposit is taken as part payment - * for the new deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * - `info`: The identity information. - * - * Emits `IdentitySet` if successful. - * - * @param {PeopleWestendRuntimePeopleIdentityInfo} info - **/ - setIdentity: GenericTxCall< - Rv, - (info: PeopleWestendRuntimePeopleIdentityInfo) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'SetIdentity'; - params: { info: PeopleWestendRuntimePeopleIdentityInfo }; - }; - } - > - >; - - /** - * Set the sub-accounts of the sender. - * - * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned - * and an amount `SubAccountDeposit` will be reserved for each item in `subs`. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * identity. - * - * - `subs`: The identity's (new) sub-accounts. - * - * @param {Array<[AccountId32Like, Data]>} subs - **/ - setSubs: GenericTxCall< - Rv, - (subs: Array<[AccountId32Like, Data]>) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'SetSubs'; - params: { subs: Array<[AccountId32Like, Data]> }; - }; - } - > - >; - - /** - * Clear an account's identity info and all sub-accounts and return all deposits. - * - * Payment: All reserved balances on the account are returned. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * identity. - * - * Emits `IdentityCleared` if successful. - * - **/ - clearIdentity: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'ClearIdentity'; - }; - } - > - >; - - /** - * Request a judgement from a registrar. - * - * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement - * given. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a - * registered identity. - * - * - `reg_index`: The index of the registrar whose judgement is requested. - * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as: - * - * ```nocompile - * Self::registrars().get(reg_index).unwrap().fee - * ``` - * - * Emits `JudgementRequested` if successful. - * - * @param {number} regIndex - * @param {bigint} maxFee - **/ - requestJudgement: GenericTxCall< - Rv, - ( - regIndex: number, - maxFee: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'RequestJudgement'; - params: { regIndex: number; maxFee: bigint }; - }; - } - > - >; - - /** - * Cancel a previous request. - * - * Payment: A previously reserved deposit is returned on success. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a - * registered identity. - * - * - `reg_index`: The index of the registrar whose judgement is no longer requested. - * - * Emits `JudgementUnrequested` if successful. - * - * @param {number} regIndex - **/ - cancelRequest: GenericTxCall< - Rv, - (regIndex: number) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'CancelRequest'; - params: { regIndex: number }; - }; - } - > - >; - - /** - * Set the fee required for a judgement to be requested from a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `fee`: the new fee. - * - * @param {number} index - * @param {bigint} fee - **/ - setFee: GenericTxCall< - Rv, - ( - index: number, - fee: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'SetFee'; - params: { index: number; fee: bigint }; - }; - } - > - >; - - /** - * Change the account associated with a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `new`: the new account ID. - * - * @param {number} index - * @param {MultiAddressLike} new_ - **/ - setAccountId: GenericTxCall< - Rv, - ( - index: number, - new_: MultiAddressLike, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'SetAccountId'; - params: { index: number; new: MultiAddressLike }; - }; - } - > - >; - - /** - * Set the field information for a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `fields`: the fields that the registrar concerns themselves with. - * - * @param {number} index - * @param {bigint} fields - **/ - setFields: GenericTxCall< - Rv, - ( - index: number, - fields: bigint, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'SetFields'; - params: { index: number; fields: bigint }; - }; - } - > - >; - - /** - * Provide a judgement for an account's identity. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `reg_index`. - * - * - `reg_index`: the index of the registrar whose judgement is being made. - * - `target`: the account whose identity the judgement is upon. This must be an account - * with a registered identity. - * - `judgement`: the judgement of the registrar of index `reg_index` about `target`. - * - `identity`: The hash of the [`IdentityInformationProvider`] for that the judgement is - * provided. - * - * Note: Judgements do not apply to a username. - * - * Emits `JudgementGiven` if successful. - * - * @param {number} regIndex - * @param {MultiAddressLike} target - * @param {PalletIdentityJudgement} judgement - * @param {H256} identity - **/ - provideJudgement: GenericTxCall< - Rv, - ( - regIndex: number, - target: MultiAddressLike, - judgement: PalletIdentityJudgement, - identity: H256, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'ProvideJudgement'; - params: { regIndex: number; target: MultiAddressLike; judgement: PalletIdentityJudgement; identity: H256 }; - }; - } - > - >; - - /** - * Remove an account's identity and sub-account information and slash the deposits. - * - * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by - * `Slash`. Verification request deposits are not returned; they should be cancelled - * manually using `cancel_request`. - * - * The dispatch origin for this call must match `T::ForceOrigin`. - * - * - `target`: the account whose identity the judgement is upon. This must be an account - * with a registered identity. - * - * Emits `IdentityKilled` if successful. - * - * @param {MultiAddressLike} target - **/ - killIdentity: GenericTxCall< - Rv, - (target: MultiAddressLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'KillIdentity'; - params: { target: MultiAddressLike }; - }; - } - > - >; - - /** - * Add the given account to the sender's subs. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. - * - * @param {MultiAddressLike} sub - * @param {Data} data - **/ - addSub: GenericTxCall< - Rv, - ( - sub: MultiAddressLike, - data: Data, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'AddSub'; - params: { sub: MultiAddressLike; data: Data }; - }; - } - > - >; - - /** - * Alter the associated name of the given sub-account. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. - * - * @param {MultiAddressLike} sub - * @param {Data} data - **/ - renameSub: GenericTxCall< - Rv, - ( - sub: MultiAddressLike, - data: Data, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'RenameSub'; - params: { sub: MultiAddressLike; data: Data }; - }; - } - > - >; - - /** - * Remove the given account from the sender's subs. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. - * - * @param {MultiAddressLike} sub - **/ - removeSub: GenericTxCall< - Rv, - (sub: MultiAddressLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'RemoveSub'; - params: { sub: MultiAddressLike }; - }; - } - > - >; - - /** - * Remove the sender as a sub-account. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender (*not* the original depositor). - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * super-identity. - * - * NOTE: This should not normally be used, but is provided in the case that the non- - * controller of an account is maliciously registered as a sub-account. - * - **/ - quitSub: GenericTxCall< - Rv, - () => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'QuitSub'; - }; - } - > - >; - - /** - * Add an `AccountId` with permission to grant usernames with a given `suffix` appended. - * - * The authority can grant up to `allocation` usernames. To top up their allocation, they - * should just issue (or request via governance) a new `add_username_authority` call. - * - * @param {MultiAddressLike} authority - * @param {BytesLike} suffix - * @param {number} allocation - **/ - addUsernameAuthority: GenericTxCall< - Rv, - ( - authority: MultiAddressLike, - suffix: BytesLike, - allocation: number, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'AddUsernameAuthority'; - params: { authority: MultiAddressLike; suffix: BytesLike; allocation: number }; - }; - } - > - >; - - /** - * Remove `authority` from the username authorities. - * - * @param {MultiAddressLike} authority - **/ - removeUsernameAuthority: GenericTxCall< - Rv, - (authority: MultiAddressLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'RemoveUsernameAuthority'; - params: { authority: MultiAddressLike }; - }; - } - > - >; - - /** - * Set the username for `who`. Must be called by a username authority. - * - * The authority must have an `allocation`. Users can either pre-sign their usernames or - * accept them later. - * - * Usernames must: - * - Only contain lowercase ASCII characters or digits. - * - When combined with the suffix of the issuing authority be _less than_ the - * `MaxUsernameLength`. - * - * @param {MultiAddressLike} who - * @param {BytesLike} username - * @param {SpRuntimeMultiSignature | undefined} signature - **/ - setUsernameFor: GenericTxCall< - Rv, - ( - who: MultiAddressLike, - username: BytesLike, - signature: SpRuntimeMultiSignature | undefined, - ) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'SetUsernameFor'; - params: { who: MultiAddressLike; username: BytesLike; signature: SpRuntimeMultiSignature | undefined }; - }; - } - > - >; - - /** - * Accept a given username that an `authority` granted. The call must include the full - * username, as in `username.suffix`. - * - * @param {BytesLike} username - **/ - acceptUsername: GenericTxCall< - Rv, - (username: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'AcceptUsername'; - params: { username: BytesLike }; - }; - } - > - >; - - /** - * Remove an expired username approval. The username was approved by an authority but never - * accepted by the user and must now be beyond its expiration. The call must include the - * full username, as in `username.suffix`. - * - * @param {BytesLike} username - **/ - removeExpiredApproval: GenericTxCall< - Rv, - (username: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'RemoveExpiredApproval'; - params: { username: BytesLike }; - }; - } - > - >; - - /** - * Set a given username as the primary. The username should include the suffix. - * - * @param {BytesLike} username - **/ - setPrimaryUsername: GenericTxCall< - Rv, - (username: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'SetPrimaryUsername'; - params: { username: BytesLike }; - }; - } - > - >; - - /** - * Remove a username that corresponds to an account with no identity. Exists when a user - * gets a username but then calls `clear_identity`. - * - * @param {BytesLike} username - **/ - removeDanglingUsername: GenericTxCall< - Rv, - (username: BytesLike) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'Identity'; - palletCall: { - name: 'RemoveDanglingUsername'; - params: { username: BytesLike }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; - /** - * Pallet `IdentityMigrator`'s transaction calls - **/ - identityMigrator: { - /** - * Reap the `IdentityInfo` of `who` from the Identity pallet of `T`, unreserving any - * deposits held and removing storage items associated with `who`. - * - * @param {AccountId32Like} who - **/ - reapIdentity: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'IdentityMigrator'; - palletCall: { - name: 'ReapIdentity'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * Update the deposit of `who`. Meant to be called by the system with an XCM `Transact` - * Instruction. - * - * @param {AccountId32Like} who - **/ - pokeDeposit: GenericTxCall< - Rv, - (who: AccountId32Like) => ChainSubmittableExtrinsic< - Rv, - { - pallet: 'IdentityMigrator'; - palletCall: { - name: 'PokeDeposit'; - params: { who: AccountId32Like }; - }; - } - > - >; - - /** - * Generic pallet tx call - **/ - [callName: string]: GenericTxCall>; - }; -} diff --git a/packages/chaintypes/src/westendPeople/types.d.ts b/packages/chaintypes/src/westendPeople/types.d.ts deleted file mode 100644 index 8362557..0000000 --- a/packages/chaintypes/src/westendPeople/types.d.ts +++ /dev/null @@ -1,4984 +0,0 @@ -// Generated by dedot cli - -import type { - Phase, - H256, - DispatchInfo, - DispatchError, - AccountId32, - FixedBytes, - FixedArray, - Bytes, - Result, - BytesLike, - MultiAddress, - MultiAddressLike, - AccountId32Like, - Data, - Era, - Header, - UncheckedExtrinsic, -} from 'dedot/codecs'; - -export type FrameSystemAccountInfo = { - nonce: number; - consumers: number; - providers: number; - sufficients: number; - data: PalletBalancesAccountData; -}; - -export type PalletBalancesAccountData = { - free: bigint; - reserved: bigint; - frozen: bigint; - flags: PalletBalancesExtraFlags; -}; - -export type PalletBalancesExtraFlags = bigint; - -export type FrameSupportDispatchPerDispatchClass = { - normal: SpWeightsWeightV2Weight; - operational: SpWeightsWeightV2Weight; - mandatory: SpWeightsWeightV2Weight; -}; - -export type SpWeightsWeightV2Weight = { refTime: bigint; proofSize: bigint }; - -export type FrameSystemEventRecord = { phase: Phase; event: PeopleWestendRuntimeRuntimeEvent; topics: Array }; - -export type PeopleWestendRuntimeRuntimeEvent = - | { pallet: 'System'; palletEvent: FrameSystemEvent } - | { pallet: 'ParachainSystem'; palletEvent: CumulusPalletParachainSystemEvent } - | { pallet: 'Balances'; palletEvent: PalletBalancesEvent } - | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent } - | { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent } - | { pallet: 'Session'; palletEvent: PalletSessionEvent } - | { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent } - | { pallet: 'PolkadotXcm'; palletEvent: PalletXcmEvent } - | { pallet: 'CumulusXcm'; palletEvent: CumulusPalletXcmEvent } - | { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent } - | { pallet: 'Utility'; palletEvent: PalletUtilityEvent } - | { pallet: 'Multisig'; palletEvent: PalletMultisigEvent } - | { pallet: 'Identity'; palletEvent: PalletIdentityEvent } - | { pallet: 'IdentityMigrator'; palletEvent: PolkadotRuntimeCommonIdentityMigratorPalletEvent }; - -/** - * Event for the System pallet. - **/ -export type FrameSystemEvent = - /** - * An extrinsic completed successfully. - **/ - | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: DispatchInfo } } - /** - * An extrinsic failed. - **/ - | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: DispatchInfo } } - /** - * `:code` was updated. - **/ - | { name: 'CodeUpdated' } - /** - * A new account was created. - **/ - | { name: 'NewAccount'; data: { account: AccountId32 } } - /** - * An account was reaped. - **/ - | { name: 'KilledAccount'; data: { account: AccountId32 } } - /** - * On on-chain remark happened. - **/ - | { name: 'Remarked'; data: { sender: AccountId32; hash: H256 } } - /** - * An upgrade was authorized. - **/ - | { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } }; - -export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory'; - -export type FrameSupportDispatchPays = 'Yes' | 'No'; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletParachainSystemEvent = - /** - * The validation function has been scheduled to apply. - **/ - | { name: 'ValidationFunctionStored' } - /** - * The validation function was applied as of the contained relay chain block number. - **/ - | { name: 'ValidationFunctionApplied'; data: { relayChainBlockNum: number } } - /** - * The relay-chain aborted the upgrade process. - **/ - | { name: 'ValidationFunctionDiscarded' } - /** - * Some downward messages have been received and will be processed. - **/ - | { name: 'DownwardMessagesReceived'; data: { count: number } } - /** - * Downward messages were processed using the given weight. - **/ - | { name: 'DownwardMessagesProcessed'; data: { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } } - /** - * An upward message was sent to the relay chain. - **/ - | { name: 'UpwardMessageSent'; data: { messageHash?: FixedBytes<32> | undefined } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletBalancesEvent = - /** - * An account was created with some free balance. - **/ - | { name: 'Endowed'; data: { account: AccountId32; freeBalance: bigint } } - /** - * An account was removed whose balance was non-zero but below ExistentialDeposit, - * resulting in an outright loss. - **/ - | { name: 'DustLost'; data: { account: AccountId32; amount: bigint } } - /** - * Transfer succeeded. - **/ - | { name: 'Transfer'; data: { from: AccountId32; to: AccountId32; amount: bigint } } - /** - * A balance was set by root. - **/ - | { name: 'BalanceSet'; data: { who: AccountId32; free: bigint } } - /** - * Some balance was reserved (moved from free to reserved). - **/ - | { name: 'Reserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unreserved (moved from reserved to free). - **/ - | { name: 'Unreserved'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was moved from the reserve of the first account to the second account. - * Final argument indicates the destination balance type. - **/ - | { - name: 'ReserveRepatriated'; - data: { - from: AccountId32; - to: AccountId32; - amount: bigint; - destinationStatus: FrameSupportTokensMiscBalanceStatus; - }; - } - /** - * Some amount was deposited (e.g. for transaction fees). - **/ - | { name: 'Deposit'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was withdrawn from the account (e.g. for transaction fees). - **/ - | { name: 'Withdraw'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was removed from the account (e.g. for misbehavior). - **/ - | { name: 'Slashed'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was minted into an account. - **/ - | { name: 'Minted'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was burned from an account. - **/ - | { name: 'Burned'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was suspended from an account (it can be restored later). - **/ - | { name: 'Suspended'; data: { who: AccountId32; amount: bigint } } - /** - * Some amount was restored into an account. - **/ - | { name: 'Restored'; data: { who: AccountId32; amount: bigint } } - /** - * An account was upgraded. - **/ - | { name: 'Upgraded'; data: { who: AccountId32 } } - /** - * Total issuance was increased by `amount`, creating a credit to be balanced. - **/ - | { name: 'Issued'; data: { amount: bigint } } - /** - * Total issuance was decreased by `amount`, creating a debt to be balanced. - **/ - | { name: 'Rescinded'; data: { amount: bigint } } - /** - * Some balance was locked. - **/ - | { name: 'Locked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was unlocked. - **/ - | { name: 'Unlocked'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was frozen. - **/ - | { name: 'Frozen'; data: { who: AccountId32; amount: bigint } } - /** - * Some balance was thawed. - **/ - | { name: 'Thawed'; data: { who: AccountId32; amount: bigint } } - /** - * The `TotalIssuance` was forcefully changed. - **/ - | { name: 'TotalIssuanceForced'; data: { old: bigint; new: bigint } }; - -export type FrameSupportTokensMiscBalanceStatus = 'Free' | 'Reserved'; - -/** - * The `Event` enum of this pallet - **/ -export type PalletTransactionPaymentEvent = - /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. - **/ - { name: 'TransactionFeePaid'; data: { who: AccountId32; actualFee: bigint; tip: bigint } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletCollatorSelectionEvent = - /** - * New Invulnerables were set. - **/ - | { name: 'NewInvulnerables'; data: { invulnerables: Array } } - /** - * A new Invulnerable was added. - **/ - | { name: 'InvulnerableAdded'; data: { accountId: AccountId32 } } - /** - * An Invulnerable was removed. - **/ - | { name: 'InvulnerableRemoved'; data: { accountId: AccountId32 } } - /** - * The number of desired candidates was set. - **/ - | { name: 'NewDesiredCandidates'; data: { desiredCandidates: number } } - /** - * The candidacy bond was set. - **/ - | { name: 'NewCandidacyBond'; data: { bondAmount: bigint } } - /** - * A new candidate joined. - **/ - | { name: 'CandidateAdded'; data: { accountId: AccountId32; deposit: bigint } } - /** - * Bond of a candidate updated. - **/ - | { name: 'CandidateBondUpdated'; data: { accountId: AccountId32; deposit: bigint } } - /** - * A candidate was removed. - **/ - | { name: 'CandidateRemoved'; data: { accountId: AccountId32 } } - /** - * An account was replaced in the candidate list by another one. - **/ - | { name: 'CandidateReplaced'; data: { old: AccountId32; new: AccountId32; deposit: bigint } } - /** - * An account was unable to be added to the Invulnerables because they did not have keys - * registered. Other Invulnerables may have been set. - **/ - | { name: 'InvalidInvulnerableSkipped'; data: { accountId: AccountId32 } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletSessionEvent = - /** - * New session has happened. Note that the argument is the session index, not the - * block number as the type might suggest. - **/ - { name: 'NewSession'; data: { sessionIndex: number } }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmpQueueEvent = - /** - * An HRMP message was sent to a sibling parachain. - **/ - { name: 'XcmpMessageSent'; data: { messageHash: FixedBytes<32> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletXcmEvent = - /** - * Execution of an XCM message was attempted. - **/ - | { name: 'Attempted'; data: { outcome: StagingXcmV4TraitsOutcome } } - /** - * A XCM message was sent. - **/ - | { - name: 'Sent'; - data: { - origin: StagingXcmV4Location; - destination: StagingXcmV4Location; - message: StagingXcmV4Xcm; - messageId: FixedBytes<32>; - }; - } - /** - * Query response received which does not match a registered query. This may be because a - * matching query was never registered, it may be because it is a duplicate response, or - * because the query timed out. - **/ - | { name: 'UnexpectedResponse'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Query response has been received and is ready for taking with `take_response`. There is - * no registered notification call. - **/ - | { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV4Response } } - /** - * Query response has been received and query is removed. The registered notification has - * been dispatched and executed successfully. - **/ - | { name: 'Notified'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The registered notification - * could not be dispatched because the dispatch weight is greater than the maximum weight - * originally budgeted by this runtime for the query result. - **/ - | { - name: 'NotifyOverweight'; - data: { - queryId: bigint; - palletIndex: number; - callIndex: number; - actualWeight: SpWeightsWeightV2Weight; - maxBudgetedWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Query response has been received and query is removed. There was a general error with - * dispatching the notification call. - **/ - | { name: 'NotifyDispatchError'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Query response has been received and query is removed. The dispatch was unable to be - * decoded into a `Call`; this might be due to dispatch function having a signature which - * is not `(origin, QueryId, Response)`. - **/ - | { name: 'NotifyDecodeFailed'; data: { queryId: bigint; palletIndex: number; callIndex: number } } - /** - * Expected query response has been received but the origin location of the response does - * not match that expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidResponder'; - data: { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined }; - } - /** - * Expected query response has been received but the expected origin location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Received query response has been read and removed. - **/ - | { name: 'ResponseTaken'; data: { queryId: bigint } } - /** - * Some assets have been placed in an asset trap. - **/ - | { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * An XCM version change notification message has been attempted to be sent. - * - * The cost of sending it (borne by the chain) is included. - **/ - | { - name: 'VersionChangeNotified'; - data: { - destination: StagingXcmV4Location; - result: number; - cost: StagingXcmV4AssetAssets; - messageId: FixedBytes<32>; - }; - } - /** - * The supported version of a location has been changed. This might be through an - * automatic notification or a manual intervention. - **/ - | { name: 'SupportedVersionChanged'; data: { location: StagingXcmV4Location; version: number } } - /** - * A given location which had a version change subscription was dropped owing to an error - * sending the notification to it. - **/ - | { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } } - /** - * A given location which had a version change subscription was dropped owing to an error - * migrating the location to our new XCM format. - **/ - | { name: 'NotifyTargetMigrationFail'; data: { location: XcmVersionedLocation; queryId: bigint } } - /** - * Expected query response has been received but the expected querier location placed in - * storage by this runtime previously cannot be decoded. The query remains registered. - * - * This is unexpected (since a location placed in storage in a previously executing - * runtime should be readable prior to query timeout) and dangerous since the possibly - * valid response will be dropped. Manual governance intervention is probably going to be - * needed. - **/ - | { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } } - /** - * Expected query response has been received but the querier location of the response does - * not match the expected. The query remains registered for a later, valid, response to - * be received and acted upon. - **/ - | { - name: 'InvalidQuerier'; - data: { - origin: StagingXcmV4Location; - queryId: bigint; - expectedQuerier: StagingXcmV4Location; - maybeActualQuerier?: StagingXcmV4Location | undefined; - }; - } - /** - * A remote has requested XCM version change notification from us and we have honored it. - * A version information message is sent to them and its cost is included. - **/ - | { - name: 'VersionNotifyStarted'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain send us XCM version change notifications. - **/ - | { - name: 'VersionNotifyRequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * We have requested that a remote chain stops sending us XCM version change - * notifications. - **/ - | { - name: 'VersionNotifyUnrequested'; - data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }; - } - /** - * Fees were paid from a location for an operation (often for using `SendXcm`). - **/ - | { name: 'FeesPaid'; data: { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } } - /** - * Some assets have been claimed from an asset trap - **/ - | { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } } - /** - * A XCM version migration finished. - **/ - | { name: 'VersionMigrationFinished'; data: { version: number } }; - -export type StagingXcmV4TraitsOutcome = - | { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } } - | { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV3TraitsError } } - | { type: 'Error'; value: { error: XcmV3TraitsError } }; - -export type XcmV3TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'LocationFull' } - | { type: 'LocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'ExpectationFalse' } - | { type: 'PalletNotFound' } - | { type: 'NameMismatch' } - | { type: 'VersionIncompatible' } - | { type: 'HoldingWouldOverflow' } - | { type: 'ExportError' } - | { type: 'ReanchorFailed' } - | { type: 'NoDeal' } - | { type: 'FeesNotMet' } - | { type: 'LockError' } - | { type: 'NoPermission' } - | { type: 'Unanchored' } - | { type: 'NotDepositable' } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' } - | { type: 'ExceedsStackLimit' }; - -export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions }; - -export type StagingXcmV4Junctions = - | { type: 'Here' } - | { type: 'X1'; value: FixedArray } - | { type: 'X2'; value: FixedArray } - | { type: 'X3'; value: FixedArray } - | { type: 'X4'; value: FixedArray } - | { type: 'X5'; value: FixedArray } - | { type: 'X6'; value: FixedArray } - | { type: 'X7'; value: FixedArray } - | { type: 'X8'; value: FixedArray }; - -export type StagingXcmV4Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId }; - -export type StagingXcmV4JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type XcmV3JunctionBodyId = - | { type: 'Unit' } - | { type: 'Moniker'; value: FixedBytes<4> } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV3JunctionBodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -export type StagingXcmV4Xcm = Array; - -export type StagingXcmV4Instruction = - | { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets } - | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: StagingXcmV4Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV4Location | undefined; - }; - } - | { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } } - | { - type: 'TransferReserveAsset'; - value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: StagingXcmV4Junctions } - | { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo } - | { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } } - | { - type: 'DepositReserveAsset'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm }; - } - | { - type: 'ReportHolding'; - value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter }; - } - | { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: StagingXcmV4Xcm } - | { type: 'SetAppendix'; value: StagingXcmV4Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: StagingXcmV4Junction } - | { - type: 'ExportMessage'; - value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm }; - } - | { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } } - | { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } } - | { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } } - | { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV4Location } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined }; - }; - -export type StagingXcmV4AssetAssets = Array; - -export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility }; - -export type StagingXcmV4AssetAssetId = StagingXcmV4Location; - -export type StagingXcmV4AssetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance }; - -export type StagingXcmV4AssetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type StagingXcmV4Response = - | { type: 'Null' } - | { type: 'Assets'; value: StagingXcmV4AssetAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type StagingXcmV4PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type XcmV3MaybeErrorCode = - | { type: 'Success' } - | { type: 'Error'; value: Bytes } - | { type: 'TruncatedError'; value: Bytes }; - -export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; - -export type XcmDoubleEncoded = { encoded: Bytes }; - -export type StagingXcmV4QueryResponseInfo = { - destination: StagingXcmV4Location; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type StagingXcmV4AssetAssetFilter = - | { type: 'Definite'; value: StagingXcmV4AssetAssets } - | { type: 'Wild'; value: StagingXcmV4AssetWildAsset }; - -export type StagingXcmV4AssetWildAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { - type: 'AllOfCounted'; - value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number }; - }; - -export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight }; - -export type XcmVersionedAssets = - | { type: 'V2'; value: XcmV2MultiassetMultiAssets } - | { type: 'V3'; value: XcmV3MultiassetMultiAssets } - | { type: 'V4'; value: StagingXcmV4AssetAssets }; - -export type XcmV2MultiassetMultiAssets = Array; - -export type XcmV2MultiassetMultiAsset = { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetFungibility }; - -export type XcmV2MultiassetAssetId = - | { type: 'Concrete'; value: XcmV2MultilocationMultiLocation } - | { type: 'Abstract'; value: Bytes }; - -export type XcmV2MultilocationMultiLocation = { parents: number; interior: XcmV2MultilocationJunctions }; - -export type XcmV2MultilocationJunctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV2Junction } - | { type: 'X2'; value: [XcmV2Junction, XcmV2Junction] } - | { type: 'X3'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X4'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X5'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { type: 'X6'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] } - | { - type: 'X7'; - value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]; - } - | { - type: 'X8'; - value: [ - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - XcmV2Junction, - ]; - }; - -export type XcmV2Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network: XcmV2NetworkId; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network: XcmV2NetworkId; index: bigint } } - | { type: 'AccountKey20'; value: { network: XcmV2NetworkId; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: Bytes } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV2BodyId; part: XcmV2BodyPart } }; - -export type XcmV2NetworkId = - | { type: 'Any' } - | { type: 'Named'; value: Bytes } - | { type: 'Polkadot' } - | { type: 'Kusama' }; - -export type XcmV2BodyId = - | { type: 'Unit' } - | { type: 'Named'; value: Bytes } - | { type: 'Index'; value: number } - | { type: 'Executive' } - | { type: 'Technical' } - | { type: 'Legislative' } - | { type: 'Judicial' } - | { type: 'Defense' } - | { type: 'Administration' } - | { type: 'Treasury' }; - -export type XcmV2BodyPart = - | { type: 'Voice' } - | { type: 'Members'; value: { count: number } } - | { type: 'Fraction'; value: { nom: number; denom: number } } - | { type: 'AtLeastProportion'; value: { nom: number; denom: number } } - | { type: 'MoreThanProportion'; value: { nom: number; denom: number } }; - -export type XcmV2MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV2MultiassetAssetInstance }; - -export type XcmV2MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> } - | { type: 'Blob'; value: Bytes }; - -export type XcmV3MultiassetMultiAssets = Array; - -export type XcmV3MultiassetMultiAsset = { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetFungibility }; - -export type XcmV3MultiassetAssetId = - | { type: 'Concrete'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'Abstract'; value: FixedBytes<32> }; - -export type StagingXcmV3MultilocationMultiLocation = { parents: number; interior: XcmV3Junctions }; - -export type XcmV3Junctions = - | { type: 'Here' } - | { type: 'X1'; value: XcmV3Junction } - | { type: 'X2'; value: [XcmV3Junction, XcmV3Junction] } - | { type: 'X3'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X4'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X5'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { type: 'X6'; value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] } - | { - type: 'X7'; - value: [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]; - } - | { - type: 'X8'; - value: [ - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - XcmV3Junction, - ]; - }; - -export type XcmV3Junction = - | { type: 'Parachain'; value: number } - | { type: 'AccountId32'; value: { network?: XcmV3JunctionNetworkId | undefined; id: FixedBytes<32> } } - | { type: 'AccountIndex64'; value: { network?: XcmV3JunctionNetworkId | undefined; index: bigint } } - | { type: 'AccountKey20'; value: { network?: XcmV3JunctionNetworkId | undefined; key: FixedBytes<20> } } - | { type: 'PalletInstance'; value: number } - | { type: 'GeneralIndex'; value: bigint } - | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } } - | { type: 'OnlyChild' } - | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } } - | { type: 'GlobalConsensus'; value: XcmV3JunctionNetworkId }; - -export type XcmV3JunctionNetworkId = - | { type: 'ByGenesis'; value: FixedBytes<32> } - | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } } - | { type: 'Polkadot' } - | { type: 'Kusama' } - | { type: 'Westend' } - | { type: 'Rococo' } - | { type: 'Wococo' } - | { type: 'Ethereum'; value: { chainId: bigint } } - | { type: 'BitcoinCore' } - | { type: 'BitcoinCash' } - | { type: 'PolkadotBulletin' }; - -export type XcmV3MultiassetFungibility = - | { type: 'Fungible'; value: bigint } - | { type: 'NonFungible'; value: XcmV3MultiassetAssetInstance }; - -export type XcmV3MultiassetAssetInstance = - | { type: 'Undefined' } - | { type: 'Index'; value: bigint } - | { type: 'Array4'; value: FixedBytes<4> } - | { type: 'Array8'; value: FixedBytes<8> } - | { type: 'Array16'; value: FixedBytes<16> } - | { type: 'Array32'; value: FixedBytes<32> }; - -export type XcmVersionedLocation = - | { type: 'V2'; value: XcmV2MultilocationMultiLocation } - | { type: 'V3'; value: StagingXcmV3MultilocationMultiLocation } - | { type: 'V4'; value: StagingXcmV4Location }; - -/** - * The `Event` enum of this pallet - **/ -export type CumulusPalletXcmEvent = - /** - * Downward message is invalid XCM. - * \[ id \] - **/ - | { name: 'InvalidFormat'; data: FixedBytes<32> } - /** - * Downward message is unsupported version of XCM. - * \[ id \] - **/ - | { name: 'UnsupportedVersion'; data: FixedBytes<32> } - /** - * Downward message executed with the given outcome. - * \[ id, outcome \] - **/ - | { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV4TraitsOutcome] }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMessageQueueEvent = - /** - * Message discarded due to an error in the `MessageProcessor` (usually a format error). - **/ - | { - name: 'ProcessingFailed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The error that occurred. - * - * This error is pretty opaque. More fine-grained errors need to be emitted as events - * by the `MessageProcessor`. - **/ - error: FrameSupportMessagesProcessMessageError; - }; - } - /** - * Message is processed. - **/ - | { - name: 'Processed'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: H256; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * How much weight was used to process the message. - **/ - weightUsed: SpWeightsWeightV2Weight; - - /** - * Whether the message was processed. - * - * Note that this does not mean that the underlying `MessageProcessor` was internally - * successful. It *solely* means that the MQ pallet will treat this as a success - * condition and discard the message. Any internal error needs to be emitted as events - * by the `MessageProcessor`. - **/ - success: boolean; - }; - } - /** - * Message placed in overweight queue. - **/ - | { - name: 'OverweightEnqueued'; - data: { - /** - * The `blake2_256` hash of the message. - **/ - id: FixedBytes<32>; - - /** - * The queue of the message. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The page of the message. - **/ - pageIndex: number; - - /** - * The index of the message within the page. - **/ - messageIndex: number; - }; - } - /** - * This page was reaped. - **/ - | { - name: 'PageReaped'; - data: { - /** - * The queue of the page. - **/ - origin: CumulusPrimitivesCoreAggregateMessageOrigin; - - /** - * The index of the page. - **/ - index: number; - }; - }; - -export type CumulusPrimitivesCoreAggregateMessageOrigin = - | { type: 'Here' } - | { type: 'Parent' } - | { type: 'Sibling'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type PolkadotParachainPrimitivesPrimitivesId = number; - -export type FrameSupportMessagesProcessMessageError = - | { type: 'BadFormat' } - | { type: 'Corrupt' } - | { type: 'Unsupported' } - | { type: 'Overweight'; value: SpWeightsWeightV2Weight } - | { type: 'Yield' } - | { type: 'StackLimitReached' }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletUtilityEvent = - /** - * Batch of dispatches did not complete fully. Index of first failing dispatch given, as - * well as the error. - **/ - | { name: 'BatchInterrupted'; data: { index: number; error: DispatchError } } - /** - * Batch of dispatches completed fully with no error. - **/ - | { name: 'BatchCompleted' } - /** - * Batch of dispatches completed but has errors. - **/ - | { name: 'BatchCompletedWithErrors' } - /** - * A single item within a Batch of dispatches has completed with no error. - **/ - | { name: 'ItemCompleted' } - /** - * A single item within a Batch of dispatches has completed with error. - **/ - | { name: 'ItemFailed'; data: { error: DispatchError } } - /** - * A call was dispatched. - **/ - | { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletMultisigEvent = - /** - * A new multisig operation has begun. - **/ - | { name: 'NewMultisig'; data: { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> } } - /** - * A multisig operation has been approved by someone. - **/ - | { - name: 'MultisigApproval'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - } - /** - * A multisig operation has been executed. - **/ - | { - name: 'MultisigExecuted'; - data: { - approving: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - result: Result<[], DispatchError>; - }; - } - /** - * A multisig operation has been cancelled. - **/ - | { - name: 'MultisigCancelled'; - data: { - cancelling: AccountId32; - timepoint: PalletMultisigTimepoint; - multisig: AccountId32; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigTimepoint = { height: number; index: number }; - -/** - * The `Event` enum of this pallet - **/ -export type PalletIdentityEvent = - /** - * A name was set or reset (which will remove all judgements). - **/ - | { name: 'IdentitySet'; data: { who: AccountId32 } } - /** - * A name was cleared, and the given balance returned. - **/ - | { name: 'IdentityCleared'; data: { who: AccountId32; deposit: bigint } } - /** - * A name was removed and the given balance slashed. - **/ - | { name: 'IdentityKilled'; data: { who: AccountId32; deposit: bigint } } - /** - * A judgement was asked from a registrar. - **/ - | { name: 'JudgementRequested'; data: { who: AccountId32; registrarIndex: number } } - /** - * A judgement request was retracted. - **/ - | { name: 'JudgementUnrequested'; data: { who: AccountId32; registrarIndex: number } } - /** - * A judgement was given by a registrar. - **/ - | { name: 'JudgementGiven'; data: { target: AccountId32; registrarIndex: number } } - /** - * A registrar was added. - **/ - | { name: 'RegistrarAdded'; data: { registrarIndex: number } } - /** - * A sub-identity was added to an identity and the deposit paid. - **/ - | { name: 'SubIdentityAdded'; data: { sub: AccountId32; main: AccountId32; deposit: bigint } } - /** - * A sub-identity was removed from an identity and the deposit freed. - **/ - | { name: 'SubIdentityRemoved'; data: { sub: AccountId32; main: AccountId32; deposit: bigint } } - /** - * A sub-identity was cleared, and the given deposit repatriated from the - * main identity account to the sub-identity account. - **/ - | { name: 'SubIdentityRevoked'; data: { sub: AccountId32; main: AccountId32; deposit: bigint } } - /** - * A username authority was added. - **/ - | { name: 'AuthorityAdded'; data: { authority: AccountId32 } } - /** - * A username authority was removed. - **/ - | { name: 'AuthorityRemoved'; data: { authority: AccountId32 } } - /** - * A username was set for `who`. - **/ - | { name: 'UsernameSet'; data: { who: AccountId32; username: Bytes } } - /** - * A username was queued, but `who` must accept it prior to `expiration`. - **/ - | { name: 'UsernameQueued'; data: { who: AccountId32; username: Bytes; expiration: number } } - /** - * A queued username passed its expiration without being claimed and was removed. - **/ - | { name: 'PreapprovalExpired'; data: { whose: AccountId32 } } - /** - * A username was set as a primary and can be looked up from `who`. - **/ - | { name: 'PrimaryUsernameSet'; data: { who: AccountId32; username: Bytes } } - /** - * A dangling username (as in, a username corresponding to an account that has removed its - * identity) has been removed. - **/ - | { name: 'DanglingUsernameRemoved'; data: { who: AccountId32; username: Bytes } }; - -/** - * The `Event` enum of this pallet - **/ -export type PolkadotRuntimeCommonIdentityMigratorPalletEvent = - /** - * The identity and all sub accounts were reaped for `who`. - **/ - | { name: 'IdentityReaped'; data: { who: AccountId32 } } - /** - * The deposits held for `who` were updated. `identity` is the new deposit held for - * identity info, and `subs` is the new deposit held for the sub-accounts. - **/ - | { name: 'DepositUpdated'; data: { who: AccountId32; identity: bigint; subs: bigint } }; - -export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string }; - -export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type FrameSystemCall = - /** - * Make some on-chain remark. - * - * Can be executed by every `origin`. - **/ - | { name: 'Remark'; params: { remark: Bytes } } - /** - * Set the number of pages in the WebAssembly environment's heap. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * Set the new runtime code. - **/ - | { name: 'SetCode'; params: { code: Bytes } } - /** - * Set the new runtime code without doing any checks of the given `code`. - * - * Note that runtime upgrades will not run if this is called with a not-increasing spec - * version! - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: Bytes } } - /** - * Set some items of storage. - **/ - | { name: 'SetStorage'; params: { items: Array<[Bytes, Bytes]> } } - /** - * Kill some items from storage. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. - **/ - | { name: 'KillPrefix'; params: { prefix: Bytes; subkeys: number } } - /** - * Make some on-chain remark and emit event. - **/ - | { name: 'RemarkWithEvent'; params: { remark: Bytes } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * WARNING: This authorizes an upgrade that will take place without any safety checks, for - * example that the spec name remains the same and that the version number increases. Not - * recommended for normal use. Use `authorize_upgrade` instead. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Depending on the runtime's `OnSetCode` configuration, this function may directly apply - * the new `code` in the same block or attempt to schedule the upgrade. - * - * All origins are allowed. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: Bytes } }; - -export type FrameSystemCallLike = - /** - * Make some on-chain remark. - * - * Can be executed by every `origin`. - **/ - | { name: 'Remark'; params: { remark: BytesLike } } - /** - * Set the number of pages in the WebAssembly environment's heap. - **/ - | { name: 'SetHeapPages'; params: { pages: bigint } } - /** - * Set the new runtime code. - **/ - | { name: 'SetCode'; params: { code: BytesLike } } - /** - * Set the new runtime code without doing any checks of the given `code`. - * - * Note that runtime upgrades will not run if this is called with a not-increasing spec - * version! - **/ - | { name: 'SetCodeWithoutChecks'; params: { code: BytesLike } } - /** - * Set some items of storage. - **/ - | { name: 'SetStorage'; params: { items: Array<[BytesLike, BytesLike]> } } - /** - * Kill some items from storage. - **/ - | { name: 'KillStorage'; params: { keys: Array } } - /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. - **/ - | { name: 'KillPrefix'; params: { prefix: BytesLike; subkeys: number } } - /** - * Make some on-chain remark and emit event. - **/ - | { name: 'RemarkWithEvent'; params: { remark: BytesLike } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256 } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * WARNING: This authorizes an upgrade that will take place without any safety checks, for - * example that the spec name remains the same and that the version number increases. Not - * recommended for normal use. Use `authorize_upgrade` instead. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgradeWithoutChecks'; params: { codeHash: H256 } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Depending on the runtime's `OnSetCode` configuration, this function may directly apply - * the new `code` in the same block or attempt to schedule the upgrade. - * - * All origins are allowed. - **/ - | { name: 'ApplyAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type FrameSystemLimitsBlockWeights = { - baseBlock: SpWeightsWeightV2Weight; - maxBlock: SpWeightsWeightV2Weight; - perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; -}; - -export type FrameSupportDispatchPerDispatchClassWeightsPerClass = { - normal: FrameSystemLimitsWeightsPerClass; - operational: FrameSystemLimitsWeightsPerClass; - mandatory: FrameSystemLimitsWeightsPerClass; -}; - -export type FrameSystemLimitsWeightsPerClass = { - baseExtrinsic: SpWeightsWeightV2Weight; - maxExtrinsic?: SpWeightsWeightV2Weight | undefined; - maxTotal?: SpWeightsWeightV2Weight | undefined; - reserved?: SpWeightsWeightV2Weight | undefined; -}; - -export type FrameSystemLimitsBlockLength = { max: FrameSupportDispatchPerDispatchClassU32 }; - -export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number }; - -export type SpWeightsRuntimeDbWeight = { read: bigint; write: bigint }; - -/** - * Error for the System pallet - **/ -export type FrameSystemError = - /** - * The name of specification does not match between the current runtime - * and the new runtime. - **/ - | 'InvalidSpecName' - /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. - **/ - | 'SpecVersionNeedsToIncrease' - /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. - **/ - | 'FailedToExtractRuntimeVersion' - /** - * Suicide called when the account has non-default composite data. - **/ - | 'NonDefaultComposite' - /** - * There is a non-zero reference count preventing the account from being purged. - **/ - | 'NonZeroRefCount' - /** - * The origin filter prevent the call to be dispatched. - **/ - | 'CallFiltered' - /** - * A multi-block migration is ongoing and prevents the current code from being replaced. - **/ - | 'MultiBlockMigrationsOngoing' - /** - * No upgrade authorized. - **/ - | 'NothingAuthorized' - /** - * The submitted code is not authorized. - **/ - | 'Unauthorized'; - -export type CumulusPalletParachainSystemUnincludedSegmentAncestor = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - paraHeadHash?: H256 | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = { - umpMsgCount: number; - umpTotalBytes: number; - hrmpOutgoing: Array< - [PolkadotParachainPrimitivesPrimitivesId, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate] - >; -}; - -export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number }; - -export type PolkadotPrimitivesV7UpgradeGoAhead = 'Abort' | 'GoAhead'; - -export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = { - usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; - hrmpWatermark?: number | undefined; - consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined; -}; - -export type PolkadotPrimitivesV7PersistedValidationData = { - parentHead: PolkadotParachainPrimitivesPrimitivesHeadData; - relayParentNumber: number; - relayParentStorageRoot: H256; - maxPovSize: number; -}; - -export type PolkadotParachainPrimitivesPrimitivesHeadData = Bytes; - -export type PolkadotPrimitivesV7UpgradeRestriction = 'Present'; - -export type SpTrieStorageProof = { trieNodes: Array }; - -export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = { - dmqMqcHead: H256; - relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; - ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>; - egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>; -}; - -export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = { - remainingCount: number; - remainingSize: number; -}; - -export type PolkadotPrimitivesV7AbridgedHrmpChannel = { - maxCapacity: number; - maxTotalSize: number; - maxMessageSize: number; - msgCount: number; - totalSize: number; - mqcHead?: H256 | undefined; -}; - -export type PolkadotPrimitivesV7AbridgedHostConfiguration = { - maxCodeSize: number; - maxHeadDataSize: number; - maxUpwardQueueCount: number; - maxUpwardQueueSize: number; - maxUpwardMessageSize: number; - maxUpwardMessageNumPerCandidate: number; - hrmpMaxMessageNumPerCandidate: number; - validationUpgradeCooldown: number; - validationUpgradeDelay: number; - asyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams; -}; - -export type PolkadotPrimitivesV7AsyncBackingAsyncBackingParams = { - maxCandidateDepth: number; - allowedAncestryLen: number; -}; - -export type CumulusPrimitivesParachainInherentMessageQueueChain = H256; - -export type PolkadotCorePrimitivesOutboundHrmpMessage = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - data: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletParachainSystemCall = - /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - | { name: 'SudoSendUpwardMessage'; params: { message: Bytes } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: Bytes } }; - -export type CumulusPalletParachainSystemCallLike = - /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. - **/ - | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } } - | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } } - /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. - **/ - | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } } - /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. - **/ - | { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } }; - -export type CumulusPrimitivesParachainInherentParachainInherentData = { - validationData: PolkadotPrimitivesV7PersistedValidationData; - relayChainState: SpTrieStorageProof; - downwardMessages: Array; - horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array]>; -}; - -export type PolkadotCorePrimitivesInboundDownwardMessage = { sentAt: number; msg: Bytes }; - -export type PolkadotCorePrimitivesInboundHrmpMessage = { sentAt: number; data: Bytes }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletParachainSystemError = - /** - * Attempt to upgrade validation function while existing upgrade pending. - **/ - | 'OverlappingUpgrades' - /** - * Polkadot currently prohibits this parachain from upgrading its validation function. - **/ - | 'ProhibitedByPolkadot' - /** - * The supplied validation function has compiled into a blob larger than Polkadot is - * willing to run. - **/ - | 'TooBig' - /** - * The inherent which supplies the validation data did not run this block. - **/ - | 'ValidationDataNotAvailable' - /** - * The inherent which supplies the host configuration did not run this block. - **/ - | 'HostConfigurationNotAvailable' - /** - * No validation function upgrade is currently scheduled. - **/ - | 'NotScheduled' - /** - * No code upgrade has been authorized. - **/ - | 'NothingAuthorized' - /** - * The given code upgrade has not been authorized. - **/ - | 'Unauthorized'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletTimestampCall = - /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * [`Config::MinimumPeriod`]. - * - * The dispatch origin for this call must be _None_. - * - * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware - * that changing the complexity of this call could result exhausting the resources in a - * block to execute any other calls. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. - **/ - { name: 'Set'; params: { now: bigint } }; - -export type PalletTimestampCallLike = - /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * [`Config::MinimumPeriod`]. - * - * The dispatch origin for this call must be _None_. - * - * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware - * that changing the complexity of this call could result exhausting the resources in a - * block to execute any other calls. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. - **/ - { name: 'Set'; params: { now: bigint } }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type StagingParachainInfoCall = null; - -export type StagingParachainInfoCallLike = null; - -export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons }; - -export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All'; - -export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint }; - -export type FrameSupportTokensMiscIdAmount = { id: PeopleWestendRuntimeRuntimeHoldReason; amount: bigint }; - -export type PeopleWestendRuntimeRuntimeHoldReason = null; - -export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletBalancesCall = - /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddress; value: bigint } } - /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddress; dest: MultiAddress; value: bigint } } - /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddress; value: bigint } } - /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - **/ - | { name: 'TransferAll'; params: { dest: MultiAddress; keepAlive: boolean } } - /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddress; amount: bigint } } - /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibility of churn). - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddress; newFree: bigint } } - /** - * Adjust the total issuance in a saturating way. - * - * Can only be called by root and always needs a positive `delta`. - * - * # Example - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } } - /** - * Burn the specified liquid free balance from the origin account. - * - * If the origin's account ends up below the existential deposit as a result - * of the burn and `keep_alive` is false, the account will be reaped. - * - * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, - * this `burn` operation will reduce total issuance by the amount _burned_. - **/ - | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } }; - -export type PalletBalancesCallLike = - /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. - **/ - | { name: 'TransferAllowDeath'; params: { dest: MultiAddressLike; value: bigint } } - /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. - **/ - | { name: 'ForceTransfer'; params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint } } - /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer - **/ - | { name: 'TransferKeepAlive'; params: { dest: MultiAddressLike; value: bigint } } - /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - **/ - | { name: 'TransferAll'; params: { dest: MultiAddressLike; keepAlive: boolean } } - /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. - **/ - | { name: 'ForceUnreserve'; params: { who: MultiAddressLike; amount: bigint } } - /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibility of churn). - **/ - | { name: 'UpgradeAccounts'; params: { who: Array } } - /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. - **/ - | { name: 'ForceSetBalance'; params: { who: MultiAddressLike; newFree: bigint } } - /** - * Adjust the total issuance in a saturating way. - * - * Can only be called by root and always needs a positive `delta`. - * - * # Example - **/ - | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } } - /** - * Burn the specified liquid free balance from the origin account. - * - * If the origin's account ends up below the existential deposit as a result - * of the burn and `keep_alive` is false, the account will be reaped. - * - * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, - * this `burn` operation will reduce total issuance by the amount _burned_. - **/ - | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } }; - -export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease'; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletBalancesError = - /** - * Vesting balance too high to send value. - **/ - | 'VestingBalance' - /** - * Account liquidity restrictions prevent withdrawal. - **/ - | 'LiquidityRestrictions' - /** - * Balance too low to send value. - **/ - | 'InsufficientBalance' - /** - * Value too low to create account due to existential deposit. - **/ - | 'ExistentialDeposit' - /** - * Transfer/payment would kill account. - **/ - | 'Expendability' - /** - * A vesting schedule already exists for this account. - **/ - | 'ExistingVestingSchedule' - /** - * Beneficiary account must pre-exist. - **/ - | 'DeadAccount' - /** - * Number of named reserves exceed `MaxReserves`. - **/ - | 'TooManyReserves' - /** - * Number of holds exceed `VariantCountOf`. - **/ - | 'TooManyHolds' - /** - * Number of freezes exceed `MaxFreezes`. - **/ - | 'TooManyFreezes' - /** - * The issuance cannot be modified since it is already deactivated. - **/ - | 'IssuanceDeactivated' - /** - * The delta cannot be zero. - **/ - | 'DeltaZero'; - -export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2'; - -export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletCollatorSelectionCall = - /** - * Set the list of invulnerable (fixed) collators. These collators must do some - * preparation, namely to have registered session keys. - * - * The call will remove any accounts that have not registered keys from the set. That is, - * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as - * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. - * - * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It - * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A - * `batch_all` can also be used to enforce atomicity. If any candidates are included in - * `new`, they should be removed with `remove_invulnerable_candidate` after execution. - * - * Must be called by the `UpdateOrigin`. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * Set the ideal number of non-invulnerable collators. If lowering this number, then the - * number of running collators could be higher than this figure. Aside from that edge case, - * there should be no other way to have more candidates than the desired number. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * Set the candidacy bond amount. - * - * If the candidacy bond is increased by this call, all current candidates which have a - * deposit lower than the new bond will be kicked from the list and get their deposits - * back. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * Register this account as a collator candidate. The account must (a) already have - * registered session keys and (b) be able to reserve the `CandidacyBond`. - * - * This call is not available to `Invulnerable` collators. - **/ - | { name: 'RegisterAsCandidate' } - /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The `CandidacyBond` will be unreserved immediately. - * - * This call will fail if the total number of candidates would drop below - * `MinEligibleCollators`. - **/ - | { name: 'LeaveIntent' } - /** - * Add a new account `who` to the list of `Invulnerables` collators. `who` must have - * registered session keys. If `who` is a candidate, they will be removed. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32 } } - /** - * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must - * be sorted. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32 } } - /** - * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. - * - * Setting a `new_deposit` that is lower than the current deposit while `origin` is - * occupying a top-`DesiredCandidates` slot is not allowed. - * - * This call will fail if `origin` is not a collator candidate, the updated bond is lower - * than the minimum candidacy bond, and/or the amount cannot be reserved. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * The caller `origin` replaces a candidate `target` in the collator candidate list by - * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than - * the existing bond of the target it is trying to replace. - * - * This call will fail if the caller is already a collator candidate or invulnerable, the - * caller does not have registered session keys, the target is not a collator candidate, - * and/or the `deposit` amount cannot be reserved. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32 } }; - -export type PalletCollatorSelectionCallLike = - /** - * Set the list of invulnerable (fixed) collators. These collators must do some - * preparation, namely to have registered session keys. - * - * The call will remove any accounts that have not registered keys from the set. That is, - * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as - * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. - * - * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It - * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A - * `batch_all` can also be used to enforce atomicity. If any candidates are included in - * `new`, they should be removed with `remove_invulnerable_candidate` after execution. - * - * Must be called by the `UpdateOrigin`. - **/ - | { name: 'SetInvulnerables'; params: { new: Array } } - /** - * Set the ideal number of non-invulnerable collators. If lowering this number, then the - * number of running collators could be higher than this figure. Aside from that edge case, - * there should be no other way to have more candidates than the desired number. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetDesiredCandidates'; params: { max: number } } - /** - * Set the candidacy bond amount. - * - * If the candidacy bond is increased by this call, all current candidates which have a - * deposit lower than the new bond will be kicked from the list and get their deposits - * back. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'SetCandidacyBond'; params: { bond: bigint } } - /** - * Register this account as a collator candidate. The account must (a) already have - * registered session keys and (b) be able to reserve the `CandidacyBond`. - * - * This call is not available to `Invulnerable` collators. - **/ - | { name: 'RegisterAsCandidate' } - /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The `CandidacyBond` will be unreserved immediately. - * - * This call will fail if the total number of candidates would drop below - * `MinEligibleCollators`. - **/ - | { name: 'LeaveIntent' } - /** - * Add a new account `who` to the list of `Invulnerables` collators. `who` must have - * registered session keys. If `who` is a candidate, they will be removed. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'AddInvulnerable'; params: { who: AccountId32Like } } - /** - * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must - * be sorted. - * - * The origin for this call must be the `UpdateOrigin`. - **/ - | { name: 'RemoveInvulnerable'; params: { who: AccountId32Like } } - /** - * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. - * - * Setting a `new_deposit` that is lower than the current deposit while `origin` is - * occupying a top-`DesiredCandidates` slot is not allowed. - * - * This call will fail if `origin` is not a collator candidate, the updated bond is lower - * than the minimum candidacy bond, and/or the amount cannot be reserved. - **/ - | { name: 'UpdateBond'; params: { newDeposit: bigint } } - /** - * The caller `origin` replaces a candidate `target` in the collator candidate list by - * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than - * the existing bond of the target it is trying to replace. - * - * This call will fail if the caller is already a collator candidate or invulnerable, the - * caller does not have registered session keys, the target is not a collator candidate, - * and/or the `deposit` amount cannot be reserved. - **/ - | { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32Like } }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletCollatorSelectionError = - /** - * The pallet has too many candidates. - **/ - | 'TooManyCandidates' - /** - * Leaving would result in too few candidates. - **/ - | 'TooFewEligibleCollators' - /** - * Account is already a candidate. - **/ - | 'AlreadyCandidate' - /** - * Account is not a candidate. - **/ - | 'NotCandidate' - /** - * There are too many Invulnerables. - **/ - | 'TooManyInvulnerables' - /** - * Account is already an Invulnerable. - **/ - | 'AlreadyInvulnerable' - /** - * Account is not an Invulnerable. - **/ - | 'NotInvulnerable' - /** - * Account has no associated validator ID. - **/ - | 'NoAssociatedValidatorId' - /** - * Validator ID is not yet registered. - **/ - | 'ValidatorNotRegistered' - /** - * Could not insert in the candidate list. - **/ - | 'InsertToCandidateListFailed' - /** - * Could not remove from the candidate list. - **/ - | 'RemoveFromCandidateListFailed' - /** - * New deposit amount would be below the minimum candidacy bond. - **/ - | 'DepositTooLow' - /** - * Could not update the candidate list. - **/ - | 'UpdateCandidateListFailed' - /** - * Deposit amount is too low to take the target's slot in the candidate list. - **/ - | 'InsufficientBond' - /** - * The target account to be replaced in the candidate list is not a candidate. - **/ - | 'TargetIsNotCandidate' - /** - * The updated deposit amount is equal to the amount already reserved. - **/ - | 'IdenticalDeposit' - /** - * Cannot lower candidacy bond while occupying a future collator slot in the list. - **/ - | 'InvalidUnreserve'; - -export type PeopleWestendRuntimeSessionKeys = { aura: SpConsensusAuraSr25519AppSr25519Public }; - -export type SpConsensusAuraSr25519AppSr25519Public = FixedBytes<32>; - -export type SpCoreCryptoKeyTypeId = FixedBytes<4>; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletSessionCall = - /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. - **/ - | { name: 'SetKeys'; params: { keys: PeopleWestendRuntimeSessionKeys; proof: Bytes } } - /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. - **/ - | { name: 'PurgeKeys' }; - -export type PalletSessionCallLike = - /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. - **/ - | { name: 'SetKeys'; params: { keys: PeopleWestendRuntimeSessionKeys; proof: BytesLike } } - /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. - **/ - | { name: 'PurgeKeys' }; - -/** - * Error for the session pallet. - **/ -export type PalletSessionError = - /** - * Invalid ownership proof. - **/ - | 'InvalidProof' - /** - * No associated validator ID for account. - **/ - | 'NoAssociatedValidatorId' - /** - * Registered duplicate key. - **/ - | 'DuplicatedKey' - /** - * No keys are associated with this account. - **/ - | 'NoKeys' - /** - * Key setting account is not live, so it's impossible to associate keys. - **/ - | 'NoAccount'; - -export type SpConsensusSlotsSlot = bigint; - -export type CumulusPalletXcmpQueueOutboundChannelDetails = { - recipient: PolkadotParachainPrimitivesPrimitivesId; - state: CumulusPalletXcmpQueueOutboundState; - signalsExist: boolean; - firstIndex: number; - lastIndex: number; -}; - -export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended'; - -export type CumulusPalletXcmpQueueQueueConfigData = { - suspendThreshold: number; - dropThreshold: number; - resumeThreshold: number; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmpQueueCall = - /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'SuspendXcmExecution' } - /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'ResumeXcmExecution' } - /** - * Overwrites the number of pages which must be in the queue for the other side to be - * told to suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which must be in the queue after which we drop any - * further messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which the queue must be reduced to before it signals - * that message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -export type CumulusPalletXcmpQueueCallLike = - /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'SuspendXcmExecution' } - /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. - **/ - | { name: 'ResumeXcmExecution' } - /** - * Overwrites the number of pages which must be in the queue for the other side to be - * told to suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` - **/ - | { name: 'UpdateSuspendThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which must be in the queue after which we drop any - * further messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` - **/ - | { name: 'UpdateDropThreshold'; params: { new: number } } - /** - * Overwrites the number of pages which the queue must be reduced to before it signals - * that message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` - **/ - | { name: 'UpdateResumeThreshold'; params: { new: number } }; - -/** - * The `Error` enum of this pallet. - **/ -export type CumulusPalletXcmpQueueError = - /** - * Setting the queue config failed since one of its values was invalid. - **/ - | 'BadQueueConfig' - /** - * The execution is already suspended. - **/ - | 'AlreadySuspended' - /** - * The execution is already resumed. - **/ - | 'AlreadyResumed' - /** - * There are too many active outbound channels. - **/ - | 'TooManyActiveOutboundChannels' - /** - * The message is too big. - **/ - | 'TooBig'; - -export type PalletXcmQueryStatus = - | { - type: 'Pending'; - value: { - responder: XcmVersionedLocation; - maybeMatchQuerier?: XcmVersionedLocation | undefined; - maybeNotify?: [number, number] | undefined; - timeout: number; - }; - } - | { type: 'VersionNotifier'; value: { origin: XcmVersionedLocation; isActive: boolean } } - | { type: 'Ready'; value: { response: XcmVersionedResponse; at: number } }; - -export type XcmVersionedResponse = - | { type: 'V2'; value: XcmV2Response } - | { type: 'V3'; value: XcmV3Response } - | { type: 'V4'; value: StagingXcmV4Response }; - -export type XcmV2Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV2MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV2TraitsError] | undefined } - | { type: 'Version'; value: number }; - -export type XcmV2TraitsError = - | { type: 'Overflow' } - | { type: 'Unimplemented' } - | { type: 'UntrustedReserveLocation' } - | { type: 'UntrustedTeleportLocation' } - | { type: 'MultiLocationFull' } - | { type: 'MultiLocationNotInvertible' } - | { type: 'BadOrigin' } - | { type: 'InvalidLocation' } - | { type: 'AssetNotFound' } - | { type: 'FailedToTransactAsset' } - | { type: 'NotWithdrawable' } - | { type: 'LocationCannotHold' } - | { type: 'ExceedsMaxMessageSize' } - | { type: 'DestinationUnsupported' } - | { type: 'Transport' } - | { type: 'Unroutable' } - | { type: 'UnknownClaim' } - | { type: 'FailedToDecode' } - | { type: 'MaxWeightInvalid' } - | { type: 'NotHoldingFees' } - | { type: 'TooExpensive' } - | { type: 'Trap'; value: bigint } - | { type: 'UnhandledXcmVersion' } - | { type: 'WeightLimitReached'; value: bigint } - | { type: 'Barrier' } - | { type: 'WeightNotComputable' }; - -export type XcmV3Response = - | { type: 'Null' } - | { type: 'Assets'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'Version'; value: number } - | { type: 'PalletsInfo'; value: Array } - | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode }; - -export type XcmV3PalletInfo = { - index: number; - name: Bytes; - moduleName: Bytes; - major: number; - minor: number; - patch: number; -}; - -export type PalletXcmVersionMigrationStage = - | { type: 'MigrateSupportedVersion' } - | { type: 'MigrateVersionNotifiers' } - | { type: 'NotifyCurrentTargets'; value?: Bytes | undefined } - | { type: 'MigrateAndNotifyOldTargets' }; - -export type XcmVersionedAssetId = - | { type: 'V3'; value: XcmV3MultiassetAssetId } - | { type: 'V4'; value: StagingXcmV4AssetAssetId }; - -export type PalletXcmRemoteLockedFungibleRecord = { - amount: bigint; - owner: XcmVersionedLocation; - locker: XcmVersionedLocation; - consumers: Array<[[], bigint]>; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletXcmCall = - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * Teleport some assets from the local chain to some destination chain. - * - * **This function is deprecated: Use `limited_teleport_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than - * the maximum amount of weight that the message could take to be executed, then no - * execution attempt will be made. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve, or through teleports. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for - * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the - * operation will fail and the sent assets may be at risk. - * - * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable - * to `dest`, no limitations imposed on `fees`. - * - for local reserve: transfer assets to sovereign account of destination chain and - * forward a notification XCM to `dest` to mint and deposit reserve-based assets to - * `beneficiary`. - * - for destination reserve: burn local assets and forward a notification to `dest` chain - * to withdraw the reserve assets from this chain's sovereign account and deposit them - * to `beneficiary`. - * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves - * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint - * and deposit reserve-based assets to `beneficiary`. - * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport - * assets and deposit them to `beneficiary`. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, - * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send - * from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Claims assets trapped on this pallet because of leftover assets during XCM execution. - * - * - `origin`: Anyone can call this extrinsic. - * - `assets`: The exact assets that were trapped. Use the version to specify what version - * was the latest when they were trapped. - * - `beneficiary`: The location/account where the claimed assets will be deposited. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * Transfer assets from the local chain to the destination chain using explicit transfer - * types for assets and fees. - * - * `assets` must have same reserve location or may be teleportable to `dest`. Caller must - * provide the `assets_transfer_type` to be used for `assets`: - * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `TransferType::DestinationReserve`: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve` - * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another - * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically - * the remote `reserve` is Asset Hub. - * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to - * mint/teleport assets and deposit them to `beneficiary`. - * - * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to - * buy execution using transferred `assets` identified by `remote_fees_id`. - * Make sure enough of the specified `remote_fees_id` asset is included in the given list - * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * `remote_fees_id` may use different transfer type than rest of `assets` and can be - * specified through `fees_transfer_type`. - * - * The caller needs to specify what should happen to the transferred assets once they reach - * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which - * contains the instructions to execute on `dest` as a final step. - * This is usually as simple as: - * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`, - * but could be something more exotic like sending the `assets` even further. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from - * parachain across a bridge to another ecosystem destination. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`. - * - `remote_fees_id`: One of the included `assets` to be used to pay fees. - * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets. - * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the - * transfer, which also determines what happens to the assets on the destination chain. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type PalletXcmCallLike = - | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } } - /** - * Teleport some assets from the local chain to some destination chain. - * - * **This function is deprecated: Use `limited_teleport_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'TeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - | { - name: 'ReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - }; - } - /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than - * the maximum amount of weight that the message could take to be executed, then no - * execution attempt will be made. - **/ - | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } } - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - **/ - | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } } - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. - **/ - | { name: 'ForceDefaultXcmVersion'; params: { maybeXcmVersion?: number | undefined } } - /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. - **/ - | { name: 'ForceSubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - **/ - | { name: 'ForceUnsubscribeVersionNotify'; params: { location: XcmVersionedLocation } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve. - * - * `assets` must have same reserve location and may not be teleportable to `dest`. - * - `assets` have local reserve: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `assets` have destination reserve: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move - * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` - * to mint and deposit reserve-based assets to `beneficiary`. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedReserveTransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` chain. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'LimitedTeleportAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. - **/ - | { name: 'ForceSuspension'; params: { suspended: boolean } } - /** - * Transfer some assets from the local chain to the destination chain through their local, - * destination or remote reserve, or through teleports. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for - * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the - * operation will fail and the sent assets may be at risk. - * - * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable - * to `dest`, no limitations imposed on `fees`. - * - for local reserve: transfer assets to sovereign account of destination chain and - * forward a notification XCM to `dest` to mint and deposit reserve-based assets to - * `beneficiary`. - * - for destination reserve: burn local assets and forward a notification to `dest` chain - * to withdraw the reserve assets from this chain's sovereign account and deposit them - * to `beneficiary`. - * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves - * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint - * and deposit reserve-based assets to `beneficiary`. - * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport - * assets and deposit them to `beneficiary`. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, - * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send - * from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will - * generally be an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssets'; - params: { - dest: XcmVersionedLocation; - beneficiary: XcmVersionedLocation; - assets: XcmVersionedAssets; - feeAssetItem: number; - weightLimit: XcmV3WeightLimit; - }; - } - /** - * Claims assets trapped on this pallet because of leftover assets during XCM execution. - * - * - `origin`: Anyone can call this extrinsic. - * - `assets`: The exact assets that were trapped. Use the version to specify what version - * was the latest when they were trapped. - * - `beneficiary`: The location/account where the claimed assets will be deposited. - **/ - | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } } - /** - * Transfer assets from the local chain to the destination chain using explicit transfer - * types for assets and fees. - * - * `assets` must have same reserve location or may be teleportable to `dest`. Caller must - * provide the `assets_transfer_type` to be used for `assets`: - * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination - * chain and forward a notification XCM to `dest` to mint and deposit reserve-based - * assets to `beneficiary`. - * - `TransferType::DestinationReserve`: burn local assets and forward a notification to - * `dest` chain to withdraw the reserve assets from this chain's sovereign account and - * deposit them to `beneficiary`. - * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve` - * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another - * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically - * the remote `reserve` is Asset Hub. - * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to - * mint/teleport assets and deposit them to `beneficiary`. - * - * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to - * buy execution using transferred `assets` identified by `remote_fees_id`. - * Make sure enough of the specified `remote_fees_id` asset is included in the given list - * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight - * is needed than `weight_limit`, then the operation will fail and the sent assets may be - * at risk. - * - * `remote_fees_id` may use different transfer type than rest of `assets` and can be - * specified through `fees_transfer_type`. - * - * The caller needs to specify what should happen to the transferred assets once they reach - * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which - * contains the instructions to execute on `dest` as a final step. - * This is usually as simple as: - * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`, - * but could be something more exotic like sending the `assets` even further. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `[Parent, - * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from - * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from - * parachain across a bridge to another ecosystem destination. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the - * fee on the `dest` (and possibly reserve) chains. - * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`. - * - `remote_fees_id`: One of the included `assets` to be used to pay fees. - * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets. - * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the - * transfer, which also determines what happens to the assets on the destination chain. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - | { - name: 'TransferAssetsUsingTypeAndThen'; - params: { - dest: XcmVersionedLocation; - assets: XcmVersionedAssets; - assetsTransferType: StagingXcmExecutorAssetTransferTransferType; - remoteFeesId: XcmVersionedAssetId; - feesTransferType: StagingXcmExecutorAssetTransferTransferType; - customXcmOnDest: XcmVersionedXcm; - weightLimit: XcmV3WeightLimit; - }; - }; - -export type XcmVersionedXcm = - | { type: 'V2'; value: XcmV2Xcm } - | { type: 'V3'; value: XcmV3Xcm } - | { type: 'V4'; value: StagingXcmV4Xcm }; - -export type XcmV2Xcm = Array; - -export type XcmV2Instruction = - | { type: 'WithdrawAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV2MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV2MultiassetMultiAssets } - | { type: 'QueryResponse'; value: { queryId: bigint; response: XcmV2Response; maxWeight: bigint } } - | { - type: 'TransferAsset'; - value: { assets: XcmV2MultiassetMultiAssets; beneficiary: XcmV2MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV2MultiassetMultiAssets; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { type: 'Transact'; value: { originType: XcmV2OriginKind; requireWeightAtMost: bigint; call: XcmDoubleEncoded } } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV2MultilocationJunctions } - | { - type: 'ReportError'; - value: { queryId: bigint; dest: XcmV2MultilocationMultiLocation; maxResponseWeight: bigint }; - } - | { - type: 'DepositAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - beneficiary: XcmV2MultilocationMultiLocation; - }; - } - | { - type: 'DepositReserveAsset'; - value: { - assets: XcmV2MultiassetMultiAssetFilter; - maxAssets: number; - dest: XcmV2MultilocationMultiLocation; - xcm: XcmV2Xcm; - }; - } - | { type: 'ExchangeAsset'; value: { give: XcmV2MultiassetMultiAssetFilter; receive: XcmV2MultiassetMultiAssets } } - | { - type: 'InitiateReserveWithdraw'; - value: { assets: XcmV2MultiassetMultiAssetFilter; reserve: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV2MultiassetMultiAssetFilter; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm }; - } - | { - type: 'QueryHolding'; - value: { - queryId: bigint; - dest: XcmV2MultilocationMultiLocation; - assets: XcmV2MultiassetMultiAssetFilter; - maxResponseWeight: bigint; - }; - } - | { type: 'BuyExecution'; value: { fees: XcmV2MultiassetMultiAsset; weightLimit: XcmV2WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV2Xcm } - | { type: 'SetAppendix'; value: XcmV2Xcm } - | { type: 'ClearError' } - | { type: 'ClaimAsset'; value: { assets: XcmV2MultiassetMultiAssets; ticket: XcmV2MultilocationMultiLocation } } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } } - | { type: 'UnsubscribeVersion' }; - -export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; - -export type XcmV2MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV2MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset }; - -export type XcmV2MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetWildFungibility } }; - -export type XcmV2MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type XcmV2WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: bigint }; - -export type XcmV3Xcm = Array; - -export type XcmV3Instruction = - | { type: 'WithdrawAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReserveAssetDeposited'; value: XcmV3MultiassetMultiAssets } - | { type: 'ReceiveTeleportedAsset'; value: XcmV3MultiassetMultiAssets } - | { - type: 'QueryResponse'; - value: { - queryId: bigint; - response: XcmV3Response; - maxWeight: SpWeightsWeightV2Weight; - querier?: StagingXcmV3MultilocationMultiLocation | undefined; - }; - } - | { - type: 'TransferAsset'; - value: { assets: XcmV3MultiassetMultiAssets; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'TransferReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssets; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'Transact'; - value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded }; - } - | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } } - | { type: 'HrmpChannelAccepted'; value: { recipient: number } } - | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } } - | { type: 'ClearOrigin' } - | { type: 'DescendOrigin'; value: XcmV3Junctions } - | { type: 'ReportError'; value: XcmV3QueryResponseInfo } - | { - type: 'DepositAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; beneficiary: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'DepositReserveAsset'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { - type: 'ExchangeAsset'; - value: { give: XcmV3MultiassetMultiAssetFilter; want: XcmV3MultiassetMultiAssets; maximal: boolean }; - } - | { - type: 'InitiateReserveWithdraw'; - value: { - assets: XcmV3MultiassetMultiAssetFilter; - reserve: StagingXcmV3MultilocationMultiLocation; - xcm: XcmV3Xcm; - }; - } - | { - type: 'InitiateTeleport'; - value: { assets: XcmV3MultiassetMultiAssetFilter; dest: StagingXcmV3MultilocationMultiLocation; xcm: XcmV3Xcm }; - } - | { type: 'ReportHolding'; value: { responseInfo: XcmV3QueryResponseInfo; assets: XcmV3MultiassetMultiAssetFilter } } - | { type: 'BuyExecution'; value: { fees: XcmV3MultiassetMultiAsset; weightLimit: XcmV3WeightLimit } } - | { type: 'RefundSurplus' } - | { type: 'SetErrorHandler'; value: XcmV3Xcm } - | { type: 'SetAppendix'; value: XcmV3Xcm } - | { type: 'ClearError' } - | { - type: 'ClaimAsset'; - value: { assets: XcmV3MultiassetMultiAssets; ticket: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'Trap'; value: bigint } - | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } } - | { type: 'UnsubscribeVersion' } - | { type: 'BurnAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectAsset'; value: XcmV3MultiassetMultiAssets } - | { type: 'ExpectOrigin'; value?: StagingXcmV3MultilocationMultiLocation | undefined } - | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined } - | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode } - | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: XcmV3QueryResponseInfo } } - | { - type: 'ExpectPallet'; - value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number }; - } - | { type: 'ReportTransactStatus'; value: XcmV3QueryResponseInfo } - | { type: 'ClearTransactStatus' } - | { type: 'UniversalOrigin'; value: XcmV3Junction } - | { type: 'ExportMessage'; value: { network: XcmV3JunctionNetworkId; destination: XcmV3Junctions; xcm: XcmV3Xcm } } - | { type: 'LockAsset'; value: { asset: XcmV3MultiassetMultiAsset; unlocker: StagingXcmV3MultilocationMultiLocation } } - | { type: 'UnlockAsset'; value: { asset: XcmV3MultiassetMultiAsset; target: StagingXcmV3MultilocationMultiLocation } } - | { - type: 'NoteUnlockable'; - value: { asset: XcmV3MultiassetMultiAsset; owner: StagingXcmV3MultilocationMultiLocation }; - } - | { - type: 'RequestUnlock'; - value: { asset: XcmV3MultiassetMultiAsset; locker: StagingXcmV3MultilocationMultiLocation }; - } - | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } } - | { type: 'SetTopic'; value: FixedBytes<32> } - | { type: 'ClearTopic' } - | { type: 'AliasOrigin'; value: StagingXcmV3MultilocationMultiLocation } - | { - type: 'UnpaidExecution'; - value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV3MultilocationMultiLocation | undefined }; - }; - -export type XcmV3QueryResponseInfo = { - destination: StagingXcmV3MultilocationMultiLocation; - queryId: bigint; - maxWeight: SpWeightsWeightV2Weight; -}; - -export type XcmV3MultiassetMultiAssetFilter = - | { type: 'Definite'; value: XcmV3MultiassetMultiAssets } - | { type: 'Wild'; value: XcmV3MultiassetWildMultiAsset }; - -export type XcmV3MultiassetWildMultiAsset = - | { type: 'All' } - | { type: 'AllOf'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility } } - | { type: 'AllCounted'; value: number } - | { type: 'AllOfCounted'; value: { id: XcmV3MultiassetAssetId; fun: XcmV3MultiassetWildFungibility; count: number } }; - -export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible'; - -export type StagingXcmExecutorAssetTransferTransferType = - | { type: 'Teleport' } - | { type: 'LocalReserve' } - | { type: 'DestinationReserve' } - | { type: 'RemoteReserve'; value: XcmVersionedLocation }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletXcmError = - /** - * The desired destination was unreachable, generally because there is a no way of routing - * to it. - **/ - | 'Unreachable' - /** - * There was some other issue (i.e. not to do with routing) in sending the message. - * Perhaps a lack of space for buffering the message. - **/ - | 'SendFailure' - /** - * The message execution fails the filter. - **/ - | 'Filtered' - /** - * The message's weight could not be determined. - **/ - | 'UnweighableMessage' - /** - * The destination `Location` provided cannot be inverted. - **/ - | 'DestinationNotInvertible' - /** - * The assets to be sent are empty. - **/ - | 'Empty' - /** - * Could not re-anchor the assets to declare the fees for the destination chain. - **/ - | 'CannotReanchor' - /** - * Too many assets have been attempted for transfer. - **/ - | 'TooManyAssets' - /** - * Origin is invalid for sending. - **/ - | 'InvalidOrigin' - /** - * The version of the `Versioned` value used is not able to be interpreted. - **/ - | 'BadVersion' - /** - * The given location could not be used (e.g. because it cannot be expressed in the - * desired version of XCM). - **/ - | 'BadLocation' - /** - * The referenced subscription could not be found. - **/ - | 'NoSubscription' - /** - * The location is invalid since it already has a subscription from us. - **/ - | 'AlreadySubscribed' - /** - * Could not check-out the assets for teleportation to the destination chain. - **/ - | 'CannotCheckOutTeleport' - /** - * The owner does not own (all) of the asset that they wish to do the operation on. - **/ - | 'LowBalance' - /** - * The asset owner has too many locks on the asset. - **/ - | 'TooManyLocks' - /** - * The given account is not an identifiable sovereign account for any location. - **/ - | 'AccountNotSovereign' - /** - * The operation required fees to be paid which the initiator could not meet. - **/ - | 'FeesNotMet' - /** - * A remote lock with the corresponding data could not be found. - **/ - | 'LockNotFound' - /** - * The unlock operation cannot succeed because there are still consumers of the lock. - **/ - | 'InUse' - /** - * Invalid asset, reserve chain could not be determined for it. - **/ - | 'InvalidAssetUnknownReserve' - /** - * Invalid asset, do not support remote asset reserves with different fees reserves. - **/ - | 'InvalidAssetUnsupportedReserve' - /** - * Too many assets with different reserve locations have been attempted for transfer. - **/ - | 'TooManyReserves' - /** - * Local XCM execution incomplete. - **/ - | 'LocalExecutionIncomplete'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type CumulusPalletXcmCall = null; - -export type CumulusPalletXcmCallLike = null; - -export type PalletMessageQueueBookState = { - begin: number; - end: number; - count: number; - readyNeighbours?: PalletMessageQueueNeighbours | undefined; - messageCount: bigint; - size: bigint; -}; - -export type PalletMessageQueueNeighbours = { - prev: CumulusPrimitivesCoreAggregateMessageOrigin; - next: CumulusPrimitivesCoreAggregateMessageOrigin; -}; - -export type PalletMessageQueuePage = { - remaining: number; - remainingSize: number; - firstIndex: number; - first: number; - last: number; - heap: Bytes; -}; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMessageQueueCall = - /** - * Remove a page which has no more messages remaining to be processed or is stale. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * Execute an overweight message. - * - * Temporary processing errors will be propagated whereas permanent errors are treated - * as success condition. - * - * - `origin`: Must be `Signed`. - * - `message_origin`: The origin from which the message to be executed arrived. - * - `page`: The page in the queue in which the message to be executed is sitting. - * - `index`: The index into the queue of the message to be executed. - * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution - * of the message. - * - * Benchmark complexity considerations: O(index + weight_limit). - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -export type PalletMessageQueueCallLike = - /** - * Remove a page which has no more messages remaining to be processed or is stale. - **/ - | { name: 'ReapPage'; params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number } } - /** - * Execute an overweight message. - * - * Temporary processing errors will be propagated whereas permanent errors are treated - * as success condition. - * - * - `origin`: Must be `Signed`. - * - `message_origin`: The origin from which the message to be executed arrived. - * - `page`: The page in the queue in which the message to be executed is sitting. - * - `index`: The index into the queue of the message to be executed. - * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution - * of the message. - * - * Benchmark complexity considerations: O(index + weight_limit). - **/ - | { - name: 'ExecuteOverweight'; - params: { - messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; - page: number; - index: number; - weightLimit: SpWeightsWeightV2Weight; - }; - }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMessageQueueError = - /** - * Page is not reapable because it has items remaining to be processed and is not old - * enough. - **/ - | 'NotReapable' - /** - * Page to be reaped does not exist. - **/ - | 'NoPage' - /** - * The referenced message could not be found. - **/ - | 'NoMessage' - /** - * The message was already processed and cannot be processed again. - **/ - | 'AlreadyProcessed' - /** - * The message is queued for future execution. - **/ - | 'Queued' - /** - * There is temporarily not enough weight to continue servicing messages. - **/ - | 'InsufficientWeight' - /** - * This message is temporarily unprocessable. - * - * Such errors are expected, but not guaranteed, to resolve themselves eventually through - * retrying. - **/ - | 'TemporarilyUnprocessable' - /** - * The queue is paused and no message can be executed from it. - * - * This can change at any time and may resolve in the future by re-trying. - **/ - | 'QueuePaused' - /** - * Another call is in progress and needs to finish before this call can happen. - **/ - | 'RecursiveDisallowed'; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletUtilityCall = - /** - * Send a batch of dispatch calls. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * This will return `Ok` in all circumstances. To determine the success of the batch, an - * event is deposited. If a call failed and the batch was interrupted, then the - * `BatchInterrupted` event is deposited, along with the number of successful calls made - * and the error of the failed call. If all were successful, then the `BatchCompleted` - * event is deposited. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * Send a call through an indexed pseudonym of the sender. - * - * Filter from origin are passed along. The call will be dispatched with an origin which - * use the same filter as the origin of this call. - * - * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. - * because you expect `proxy` to have been used prior in the call stack and you do not want - * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` - * in the Multisig pallet instead. - * - * NOTE: Prior to version *12, this was called `as_limited_sub`. - * - * The dispatch origin for this call must be _Signed_. - **/ - | { name: 'AsDerivative'; params: { index: number; call: PeopleWestendRuntimeRuntimeCall } } - /** - * Send a batch of dispatch calls and atomically execute them. - * The whole transaction will rollback and fail if any of the calls failed. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * Dispatches a function call with a provided origin. - * - * The dispatch origin for this call must be _Root_. - * - * ## Complexity - * - O(1). - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: PeopleWestendRuntimeOriginCaller; call: PeopleWestendRuntimeRuntimeCall }; - } - /** - * Send a batch of dispatch calls. - * Unlike `batch`, it allows errors and won't interrupt. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatch without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * Dispatch a function call with a specified weight. - * - * This function does not check the weight of the call, and instead allows the - * Root origin to specify the weight of the call. - * - * The dispatch origin for this call must be _Root_. - **/ - | { name: 'WithWeight'; params: { call: PeopleWestendRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }; - -export type PalletUtilityCallLike = - /** - * Send a batch of dispatch calls. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - * - * This will return `Ok` in all circumstances. To determine the success of the batch, an - * event is deposited. If a call failed and the batch was interrupted, then the - * `BatchInterrupted` event is deposited, along with the number of successful calls made - * and the error of the failed call. If all were successful, then the `BatchCompleted` - * event is deposited. - **/ - | { name: 'Batch'; params: { calls: Array } } - /** - * Send a call through an indexed pseudonym of the sender. - * - * Filter from origin are passed along. The call will be dispatched with an origin which - * use the same filter as the origin of this call. - * - * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. - * because you expect `proxy` to have been used prior in the call stack and you do not want - * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` - * in the Multisig pallet instead. - * - * NOTE: Prior to version *12, this was called `as_limited_sub`. - * - * The dispatch origin for this call must be _Signed_. - **/ - | { name: 'AsDerivative'; params: { index: number; call: PeopleWestendRuntimeRuntimeCallLike } } - /** - * Send a batch of dispatch calls and atomically execute them. - * The whole transaction will rollback and fail if any of the calls failed. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatched without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'BatchAll'; params: { calls: Array } } - /** - * Dispatches a function call with a provided origin. - * - * The dispatch origin for this call must be _Root_. - * - * ## Complexity - * - O(1). - **/ - | { - name: 'DispatchAs'; - params: { asOrigin: PeopleWestendRuntimeOriginCaller; call: PeopleWestendRuntimeRuntimeCallLike }; - } - /** - * Send a batch of dispatch calls. - * Unlike `batch`, it allows errors and won't interrupt. - * - * May be called from any origin except `None`. - * - * - `calls`: The calls to be dispatched from the same origin. The number of call must not - * exceed the constant: `batched_calls_limit` (available in constant metadata). - * - * If origin is root then the calls are dispatch without checking origin filter. (This - * includes bypassing `frame_system::Config::BaseCallFilter`). - * - * ## Complexity - * - O(C) where C is the number of calls to be batched. - **/ - | { name: 'ForceBatch'; params: { calls: Array } } - /** - * Dispatch a function call with a specified weight. - * - * This function does not check the weight of the call, and instead allows the - * Root origin to specify the weight of the call. - * - * The dispatch origin for this call must be _Root_. - **/ - | { name: 'WithWeight'; params: { call: PeopleWestendRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }; - -export type PeopleWestendRuntimeRuntimeCall = - | { pallet: 'System'; palletCall: FrameSystemCall } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCall } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCall } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall } - | { pallet: 'Balances'; palletCall: PalletBalancesCall } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall } - | { pallet: 'Session'; palletCall: PalletSessionCall } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCall } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCall } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCall } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall } - | { pallet: 'Utility'; palletCall: PalletUtilityCall } - | { pallet: 'Multisig'; palletCall: PalletMultisigCall } - | { pallet: 'Identity'; palletCall: PalletIdentityCall } - | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCall }; - -export type PeopleWestendRuntimeRuntimeCallLike = - | { pallet: 'System'; palletCall: FrameSystemCallLike } - | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCallLike } - | { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike } - | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike } - | { pallet: 'Balances'; palletCall: PalletBalancesCallLike } - | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike } - | { pallet: 'Session'; palletCall: PalletSessionCallLike } - | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCallLike } - | { pallet: 'PolkadotXcm'; palletCall: PalletXcmCallLike } - | { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCallLike } - | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike } - | { pallet: 'Utility'; palletCall: PalletUtilityCallLike } - | { pallet: 'Multisig'; palletCall: PalletMultisigCallLike } - | { pallet: 'Identity'; palletCall: PalletIdentityCallLike } - | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCallLike }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PalletMultisigCall = - /** - * Immediately dispatch a multi-signature call using a single approval from the caller. - * - * The dispatch origin for this call must be _Signed_. - * - * - `other_signatories`: The accounts (other than the sender) who are part of the - * multi-signature, but do not participate in the approval process. - * - `call`: The call to be executed. - * - * Result is equivalent to the dispatched result. - * - * ## Complexity - * O(Z + C) where Z is the length of the call and C its execution weight. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: PeopleWestendRuntimeRuntimeCall }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * ## Complexity - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: PeopleWestendRuntimeRuntimeCall; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -export type PalletMultisigCallLike = - /** - * Immediately dispatch a multi-signature call using a single approval from the caller. - * - * The dispatch origin for this call must be _Signed_. - * - * - `other_signatories`: The accounts (other than the sender) who are part of the - * multi-signature, but do not participate in the approval process. - * - `call`: The call to be executed. - * - * Result is equivalent to the dispatched result. - * - * ## Complexity - * O(Z + C) where Z is the length of the call and C its execution weight. - **/ - | { - name: 'AsMultiThreshold1'; - params: { otherSignatories: Array; call: PeopleWestendRuntimeRuntimeCallLike }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * ## Complexity - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'AsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - call: PeopleWestendRuntimeRuntimeCallLike; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * Payment: `DepositBase` will be reserved if this is the first approval, plus - * `threshold` times `DepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit - * taken for its lifetime of `DepositBase + threshold * DepositFactor`. - **/ - | { - name: 'ApproveAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - maybeTimepoint?: PalletMultisigTimepoint | undefined; - callHash: FixedBytes<32>; - maxWeight: SpWeightsWeightV2Weight; - }; - } - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * ## Complexity - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - **/ - | { - name: 'CancelAsMulti'; - params: { - threshold: number; - otherSignatories: Array; - timepoint: PalletMultisigTimepoint; - callHash: FixedBytes<32>; - }; - }; - -/** - * Identity pallet declaration. - **/ -export type PalletIdentityCall = - /** - * Add a registrar to the system. - * - * The dispatch origin for this call must be `T::RegistrarOrigin`. - * - * - `account`: the account of the registrar. - * - * Emits `RegistrarAdded` if successful. - **/ - | { name: 'AddRegistrar'; params: { account: MultiAddress } } - /** - * Set an account's identity information and reserve the appropriate deposit. - * - * If the account already has identity information, the deposit is taken as part payment - * for the new deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * - `info`: The identity information. - * - * Emits `IdentitySet` if successful. - **/ - | { name: 'SetIdentity'; params: { info: PeopleWestendRuntimePeopleIdentityInfo } } - /** - * Set the sub-accounts of the sender. - * - * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned - * and an amount `SubAccountDeposit` will be reserved for each item in `subs`. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * identity. - * - * - `subs`: The identity's (new) sub-accounts. - **/ - | { name: 'SetSubs'; params: { subs: Array<[AccountId32, Data]> } } - /** - * Clear an account's identity info and all sub-accounts and return all deposits. - * - * Payment: All reserved balances on the account are returned. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * identity. - * - * Emits `IdentityCleared` if successful. - **/ - | { name: 'ClearIdentity' } - /** - * Request a judgement from a registrar. - * - * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement - * given. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a - * registered identity. - * - * - `reg_index`: The index of the registrar whose judgement is requested. - * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as: - * - * ```nocompile - * Self::registrars().get(reg_index).unwrap().fee - * ``` - * - * Emits `JudgementRequested` if successful. - **/ - | { name: 'RequestJudgement'; params: { regIndex: number; maxFee: bigint } } - /** - * Cancel a previous request. - * - * Payment: A previously reserved deposit is returned on success. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a - * registered identity. - * - * - `reg_index`: The index of the registrar whose judgement is no longer requested. - * - * Emits `JudgementUnrequested` if successful. - **/ - | { name: 'CancelRequest'; params: { regIndex: number } } - /** - * Set the fee required for a judgement to be requested from a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `fee`: the new fee. - **/ - | { name: 'SetFee'; params: { index: number; fee: bigint } } - /** - * Change the account associated with a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `new`: the new account ID. - **/ - | { name: 'SetAccountId'; params: { index: number; new: MultiAddress } } - /** - * Set the field information for a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `fields`: the fields that the registrar concerns themselves with. - **/ - | { name: 'SetFields'; params: { index: number; fields: bigint } } - /** - * Provide a judgement for an account's identity. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `reg_index`. - * - * - `reg_index`: the index of the registrar whose judgement is being made. - * - `target`: the account whose identity the judgement is upon. This must be an account - * with a registered identity. - * - `judgement`: the judgement of the registrar of index `reg_index` about `target`. - * - `identity`: The hash of the [`IdentityInformationProvider`] for that the judgement is - * provided. - * - * Note: Judgements do not apply to a username. - * - * Emits `JudgementGiven` if successful. - **/ - | { - name: 'ProvideJudgement'; - params: { regIndex: number; target: MultiAddress; judgement: PalletIdentityJudgement; identity: H256 }; - } - /** - * Remove an account's identity and sub-account information and slash the deposits. - * - * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by - * `Slash`. Verification request deposits are not returned; they should be cancelled - * manually using `cancel_request`. - * - * The dispatch origin for this call must match `T::ForceOrigin`. - * - * - `target`: the account whose identity the judgement is upon. This must be an account - * with a registered identity. - * - * Emits `IdentityKilled` if successful. - **/ - | { name: 'KillIdentity'; params: { target: MultiAddress } } - /** - * Add the given account to the sender's subs. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. - **/ - | { name: 'AddSub'; params: { sub: MultiAddress; data: Data } } - /** - * Alter the associated name of the given sub-account. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. - **/ - | { name: 'RenameSub'; params: { sub: MultiAddress; data: Data } } - /** - * Remove the given account from the sender's subs. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. - **/ - | { name: 'RemoveSub'; params: { sub: MultiAddress } } - /** - * Remove the sender as a sub-account. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender (*not* the original depositor). - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * super-identity. - * - * NOTE: This should not normally be used, but is provided in the case that the non- - * controller of an account is maliciously registered as a sub-account. - **/ - | { name: 'QuitSub' } - /** - * Add an `AccountId` with permission to grant usernames with a given `suffix` appended. - * - * The authority can grant up to `allocation` usernames. To top up their allocation, they - * should just issue (or request via governance) a new `add_username_authority` call. - **/ - | { name: 'AddUsernameAuthority'; params: { authority: MultiAddress; suffix: Bytes; allocation: number } } - /** - * Remove `authority` from the username authorities. - **/ - | { name: 'RemoveUsernameAuthority'; params: { authority: MultiAddress } } - /** - * Set the username for `who`. Must be called by a username authority. - * - * The authority must have an `allocation`. Users can either pre-sign their usernames or - * accept them later. - * - * Usernames must: - * - Only contain lowercase ASCII characters or digits. - * - When combined with the suffix of the issuing authority be _less than_ the - * `MaxUsernameLength`. - **/ - | { - name: 'SetUsernameFor'; - params: { who: MultiAddress; username: Bytes; signature?: SpRuntimeMultiSignature | undefined }; - } - /** - * Accept a given username that an `authority` granted. The call must include the full - * username, as in `username.suffix`. - **/ - | { name: 'AcceptUsername'; params: { username: Bytes } } - /** - * Remove an expired username approval. The username was approved by an authority but never - * accepted by the user and must now be beyond its expiration. The call must include the - * full username, as in `username.suffix`. - **/ - | { name: 'RemoveExpiredApproval'; params: { username: Bytes } } - /** - * Set a given username as the primary. The username should include the suffix. - **/ - | { name: 'SetPrimaryUsername'; params: { username: Bytes } } - /** - * Remove a username that corresponds to an account with no identity. Exists when a user - * gets a username but then calls `clear_identity`. - **/ - | { name: 'RemoveDanglingUsername'; params: { username: Bytes } }; - -export type PalletIdentityCallLike = - /** - * Add a registrar to the system. - * - * The dispatch origin for this call must be `T::RegistrarOrigin`. - * - * - `account`: the account of the registrar. - * - * Emits `RegistrarAdded` if successful. - **/ - | { name: 'AddRegistrar'; params: { account: MultiAddressLike } } - /** - * Set an account's identity information and reserve the appropriate deposit. - * - * If the account already has identity information, the deposit is taken as part payment - * for the new deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * - `info`: The identity information. - * - * Emits `IdentitySet` if successful. - **/ - | { name: 'SetIdentity'; params: { info: PeopleWestendRuntimePeopleIdentityInfo } } - /** - * Set the sub-accounts of the sender. - * - * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned - * and an amount `SubAccountDeposit` will be reserved for each item in `subs`. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * identity. - * - * - `subs`: The identity's (new) sub-accounts. - **/ - | { name: 'SetSubs'; params: { subs: Array<[AccountId32Like, Data]> } } - /** - * Clear an account's identity info and all sub-accounts and return all deposits. - * - * Payment: All reserved balances on the account are returned. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * identity. - * - * Emits `IdentityCleared` if successful. - **/ - | { name: 'ClearIdentity' } - /** - * Request a judgement from a registrar. - * - * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement - * given. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a - * registered identity. - * - * - `reg_index`: The index of the registrar whose judgement is requested. - * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as: - * - * ```nocompile - * Self::registrars().get(reg_index).unwrap().fee - * ``` - * - * Emits `JudgementRequested` if successful. - **/ - | { name: 'RequestJudgement'; params: { regIndex: number; maxFee: bigint } } - /** - * Cancel a previous request. - * - * Payment: A previously reserved deposit is returned on success. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a - * registered identity. - * - * - `reg_index`: The index of the registrar whose judgement is no longer requested. - * - * Emits `JudgementUnrequested` if successful. - **/ - | { name: 'CancelRequest'; params: { regIndex: number } } - /** - * Set the fee required for a judgement to be requested from a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `fee`: the new fee. - **/ - | { name: 'SetFee'; params: { index: number; fee: bigint } } - /** - * Change the account associated with a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `new`: the new account ID. - **/ - | { name: 'SetAccountId'; params: { index: number; new: MultiAddressLike } } - /** - * Set the field information for a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `fields`: the fields that the registrar concerns themselves with. - **/ - | { name: 'SetFields'; params: { index: number; fields: bigint } } - /** - * Provide a judgement for an account's identity. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `reg_index`. - * - * - `reg_index`: the index of the registrar whose judgement is being made. - * - `target`: the account whose identity the judgement is upon. This must be an account - * with a registered identity. - * - `judgement`: the judgement of the registrar of index `reg_index` about `target`. - * - `identity`: The hash of the [`IdentityInformationProvider`] for that the judgement is - * provided. - * - * Note: Judgements do not apply to a username. - * - * Emits `JudgementGiven` if successful. - **/ - | { - name: 'ProvideJudgement'; - params: { regIndex: number; target: MultiAddressLike; judgement: PalletIdentityJudgement; identity: H256 }; - } - /** - * Remove an account's identity and sub-account information and slash the deposits. - * - * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by - * `Slash`. Verification request deposits are not returned; they should be cancelled - * manually using `cancel_request`. - * - * The dispatch origin for this call must match `T::ForceOrigin`. - * - * - `target`: the account whose identity the judgement is upon. This must be an account - * with a registered identity. - * - * Emits `IdentityKilled` if successful. - **/ - | { name: 'KillIdentity'; params: { target: MultiAddressLike } } - /** - * Add the given account to the sender's subs. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. - **/ - | { name: 'AddSub'; params: { sub: MultiAddressLike; data: Data } } - /** - * Alter the associated name of the given sub-account. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. - **/ - | { name: 'RenameSub'; params: { sub: MultiAddressLike; data: Data } } - /** - * Remove the given account from the sender's subs. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. - **/ - | { name: 'RemoveSub'; params: { sub: MultiAddressLike } } - /** - * Remove the sender as a sub-account. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender (*not* the original depositor). - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * super-identity. - * - * NOTE: This should not normally be used, but is provided in the case that the non- - * controller of an account is maliciously registered as a sub-account. - **/ - | { name: 'QuitSub' } - /** - * Add an `AccountId` with permission to grant usernames with a given `suffix` appended. - * - * The authority can grant up to `allocation` usernames. To top up their allocation, they - * should just issue (or request via governance) a new `add_username_authority` call. - **/ - | { name: 'AddUsernameAuthority'; params: { authority: MultiAddressLike; suffix: BytesLike; allocation: number } } - /** - * Remove `authority` from the username authorities. - **/ - | { name: 'RemoveUsernameAuthority'; params: { authority: MultiAddressLike } } - /** - * Set the username for `who`. Must be called by a username authority. - * - * The authority must have an `allocation`. Users can either pre-sign their usernames or - * accept them later. - * - * Usernames must: - * - Only contain lowercase ASCII characters or digits. - * - When combined with the suffix of the issuing authority be _less than_ the - * `MaxUsernameLength`. - **/ - | { - name: 'SetUsernameFor'; - params: { who: MultiAddressLike; username: BytesLike; signature?: SpRuntimeMultiSignature | undefined }; - } - /** - * Accept a given username that an `authority` granted. The call must include the full - * username, as in `username.suffix`. - **/ - | { name: 'AcceptUsername'; params: { username: BytesLike } } - /** - * Remove an expired username approval. The username was approved by an authority but never - * accepted by the user and must now be beyond its expiration. The call must include the - * full username, as in `username.suffix`. - **/ - | { name: 'RemoveExpiredApproval'; params: { username: BytesLike } } - /** - * Set a given username as the primary. The username should include the suffix. - **/ - | { name: 'SetPrimaryUsername'; params: { username: BytesLike } } - /** - * Remove a username that corresponds to an account with no identity. Exists when a user - * gets a username but then calls `clear_identity`. - **/ - | { name: 'RemoveDanglingUsername'; params: { username: BytesLike } }; - -export type PeopleWestendRuntimePeopleIdentityInfo = { - display: Data; - legal: Data; - web: Data; - matrix: Data; - email: Data; - pgpFingerprint?: FixedBytes<20> | undefined; - image: Data; - twitter: Data; - github: Data; - discord: Data; -}; - -export type PalletIdentityJudgement = - | { type: 'Unknown' } - | { type: 'FeePaid'; value: bigint } - | { type: 'Reasonable' } - | { type: 'KnownGood' } - | { type: 'OutOfDate' } - | { type: 'LowQuality' } - | { type: 'Erroneous' }; - -export type SpRuntimeMultiSignature = - | { type: 'Ed25519'; value: FixedBytes<64> } - | { type: 'Sr25519'; value: FixedBytes<64> } - | { type: 'Ecdsa'; value: FixedBytes<65> }; - -/** - * Contains a variant per dispatchable extrinsic that this pallet has. - **/ -export type PolkadotRuntimeCommonIdentityMigratorPalletCall = - /** - * Reap the `IdentityInfo` of `who` from the Identity pallet of `T`, unreserving any - * deposits held and removing storage items associated with `who`. - **/ - | { name: 'ReapIdentity'; params: { who: AccountId32 } } - /** - * Update the deposit of `who`. Meant to be called by the system with an XCM `Transact` - * Instruction. - **/ - | { name: 'PokeDeposit'; params: { who: AccountId32 } }; - -export type PolkadotRuntimeCommonIdentityMigratorPalletCallLike = - /** - * Reap the `IdentityInfo` of `who` from the Identity pallet of `T`, unreserving any - * deposits held and removing storage items associated with `who`. - **/ - | { name: 'ReapIdentity'; params: { who: AccountId32Like } } - /** - * Update the deposit of `who`. Meant to be called by the system with an XCM `Transact` - * Instruction. - **/ - | { name: 'PokeDeposit'; params: { who: AccountId32Like } }; - -export type PeopleWestendRuntimeOriginCaller = - | { type: 'System'; value: FrameSupportDispatchRawOrigin } - | { type: 'PolkadotXcm'; value: PalletXcmOrigin } - | { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin } - | { type: 'Void'; value: SpCoreVoid }; - -export type FrameSupportDispatchRawOrigin = - | { type: 'Root' } - | { type: 'Signed'; value: AccountId32 } - | { type: 'None' }; - -export type PalletXcmOrigin = - | { type: 'Xcm'; value: StagingXcmV4Location } - | { type: 'Response'; value: StagingXcmV4Location }; - -export type CumulusPalletXcmOrigin = - | { type: 'Relay' } - | { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId }; - -export type SpCoreVoid = null; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletUtilityError = - /** - * Too many calls batched. - **/ - 'TooManyCalls'; - -export type PalletMultisigMultisig = { - when: PalletMultisigTimepoint; - deposit: bigint; - depositor: AccountId32; - approvals: Array; -}; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletMultisigError = - /** - * Threshold must be 2 or greater. - **/ - | 'MinimumThreshold' - /** - * Call is already approved by this signatory. - **/ - | 'AlreadyApproved' - /** - * Call doesn't need any (more) approvals. - **/ - | 'NoApprovalsNeeded' - /** - * There are too few signatories in the list. - **/ - | 'TooFewSignatories' - /** - * There are too many signatories in the list. - **/ - | 'TooManySignatories' - /** - * The signatories were provided out of order; they should be ordered. - **/ - | 'SignatoriesOutOfOrder' - /** - * The sender was contained in the other signatories; it shouldn't be. - **/ - | 'SenderInSignatories' - /** - * Multisig operation not found when attempting to cancel. - **/ - | 'NotFound' - /** - * Only the account that originally created the multisig is able to cancel it. - **/ - | 'NotOwner' - /** - * No timepoint was given, yet the multisig operation is already underway. - **/ - | 'NoTimepoint' - /** - * A different timepoint was given to the multisig operation that is underway. - **/ - | 'WrongTimepoint' - /** - * A timepoint was given, yet no multisig operation is underway. - **/ - | 'UnexpectedTimepoint' - /** - * The maximum weight information provided was too low. - **/ - | 'MaxWeightTooLow' - /** - * The data to be stored is already stored. - **/ - | 'AlreadyStored'; - -export type PalletIdentityRegistration = { - judgements: Array<[number, PalletIdentityJudgement]>; - deposit: bigint; - info: PeopleWestendRuntimePeopleIdentityInfo; -}; - -export type PalletIdentityRegistrarInfo = { account: AccountId32; fee: bigint; fields: bigint }; - -export type PalletIdentityAuthorityProperties = { suffix: Bytes; allocation: number }; - -/** - * The `Error` enum of this pallet. - **/ -export type PalletIdentityError = - /** - * Too many subs-accounts. - **/ - | 'TooManySubAccounts' - /** - * Account isn't found. - **/ - | 'NotFound' - /** - * Account isn't named. - **/ - | 'NotNamed' - /** - * Empty index. - **/ - | 'EmptyIndex' - /** - * Fee is changed. - **/ - | 'FeeChanged' - /** - * No identity found. - **/ - | 'NoIdentity' - /** - * Sticky judgement. - **/ - | 'StickyJudgement' - /** - * Judgement given. - **/ - | 'JudgementGiven' - /** - * Invalid judgement. - **/ - | 'InvalidJudgement' - /** - * The index is invalid. - **/ - | 'InvalidIndex' - /** - * The target is invalid. - **/ - | 'InvalidTarget' - /** - * Maximum amount of registrars reached. Cannot add any more. - **/ - | 'TooManyRegistrars' - /** - * Account ID is already named. - **/ - | 'AlreadyClaimed' - /** - * Sender is not a sub-account. - **/ - | 'NotSub' - /** - * Sub-account isn't owned by sender. - **/ - | 'NotOwned' - /** - * The provided judgement was for a different identity. - **/ - | 'JudgementForDifferentIdentity' - /** - * Error that occurs when there is an issue paying for judgement. - **/ - | 'JudgementPaymentFailed' - /** - * The provided suffix is too long. - **/ - | 'InvalidSuffix' - /** - * The sender does not have permission to issue a username. - **/ - | 'NotUsernameAuthority' - /** - * The authority cannot allocate any more usernames. - **/ - | 'NoAllocation' - /** - * The signature on a username was not valid. - **/ - | 'InvalidSignature' - /** - * Setting this username requires a signature, but none was provided. - **/ - | 'RequiresSignature' - /** - * The username does not meet the requirements. - **/ - | 'InvalidUsername' - /** - * The username is already taken. - **/ - | 'UsernameTaken' - /** - * The requested username does not exist. - **/ - | 'NoUsername' - /** - * The username cannot be forcefully removed because it can still be accepted. - **/ - | 'NotExpired'; - -export type FrameSystemExtensionsCheckNonZeroSender = {}; - -export type FrameSystemExtensionsCheckSpecVersion = {}; - -export type FrameSystemExtensionsCheckTxVersion = {}; - -export type FrameSystemExtensionsCheckGenesis = {}; - -export type FrameSystemExtensionsCheckMortality = Era; - -export type FrameSystemExtensionsCheckNonce = number; - -export type FrameSystemExtensionsCheckWeight = {}; - -export type PalletTransactionPaymentChargeTransactionPayment = bigint; - -export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {}; - -export type PeopleWestendRuntimeRuntime = {}; - -export type SpConsensusSlotsSlotDuration = bigint; - -export type SpRuntimeBlock = { header: Header; extrinsics: Array }; - -export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents'; - -export type SpCoreOpaqueMetadata = Bytes; - -export type SpRuntimeTransactionValidityTransactionValidityError = - | { type: 'Invalid'; value: SpRuntimeTransactionValidityInvalidTransaction } - | { type: 'Unknown'; value: SpRuntimeTransactionValidityUnknownTransaction }; - -export type SpRuntimeTransactionValidityInvalidTransaction = - | { type: 'Call' } - | { type: 'Payment' } - | { type: 'Future' } - | { type: 'Stale' } - | { type: 'BadProof' } - | { type: 'AncientBirthBlock' } - | { type: 'ExhaustsResources' } - | { type: 'Custom'; value: number } - | { type: 'BadMandatory' } - | { type: 'MandatoryValidation' } - | { type: 'BadSigner' }; - -export type SpRuntimeTransactionValidityUnknownTransaction = - | { type: 'CannotLookup' } - | { type: 'NoUnsignedValidator' } - | { type: 'Custom'; value: number }; - -export type SpInherentsInherentData = { data: Array<[FixedBytes<8>, Bytes]> }; - -export type SpInherentsCheckInherentsResult = { okay: boolean; fatalError: boolean; errors: SpInherentsInherentData }; - -export type SpRuntimeTransactionValidityTransactionSource = 'InBlock' | 'Local' | 'External'; - -export type SpRuntimeTransactionValidityValidTransaction = { - priority: bigint; - requires: Array; - provides: Array; - longevity: bigint; - propagate: boolean; -}; - -export type PalletTransactionPaymentRuntimeDispatchInfo = { - weight: SpWeightsWeightV2Weight; - class: FrameSupportDispatchDispatchClass; - partialFee: bigint; -}; - -export type PalletTransactionPaymentFeeDetails = { - inclusionFee?: PalletTransactionPaymentInclusionFee | undefined; - tip: bigint; -}; - -export type PalletTransactionPaymentInclusionFee = { baseFee: bigint; lenFee: bigint; adjustedWeightFee: bigint }; - -export type XcmRuntimeApisFeesError = - | 'Unimplemented' - | 'VersionedConversionFailed' - | 'WeightNotComputable' - | 'UnhandledXcmVersion' - | 'AssetNotFound' - | 'Unroutable'; - -export type XcmRuntimeApisDryRunCallDryRunEffects = { - executionResult: Result; - emittedEvents: Array; - localXcm?: XcmVersionedXcm | undefined; - forwardedXcms: Array<[XcmVersionedLocation, Array]>; -}; - -export type FrameSupportDispatchPostDispatchInfo = { - actualWeight?: SpWeightsWeightV2Weight | undefined; - paysFee: FrameSupportDispatchPays; -}; - -export type SpRuntimeDispatchErrorWithPostInfo = { - postInfo: FrameSupportDispatchPostDispatchInfo; - error: DispatchError; -}; - -export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed'; - -export type XcmRuntimeApisDryRunXcmDryRunEffects = { - executionResult: StagingXcmV4TraitsOutcome; - emittedEvents: Array; - forwardedXcms: Array<[XcmVersionedLocation, Array]>; -}; - -export type XcmRuntimeApisConversionsError = 'Unsupported' | 'VersionedConversionFailed'; - -export type CumulusPrimitivesCoreCollationInfo = { - upwardMessages: Array; - horizontalMessages: Array; - newValidationCode?: PolkadotParachainPrimitivesPrimitivesValidationCode | undefined; - processedDownwardMessages: number; - hrmpWatermark: number; - headData: PolkadotParachainPrimitivesPrimitivesHeadData; -}; - -export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes; - -export type PeopleWestendRuntimeRuntimeError = - | { pallet: 'System'; palletError: FrameSystemError } - | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError } - | { pallet: 'Balances'; palletError: PalletBalancesError } - | { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError } - | { pallet: 'Session'; palletError: PalletSessionError } - | { pallet: 'XcmpQueue'; palletError: CumulusPalletXcmpQueueError } - | { pallet: 'PolkadotXcm'; palletError: PalletXcmError } - | { pallet: 'MessageQueue'; palletError: PalletMessageQueueError } - | { pallet: 'Utility'; palletError: PalletUtilityError } - | { pallet: 'Multisig'; palletError: PalletMultisigError } - | { pallet: 'Identity'; palletError: PalletIdentityError };