diff --git a/packages/api-augment/src/assetHubKusama/consts.ts b/packages/api-augment/src/assetHubKusama/consts.ts new file mode 100644 index 000000000000..4194c4da4998 --- /dev/null +++ b/packages/api-augment/src/assetHubKusama/consts.ts @@ -0,0 +1,591 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/consts'; + +import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; +import type { Bytes, Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { Codec } from '@polkadot/types-codec/types'; +import type { Permill } from '@polkadot/types/interfaces/runtime'; +import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation } from '@polkadot/types/lookup'; + +export type __AugmentedConst = AugmentedConst; + +declare module '@polkadot/api-base/types/consts' { + interface AugmentedConsts { + assetConversion: { + /** + * A fee to withdraw the liquidity. + **/ + liquidityWithdrawalFee: Permill & AugmentedConst; + /** + * A % the liquidity providers will take of every swap. Represents 10ths of a percent. + **/ + lpFee: u32 & AugmentedConst; + /** + * The max number of hops in a swap. + **/ + maxSwapPathLength: u32 & AugmentedConst; + /** + * The minimum LP token amount that could be minted. Ameliorates rounding errors. + **/ + mintMinLiquidity: u128 & AugmentedConst; + /** + * The pallet's id, used for deriving its sovereign account ID. + **/ + palletId: FrameSupportPalletId & AugmentedConst; + /** + * A one-time fee to setup the pool. + **/ + poolSetupFee: u128 & AugmentedConst; + /** + * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`]. + **/ + poolSetupFeeAsset: StagingXcmV3MultiLocation & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + assets: { + /** + * The amount of funds that must be reserved when creating a new approval. + **/ + approvalDeposit: u128 & AugmentedConst; + /** + * The amount of funds that must be reserved for a non-provider asset account to be + * maintained. + **/ + assetAccountDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an asset. + **/ + assetDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your asset. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes you store in your + * metadata. + **/ + metadataDepositPerByte: u128 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * The maximum length of a name or symbol stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u64 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u128 & AugmentedConst; + /** + * The maximum number of individual freeze locks that can exist on an account at any time. + **/ + maxFreezes: u32 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + foreignAssets: { + /** + * The amount of funds that must be reserved when creating a new approval. + **/ + approvalDeposit: u128 & AugmentedConst; + /** + * The amount of funds that must be reserved for a non-provider asset account to be + * maintained. + **/ + assetAccountDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an asset. + **/ + assetDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your asset. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes you store in your + * metadata. + **/ + metadataDepositPerByte: u128 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * The maximum length of a name or symbol stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u32 & AugmentedConst; + /** + * 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: Option & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * 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: Option & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u128 & AugmentedConst; + /** + * 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: u128 & AugmentedConst; + /** + * The maximum amount of signatories allowed in the multisig. + **/ + maxSignatories: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u128 & AugmentedConst; + /** + * The newly created asset's name. + **/ + newAssetName: Bytes & AugmentedConst; + /** + * The newly created asset's symbol. + **/ + newAssetSymbol: Bytes & AugmentedConst; + /** + * The pallet's id, used for deriving its sovereign account ID. + **/ + palletId: FrameSupportPalletId & AugmentedConst; + /** + * The maximum length of a name or symbol stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + nfts: { + /** + * The maximum approvals an item could have. + **/ + approvalsLimit: u32 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding an attribute to an item. + **/ + attributeDepositBase: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for collection. + **/ + collectionDeposit: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes store in metadata, + * either "normal" metadata or attribute metadata. + **/ + depositPerByte: u128 & AugmentedConst; + /** + * Disables some of pallet's features. + **/ + features: u64 & AugmentedConst; + /** + * The maximum attributes approvals an item could have. + **/ + itemAttributesApprovalsLimit: u32 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an item. + **/ + itemDeposit: u128 & AugmentedConst; + /** + * The maximum length of an attribute key. + **/ + keyLimit: u32 & AugmentedConst; + /** + * The max number of attributes a user could set per call. + **/ + maxAttributesPerCall: u32 & AugmentedConst; + /** + * The max duration in blocks for deadlines. + **/ + maxDeadlineDuration: u32 & AugmentedConst; + /** + * The max number of tips a user could send. + **/ + maxTips: u32 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your item. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The maximum length of data stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * The maximum length of an attribute value. + **/ + valueLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + parachainSystem: { + /** + * Returns the parachain ID we are running with. + **/ + selfParaId: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + poolAssets: { + /** + * The amount of funds that must be reserved when creating a new approval. + **/ + approvalDeposit: u128 & AugmentedConst; + /** + * The amount of funds that must be reserved for a non-provider asset account to be + * maintained. + **/ + assetAccountDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an asset. + **/ + assetDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your asset. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes you store in your + * metadata. + **/ + metadataDepositPerByte: u128 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * The maximum length of a name or symbol stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + proxy: { + /** + * 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: u128 & AugmentedConst; + /** + * 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: u128 & AugmentedConst; + /** + * The maximum amount of time-delayed announcements that are allowed to be pending. + **/ + maxPending: u32 & AugmentedConst; + /** + * The maximum amount of proxies allowed for a single account. + **/ + maxProxies: u32 & AugmentedConst; + /** + * 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: u128 & AugmentedConst; + /** + * 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: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + system: { + /** + * Maximum number of block number to block hash mappings to keep (oldest pruned first). + **/ + blockHashCount: u32 & AugmentedConst; + /** + * The maximum length of a block (in bytes). + **/ + blockLength: FrameSystemLimitsBlockLength & AugmentedConst; + /** + * Block & extrinsics weights: base values and limits. + **/ + blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst; + /** + * The weight of runtime database operations the runtime can invoke. + **/ + dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst; + /** + * 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: u16 & AugmentedConst; + /** + * Get the chain's in-code version. + **/ + version: SpVersionRuntimeVersion & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u64 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u8 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + uniques: { + /** + * The basic amount of funds that must be reserved when adding an attribute to an item. + **/ + attributeDepositBase: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for collection. + **/ + collectionDeposit: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes store in metadata, + * either "normal" metadata or attribute metadata. + **/ + depositPerByte: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an item. + **/ + itemDeposit: u128 & AugmentedConst; + /** + * The maximum length of an attribute key. + **/ + keyLimit: u32 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your item. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The maximum length of data stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * The maximum length of an attribute value. + **/ + valueLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + utility: { + /** + * The limit on the number of batched calls. + **/ + batchedCallsLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + vesting: { + maxVestingSchedules: u32 & AugmentedConst; + /** + * The minimum amount transferred to call `vested_transfer`. + **/ + minVestedTransfer: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + xcmpQueue: { + /** + * 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: u32 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + } // AugmentedConsts +} // declare module diff --git a/packages/api-augment/src/assetHubKusama/errors.ts b/packages/api-augment/src/assetHubKusama/errors.ts new file mode 100644 index 000000000000..ea744c007128 --- /dev/null +++ b/packages/api-augment/src/assetHubKusama/errors.ts @@ -0,0 +1,1236 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/errors'; + +import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types'; + +export type __AugmentedError = AugmentedError; + +declare module '@polkadot/api-base/types/errors' { + interface AugmentedErrors { + assetConversion: { + /** + * Provided amount should be greater than or equal to the existential deposit/asset's + * minimal amount. + **/ + AmountOneLessThanMinimal: AugmentedError; + /** + * Desired amount can't be equal to the pool reserve. + **/ + AmountOutTooHigh: AugmentedError; + /** + * Provided amount should be greater than or equal to the existential deposit/asset's + * minimal amount. + **/ + AmountTwoLessThanMinimal: AugmentedError; + /** + * The minimal amount requirement for the first token in the pair wasn't met. + **/ + AssetOneDepositDidNotMeetMinimum: AugmentedError; + /** + * The minimal amount requirement for the first token in the pair wasn't met. + **/ + AssetOneWithdrawalDidNotMeetMinimum: AugmentedError; + /** + * The minimal amount requirement for the second token in the pair wasn't met. + **/ + AssetTwoDepositDidNotMeetMinimum: AugmentedError; + /** + * The minimal amount requirement for the second token in the pair wasn't met. + **/ + AssetTwoWithdrawalDidNotMeetMinimum: AugmentedError; + /** + * The destination account cannot exist with the swapped funds. + **/ + BelowMinimum: AugmentedError; + /** + * It was not possible to get or increment the Id of the pool. + **/ + IncorrectPoolAssetId: AugmentedError; + /** + * Insufficient liquidity minted. + **/ + InsufficientLiquidityMinted: AugmentedError; + /** + * Provided asset pair is not supported for pool. + **/ + InvalidAssetPair: AugmentedError; + /** + * The provided path must consists of 2 assets at least. + **/ + InvalidPath: AugmentedError; + /** + * The provided path must consists of unique assets. + **/ + NonUniquePath: AugmentedError; + /** + * Optimal calculated amount is less than desired. + **/ + OptimalAmountLessThanDesired: AugmentedError; + /** + * An overflow happened. + **/ + Overflow: AugmentedError; + /** + * Pool already exists. + **/ + PoolExists: AugmentedError; + /** + * The pool doesn't exist. + **/ + PoolNotFound: AugmentedError; + /** + * Provided maximum amount is not sufficient for swap. + **/ + ProvidedMaximumNotSufficientForSwap: AugmentedError; + /** + * Calculated amount out is less than provided minimum amount. + **/ + ProvidedMinimumNotSufficientForSwap: AugmentedError; + /** + * Reserve needs to always be greater than or equal to the existential deposit/asset's + * minimal amount. + **/ + ReserveLeftLessThanMinimal: AugmentedError; + /** + * Desired amount can't be zero. + **/ + WrongDesiredAmount: AugmentedError; + /** + * Amount can't be zero. + **/ + ZeroAmount: AugmentedError; + /** + * Requested liquidity can't be zero. + **/ + ZeroLiquidity: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + assets: { + /** + * The asset-account already exists. + **/ + AlreadyExists: AugmentedError; + /** + * The asset is not live, and likely being destroyed. + **/ + AssetNotLive: AugmentedError; + /** + * The asset ID must be equal to the [`NextAssetId`]. + **/ + BadAssetId: AugmentedError; + /** + * Invalid metadata given. + **/ + BadMetadata: AugmentedError; + /** + * Invalid witness data given. + **/ + BadWitness: AugmentedError; + /** + * Account balance must be greater than or equal to the transfer amount. + **/ + BalanceLow: AugmentedError; + /** + * Callback action resulted in error + **/ + CallbackFailed: AugmentedError; + /** + * The origin account is frozen. + **/ + Frozen: AugmentedError; + /** + * The asset status is not the expected status. + **/ + IncorrectStatus: AugmentedError; + /** + * The asset ID is already taken. + **/ + InUse: AugmentedError; + /** + * 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: AugmentedError; + /** + * Minimum balance should be non-zero. + **/ + MinBalanceZero: AugmentedError; + /** + * The account to alter does not exist. + **/ + NoAccount: AugmentedError; + /** + * The asset-account doesn't have an associated deposit. + **/ + NoDeposit: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * The asset should be frozen before the given operation. + **/ + NotFrozen: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * 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: AugmentedError; + /** + * The given asset ID is unknown. + **/ + Unknown: AugmentedError; + /** + * The operation would result in funds being burned. + **/ + WouldBurn: AugmentedError; + /** + * The source account would not survive the transfer and it needs to stay alive. + **/ + WouldDie: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + balances: { + /** + * Beneficiary account must pre-exist. + **/ + DeadAccount: AugmentedError; + /** + * The delta cannot be zero. + **/ + DeltaZero: AugmentedError; + /** + * Value too low to create account due to existential deposit. + **/ + ExistentialDeposit: AugmentedError; + /** + * A vesting schedule already exists for this account. + **/ + ExistingVestingSchedule: AugmentedError; + /** + * Transfer/payment would kill account. + **/ + Expendability: AugmentedError; + /** + * Balance too low to send value. + **/ + InsufficientBalance: AugmentedError; + /** + * The issuance cannot be modified since it is already deactivated. + **/ + IssuanceDeactivated: AugmentedError; + /** + * Account liquidity restrictions prevent withdrawal. + **/ + LiquidityRestrictions: AugmentedError; + /** + * Number of freezes exceed `MaxFreezes`. + **/ + TooManyFreezes: AugmentedError; + /** + * Number of holds exceed `VariantCountOf`. + **/ + TooManyHolds: AugmentedError; + /** + * Number of named reserves exceed `MaxReserves`. + **/ + TooManyReserves: AugmentedError; + /** + * Vesting balance too high to send value. + **/ + VestingBalance: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + collatorSelection: { + /** + * Account is already a candidate. + **/ + AlreadyCandidate: AugmentedError; + /** + * Account is already an Invulnerable. + **/ + AlreadyInvulnerable: AugmentedError; + /** + * New deposit amount would be below the minimum candidacy bond. + **/ + DepositTooLow: AugmentedError; + /** + * The updated deposit amount is equal to the amount already reserved. + **/ + IdenticalDeposit: AugmentedError; + /** + * Could not insert in the candidate list. + **/ + InsertToCandidateListFailed: AugmentedError; + /** + * Deposit amount is too low to take the target's slot in the candidate list. + **/ + InsufficientBond: AugmentedError; + /** + * Cannot lower candidacy bond while occupying a future collator slot in the list. + **/ + InvalidUnreserve: AugmentedError; + /** + * Account has no associated validator ID. + **/ + NoAssociatedValidatorId: AugmentedError; + /** + * Account is not a candidate. + **/ + NotCandidate: AugmentedError; + /** + * Account is not an Invulnerable. + **/ + NotInvulnerable: AugmentedError; + /** + * Could not remove from the candidate list. + **/ + RemoveFromCandidateListFailed: AugmentedError; + /** + * The target account to be replaced in the candidate list is not a candidate. + **/ + TargetIsNotCandidate: AugmentedError; + /** + * Leaving would result in too few candidates. + **/ + TooFewEligibleCollators: AugmentedError; + /** + * The pallet has too many candidates. + **/ + TooManyCandidates: AugmentedError; + /** + * There are too many Invulnerables. + **/ + TooManyInvulnerables: AugmentedError; + /** + * Could not update the candidate list. + **/ + UpdateCandidateListFailed: AugmentedError; + /** + * Validator ID is not yet registered. + **/ + ValidatorNotRegistered: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + foreignAssets: { + /** + * The asset-account already exists. + **/ + AlreadyExists: AugmentedError; + /** + * The asset is not live, and likely being destroyed. + **/ + AssetNotLive: AugmentedError; + /** + * The asset ID must be equal to the [`NextAssetId`]. + **/ + BadAssetId: AugmentedError; + /** + * Invalid metadata given. + **/ + BadMetadata: AugmentedError; + /** + * Invalid witness data given. + **/ + BadWitness: AugmentedError; + /** + * Account balance must be greater than or equal to the transfer amount. + **/ + BalanceLow: AugmentedError; + /** + * Callback action resulted in error + **/ + CallbackFailed: AugmentedError; + /** + * The origin account is frozen. + **/ + Frozen: AugmentedError; + /** + * The asset status is not the expected status. + **/ + IncorrectStatus: AugmentedError; + /** + * The asset ID is already taken. + **/ + InUse: AugmentedError; + /** + * 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: AugmentedError; + /** + * Minimum balance should be non-zero. + **/ + MinBalanceZero: AugmentedError; + /** + * The account to alter does not exist. + **/ + NoAccount: AugmentedError; + /** + * The asset-account doesn't have an associated deposit. + **/ + NoDeposit: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * The asset should be frozen before the given operation. + **/ + NotFrozen: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * 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: AugmentedError; + /** + * The given asset ID is unknown. + **/ + Unknown: AugmentedError; + /** + * The operation would result in funds being burned. + **/ + WouldBurn: AugmentedError; + /** + * The source account would not survive the transfer and it needs to stay alive. + **/ + WouldDie: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + messageQueue: { + /** + * The message was already processed and cannot be processed again. + **/ + AlreadyProcessed: AugmentedError; + /** + * There is temporarily not enough weight to continue servicing messages. + **/ + InsufficientWeight: AugmentedError; + /** + * The referenced message could not be found. + **/ + NoMessage: AugmentedError; + /** + * Page to be reaped does not exist. + **/ + NoPage: AugmentedError; + /** + * Page is not reapable because it has items remaining to be processed and is not old + * enough. + **/ + NotReapable: AugmentedError; + /** + * The message is queued for future execution. + **/ + Queued: AugmentedError; + /** + * 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: AugmentedError; + /** + * Another call is in progress and needs to finish before this call can happen. + **/ + RecursiveDisallowed: AugmentedError; + /** + * This message is temporarily unprocessable. + * + * Such errors are expected, but not guaranteed, to resolve themselves eventually through + * retrying. + **/ + TemporarilyUnprocessable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + multisig: { + /** + * Call is already approved by this signatory. + **/ + AlreadyApproved: AugmentedError; + /** + * The data to be stored is already stored. + **/ + AlreadyStored: AugmentedError; + /** + * The maximum weight information provided was too low. + **/ + MaxWeightTooLow: AugmentedError; + /** + * Threshold must be 2 or greater. + **/ + MinimumThreshold: AugmentedError; + /** + * Call doesn't need any (more) approvals. + **/ + NoApprovalsNeeded: AugmentedError; + /** + * Multisig operation not found when attempting to cancel. + **/ + NotFound: AugmentedError; + /** + * No timepoint was given, yet the multisig operation is already underway. + **/ + NoTimepoint: AugmentedError; + /** + * Only the account that originally created the multisig is able to cancel it. + **/ + NotOwner: AugmentedError; + /** + * The sender was contained in the other signatories; it shouldn't be. + **/ + SenderInSignatories: AugmentedError; + /** + * The signatories were provided out of order; they should be ordered. + **/ + SignatoriesOutOfOrder: AugmentedError; + /** + * There are too few signatories in the list. + **/ + TooFewSignatories: AugmentedError; + /** + * There are too many signatories in the list. + **/ + TooManySignatories: AugmentedError; + /** + * A timepoint was given, yet no multisig operation is underway. + **/ + UnexpectedTimepoint: AugmentedError; + /** + * A different timepoint was given to the multisig operation that is underway. + **/ + WrongTimepoint: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + nftFractionalization: { + /** + * Asset ID does not correspond to locked NFT. + **/ + IncorrectAssetId: AugmentedError; + /** + * NFT doesn't exist. + **/ + NftNotFound: AugmentedError; + /** + * NFT has not yet been fractionalised. + **/ + NftNotFractionalized: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + nfts: { + /** + * The provided Item was already used for claiming. + **/ + AlreadyClaimed: AugmentedError; + /** + * The item ID has already been used for an item. + **/ + AlreadyExists: AugmentedError; + /** + * The approval had a deadline that expired, so the approval isn't valid anymore. + **/ + ApprovalExpired: AugmentedError; + /** + * The provided attribute can't be found. + **/ + AttributeNotFound: AugmentedError; + /** + * The witness data given does not match the current state of the chain. + **/ + BadWitness: AugmentedError; + /** + * The provided bid is too low. + **/ + BidTooLow: AugmentedError; + /** + * Collection ID is already taken. + **/ + CollectionIdInUse: AugmentedError; + /** + * Can't delete non-empty collections. + **/ + CollectionNotEmpty: AugmentedError; + /** + * The deadline has already expired. + **/ + DeadlineExpired: AugmentedError; + /** + * Item's config already exists and should be equal to the provided one. + **/ + InconsistentItemConfig: AugmentedError; + /** + * The provided data is incorrect. + **/ + IncorrectData: AugmentedError; + /** + * The provided metadata might be too long. + **/ + IncorrectMetadata: AugmentedError; + /** + * The item is locked (non-transferable). + **/ + ItemLocked: AugmentedError; + /** + * Items within that collection are non-transferable. + **/ + ItemsNonTransferable: AugmentedError; + /** + * Collection's attributes are locked. + **/ + LockedCollectionAttributes: AugmentedError; + /** + * Collection's metadata is locked. + **/ + LockedCollectionMetadata: AugmentedError; + /** + * Item's attributes are locked. + **/ + LockedItemAttributes: AugmentedError; + /** + * Item's metadata is locked. + **/ + LockedItemMetadata: AugmentedError; + /** + * Can't set more attributes per one call. + **/ + MaxAttributesLimitReached: AugmentedError; + /** + * The max supply is locked and can't be changed. + **/ + MaxSupplyLocked: AugmentedError; + /** + * All items have been minted. + **/ + MaxSupplyReached: AugmentedError; + /** + * The provided max supply is less than the number of items a collection already has. + **/ + MaxSupplyTooSmall: AugmentedError; + /** + * The given item has no metadata set. + **/ + MetadataNotFound: AugmentedError; + /** + * The method is disabled by system settings. + **/ + MethodDisabled: AugmentedError; + /** + * Mint has already ended. + **/ + MintEnded: AugmentedError; + /** + * Mint has not started yet. + **/ + MintNotStarted: AugmentedError; + /** + * Config for a collection or an item can't be found. + **/ + NoConfig: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * The provided account is not a delegate. + **/ + NotDelegate: AugmentedError; + /** + * Item is not for sale. + **/ + NotForSale: AugmentedError; + /** + * The item has reached its approval limit. + **/ + ReachedApprovalLimit: AugmentedError; + /** + * Some roles were not cleared. + **/ + RolesNotCleared: AugmentedError; + /** + * The named owner has not signed ownership acceptance of the collection. + **/ + Unaccepted: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * The given item ID is unknown. + **/ + UnknownCollection: AugmentedError; + /** + * The given item ID is unknown. + **/ + UnknownItem: AugmentedError; + /** + * Swap doesn't exist. + **/ + UnknownSwap: AugmentedError; + /** + * The witness data should be provided. + **/ + WitnessRequired: AugmentedError; + /** + * The delegate turned out to be different to what was expected. + **/ + WrongDelegate: AugmentedError; + /** + * The duration provided should be less than or equal to `MaxDeadlineDuration`. + **/ + WrongDuration: AugmentedError; + /** + * The provided namespace isn't supported in this call. + **/ + WrongNamespace: AugmentedError; + /** + * The extrinsic was sent by the wrong origin. + **/ + WrongOrigin: AugmentedError; + /** + * The owner turned out to be different to what was expected. + **/ + WrongOwner: AugmentedError; + /** + * The provided setting can't be set. + **/ + WrongSetting: AugmentedError; + /** + * The provided signature is incorrect. + **/ + WrongSignature: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + parachainSystem: { + /** + * The inherent which supplies the host configuration did not run this block. + **/ + HostConfigurationNotAvailable: AugmentedError; + /** + * No code upgrade has been authorized. + **/ + NothingAuthorized: AugmentedError; + /** + * No validation function upgrade is currently scheduled. + **/ + NotScheduled: AugmentedError; + /** + * Attempt to upgrade validation function while existing upgrade pending. + **/ + OverlappingUpgrades: AugmentedError; + /** + * Polkadot currently prohibits this parachain from upgrading its validation function. + **/ + ProhibitedByPolkadot: AugmentedError; + /** + * The supplied validation function has compiled into a blob larger than Polkadot is + * willing to run. + **/ + TooBig: AugmentedError; + /** + * The given code upgrade has not been authorized. + **/ + Unauthorized: AugmentedError; + /** + * The inherent which supplies the validation data did not run this block. + **/ + ValidationDataNotAvailable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + polkadotXcm: { + /** + * The given account is not an identifiable sovereign account for any location. + **/ + AccountNotSovereign: AugmentedError; + /** + * The location is invalid since it already has a subscription from us. + **/ + AlreadySubscribed: AugmentedError; + /** + * The given location could not be used (e.g. because it cannot be expressed in the + * desired version of XCM). + **/ + BadLocation: AugmentedError; + /** + * The version of the `Versioned` value used is not able to be interpreted. + **/ + BadVersion: AugmentedError; + /** + * Could not check-out the assets for teleportation to the destination chain. + **/ + CannotCheckOutTeleport: AugmentedError; + /** + * Could not re-anchor the assets to declare the fees for the destination chain. + **/ + CannotReanchor: AugmentedError; + /** + * The destination `Location` provided cannot be inverted. + **/ + DestinationNotInvertible: AugmentedError; + /** + * The assets to be sent are empty. + **/ + Empty: AugmentedError; + /** + * The operation required fees to be paid which the initiator could not meet. + **/ + FeesNotMet: AugmentedError; + /** + * The message execution fails the filter. + **/ + Filtered: AugmentedError; + /** + * The unlock operation cannot succeed because there are still consumers of the lock. + **/ + InUse: AugmentedError; + /** + * Invalid asset, reserve chain could not be determined for it. + **/ + InvalidAssetUnknownReserve: AugmentedError; + /** + * Invalid asset, do not support remote asset reserves with different fees reserves. + **/ + InvalidAssetUnsupportedReserve: AugmentedError; + /** + * Origin is invalid for sending. + **/ + InvalidOrigin: AugmentedError; + /** + * Local XCM execution incomplete. + **/ + LocalExecutionIncomplete: AugmentedError; + /** + * A remote lock with the corresponding data could not be found. + **/ + LockNotFound: AugmentedError; + /** + * The owner does not own (all) of the asset that they wish to do the operation on. + **/ + LowBalance: AugmentedError; + /** + * The referenced subscription could not be found. + **/ + NoSubscription: AugmentedError; + /** + * 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: AugmentedError; + /** + * Too many assets have been attempted for transfer. + **/ + TooManyAssets: AugmentedError; + /** + * The asset owner has too many locks on the asset. + **/ + TooManyLocks: AugmentedError; + /** + * Too many assets with different reserve locations have been attempted for transfer. + **/ + TooManyReserves: AugmentedError; + /** + * The desired destination was unreachable, generally because there is a no way of routing + * to it. + **/ + Unreachable: AugmentedError; + /** + * The message's weight could not be determined. + **/ + UnweighableMessage: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + poolAssets: { + /** + * The asset-account already exists. + **/ + AlreadyExists: AugmentedError; + /** + * The asset is not live, and likely being destroyed. + **/ + AssetNotLive: AugmentedError; + /** + * The asset ID must be equal to the [`NextAssetId`]. + **/ + BadAssetId: AugmentedError; + /** + * Invalid metadata given. + **/ + BadMetadata: AugmentedError; + /** + * Invalid witness data given. + **/ + BadWitness: AugmentedError; + /** + * Account balance must be greater than or equal to the transfer amount. + **/ + BalanceLow: AugmentedError; + /** + * Callback action resulted in error + **/ + CallbackFailed: AugmentedError; + /** + * The origin account is frozen. + **/ + Frozen: AugmentedError; + /** + * The asset status is not the expected status. + **/ + IncorrectStatus: AugmentedError; + /** + * The asset ID is already taken. + **/ + InUse: AugmentedError; + /** + * 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: AugmentedError; + /** + * Minimum balance should be non-zero. + **/ + MinBalanceZero: AugmentedError; + /** + * The account to alter does not exist. + **/ + NoAccount: AugmentedError; + /** + * The asset-account doesn't have an associated deposit. + **/ + NoDeposit: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * The asset should be frozen before the given operation. + **/ + NotFrozen: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * 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: AugmentedError; + /** + * The given asset ID is unknown. + **/ + Unknown: AugmentedError; + /** + * The operation would result in funds being burned. + **/ + WouldBurn: AugmentedError; + /** + * The source account would not survive the transfer and it needs to stay alive. + **/ + WouldDie: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + proxy: { + /** + * Account is already a proxy. + **/ + Duplicate: AugmentedError; + /** + * Call may not be made by proxy because it may escalate its privileges. + **/ + NoPermission: AugmentedError; + /** + * Cannot add self as proxy. + **/ + NoSelfProxy: AugmentedError; + /** + * Proxy registration not found. + **/ + NotFound: AugmentedError; + /** + * Sender is not a proxy of the account to be proxied. + **/ + NotProxy: AugmentedError; + /** + * There are too many proxies registered or too many announcements pending. + **/ + TooMany: AugmentedError; + /** + * Announcement, if made at all, was made too recently. + **/ + Unannounced: AugmentedError; + /** + * A call which is incompatible with the proxy type's filter was attempted. + **/ + Unproxyable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + session: { + /** + * Registered duplicate key. + **/ + DuplicatedKey: AugmentedError; + /** + * Invalid ownership proof. + **/ + InvalidProof: AugmentedError; + /** + * Key setting account is not live, so it's impossible to associate keys. + **/ + NoAccount: AugmentedError; + /** + * No associated validator ID for account. + **/ + NoAssociatedValidatorId: AugmentedError; + /** + * No keys are associated with this account. + **/ + NoKeys: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + system: { + /** + * The origin filter prevent the call to be dispatched. + **/ + CallFiltered: AugmentedError; + /** + * Failed to extract the runtime version from the new runtime. + * + * Either calling `Core_version` or decoding `RuntimeVersion` failed. + **/ + FailedToExtractRuntimeVersion: AugmentedError; + /** + * The name of specification does not match between the current runtime + * and the new runtime. + **/ + InvalidSpecName: AugmentedError; + /** + * A multi-block migration is ongoing and prevents the current code from being replaced. + **/ + MultiBlockMigrationsOngoing: AugmentedError; + /** + * Suicide called when the account has non-default composite data. + **/ + NonDefaultComposite: AugmentedError; + /** + * There is a non-zero reference count preventing the account from being purged. + **/ + NonZeroRefCount: AugmentedError; + /** + * No upgrade authorized. + **/ + NothingAuthorized: AugmentedError; + /** + * The specification version is not allowed to decrease between the current runtime + * and the new runtime. + **/ + SpecVersionNeedsToIncrease: AugmentedError; + /** + * The submitted code is not authorized. + **/ + Unauthorized: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + uniques: { + /** + * The item ID has already been used for an item. + **/ + AlreadyExists: AugmentedError; + /** + * Invalid witness data given. + **/ + BadWitness: AugmentedError; + /** + * The provided bid is too low. + **/ + BidTooLow: AugmentedError; + /** + * The item or collection is frozen. + **/ + Frozen: AugmentedError; + /** + * The item ID is already taken. + **/ + InUse: AugmentedError; + /** + * The item is locked. + **/ + Locked: AugmentedError; + /** + * The max supply has already been set. + **/ + MaxSupplyAlreadySet: AugmentedError; + /** + * All items have been minted. + **/ + MaxSupplyReached: AugmentedError; + /** + * The provided max supply is less to the amount of items a collection already has. + **/ + MaxSupplyTooSmall: AugmentedError; + /** + * There is no delegate approved. + **/ + NoDelegate: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * Item is not for sale. + **/ + NotForSale: AugmentedError; + /** + * The named owner has not signed ownership of the collection is acceptable. + **/ + Unaccepted: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * The given item ID is unknown. + **/ + UnknownCollection: AugmentedError; + /** + * The given item ID is unknown. + **/ + UnknownItem: AugmentedError; + /** + * The delegate turned out to be different to what was expected. + **/ + WrongDelegate: AugmentedError; + /** + * The owner turned out to be different to what was expected. + **/ + WrongOwner: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + utility: { + /** + * Too many calls batched. + **/ + TooManyCalls: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + vesting: { + /** + * Amount being transferred is too low to create a vesting schedule. + **/ + AmountLow: AugmentedError; + /** + * The account already has `MaxVestingSchedules` count of schedules and thus + * cannot add another one. Consider merging existing schedules in order to add another. + **/ + AtMaxVestingSchedules: AugmentedError; + /** + * Failed to create a new schedule because some parameter was invalid. + **/ + InvalidScheduleParams: AugmentedError; + /** + * The account given is not vesting. + **/ + NotVesting: AugmentedError; + /** + * An index was out of bounds of the vesting schedules. + **/ + ScheduleIndexOutOfBounds: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + xcmpQueue: { + /** + * The execution is already resumed. + **/ + AlreadyResumed: AugmentedError; + /** + * The execution is already suspended. + **/ + AlreadySuspended: AugmentedError; + /** + * Setting the queue config failed since one of its values was invalid. + **/ + BadQueueConfig: AugmentedError; + /** + * The message is too big. + **/ + TooBig: AugmentedError; + /** + * There are too many active outbound channels. + **/ + TooManyActiveOutboundChannels: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + } // AugmentedErrors +} // declare module diff --git a/packages/api-augment/src/assetHubKusama/events.ts b/packages/api-augment/src/assetHubKusama/events.ts new file mode 100644 index 000000000000..6383df8c204e --- /dev/null +++ b/packages/api-augment/src/assetHubKusama/events.ts @@ -0,0 +1,1200 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/events'; + +import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types'; +import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256, Permill } from '@polkadot/types/interfaces/runtime'; +import type { AssetHubKusamaRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup'; + +export type __AugmentedEvent = AugmentedEvent; + +declare module '@polkadot/api-base/types/events' { + interface AugmentedEvents { + assetConversion: { + /** + * A successful call of the `AddLiquidity` extrinsic will create this event. + **/ + LiquidityAdded: AugmentedEvent, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128], { who: AccountId32, mintTo: AccountId32, poolId: ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128 }>; + /** + * A successful call of the `RemoveLiquidity` extrinsic will create this event. + **/ + LiquidityRemoved: AugmentedEvent, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], { who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill }>; + /** + * A successful call of the `CreatePool` extrinsic will create this event. + **/ + PoolCreated: AugmentedEvent, poolAccount: AccountId32, lpToken: u32], { creator: AccountId32, poolId: ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>, poolAccount: AccountId32, lpToken: u32 }>; + /** + * Assets have been converted from one to another. + **/ + SwapCreditExecuted: AugmentedEvent>], { amountIn: u128, amountOut: u128, path: Vec> }>; + /** + * Assets have been converted from one to another. Both `SwapExactTokenForToken` + * and `SwapTokenForExactToken` will generate this event. + **/ + SwapExecuted: AugmentedEvent>], { who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec> }>; + /** + * Pool has been touched in order to fulfill operational requirements. + **/ + Touched: AugmentedEvent, who: AccountId32], { poolId: ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>, who: AccountId32 }>; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + assets: { + /** + * Accounts were destroyed for given asset. + **/ + AccountsDestroyed: AugmentedEvent; + /** + * An approval for account `delegate` was cancelled by `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * Approvals were destroyed for given asset. + **/ + ApprovalsDestroyed: AugmentedEvent; + /** + * (Additional) funds have been approved for transfer to a destination account. + **/ + ApprovedTransfer: AugmentedEvent; + /** + * Some asset `asset_id` was frozen. + **/ + AssetFrozen: AugmentedEvent; + /** + * The min_balance of an asset has been updated by the asset owner. + **/ + AssetMinBalanceChanged: AugmentedEvent; + /** + * An asset has had its attributes changed by the `Force` origin. + **/ + AssetStatusChanged: AugmentedEvent; + /** + * Some asset `asset_id` was thawed. + **/ + AssetThawed: AugmentedEvent; + /** + * Some account `who` was blocked. + **/ + Blocked: AugmentedEvent; + /** + * Some assets were destroyed. + **/ + Burned: AugmentedEvent; + /** + * Some asset class was created. + **/ + Created: AugmentedEvent; + /** + * Some assets were deposited (e.g. for transaction fees). + **/ + Deposited: AugmentedEvent; + /** + * An asset class was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * An asset class is in the process of being destroyed. + **/ + DestructionStarted: AugmentedEvent; + /** + * Some asset class was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * Some account `who` was frozen. + **/ + Frozen: AugmentedEvent; + /** + * Some assets were issued. + **/ + Issued: AugmentedEvent; + /** + * Metadata has been cleared for an asset. + **/ + MetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an asset. + **/ + MetadataSet: AugmentedEvent; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent; + /** + * Some account `who` was thawed. + **/ + Thawed: AugmentedEvent; + /** + * Some account `who` was created with a deposit from `depositor`. + **/ + Touched: AugmentedEvent; + /** + * Some assets were transferred. + **/ + Transferred: AugmentedEvent; + /** + * An `amount` was transferred in its entirety from `owner` to `destination` by + * the approved `delegate`. + **/ + TransferredApproved: AugmentedEvent; + /** + * Some assets were withdrawn from the account (e.g. for transaction fees). + **/ + Withdrawn: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + assetTxPayment: { + /** + * A swap of the refund in native currency back to asset failed. + **/ + AssetRefundFailed: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + balances: { + /** + * A balance was set by root. + **/ + BalanceSet: AugmentedEvent; + /** + * Some amount was burned from an account. + **/ + Burned: AugmentedEvent; + /** + * Some amount was deposited (e.g. for transaction fees). + **/ + Deposit: AugmentedEvent; + /** + * An account was removed whose balance was non-zero but below ExistentialDeposit, + * resulting in an outright loss. + **/ + DustLost: AugmentedEvent; + /** + * An account was created with some free balance. + **/ + Endowed: AugmentedEvent; + /** + * Some balance was frozen. + **/ + Frozen: AugmentedEvent; + /** + * Total issuance was increased by `amount`, creating a credit to be balanced. + **/ + Issued: AugmentedEvent; + /** + * Some balance was locked. + **/ + Locked: AugmentedEvent; + /** + * Some amount was minted into an account. + **/ + Minted: AugmentedEvent; + /** + * Total issuance was decreased by `amount`, creating a debt to be balanced. + **/ + Rescinded: AugmentedEvent; + /** + * Some balance was reserved (moved from free to reserved). + **/ + Reserved: AugmentedEvent; + /** + * Some balance was moved from the reserve of the first account to the second account. + * Final argument indicates the destination balance type. + **/ + ReserveRepatriated: AugmentedEvent; + /** + * Some amount was restored into an account. + **/ + Restored: AugmentedEvent; + /** + * Some amount was removed from the account (e.g. for misbehavior). + **/ + Slashed: AugmentedEvent; + /** + * Some amount was suspended from an account (it can be restored later). + **/ + Suspended: AugmentedEvent; + /** + * Some balance was thawed. + **/ + Thawed: AugmentedEvent; + /** + * The `TotalIssuance` was forcefully changed. + **/ + TotalIssuanceForced: AugmentedEvent; + /** + * Transfer succeeded. + **/ + Transfer: AugmentedEvent; + /** + * Some balance was unlocked. + **/ + Unlocked: AugmentedEvent; + /** + * Some balance was unreserved (moved from reserved to free). + **/ + Unreserved: AugmentedEvent; + /** + * An account was upgraded. + **/ + Upgraded: AugmentedEvent; + /** + * Some amount was withdrawn from the account (e.g. for transaction fees). + **/ + Withdraw: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + collatorSelection: { + /** + * A new candidate joined. + **/ + CandidateAdded: AugmentedEvent; + /** + * Bond of a candidate updated. + **/ + CandidateBondUpdated: AugmentedEvent; + /** + * A candidate was removed. + **/ + CandidateRemoved: AugmentedEvent; + /** + * An account was replaced in the candidate list by another one. + **/ + CandidateReplaced: AugmentedEvent; + /** + * An account was unable to be added to the Invulnerables because they did not have keys + * registered. Other Invulnerables may have been set. + **/ + InvalidInvulnerableSkipped: AugmentedEvent; + /** + * A new Invulnerable was added. + **/ + InvulnerableAdded: AugmentedEvent; + /** + * An Invulnerable was removed. + **/ + InvulnerableRemoved: AugmentedEvent; + /** + * The candidacy bond was set. + **/ + NewCandidacyBond: AugmentedEvent; + /** + * The number of desired candidates was set. + **/ + NewDesiredCandidates: AugmentedEvent; + /** + * New Invulnerables were set. + **/ + NewInvulnerables: AugmentedEvent], { invulnerables: Vec }>; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + cumulusXcm: { + /** + * Downward message executed with the given outcome. + * \[ id, outcome \] + **/ + ExecutedDownward: AugmentedEvent; + /** + * Downward message is invalid XCM. + * \[ id \] + **/ + InvalidFormat: AugmentedEvent; + /** + * Downward message is unsupported version of XCM. + * \[ id \] + **/ + UnsupportedVersion: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + foreignAssets: { + /** + * Accounts were destroyed for given asset. + **/ + AccountsDestroyed: AugmentedEvent; + /** + * An approval for account `delegate` was cancelled by `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * Approvals were destroyed for given asset. + **/ + ApprovalsDestroyed: AugmentedEvent; + /** + * (Additional) funds have been approved for transfer to a destination account. + **/ + ApprovedTransfer: AugmentedEvent; + /** + * Some asset `asset_id` was frozen. + **/ + AssetFrozen: AugmentedEvent; + /** + * The min_balance of an asset has been updated by the asset owner. + **/ + AssetMinBalanceChanged: AugmentedEvent; + /** + * An asset has had its attributes changed by the `Force` origin. + **/ + AssetStatusChanged: AugmentedEvent; + /** + * Some asset `asset_id` was thawed. + **/ + AssetThawed: AugmentedEvent; + /** + * Some account `who` was blocked. + **/ + Blocked: AugmentedEvent; + /** + * Some assets were destroyed. + **/ + Burned: AugmentedEvent; + /** + * Some asset class was created. + **/ + Created: AugmentedEvent; + /** + * Some assets were deposited (e.g. for transaction fees). + **/ + Deposited: AugmentedEvent; + /** + * An asset class was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * An asset class is in the process of being destroyed. + **/ + DestructionStarted: AugmentedEvent; + /** + * Some asset class was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * Some account `who` was frozen. + **/ + Frozen: AugmentedEvent; + /** + * Some assets were issued. + **/ + Issued: AugmentedEvent; + /** + * Metadata has been cleared for an asset. + **/ + MetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an asset. + **/ + MetadataSet: AugmentedEvent; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent; + /** + * Some account `who` was thawed. + **/ + Thawed: AugmentedEvent; + /** + * Some account `who` was created with a deposit from `depositor`. + **/ + Touched: AugmentedEvent; + /** + * Some assets were transferred. + **/ + Transferred: AugmentedEvent; + /** + * An `amount` was transferred in its entirety from `owner` to `destination` by + * the approved `delegate`. + **/ + TransferredApproved: AugmentedEvent; + /** + * Some assets were withdrawn from the account (e.g. for transaction fees). + **/ + Withdrawn: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + messageQueue: { + /** + * Message placed in overweight queue. + **/ + OverweightEnqueued: AugmentedEvent; + /** + * This page was reaped. + **/ + PageReaped: AugmentedEvent; + /** + * Message is processed. + **/ + Processed: AugmentedEvent; + /** + * Message discarded due to an error in the `MessageProcessor` (usually a format error). + **/ + ProcessingFailed: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + multisig: { + /** + * A multisig operation has been approved by someone. + **/ + MultisigApproval: AugmentedEvent; + /** + * A multisig operation has been cancelled. + **/ + MultisigCancelled: AugmentedEvent; + /** + * A multisig operation has been executed. + **/ + MultisigExecuted: AugmentedEvent], { approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed, result: Result }>; + /** + * A new multisig operation has begun. + **/ + NewMultisig: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + nftFractionalization: { + /** + * An NFT was successfully fractionalized. + **/ + NftFractionalized: AugmentedEvent; + /** + * An NFT was successfully returned back. + **/ + NftUnified: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + nfts: { + /** + * All approvals of an item got cancelled. + **/ + AllApprovalsCancelled: AugmentedEvent; + /** + * An approval for a `delegate` account to transfer the `item` of an item + * `collection` was cancelled by its `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * Attribute metadata has been cleared for a `collection` or `item`. + **/ + AttributeCleared: AugmentedEvent, key: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option, key: Bytes, namespace: PalletNftsAttributeNamespace }>; + /** + * New attribute metadata has been set for a `collection` or `item`. + **/ + AttributeSet: AugmentedEvent, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace }>; + /** + * An `item` was destroyed. + **/ + Burned: AugmentedEvent; + /** + * A `collection` has had its config changed by the `Force` origin. + **/ + CollectionConfigChanged: AugmentedEvent; + /** + * Some `collection` was locked. + **/ + CollectionLocked: AugmentedEvent; + /** + * Max supply has been set for a collection. + **/ + CollectionMaxSupplySet: AugmentedEvent; + /** + * Metadata has been cleared for a `collection`. + **/ + CollectionMetadataCleared: AugmentedEvent; + /** + * New metadata has been set for a `collection`. + **/ + CollectionMetadataSet: AugmentedEvent; + /** + * Mint settings for a collection had changed. + **/ + CollectionMintSettingsUpdated: AugmentedEvent; + /** + * A `collection` was created. + **/ + Created: AugmentedEvent; + /** + * A `collection` was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * A `collection` was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * An `item` was issued. + **/ + Issued: AugmentedEvent; + /** + * A new approval to modify item attributes was added. + **/ + ItemAttributesApprovalAdded: AugmentedEvent; + /** + * A new approval to modify item attributes was removed. + **/ + ItemAttributesApprovalRemoved: AugmentedEvent; + /** + * An item was bought. + **/ + ItemBought: AugmentedEvent; + /** + * Metadata has been cleared for an item. + **/ + ItemMetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an item. + **/ + ItemMetadataSet: AugmentedEvent; + /** + * The price for the item was removed. + **/ + ItemPriceRemoved: AugmentedEvent; + /** + * The price was set for the item. + **/ + ItemPriceSet: AugmentedEvent], { collection: u32, item: u32, price: u128, whitelistedBuyer: Option }>; + /** + * `item` metadata or attributes were locked. + **/ + ItemPropertiesLocked: AugmentedEvent; + /** + * An `item` became non-transferable. + **/ + ItemTransferLocked: AugmentedEvent; + /** + * An `item` became transferable. + **/ + ItemTransferUnlocked: AugmentedEvent; + /** + * Event gets emitted when the `NextCollectionId` gets incremented. + **/ + NextCollectionIdIncremented: AugmentedEvent], { nextId: Option }>; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * Ownership acceptance has changed for an account. + **/ + OwnershipAcceptanceChanged: AugmentedEvent], { who: AccountId32, maybeCollection: Option }>; + /** + * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` + * within that `collection`. + **/ + PalletAttributeSet: AugmentedEvent, attribute: PalletNftsPalletAttributes, value: Bytes], { collection: u32, item: Option, attribute: PalletNftsPalletAttributes, value: Bytes }>; + /** + * New attributes have been set for an `item` of the `collection`. + **/ + PreSignedAttributesSet: AugmentedEvent; + /** + * The deposit for a set of `item`s within a `collection` has been updated. + **/ + Redeposited: AugmentedEvent], { collection: u32, successfulItems: Vec }>; + /** + * The swap was cancelled. + **/ + SwapCancelled: AugmentedEvent, price: Option, deadline: u32], { offeredCollection: u32, offeredItem: u32, desiredCollection: u32, desiredItem: Option, price: Option, deadline: u32 }>; + /** + * The swap has been claimed. + **/ + SwapClaimed: AugmentedEvent, deadline: u32], { sentCollection: u32, sentItem: u32, sentItemOwner: AccountId32, receivedCollection: u32, receivedItem: u32, receivedItemOwner: AccountId32, price: Option, deadline: u32 }>; + /** + * An `item` swap intent was created. + **/ + SwapCreated: AugmentedEvent, price: Option, deadline: u32], { offeredCollection: u32, offeredItem: u32, desiredCollection: u32, desiredItem: Option, price: Option, deadline: u32 }>; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent, admin: Option, freezer: Option], { collection: u32, issuer: Option, admin: Option, freezer: Option }>; + /** + * A tip was sent. + **/ + TipSent: AugmentedEvent; + /** + * An `item` of a `collection` has been approved by the `owner` for transfer by + * a `delegate`. + **/ + TransferApproved: AugmentedEvent], { collection: u32, item: u32, owner: AccountId32, delegate: AccountId32, deadline: Option }>; + /** + * An `item` was transferred. + **/ + Transferred: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + parachainSystem: { + /** + * Downward messages were processed using the given weight. + **/ + DownwardMessagesProcessed: AugmentedEvent; + /** + * Some downward messages have been received and will be processed. + **/ + DownwardMessagesReceived: AugmentedEvent; + /** + * An upward message was sent to the relay chain. + **/ + UpwardMessageSent: AugmentedEvent], { messageHash: Option }>; + /** + * The validation function was applied as of the contained relay chain block number. + **/ + ValidationFunctionApplied: AugmentedEvent; + /** + * The relay-chain aborted the upgrade process. + **/ + ValidationFunctionDiscarded: AugmentedEvent; + /** + * The validation function has been scheduled to apply. + **/ + ValidationFunctionStored: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + polkadotXcm: { + /** + * Some assets have been claimed from an asset trap + **/ + AssetsClaimed: AugmentedEvent; + /** + * Some assets have been placed in an asset trap. + **/ + AssetsTrapped: AugmentedEvent; + /** + * Execution of an XCM message was attempted. + **/ + Attempted: AugmentedEvent; + /** + * Fees were paid from a location for an operation (often for using `SendXcm`). + **/ + FeesPaid: AugmentedEvent; + /** + * 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: AugmentedEvent], { origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option }>; + /** + * 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: AugmentedEvent; + /** + * 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: AugmentedEvent], { origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option }>; + /** + * 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: AugmentedEvent; + /** + * Query response has been received and query is removed. The registered notification has + * been dispatched and executed successfully. + **/ + Notified: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * Query response has been received and query is removed. There was a general error with + * dispatching the notification call. + **/ + NotifyDispatchError: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * A given location which had a version change subscription was dropped owing to an error + * migrating the location to our new XCM format. + **/ + NotifyTargetMigrationFail: AugmentedEvent; + /** + * A given location which had a version change subscription was dropped owing to an error + * sending the notification to it. + **/ + NotifyTargetSendFail: AugmentedEvent; + /** + * Query response has been received and is ready for taking with `take_response`. There is + * no registered notification call. + **/ + ResponseReady: AugmentedEvent; + /** + * Received query response has been read and removed. + **/ + ResponseTaken: AugmentedEvent; + /** + * A XCM message was sent. + **/ + Sent: AugmentedEvent; + /** + * The supported version of a location has been changed. This might be through an + * automatic notification or a manual intervention. + **/ + SupportedVersionChanged: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * An XCM version change notification message has been attempted to be sent. + * + * The cost of sending it (borne by the chain) is included. + **/ + VersionChangeNotified: AugmentedEvent; + /** + * A XCM version migration finished. + **/ + VersionMigrationFinished: AugmentedEvent; + /** + * We have requested that a remote chain send us XCM version change notifications. + **/ + VersionNotifyRequested: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * We have requested that a remote chain stops sending us XCM version change + * notifications. + **/ + VersionNotifyUnrequested: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + poolAssets: { + /** + * Accounts were destroyed for given asset. + **/ + AccountsDestroyed: AugmentedEvent; + /** + * An approval for account `delegate` was cancelled by `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * Approvals were destroyed for given asset. + **/ + ApprovalsDestroyed: AugmentedEvent; + /** + * (Additional) funds have been approved for transfer to a destination account. + **/ + ApprovedTransfer: AugmentedEvent; + /** + * Some asset `asset_id` was frozen. + **/ + AssetFrozen: AugmentedEvent; + /** + * The min_balance of an asset has been updated by the asset owner. + **/ + AssetMinBalanceChanged: AugmentedEvent; + /** + * An asset has had its attributes changed by the `Force` origin. + **/ + AssetStatusChanged: AugmentedEvent; + /** + * Some asset `asset_id` was thawed. + **/ + AssetThawed: AugmentedEvent; + /** + * Some account `who` was blocked. + **/ + Blocked: AugmentedEvent; + /** + * Some assets were destroyed. + **/ + Burned: AugmentedEvent; + /** + * Some asset class was created. + **/ + Created: AugmentedEvent; + /** + * Some assets were deposited (e.g. for transaction fees). + **/ + Deposited: AugmentedEvent; + /** + * An asset class was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * An asset class is in the process of being destroyed. + **/ + DestructionStarted: AugmentedEvent; + /** + * Some asset class was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * Some account `who` was frozen. + **/ + Frozen: AugmentedEvent; + /** + * Some assets were issued. + **/ + Issued: AugmentedEvent; + /** + * Metadata has been cleared for an asset. + **/ + MetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an asset. + **/ + MetadataSet: AugmentedEvent; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent; + /** + * Some account `who` was thawed. + **/ + Thawed: AugmentedEvent; + /** + * Some account `who` was created with a deposit from `depositor`. + **/ + Touched: AugmentedEvent; + /** + * Some assets were transferred. + **/ + Transferred: AugmentedEvent; + /** + * An `amount` was transferred in its entirety from `owner` to `destination` by + * the approved `delegate`. + **/ + TransferredApproved: AugmentedEvent; + /** + * Some assets were withdrawn from the account (e.g. for transaction fees). + **/ + Withdrawn: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + proxy: { + /** + * An announcement was placed to make a call in the future. + **/ + Announced: AugmentedEvent; + /** + * A proxy was added. + **/ + ProxyAdded: AugmentedEvent; + /** + * A proxy was executed correctly, with the given. + **/ + ProxyExecuted: AugmentedEvent], { result: Result }>; + /** + * A proxy was removed. + **/ + ProxyRemoved: AugmentedEvent; + /** + * A pure account has been created by new proxy with given + * disambiguation index and proxy type. + **/ + PureCreated: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + session: { + /** + * New session has happened. Note that the argument is the session index, not the + * block number as the type might suggest. + **/ + NewSession: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + system: { + /** + * `:code` was updated. + **/ + CodeUpdated: AugmentedEvent; + /** + * An extrinsic failed. + **/ + ExtrinsicFailed: AugmentedEvent; + /** + * An extrinsic completed successfully. + **/ + ExtrinsicSuccess: AugmentedEvent; + /** + * An account was reaped. + **/ + KilledAccount: AugmentedEvent; + /** + * A new account was created. + **/ + NewAccount: AugmentedEvent; + /** + * On on-chain remark happened. + **/ + Remarked: AugmentedEvent; + /** + * An upgrade was authorized. + **/ + UpgradeAuthorized: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + transactionPayment: { + /** + * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, + * has been paid by `who`. + **/ + TransactionFeePaid: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + uniques: { + /** + * An approval for a `delegate` account to transfer the `item` of an item + * `collection` was cancelled by its `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * An `item` of a `collection` has been approved by the `owner` for transfer by + * a `delegate`. + **/ + ApprovedTransfer: AugmentedEvent; + /** + * Attribute metadata has been cleared for a `collection` or `item`. + **/ + AttributeCleared: AugmentedEvent, key: Bytes], { collection: u32, maybeItem: Option, key: Bytes }>; + /** + * New attribute metadata has been set for a `collection` or `item`. + **/ + AttributeSet: AugmentedEvent, key: Bytes, value: Bytes], { collection: u32, maybeItem: Option, key: Bytes, value: Bytes }>; + /** + * An `item` was destroyed. + **/ + Burned: AugmentedEvent; + /** + * Some `collection` was frozen. + **/ + CollectionFrozen: AugmentedEvent; + /** + * Max supply has been set for a collection. + **/ + CollectionMaxSupplySet: AugmentedEvent; + /** + * Metadata has been cleared for a `collection`. + **/ + CollectionMetadataCleared: AugmentedEvent; + /** + * New metadata has been set for a `collection`. + **/ + CollectionMetadataSet: AugmentedEvent; + /** + * Some `collection` was thawed. + **/ + CollectionThawed: AugmentedEvent; + /** + * A `collection` was created. + **/ + Created: AugmentedEvent; + /** + * A `collection` was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * A `collection` was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * Some `item` was frozen. + **/ + Frozen: AugmentedEvent; + /** + * An `item` was issued. + **/ + Issued: AugmentedEvent; + /** + * An item was bought. + **/ + ItemBought: AugmentedEvent; + /** + * The price for the instance was removed. + **/ + ItemPriceRemoved: AugmentedEvent; + /** + * The price was set for the instance. + **/ + ItemPriceSet: AugmentedEvent], { collection: u32, item: u32, price: u128, whitelistedBuyer: Option }>; + /** + * A `collection` has had its attributes changed by the `Force` origin. + **/ + ItemStatusChanged: AugmentedEvent; + /** + * Metadata has been cleared for an item. + **/ + MetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an item. + **/ + MetadataSet: AugmentedEvent; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * Ownership acceptance has changed for an account. + **/ + OwnershipAcceptanceChanged: AugmentedEvent], { who: AccountId32, maybeCollection: Option }>; + /** + * Metadata has been cleared for an item. + **/ + Redeposited: AugmentedEvent], { collection: u32, successfulItems: Vec }>; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent; + /** + * Some `item` was thawed. + **/ + Thawed: AugmentedEvent; + /** + * An `item` was transferred. + **/ + Transferred: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + utility: { + /** + * Batch of dispatches completed fully with no error. + **/ + BatchCompleted: AugmentedEvent; + /** + * Batch of dispatches completed but has errors. + **/ + BatchCompletedWithErrors: AugmentedEvent; + /** + * Batch of dispatches did not complete fully. Index of first failing dispatch given, as + * well as the error. + **/ + BatchInterrupted: AugmentedEvent; + /** + * A call was dispatched. + **/ + DispatchedAs: AugmentedEvent], { result: Result }>; + /** + * A single item within a Batch of dispatches has completed with no error. + **/ + ItemCompleted: AugmentedEvent; + /** + * A single item within a Batch of dispatches has completed with error. + **/ + ItemFailed: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + vesting: { + /** + * An \[account\] has become fully vested. + **/ + VestingCompleted: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + xcmpQueue: { + /** + * An HRMP message was sent to a sibling parachain. + **/ + XcmpMessageSent: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + } // AugmentedEvents +} // declare module diff --git a/packages/api-augment/src/assetHubKusama/query.ts b/packages/api-augment/src/assetHubKusama/query.ts new file mode 100644 index 000000000000..b165e48861c7 --- /dev/null +++ b/packages/api-augment/src/assetHubKusama/query.ts @@ -0,0 +1,964 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/storage'; + +import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types'; +import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; +import type { AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV7AbridgedHostConfiguration, PolkadotPrimitivesV7PersistedValidationData, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, StagingXcmV4Instruction, StagingXcmV4Xcm, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup'; +import type { Observable } from '@polkadot/types/types'; + +export type __AugmentedQuery = AugmentedQuery unknown>; +export type __QueryableStorageEntry = QueryableStorageEntry; + +declare module '@polkadot/api-base/types/storage' { + interface AugmentedQueries { + assetConversion: { + /** + * Stores the `PoolAssetId` that is going to be used for the next lp token. + * This gets incremented whenever a new lp pool is created. + **/ + nextPoolAssetId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + pools: AugmentedQuery | [StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array]) => Observable>, [ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>]> & QueryableStorageEntry]>; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + assets: { + /** + * The holdings of a specific account for a specific asset. + **/ + account: AugmentedQuery Observable>, [u32, AccountId32]> & QueryableStorageEntry; + /** + * 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. + **/ + approvals: AugmentedQuery Observable>, [u32, AccountId32, AccountId32]> & QueryableStorageEntry; + /** + * Details of an asset. + **/ + asset: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Metadata of an asset. + **/ + metadata: AugmentedQuery Observable<{ + readonly deposit: u128; + readonly name: Bytes; + readonly symbol: Bytes; + readonly decimals: u8; + readonly isFrozen: bool; + } & Struct>, [u32]> & QueryableStorageEntry; + /** + * 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. + **/ + nextAssetId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + aura: { + /** + * The current authority set. + **/ + authorities: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The current slot of this block. + * + * This will be set in `on_initialize`. + **/ + currentSlot: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + 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`. + **/ + authorities: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Current slot paired with a number of authored blocks. + * + * Updated on each block initialization. + **/ + slotInfo: AugmentedQuery Observable>>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + authorship: { + /** + * Author of current block. + **/ + author: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + balances: { + /** + * 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. + **/ + account: AugmentedQuery Observable, [AccountId32]> & QueryableStorageEntry; + /** + * Freeze locks on account balances. + **/ + freezes: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * Holds on account balances. + **/ + holds: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * The total units of outstanding deactivated balance in the system. + **/ + inactiveIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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/` + **/ + locks: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * Named reserves on some account balances. + * + * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` + **/ + reserves: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * The total units issued in the system. + **/ + totalIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + collatorSelection: { + /** + * Fixed amount to deposit to become a collator. + * + * When a collator calls `leave_intent` they immediately receive the deposit back. + **/ + candidacyBond: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + candidateList: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Desired number of candidates. + * + * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct. + **/ + desiredCandidates: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The invulnerable, permissioned collators. This list must be sorted. + **/ + invulnerables: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Last block authored by collator. + **/ + lastAuthoredBlock: AugmentedQuery Observable, [AccountId32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + foreignAssets: { + /** + * The holdings of a specific account for a specific asset. + **/ + account: AugmentedQuery Observable>, [StagingXcmV3MultiLocation, AccountId32]> & QueryableStorageEntry; + /** + * 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. + **/ + approvals: AugmentedQuery Observable>, [StagingXcmV3MultiLocation, AccountId32, AccountId32]> & QueryableStorageEntry; + /** + * Details of an asset. + **/ + asset: AugmentedQuery Observable>, [StagingXcmV3MultiLocation]> & QueryableStorageEntry; + /** + * Metadata of an asset. + **/ + metadata: AugmentedQuery Observable<{ + readonly deposit: u128; + readonly name: Bytes; + readonly symbol: Bytes; + readonly decimals: u8; + readonly isFrozen: bool; + } & Struct>, [StagingXcmV3MultiLocation]> & QueryableStorageEntry; + /** + * 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. + **/ + nextAssetId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + messageQueue: { + /** + * The index of the first and last (non-empty) pages. + **/ + bookStateFor: AugmentedQuery Observable, [CumulusPrimitivesCoreAggregateMessageOrigin]> & QueryableStorageEntry; + /** + * The map of page indices to pages. + **/ + pages: AugmentedQuery Observable>, [CumulusPrimitivesCoreAggregateMessageOrigin, u32]> & QueryableStorageEntry; + /** + * The origin at which we should begin servicing. + **/ + serviceHead: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + multisig: { + /** + * The set of open multisig operations. + **/ + multisigs: AugmentedQuery Observable>, [AccountId32, U8aFixed]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + nftFractionalization: { + /** + * Keeps track of the corresponding NFT ID, asset ID and amount minted. + **/ + nftToAsset: AugmentedQuery | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>, [ITuple<[u32, u32]>]> & QueryableStorageEntry]>; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + nfts: { + /** + * The items held by any given account; set out this way so that items owned by a single + * account can be enumerated. + **/ + account: AugmentedQuery Observable>, [AccountId32, u32, u32]> & QueryableStorageEntry; + /** + * Attributes of a collection. + **/ + attribute: AugmentedQuery | null | Uint8Array | u32 | AnyNumber, arg3: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable>>, [u32, Option, PalletNftsAttributeNamespace, Bytes]> & QueryableStorageEntry, PalletNftsAttributeNamespace, Bytes]>; + /** + * Details of a collection. + **/ + collection: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * The collections owned by any given account; set out this way so that collections owned by + * a single account can be enumerated. + **/ + collectionAccount: AugmentedQuery Observable>, [AccountId32, u32]> & QueryableStorageEntry; + /** + * Config of a collection. + **/ + collectionConfigOf: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Metadata of a collection. + **/ + collectionMetadataOf: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * The items in existence and their ownership details. + * Stores collection roles as per account. + **/ + collectionRoleOf: AugmentedQuery Observable>, [u32, AccountId32]> & QueryableStorageEntry; + /** + * The items in existence and their ownership details. + **/ + item: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Item attribute approvals. + **/ + itemAttributesApprovalsOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Config of an item. + **/ + itemConfigOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Metadata of an item. + **/ + itemMetadataOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * A price of an item. + **/ + itemPriceOf: AugmentedQuery Observable]>>>, [u32, u32]> & QueryableStorageEntry; + /** + * Stores the `CollectionId` that is going to be used for the next collection. + * This gets incremented whenever a new collection is created. + **/ + nextCollectionId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The collection, if any, of which an account is willing to take ownership. + **/ + ownershipAcceptance: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * Handles all the pending swaps. + **/ + pendingSwapOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainInfo: { + parachainId: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainSystem: { + /** + * 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. + **/ + aggregatedUnincludedSegment: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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`. + **/ + announcedHrmpMessagesPerCandidate: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * A custom head data that should be returned as result of `validate_block`. + * + * See `Pallet::set_custom_validation_head_data` for more information. + **/ + customValidationHeadData: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Were the validation data set to notify the relay chain? + **/ + didSetValidationCode: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + hostConfiguration: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * HRMP messages that were sent in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + hrmpOutboundMessages: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * HRMP watermark that was set in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + hrmpWatermark: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + lastDmqMqcHead: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + lastHrmpMqcHeads: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The relay chain block number associated with the last parachain block. + * + * This is updated in `on_finalize`. + **/ + lastRelayChainBlockNumber: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + newValidationCode: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Upward messages that are still pending and not yet send to the relay chain. + **/ + pendingUpwardMessages: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + pendingValidationCode: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Number of downward messages processed in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + processedDownwardMessages: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + relayStateProof: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + relevantMessagingState: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The weight we reserve at the beginning of the block for processing DMP messages. This + * overrides the amount set in the Config trait. + **/ + reservedDmpWeightOverride: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The weight we reserve at the beginning of the block for processing XCMP messages. This + * overrides the amount set in the Config trait. + **/ + reservedXcmpWeightOverride: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + unincludedSegment: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + upgradeGoAhead: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + upgradeRestrictionSignal: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The factor to multiply the base delivery fee by for UMP. + **/ + upwardDeliveryFeeFactor: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Upward messages that were sent in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + upwardMessages: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + validationData: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + polkadotXcm: { + /** + * 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). + **/ + assetTraps: AugmentedQuery Observable, [H256]> & QueryableStorageEntry; + /** + * The current migration's stage, if any. + **/ + currentMigration: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Fungible assets which we know are locked on this chain. + **/ + lockedFungibles: AugmentedQuery Observable>>>, [AccountId32]> & QueryableStorageEntry; + /** + * The ongoing queries. + **/ + queries: AugmentedQuery Observable>, [u64]> & QueryableStorageEntry; + /** + * The latest available query index. + **/ + queryCounter: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + recordedXcm: AugmentedQuery Observable>>, []> & QueryableStorageEntry; + /** + * Fungible assets which we know are locked on a remote chain. + **/ + remoteLockedFungibles: AugmentedQuery Observable>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry; + /** + * 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. + **/ + safeXcmVersion: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + shouldRecordXcm: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The Latest versions that we know various locations support. + **/ + supportedVersion: AugmentedQuery Observable>, [u32, XcmVersionedLocation]> & QueryableStorageEntry; + /** + * 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. + **/ + versionDiscoveryQueue: AugmentedQuery Observable>>, []> & QueryableStorageEntry; + /** + * All locations that we have requested version notifications from. + **/ + versionNotifiers: AugmentedQuery Observable>, [u32, XcmVersionedLocation]> & QueryableStorageEntry; + /** + * The target locations that are subscribed to our version changes, as well as the most recent + * of our versions we informed them of. + **/ + versionNotifyTargets: AugmentedQuery Observable>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry; + /** + * Global suspension state of the XCM executor. + **/ + xcmExecutionSuspended: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + poolAssets: { + /** + * The holdings of a specific account for a specific asset. + **/ + account: AugmentedQuery Observable>, [u32, AccountId32]> & QueryableStorageEntry; + /** + * 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. + **/ + approvals: AugmentedQuery Observable>, [u32, AccountId32, AccountId32]> & QueryableStorageEntry; + /** + * Details of an asset. + **/ + asset: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Metadata of an asset. + **/ + metadata: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * 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. + **/ + nextAssetId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + proxy: { + /** + * The announcements made by the proxy (key). + **/ + announcements: AugmentedQuery Observable, u128]>>, [AccountId32]> & QueryableStorageEntry; + /** + * 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. + **/ + proxies: AugmentedQuery Observable, u128]>>, [AccountId32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + session: { + /** + * Current index of the session. + **/ + currentIndex: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + disabledValidators: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The owner of a key. The key is the `KeyTypeId` + the encoded key. + **/ + keyOwner: AugmentedQuery | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]> & QueryableStorageEntry]>; + /** + * The next session keys for a validator. + **/ + nextKeys: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * True if the underlying economic identities or weighting behind the validators + * has changed in the queued validator set. + **/ + queuedChanged: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The queued keys for the next session. When the next session begins, these keys + * will be used to determine the validator's session keys. + **/ + queuedKeys: AugmentedQuery Observable>>, []> & QueryableStorageEntry; + /** + * The current set of validators. + **/ + validators: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + system: { + /** + * The full account information for a particular account ID. + **/ + account: AugmentedQuery Observable, [AccountId32]> & QueryableStorageEntry; + /** + * Total length (in bytes) for all extrinsics put together, for the current block. + **/ + allExtrinsicsLen: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * `Some` if a code upgrade has been authorized. + **/ + authorizedUpgrade: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Map of block numbers to block hashes. + **/ + blockHash: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * The current weight for the block. + **/ + blockWeight: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Digest of the current block, also part of the block header. + **/ + digest: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The number of events in the `Events` list. + **/ + eventCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + events: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + eventTopics: AugmentedQuery Observable>>, [H256]> & QueryableStorageEntry; + /** + * The execution phase of the block. + **/ + executionPhase: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Total extrinsics count for the current block. + **/ + extrinsicCount: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Extrinsics data for the current block (maps an extrinsic's index to its data). + **/ + extrinsicData: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * Whether all inherents have been applied. + **/ + inherentsApplied: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. + **/ + lastRuntimeUpgrade: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The current block number being processed. Set by `execute_block`. + **/ + number: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Hash of the previous block. + **/ + parentHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False + * (default) if not. + **/ + upgradedToTripleRefCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. + **/ + upgradedToU32RefCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + timestamp: { + /** + * 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. + **/ + didUpdate: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The current time for the current block. + **/ + now: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + 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. + **/ + bridge: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + transactionPayment: { + nextFeeMultiplier: AugmentedQuery Observable, []> & QueryableStorageEntry; + storageVersion: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + uniques: { + /** + * The items held by any given account; set out this way so that items owned by a single + * account can be enumerated. + **/ + account: AugmentedQuery Observable>, [AccountId32, u32, u32]> & QueryableStorageEntry; + /** + * The items in existence and their ownership details. + **/ + asset: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Attributes of a collection. + **/ + attribute: AugmentedQuery | null | Uint8Array | u32 | AnyNumber, arg3: Bytes | string | Uint8Array) => Observable>>, [u32, Option, Bytes]> & QueryableStorageEntry, Bytes]>; + /** + * Details of a collection. + **/ + class: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * The collections owned by any given account; set out this way so that collections owned by + * a single account can be enumerated. + **/ + classAccount: AugmentedQuery Observable>, [AccountId32, u32]> & QueryableStorageEntry; + /** + * Metadata of a collection. + **/ + classMetadataOf: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Keeps track of the number of items a collection might have. + **/ + collectionMaxSupply: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Metadata of an item. + **/ + instanceMetadataOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Price of an asset instance. + **/ + itemPriceOf: AugmentedQuery Observable]>>>, [u32, u32]> & QueryableStorageEntry; + /** + * The collection, if any, of which an account is willing to take ownership. + **/ + ownershipAcceptance: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + vesting: { + /** + * Storage version of the pallet. + * + * New networks start with latest version, as determined by the genesis build. + **/ + storageVersion: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Information regarding the vesting of a given account. + **/ + vesting: AugmentedQuery Observable>>, [AccountId32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + xcmpQueue: { + /** + * The factor to multiply the base delivery fee by. + **/ + deliveryFeeFactor: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * 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. + **/ + inboundXcmpSuspended: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The messages outbound in a given XCMP channel. + **/ + outboundXcmpMessages: AugmentedQuery Observable, [u32, u16]> & QueryableStorageEntry; + /** + * 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. + **/ + outboundXcmpStatus: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The configuration which controls the dynamics of the outbound queue. + **/ + queueConfig: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. + **/ + queueSuspended: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Any signal messages waiting to be sent. + **/ + signalMessages: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + } // AugmentedQueries +} // declare module diff --git a/packages/api-augment/src/assetHubKusama/runtime.ts b/packages/api-augment/src/assetHubKusama/runtime.ts new file mode 100644 index 000000000000..6966c479e373 --- /dev/null +++ b/packages/api-augment/src/assetHubKusama/runtime.ts @@ -0,0 +1,313 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/calls'; + +import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; +import type { Bytes, Null, Option, Result, Text, Vec, bool, u128, u32 } from '@polkadot/types-codec'; +import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; +import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; +import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; +import type { AccountId32, H256, RuntimeCall, Slot, SlotDuration } from '@polkadot/types/interfaces/runtime'; +import type { AssetHubKusamaRuntimeOriginCaller, AssetsCommonRuntimeApiFungiblesAccessError, CumulusPrimitivesCoreCollationInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; +import type { IExtrinsic, Observable } from '@polkadot/types/types'; + +export type __AugmentedCall = AugmentedCall; +export type __DecoratedCallBase = DecoratedCallBase; + +declare module '@polkadot/api-base/types/calls' { + interface AugmentedCalls { + /** 0xbc9d89904f5b923f/ */ + accountNonceApi: { + /** + * Get current account nonce of given `AccountId`. + **/ + accountNonce: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x8a8047a53a8277ec/ */ + assetConversionApi: { + /** + * Returns the size of the liquidity pool for the given asset pair. + **/ + getReserves: AugmentedCall Observable>>>; + /** + * 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.) + **/ + quotePriceExactTokensForTokens: AugmentedCall Observable>>; + /** + * 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.) + **/ + quotePriceTokensForExactTokens: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xdd718d5cc53262d4/ */ + auraApi: { + /** + * Return the current set of authorities. + **/ + authorities: AugmentedCall Observable>>; + /** + * Returns the slot duration for Aura.,, Currently, only the value provided by this type at genesis will be used. + **/ + slotDuration: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 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. + **/ + canBuildUpon: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x40fe3ad401f8959a/ */ + blockBuilder: { + /** + * Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not. + **/ + applyExtrinsic: AugmentedCall Observable, SpRuntimeTransactionValidityTransactionValidityError>>>; + /** + * Check that the inherents are valid. The inherent data will vary from chain to chain. + **/ + checkInherents: AugmentedCall Observable>; + /** + * Finish the current block. + **/ + finalizeBlock: AugmentedCall Observable>; + /** + * Generate inherent extrinsics. The inherent data will vary from chain to chain. + **/ + inherentExtrinsics: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 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. + **/ + collectCollationInfo: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xdf6acb689907609b/ */ + core: { + /** + * Execute the given block. + **/ + executeBlock: AugmentedCall Observable>; + /** + * Initialize a block with the given header and return the runtime executive mode. + **/ + initializeBlock: AugmentedCall Observable>; + /** + * Returns the version of the runtime. + **/ + version: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x91b1c8b16328eb92/ */ + dryRunApi: { + /** + * Dry run call. + **/ + dryRunCall: AugmentedCall Observable>>; + /** + * Dry run XCM program + **/ + dryRunXcm: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xde92b8a0426b9bf6/ */ + fungiblesApi: { + /** + * Returns the list of all [`Asset`] that an `AccountId` has. + **/ + queryAccountBalances: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 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. + **/ + buildState: AugmentedCall Observable>>; + /** + * 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. + **/ + getPreset: AugmentedCall | null | Uint8Array | Text | string) => Observable>>; + /** + * 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. + **/ + presetNames: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x9ffb505aa738d69c/ */ + locationToAccountApi: { + /** + * Converts `Location` to `AccountId`. + **/ + convertLocation: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x37e397fc7c91f5e4/ */ + metadata: { + /** + * Returns the metadata of a runtime. + **/ + metadata: AugmentedCall Observable>; + /** + * 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. + **/ + metadataAtVersion: AugmentedCall Observable>>; + /** + * Returns the supported metadata versions.,, This can be used to call `metadata_at_version`. + **/ + metadataVersions: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xf78b278be53f454c/ */ + offchainWorkerApi: { + /** + * Starts the off-chain task for given block header. + **/ + offchainWorker: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xab3c0572291feb8b/ */ + sessionKeys: { + /** + * Decode the given public session keys.,, Returns the list of public raw public keys + key type. + **/ + decodeSessionKeys: AugmentedCall Observable>>>>; + /** + * 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. + **/ + generateSessionKeys: AugmentedCall | null | Uint8Array | Bytes | string) => Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 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. + **/ + validateTransaction: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x37c8bb1350a9a2a8/ */ + transactionPaymentApi: { + /** + * + **/ + queryFeeDetails: AugmentedCall Observable>; + /** + * + **/ + queryInfo: AugmentedCall Observable>; + /** + * + **/ + queryLengthToFee: AugmentedCall Observable>; + /** + * + **/ + queryWeightToFee: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xf3ff14d5ab527059/ */ + transactionPaymentCallApi: { + /** + * Query fee details of a given encoded `Call`. + **/ + queryCallFeeDetails: AugmentedCall Observable>; + /** + * Query information of a dispatch class, weight, and fee of a given encoded `Call`. + **/ + queryCallInfo: AugmentedCall Observable>; + /** + * Query the output of the current `LengthToFee` given some input. + **/ + queryLengthToFee: AugmentedCall Observable>; + /** + * Query the output of the current `WeightToFee` given some input. + **/ + queryWeightToFee: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x6ff52ee858e6c5bd/ */ + xcmPaymentApi: { + /** + * Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version. + **/ + queryAcceptablePaymentAssets: AugmentedCall Observable, XcmRuntimeApisFeesError>>>; + /** + * 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. + **/ + queryDeliveryFees: AugmentedCall Observable>>; + /** + * Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`. + **/ + queryWeightToAssetFee: AugmentedCall Observable>>; + /** + * Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`. + **/ + queryXcmWeight: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + } // AugmentedCalls +} // declare module diff --git a/packages/api-augment/src/assetHubKusama/tx.ts b/packages/api-augment/src/assetHubKusama/tx.ts new file mode 100644 index 000000000000..5d498cc43aea --- /dev/null +++ b/packages/api-augment/src/assetHubKusama/tx.ts @@ -0,0 +1,3941 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/submittable'; + +import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types'; +import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime'; +import type { AssetHubKusamaRuntimeOriginCaller, AssetHubKusamaRuntimeProxyType, AssetHubKusamaRuntimeSessionKeys, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, PalletBalancesAdjustmentDirection, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV3MultiLocation, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; + +export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; +export type __SubmittableExtrinsic = SubmittableExtrinsic; +export type __SubmittableExtrinsicFunction = SubmittableExtrinsicFunction; + +declare module '@polkadot/api-base/types/submittable' { + interface AugmentedSubmittables { + assetConversion: { + /** + * 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. + **/ + addLiquidity: AugmentedSubmittable<(asset1: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, amount1Desired: u128 | AnyNumber | Uint8Array, amount2Desired: u128 | AnyNumber | Uint8Array, amount1Min: u128 | AnyNumber | Uint8Array, amount2Min: u128 | AnyNumber | Uint8Array, mintTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, StagingXcmV3MultiLocation, u128, u128, u128, u128, AccountId32]>; + /** + * 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. + **/ + createPool: AugmentedSubmittable<(asset1: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + removeLiquidity: AugmentedSubmittable<(asset1: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, lpTokenBurn: u128 | AnyNumber | Uint8Array, amount1MinReceive: u128 | AnyNumber | Uint8Array, amount2MinReceive: u128 | AnyNumber | Uint8Array, withdrawTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, StagingXcmV3MultiLocation, u128, u128, u128, 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. + **/ + swapExactTokensForTokens: AugmentedSubmittable<(path: Vec | (StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array)[], amountIn: u128 | AnyNumber | Uint8Array, amountOutMin: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Vec, u128, u128, AccountId32, bool]>; + /** + * 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. + **/ + swapTokensForExactTokens: AugmentedSubmittable<(path: Vec | (StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array)[], amountOut: u128 | AnyNumber | Uint8Array, amountInMax: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Vec, u128, u128, AccountId32, bool]>; + /** + * 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. + **/ + touch: AugmentedSubmittable<(asset1: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + assets: { + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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)` + **/ + block: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * 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`. + **/ + burn: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, u128]>; + /** + * 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. + **/ + destroyAccounts: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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. + **/ + destroyApprovals: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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. + **/ + finishDestroy: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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)` + **/ + forceAssetStatus: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array, isSufficient: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress, MultiAddress, MultiAddress, Compact, bool, bool]>; + /** + * 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)` + **/ + forceCancelApproval: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress]>; + /** + * 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)` + **/ + forceClearMetadata: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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)` + **/ + forceCreate: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, isSufficient: bool | boolean | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, bool, Compact]>; + /** + * 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. + **/ + forceSetMetadata: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, Bytes, Bytes, u8, bool]>; + /** + * 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`. + **/ + forceTransfer: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress, Compact]>; + /** + * 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)` + **/ + freeze: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, 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)` + **/ + freezeAsset: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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`. + **/ + mint: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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. + **/ + refund: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, bool]>; + /** + * 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. + **/ + refundOther: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, 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)` + **/ + setMetadata: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, Bytes, Bytes, u8]>; + /** + * 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. + **/ + setMinBalance: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, u128]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress, MultiAddress]>; + /** + * 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`. + **/ + startDestroy: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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)` + **/ + thaw: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * 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)` + **/ + thawAsset: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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. + **/ + touch: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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. + **/ + touchOther: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * 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`. + **/ + transfer: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferApproved: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, destination: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress, Compact]>; + /** + * 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`. + **/ + transferKeepAlive: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + balances: { + /** + * 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_. + **/ + burn: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, bool]>; + /** + * Adjust the total issuance in a saturating way. + * + * Can only be called by root and always needs a positive `delta`. + * + * # Example + **/ + forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [PalletBalancesAdjustmentDirection, Compact]>; + /** + * Set the regular balance of a given account. + * + * The dispatch origin for this call is `root`. + **/ + forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; + /** + * Exactly as `transfer_allow_death`, except the origin must be root and the source account + * may be specified. + **/ + forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, Compact]>; + /** + * Unreserve some balance from a user by force. + * + * Can only be called by ROOT. + **/ + forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, u128]>; + /** + * 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). + **/ + transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [MultiAddress, bool]>; + /** + * 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. + **/ + transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; + /** + * 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 + **/ + transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; + /** + * 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). + **/ + upgradeAccounts: AugmentedSubmittable<(who: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + collatorSelection: { + /** + * 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`. + **/ + addInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must + * be sorted. + * + * The origin for this call must be the `UpdateOrigin`. + **/ + removeInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; + /** + * 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`. + **/ + setCandidacyBond: AugmentedSubmittable<(bond: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u128]>; + /** + * 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`. + **/ + setDesiredCandidates: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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`. + **/ + setInvulnerables: AugmentedSubmittable<(updated: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * 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. + **/ + takeCandidateSlot: AugmentedSubmittable<(deposit: u128 | AnyNumber | Uint8Array, target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [u128, 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. + **/ + updateBond: AugmentedSubmittable<(newDeposit: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u128]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + cumulusXcm: { + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + foreignAssets: { + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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)` + **/ + block: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * 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`. + **/ + burn: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, u128]>; + /** + * 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. + **/ + destroyAccounts: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + destroyApprovals: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + finishDestroy: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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)` + **/ + forceAssetStatus: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array, isSufficient: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress, MultiAddress, MultiAddress, Compact, bool, bool]>; + /** + * 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)` + **/ + forceCancelApproval: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress]>; + /** + * 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)` + **/ + forceClearMetadata: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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)` + **/ + forceCreate: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, isSufficient: bool | boolean | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, bool, Compact]>; + /** + * 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. + **/ + forceSetMetadata: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, Bytes, Bytes, u8, bool]>; + /** + * 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`. + **/ + forceTransfer: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress, Compact]>; + /** + * 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)` + **/ + freeze: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, 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)` + **/ + freezeAsset: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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`. + **/ + mint: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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. + **/ + refund: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, bool]>; + /** + * 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. + **/ + refundOther: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, 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)` + **/ + setMetadata: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, Bytes, Bytes, u8]>; + /** + * 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. + **/ + setMinBalance: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, u128]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress, MultiAddress]>; + /** + * 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`. + **/ + startDestroy: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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)` + **/ + thaw: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * 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)` + **/ + thawAsset: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + touch: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + touchOther: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * 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`. + **/ + transfer: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferApproved: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, destination: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress, Compact]>; + /** + * 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`. + **/ + transferKeepAlive: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + messageQueue: { + /** + * 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). + **/ + executeOverweight: AugmentedSubmittable<(messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin | { Here: any } | { Parent: any } | { Sibling: any } | string | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesCoreAggregateMessageOrigin, u32, u32, SpWeightsWeightV2Weight]>; + /** + * Remove a page which has no more messages remaining to be processed or is stale. + **/ + reapPage: AugmentedSubmittable<(messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin | { Here: any } | { Parent: any } | { Sibling: any } | string | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesCoreAggregateMessageOrigin, u32]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + multisig: { + /** + * 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`. + **/ + approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, Option, U8aFixed, 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`. + * + * 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`. + **/ + asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: Call | IMethod | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, Option, Call, SpWeightsWeightV2Weight]>; + /** + * 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. + **/ + asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, Call]>; + /** + * 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. + **/ + cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, PalletMultisigTimepoint, U8aFixed]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + 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. + **/ + fractionalize: AugmentedSubmittable<(nftCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, assetId: u32 | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, fractions: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u32, MultiAddress, u128]>; + /** + * 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. + **/ + unify: AugmentedSubmittable<(nftCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, assetId: u32 | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, u32, MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + nfts: { + /** + * 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. + **/ + approveItemAttributes: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress]>; + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, maybeDeadline: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [u32, u32, MultiAddress, Option]>; + /** + * 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)` + **/ + burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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. + **/ + buyItem: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, bidPrice: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u128]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, 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. + **/ + cancelItemAttributesApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witness: PalletNftsCancelAttributesApprovalWitness | { accountAttributes?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress, PalletNftsCancelAttributesApprovalWitness]>; + /** + * 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. + **/ + cancelSwap: AugmentedSubmittable<(offeredCollection: u32 | AnyNumber | Uint8Array, offeredItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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. + **/ + claimSwap: AugmentedSubmittable<(sendCollection: u32 | AnyNumber | Uint8Array, sendItem: u32 | AnyNumber | Uint8Array, receiveCollection: u32 | AnyNumber | Uint8Array, receiveItem: u32 | AnyNumber | Uint8Array, witnessPrice: Option | null | Uint8Array | PalletNftsPriceWithDirection | { amount?: any; direction?: any } | string) => SubmittableExtrinsic, [u32, u32, u32, u32, Option]>; + /** + * 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)` + **/ + clearAllTransferApprovals: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, PalletNftsAttributeNamespace, 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)` + **/ + clearCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, config: PalletNftsCollectionConfig | { settings?: any; maxSupply?: any; mintSettings?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletNftsCollectionConfig]>; + /** + * 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. + **/ + createSwap: AugmentedSubmittable<(offeredCollection: u32 | AnyNumber | Uint8Array, offeredItem: u32 | AnyNumber | Uint8Array, desiredCollection: u32 | AnyNumber | Uint8Array, maybeDesiredItem: Option | null | Uint8Array | u32 | AnyNumber, maybePrice: Option | null | Uint8Array | PalletNftsPriceWithDirection | { amount?: any; direction?: any } | string, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u32, Option, Option, u32]>; + /** + * 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` + **/ + destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletNftsDestroyWitness | { itemMetadatas?: any; itemConfigs?: any; attributes?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletNftsDestroyWitness]>; + /** + * 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)` + **/ + forceCollectionConfig: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, config: PalletNftsCollectionConfig | { settings?: any; maxSupply?: any; mintSettings?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletNftsCollectionConfig]>; + /** + * 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)` + **/ + forceCollectionOwner: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, 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. + * + * - `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)` + **/ + forceCreate: AugmentedSubmittable<(owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, config: PalletNftsCollectionConfig | { settings?: any; maxSupply?: any; mintSettings?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletNftsCollectionConfig]>; + /** + * 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)` + **/ + forceMint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, itemConfig: PalletNftsItemConfig | { settings?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress, PalletNftsItemConfig]>; + /** + * 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)` + **/ + forceSetAttribute: AugmentedSubmittable<(setAs: Option | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Option, u32, Option, PalletNftsAttributeNamespace, Bytes, Bytes]>; + /** + * 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)` + **/ + lockCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, lockSettings: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u64]>; + /** + * 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)` + **/ + lockItemProperties: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, lockMetadata: bool | boolean | Uint8Array, lockAttributes: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, u32, bool, bool]>; + /** + * 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)` + **/ + lockItemTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witnessData: Option | null | Uint8Array | PalletNftsMintWitness | { ownedItem?: any; mintPrice?: any } | string) => SubmittableExtrinsic, [u32, u32, MultiAddress, Option]>; + /** + * 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. + **/ + mintPreSigned: AugmentedSubmittable<(mintData: PalletNftsPreSignedMint | { collection?: any; item?: any; attributes?: any; metadata?: any; onlyAccount?: any; deadline?: any; mintPrice?: any } | string | Uint8Array, signature: SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [PalletNftsPreSignedMint, SpRuntimeMultiSignature, AccountId32]>; + /** + * Allows to pay the tips. + * + * Origin must be Signed. + * + * - `tips`: Tips array. + * + * Emits `TipSent` on every tip transfer. + **/ + payTips: AugmentedSubmittable<(tips: Vec | (PalletNftsItemTip | { collection?: any; item?: any; receiver?: any; amount?: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * 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())` + **/ + redeposit: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, items: Vec | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; + /** + * 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`. + **/ + setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * 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)` + **/ + setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, PalletNftsAttributeNamespace, Bytes, Bytes]>; + /** + * 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. + **/ + setAttributesPreSigned: AugmentedSubmittable<(data: PalletNftsPreSignedAttributes | { collection?: any; item?: any; attributes?: any; namespace?: any; deadline?: any } | string | Uint8Array, signature: SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [PalletNftsPreSignedAttributes, SpRuntimeMultiSignature, AccountId32]>; + /** + * 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. + **/ + setCollectionMaxSupply: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maxSupply: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + setCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Bytes]>; + /** + * 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)` + **/ + setMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Bytes]>; + /** + * 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`. + **/ + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string, admin: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string, freezer: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, Option, Option, Option]>; + /** + * 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)` + **/ + transfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, newOwner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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)` + **/ + unlockItemTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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. + **/ + updateMintSettings: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, mintSettings: PalletNftsMintSettings | { mintType?: any; price?: any; startBlock?: any; endBlock?: any; defaultItemSettings?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletNftsMintSettings]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainInfo: { + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainSystem: { + /** + * 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. + **/ + authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array, checkVersion: bool | boolean | Uint8Array) => SubmittableExtrinsic, [H256, bool]>; + /** + * 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. + **/ + enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * 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. + **/ + setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | { validationData?: any; relayChainState?: any; downwardMessages?: any; horizontalMessages?: any } | string | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesParachainInherentParachainInherentData]>; + sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + polkadotXcm: { + /** + * 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. + **/ + claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedAssets, XcmVersionedLocation]>; + /** + * 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. + **/ + execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedXcm, SpWeightsWeightV2Weight]>; + /** + * 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. + **/ + forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * 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. + **/ + forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation]>; + /** + * 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. + **/ + forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic, [bool]>; + /** + * 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. + **/ + forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation]>; + /** + * 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. + **/ + forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV4Location, u32]>; + /** + * 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. + **/ + limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, 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. + **/ + limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>; + /** + * 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. + **/ + reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>; + send: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, 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. + **/ + teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>; + /** + * 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. + **/ + transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>; + /** + * 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. + **/ + transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + poolAssets: { + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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)` + **/ + block: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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`. + **/ + burn: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, u128]>; + /** + * 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. + **/ + destroyAccounts: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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. + **/ + destroyApprovals: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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. + **/ + finishDestroy: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + forceAssetStatus: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array, isSufficient: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, MultiAddress, MultiAddress, Compact, bool, bool]>; + /** + * 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)` + **/ + forceCancelApproval: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress]>; + /** + * 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)` + **/ + forceClearMetadata: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + forceCreate: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, isSufficient: bool | boolean | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, bool, Compact]>; + /** + * 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. + **/ + forceSetMetadata: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, Bytes, Bytes, u8, bool]>; + /** + * 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`. + **/ + forceTransfer: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, Compact]>; + /** + * 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)` + **/ + freeze: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, 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)` + **/ + freezeAsset: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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`. + **/ + mint: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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. + **/ + refund: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, bool]>; + /** + * 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. + **/ + refundOther: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, 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)` + **/ + setMetadata: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Bytes, Bytes, u8]>; + /** + * 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. + **/ + setMinBalance: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u128]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, MultiAddress]>; + /** + * 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`. + **/ + startDestroy: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + thaw: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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)` + **/ + thawAsset: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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. + **/ + touch: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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. + **/ + touchOther: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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`. + **/ + transfer: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferApproved: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, destination: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, Compact]>; + /** + * 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`. + **/ + transferKeepAlive: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + proxy: { + /** + * 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. + **/ + addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, AssetHubKusamaRuntimeProxyType, u32]>; + /** + * 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. + **/ + announce: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, H256]>; + /** + * 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. + **/ + createPure: AugmentedSubmittable<(proxyType: AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [AssetHubKusamaRuntimeProxyType, u32, u16]>; + /** + * 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. + **/ + killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact | AnyNumber | Uint8Array, extIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, AssetHubKusamaRuntimeProxyType, u16, Compact, Compact]>; + /** + * 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. + **/ + proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option | null | Uint8Array | AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Option, Call]>; + /** + * 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. + **/ + proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option | null | Uint8Array | AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, Option, Call]>; + /** + * 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. + **/ + rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, 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. + **/ + removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, H256]>; + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * 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. + **/ + removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, AssetHubKusamaRuntimeProxyType, u32]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + session: { + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * 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. + **/ + setKeys: AugmentedSubmittable<(keys: AssetHubKusamaRuntimeSessionKeys | { aura?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic, [AssetHubKusamaRuntimeSessionKeys, Bytes]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + system: { + /** + * 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. + **/ + applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied + * later. + * + * This call requires Root origin. + **/ + authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [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. + **/ + authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; + /** + * 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. + **/ + killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Bytes, u32]>; + /** + * Kill some items from storage. + **/ + killStorage: AugmentedSubmittable<(keys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * Make some on-chain remark. + * + * Can be executed by every `origin`. + **/ + remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Make some on-chain remark and emit event. + **/ + remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Set the new runtime code. + **/ + setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [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! + **/ + setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Set the number of pages in the WebAssembly environment's heap. + **/ + setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u64]>; + /** + * Set some items of storage. + **/ + setStorage: AugmentedSubmittable<(items: Vec> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic, [Vec>]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + 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)`. + **/ + set: AugmentedSubmittable<(now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + toPolkadotXcmRouter: { + /** + * Notification about congested bridge queue. + **/ + reportBridgeStatus: AugmentedSubmittable<(bridgeId: H256 | string | Uint8Array, isCongested: bool | boolean | Uint8Array) => SubmittableExtrinsic, [H256, bool]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + uniques: { + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, 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()`. + **/ + burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, u32, Option]>; + /** + * 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. + **/ + buyItem: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, bidPrice: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u128]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, u32, Option]>; + /** + * 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)` + **/ + clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, Bytes]>; + /** + * 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)` + **/ + clearCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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` + **/ + destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletUniquesDestroyWitness | { items?: any; itemMetadatas?: any; attributes?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletUniquesDestroyWitness]>; + /** + * 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)` + **/ + forceCreate: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, bool]>; + /** + * 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)` + **/ + forceItemStatus: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, MultiAddress, MultiAddress, bool, bool]>; + /** + * 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)` + **/ + freeze: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + freezeCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, 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())` + **/ + redeposit: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, items: Vec | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; + /** + * 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`. + **/ + setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * 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)` + **/ + setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, Bytes, Bytes]>; + /** + * 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. + **/ + setCollectionMaxSupply: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maxSupply: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + setCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, Bytes, bool]>; + /** + * 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)` + **/ + setMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, u32, Bytes, bool]>; + /** + * 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`. + **/ + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, MultiAddress]>; + /** + * 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)` + **/ + thaw: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + thawCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + transfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, newOwner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + utility: { + /** + * 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_. + **/ + asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [u16, Call]>; + /** + * 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. + **/ + batch: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * 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. + **/ + batchAll: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * Dispatches a function call with a provided origin. + * + * The dispatch origin for this call must be _Root_. + * + * ## Complexity + * - O(1). + **/ + dispatchAs: AugmentedSubmittable<(asOrigin: AssetHubKusamaRuntimeOriginCaller | { system: any } | { Void: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [AssetHubKusamaRuntimeOriginCaller, Call]>; + /** + * 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. + **/ + forceBatch: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * 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_. + **/ + withWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [Call, SpWeightsWeightV2Weight]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + vesting: { + /** + * Force remove a vesting schedule + * + * The dispatch origin for this call must be _Root_. + * + * - `target`: An account that has a vesting schedule + * - `schedule_index`: The vesting schedule index that should be removed + **/ + forceRemoveVestingSchedule: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, scheduleIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, u32]>; + /** + * Force a vested transfer. + * + * The dispatch origin for this call must be _Root_. + * + * - `source`: The account whose funds should be transferred. + * - `target`: The account that should be transferred the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. + **/ + forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: PalletVestingVestingInfo | { locked?: any; perBlock?: any; startingBlock?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, PalletVestingVestingInfo]>; + /** + * Merge two vesting schedules together, creating a new vesting schedule that unlocks over + * the highest possible start and end blocks. If both schedules have already started the + * current block will be used as the schedule start; with the caveat that if one schedule + * is finished by the current block, the other will be treated as the new merged schedule, + * unmodified. + * + * NOTE: If `schedule1_index == schedule2_index` this is a no-op. + * NOTE: This will unlock all schedules through the current block prior to merging. + * NOTE: If both schedules have ended by the current block, no new schedule will be created + * and both will be removed. + * + * Merged schedule attributes: + * - `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block, + * current_block)`. + * - `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`. + * - `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`. + * + * The dispatch origin for this call must be _Signed_. + * + * - `schedule1_index`: index of the first schedule to merge. + * - `schedule2_index`: index of the second schedule to merge. + **/ + mergeSchedules: AugmentedSubmittable<(schedule1Index: u32 | AnyNumber | Uint8Array, schedule2Index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * Unlock any vested funds of the sender account. + * + * The dispatch origin for this call must be _Signed_ and the sender must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. + **/ + vest: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Create a vested transfer. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account receiving the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. + **/ + vestedTransfer: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: PalletVestingVestingInfo | { locked?: any; perBlock?: any; startingBlock?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletVestingVestingInfo]>; + /** + * Unlock any vested funds of a `target` account. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account whose vested funds should be unlocked. Must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. + **/ + vestOther: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + xcmpQueue: { + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. + * + * - `origin`: Must pass `ControllerOrigin`. + **/ + suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * 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` + **/ + updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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` + **/ + updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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` + **/ + updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + } // AugmentedSubmittables +} // declare module diff --git a/packages/api-augment/src/assetHubPolkadot/consts.ts b/packages/api-augment/src/assetHubPolkadot/consts.ts new file mode 100644 index 000000000000..108570734b8d --- /dev/null +++ b/packages/api-augment/src/assetHubPolkadot/consts.ts @@ -0,0 +1,564 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/consts'; + +import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; +import type { Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { Codec } from '@polkadot/types-codec/types'; +import type { Permill } from '@polkadot/types/interfaces/runtime'; +import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation } from '@polkadot/types/lookup'; + +export type __AugmentedConst = AugmentedConst; + +declare module '@polkadot/api-base/types/consts' { + interface AugmentedConsts { + assetConversion: { + /** + * A fee to withdraw the liquidity. + **/ + liquidityWithdrawalFee: Permill & AugmentedConst; + /** + * A % the liquidity providers will take of every swap. Represents 10ths of a percent. + **/ + lpFee: u32 & AugmentedConst; + /** + * The max number of hops in a swap. + **/ + maxSwapPathLength: u32 & AugmentedConst; + /** + * The minimum LP token amount that could be minted. Ameliorates rounding errors. + **/ + mintMinLiquidity: u128 & AugmentedConst; + /** + * The pallet's id, used for deriving its sovereign account ID. + **/ + palletId: FrameSupportPalletId & AugmentedConst; + /** + * A one-time fee to setup the pool. + **/ + poolSetupFee: u128 & AugmentedConst; + /** + * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`]. + **/ + poolSetupFeeAsset: StagingXcmV3MultiLocation & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + assets: { + /** + * The amount of funds that must be reserved when creating a new approval. + **/ + approvalDeposit: u128 & AugmentedConst; + /** + * The amount of funds that must be reserved for a non-provider asset account to be + * maintained. + **/ + assetAccountDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an asset. + **/ + assetDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your asset. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes you store in your + * metadata. + **/ + metadataDepositPerByte: u128 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * The maximum length of a name or symbol stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u64 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u128 & AugmentedConst; + /** + * The maximum number of individual freeze locks that can exist on an account at any time. + **/ + maxFreezes: u32 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + foreignAssets: { + /** + * The amount of funds that must be reserved when creating a new approval. + **/ + approvalDeposit: u128 & AugmentedConst; + /** + * The amount of funds that must be reserved for a non-provider asset account to be + * maintained. + **/ + assetAccountDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an asset. + **/ + assetDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your asset. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes you store in your + * metadata. + **/ + metadataDepositPerByte: u128 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * The maximum length of a name or symbol stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u32 & AugmentedConst; + /** + * 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: Option & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * 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: Option & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u128 & AugmentedConst; + /** + * 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: u128 & AugmentedConst; + /** + * The maximum amount of signatories allowed in the multisig. + **/ + maxSignatories: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + nfts: { + /** + * The maximum approvals an item could have. + **/ + approvalsLimit: u32 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding an attribute to an item. + **/ + attributeDepositBase: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for collection. + **/ + collectionDeposit: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes store in metadata, + * either "normal" metadata or attribute metadata. + **/ + depositPerByte: u128 & AugmentedConst; + /** + * Disables some of pallet's features. + **/ + features: u64 & AugmentedConst; + /** + * The maximum attributes approvals an item could have. + **/ + itemAttributesApprovalsLimit: u32 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an item. + **/ + itemDeposit: u128 & AugmentedConst; + /** + * The maximum length of an attribute key. + **/ + keyLimit: u32 & AugmentedConst; + /** + * The max number of attributes a user could set per call. + **/ + maxAttributesPerCall: u32 & AugmentedConst; + /** + * The max duration in blocks for deadlines. + **/ + maxDeadlineDuration: u32 & AugmentedConst; + /** + * The max number of tips a user could send. + **/ + maxTips: u32 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your item. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The maximum length of data stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * The maximum length of an attribute value. + **/ + valueLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + parachainSystem: { + /** + * Returns the parachain ID we are running with. + **/ + selfParaId: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + poolAssets: { + /** + * The amount of funds that must be reserved when creating a new approval. + **/ + approvalDeposit: u128 & AugmentedConst; + /** + * The amount of funds that must be reserved for a non-provider asset account to be + * maintained. + **/ + assetAccountDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an asset. + **/ + assetDeposit: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your asset. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes you store in your + * metadata. + **/ + metadataDepositPerByte: u128 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * The maximum length of a name or symbol stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + proxy: { + /** + * 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: u128 & AugmentedConst; + /** + * 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: u128 & AugmentedConst; + /** + * The maximum amount of time-delayed announcements that are allowed to be pending. + **/ + maxPending: u32 & AugmentedConst; + /** + * The maximum amount of proxies allowed for a single account. + **/ + maxProxies: u32 & AugmentedConst; + /** + * 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: u128 & AugmentedConst; + /** + * 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: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + system: { + /** + * Maximum number of block number to block hash mappings to keep (oldest pruned first). + **/ + blockHashCount: u32 & AugmentedConst; + /** + * The maximum length of a block (in bytes). + **/ + blockLength: FrameSystemLimitsBlockLength & AugmentedConst; + /** + * Block & extrinsics weights: base values and limits. + **/ + blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst; + /** + * The weight of runtime database operations the runtime can invoke. + **/ + dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst; + /** + * 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: u16 & AugmentedConst; + /** + * Get the chain's in-code version. + **/ + version: SpVersionRuntimeVersion & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u64 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + 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: u8 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + uniques: { + /** + * The basic amount of funds that must be reserved when adding an attribute to an item. + **/ + attributeDepositBase: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for collection. + **/ + collectionDeposit: u128 & AugmentedConst; + /** + * The additional funds that must be reserved for the number of bytes store in metadata, + * either "normal" metadata or attribute metadata. + **/ + depositPerByte: u128 & AugmentedConst; + /** + * The basic amount of funds that must be reserved for an item. + **/ + itemDeposit: u128 & AugmentedConst; + /** + * The maximum length of an attribute key. + **/ + keyLimit: u32 & AugmentedConst; + /** + * The basic amount of funds that must be reserved when adding metadata to your item. + **/ + metadataDepositBase: u128 & AugmentedConst; + /** + * The maximum length of data stored on-chain. + **/ + stringLimit: u32 & AugmentedConst; + /** + * The maximum length of an attribute value. + **/ + valueLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + utility: { + /** + * The limit on the number of batched calls. + **/ + batchedCallsLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + vesting: { + maxVestingSchedules: u32 & AugmentedConst; + /** + * The minimum amount transferred to call `vested_transfer`. + **/ + minVestedTransfer: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + xcmpQueue: { + /** + * 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: u32 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * 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: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + } // AugmentedConsts +} // declare module diff --git a/packages/api-augment/src/assetHubPolkadot/errors.ts b/packages/api-augment/src/assetHubPolkadot/errors.ts new file mode 100644 index 000000000000..125adfa23b0d --- /dev/null +++ b/packages/api-augment/src/assetHubPolkadot/errors.ts @@ -0,0 +1,1214 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/errors'; + +import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types'; + +export type __AugmentedError = AugmentedError; + +declare module '@polkadot/api-base/types/errors' { + interface AugmentedErrors { + assetConversion: { + /** + * Provided amount should be greater than or equal to the existential deposit/asset's + * minimal amount. + **/ + AmountOneLessThanMinimal: AugmentedError; + /** + * Desired amount can't be equal to the pool reserve. + **/ + AmountOutTooHigh: AugmentedError; + /** + * Provided amount should be greater than or equal to the existential deposit/asset's + * minimal amount. + **/ + AmountTwoLessThanMinimal: AugmentedError; + /** + * The minimal amount requirement for the first token in the pair wasn't met. + **/ + AssetOneDepositDidNotMeetMinimum: AugmentedError; + /** + * The minimal amount requirement for the first token in the pair wasn't met. + **/ + AssetOneWithdrawalDidNotMeetMinimum: AugmentedError; + /** + * The minimal amount requirement for the second token in the pair wasn't met. + **/ + AssetTwoDepositDidNotMeetMinimum: AugmentedError; + /** + * The minimal amount requirement for the second token in the pair wasn't met. + **/ + AssetTwoWithdrawalDidNotMeetMinimum: AugmentedError; + /** + * The destination account cannot exist with the swapped funds. + **/ + BelowMinimum: AugmentedError; + /** + * It was not possible to get or increment the Id of the pool. + **/ + IncorrectPoolAssetId: AugmentedError; + /** + * Insufficient liquidity minted. + **/ + InsufficientLiquidityMinted: AugmentedError; + /** + * Provided asset pair is not supported for pool. + **/ + InvalidAssetPair: AugmentedError; + /** + * The provided path must consists of 2 assets at least. + **/ + InvalidPath: AugmentedError; + /** + * The provided path must consists of unique assets. + **/ + NonUniquePath: AugmentedError; + /** + * Optimal calculated amount is less than desired. + **/ + OptimalAmountLessThanDesired: AugmentedError; + /** + * An overflow happened. + **/ + Overflow: AugmentedError; + /** + * Pool already exists. + **/ + PoolExists: AugmentedError; + /** + * The pool doesn't exist. + **/ + PoolNotFound: AugmentedError; + /** + * Provided maximum amount is not sufficient for swap. + **/ + ProvidedMaximumNotSufficientForSwap: AugmentedError; + /** + * Calculated amount out is less than provided minimum amount. + **/ + ProvidedMinimumNotSufficientForSwap: AugmentedError; + /** + * Reserve needs to always be greater than or equal to the existential deposit/asset's + * minimal amount. + **/ + ReserveLeftLessThanMinimal: AugmentedError; + /** + * Desired amount can't be zero. + **/ + WrongDesiredAmount: AugmentedError; + /** + * Amount can't be zero. + **/ + ZeroAmount: AugmentedError; + /** + * Requested liquidity can't be zero. + **/ + ZeroLiquidity: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + assets: { + /** + * The asset-account already exists. + **/ + AlreadyExists: AugmentedError; + /** + * The asset is not live, and likely being destroyed. + **/ + AssetNotLive: AugmentedError; + /** + * The asset ID must be equal to the [`NextAssetId`]. + **/ + BadAssetId: AugmentedError; + /** + * Invalid metadata given. + **/ + BadMetadata: AugmentedError; + /** + * Invalid witness data given. + **/ + BadWitness: AugmentedError; + /** + * Account balance must be greater than or equal to the transfer amount. + **/ + BalanceLow: AugmentedError; + /** + * Callback action resulted in error + **/ + CallbackFailed: AugmentedError; + /** + * The origin account is frozen. + **/ + Frozen: AugmentedError; + /** + * The asset status is not the expected status. + **/ + IncorrectStatus: AugmentedError; + /** + * The asset ID is already taken. + **/ + InUse: AugmentedError; + /** + * 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: AugmentedError; + /** + * Minimum balance should be non-zero. + **/ + MinBalanceZero: AugmentedError; + /** + * The account to alter does not exist. + **/ + NoAccount: AugmentedError; + /** + * The asset-account doesn't have an associated deposit. + **/ + NoDeposit: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * The asset should be frozen before the given operation. + **/ + NotFrozen: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * 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: AugmentedError; + /** + * The given asset ID is unknown. + **/ + Unknown: AugmentedError; + /** + * The operation would result in funds being burned. + **/ + WouldBurn: AugmentedError; + /** + * The source account would not survive the transfer and it needs to stay alive. + **/ + WouldDie: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + balances: { + /** + * Beneficiary account must pre-exist. + **/ + DeadAccount: AugmentedError; + /** + * The delta cannot be zero. + **/ + DeltaZero: AugmentedError; + /** + * Value too low to create account due to existential deposit. + **/ + ExistentialDeposit: AugmentedError; + /** + * A vesting schedule already exists for this account. + **/ + ExistingVestingSchedule: AugmentedError; + /** + * Transfer/payment would kill account. + **/ + Expendability: AugmentedError; + /** + * Balance too low to send value. + **/ + InsufficientBalance: AugmentedError; + /** + * The issuance cannot be modified since it is already deactivated. + **/ + IssuanceDeactivated: AugmentedError; + /** + * Account liquidity restrictions prevent withdrawal. + **/ + LiquidityRestrictions: AugmentedError; + /** + * Number of freezes exceed `MaxFreezes`. + **/ + TooManyFreezes: AugmentedError; + /** + * Number of holds exceed `VariantCountOf`. + **/ + TooManyHolds: AugmentedError; + /** + * Number of named reserves exceed `MaxReserves`. + **/ + TooManyReserves: AugmentedError; + /** + * Vesting balance too high to send value. + **/ + VestingBalance: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + collatorSelection: { + /** + * Account is already a candidate. + **/ + AlreadyCandidate: AugmentedError; + /** + * Account is already an Invulnerable. + **/ + AlreadyInvulnerable: AugmentedError; + /** + * New deposit amount would be below the minimum candidacy bond. + **/ + DepositTooLow: AugmentedError; + /** + * The updated deposit amount is equal to the amount already reserved. + **/ + IdenticalDeposit: AugmentedError; + /** + * Could not insert in the candidate list. + **/ + InsertToCandidateListFailed: AugmentedError; + /** + * Deposit amount is too low to take the target's slot in the candidate list. + **/ + InsufficientBond: AugmentedError; + /** + * Cannot lower candidacy bond while occupying a future collator slot in the list. + **/ + InvalidUnreserve: AugmentedError; + /** + * Account has no associated validator ID. + **/ + NoAssociatedValidatorId: AugmentedError; + /** + * Account is not a candidate. + **/ + NotCandidate: AugmentedError; + /** + * Account is not an Invulnerable. + **/ + NotInvulnerable: AugmentedError; + /** + * Could not remove from the candidate list. + **/ + RemoveFromCandidateListFailed: AugmentedError; + /** + * The target account to be replaced in the candidate list is not a candidate. + **/ + TargetIsNotCandidate: AugmentedError; + /** + * Leaving would result in too few candidates. + **/ + TooFewEligibleCollators: AugmentedError; + /** + * The pallet has too many candidates. + **/ + TooManyCandidates: AugmentedError; + /** + * There are too many Invulnerables. + **/ + TooManyInvulnerables: AugmentedError; + /** + * Could not update the candidate list. + **/ + UpdateCandidateListFailed: AugmentedError; + /** + * Validator ID is not yet registered. + **/ + ValidatorNotRegistered: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + foreignAssets: { + /** + * The asset-account already exists. + **/ + AlreadyExists: AugmentedError; + /** + * The asset is not live, and likely being destroyed. + **/ + AssetNotLive: AugmentedError; + /** + * The asset ID must be equal to the [`NextAssetId`]. + **/ + BadAssetId: AugmentedError; + /** + * Invalid metadata given. + **/ + BadMetadata: AugmentedError; + /** + * Invalid witness data given. + **/ + BadWitness: AugmentedError; + /** + * Account balance must be greater than or equal to the transfer amount. + **/ + BalanceLow: AugmentedError; + /** + * Callback action resulted in error + **/ + CallbackFailed: AugmentedError; + /** + * The origin account is frozen. + **/ + Frozen: AugmentedError; + /** + * The asset status is not the expected status. + **/ + IncorrectStatus: AugmentedError; + /** + * The asset ID is already taken. + **/ + InUse: AugmentedError; + /** + * 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: AugmentedError; + /** + * Minimum balance should be non-zero. + **/ + MinBalanceZero: AugmentedError; + /** + * The account to alter does not exist. + **/ + NoAccount: AugmentedError; + /** + * The asset-account doesn't have an associated deposit. + **/ + NoDeposit: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * The asset should be frozen before the given operation. + **/ + NotFrozen: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * 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: AugmentedError; + /** + * The given asset ID is unknown. + **/ + Unknown: AugmentedError; + /** + * The operation would result in funds being burned. + **/ + WouldBurn: AugmentedError; + /** + * The source account would not survive the transfer and it needs to stay alive. + **/ + WouldDie: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + messageQueue: { + /** + * The message was already processed and cannot be processed again. + **/ + AlreadyProcessed: AugmentedError; + /** + * There is temporarily not enough weight to continue servicing messages. + **/ + InsufficientWeight: AugmentedError; + /** + * The referenced message could not be found. + **/ + NoMessage: AugmentedError; + /** + * Page to be reaped does not exist. + **/ + NoPage: AugmentedError; + /** + * Page is not reapable because it has items remaining to be processed and is not old + * enough. + **/ + NotReapable: AugmentedError; + /** + * The message is queued for future execution. + **/ + Queued: AugmentedError; + /** + * 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: AugmentedError; + /** + * Another call is in progress and needs to finish before this call can happen. + **/ + RecursiveDisallowed: AugmentedError; + /** + * This message is temporarily unprocessable. + * + * Such errors are expected, but not guaranteed, to resolve themselves eventually through + * retrying. + **/ + TemporarilyUnprocessable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + multisig: { + /** + * Call is already approved by this signatory. + **/ + AlreadyApproved: AugmentedError; + /** + * The data to be stored is already stored. + **/ + AlreadyStored: AugmentedError; + /** + * The maximum weight information provided was too low. + **/ + MaxWeightTooLow: AugmentedError; + /** + * Threshold must be 2 or greater. + **/ + MinimumThreshold: AugmentedError; + /** + * Call doesn't need any (more) approvals. + **/ + NoApprovalsNeeded: AugmentedError; + /** + * Multisig operation not found when attempting to cancel. + **/ + NotFound: AugmentedError; + /** + * No timepoint was given, yet the multisig operation is already underway. + **/ + NoTimepoint: AugmentedError; + /** + * Only the account that originally created the multisig is able to cancel it. + **/ + NotOwner: AugmentedError; + /** + * The sender was contained in the other signatories; it shouldn't be. + **/ + SenderInSignatories: AugmentedError; + /** + * The signatories were provided out of order; they should be ordered. + **/ + SignatoriesOutOfOrder: AugmentedError; + /** + * There are too few signatories in the list. + **/ + TooFewSignatories: AugmentedError; + /** + * There are too many signatories in the list. + **/ + TooManySignatories: AugmentedError; + /** + * A timepoint was given, yet no multisig operation is underway. + **/ + UnexpectedTimepoint: AugmentedError; + /** + * A different timepoint was given to the multisig operation that is underway. + **/ + WrongTimepoint: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + nfts: { + /** + * The provided Item was already used for claiming. + **/ + AlreadyClaimed: AugmentedError; + /** + * The item ID has already been used for an item. + **/ + AlreadyExists: AugmentedError; + /** + * The approval had a deadline that expired, so the approval isn't valid anymore. + **/ + ApprovalExpired: AugmentedError; + /** + * The provided attribute can't be found. + **/ + AttributeNotFound: AugmentedError; + /** + * The witness data given does not match the current state of the chain. + **/ + BadWitness: AugmentedError; + /** + * The provided bid is too low. + **/ + BidTooLow: AugmentedError; + /** + * Collection ID is already taken. + **/ + CollectionIdInUse: AugmentedError; + /** + * Can't delete non-empty collections. + **/ + CollectionNotEmpty: AugmentedError; + /** + * The deadline has already expired. + **/ + DeadlineExpired: AugmentedError; + /** + * Item's config already exists and should be equal to the provided one. + **/ + InconsistentItemConfig: AugmentedError; + /** + * The provided data is incorrect. + **/ + IncorrectData: AugmentedError; + /** + * The provided metadata might be too long. + **/ + IncorrectMetadata: AugmentedError; + /** + * The item is locked (non-transferable). + **/ + ItemLocked: AugmentedError; + /** + * Items within that collection are non-transferable. + **/ + ItemsNonTransferable: AugmentedError; + /** + * Collection's attributes are locked. + **/ + LockedCollectionAttributes: AugmentedError; + /** + * Collection's metadata is locked. + **/ + LockedCollectionMetadata: AugmentedError; + /** + * Item's attributes are locked. + **/ + LockedItemAttributes: AugmentedError; + /** + * Item's metadata is locked. + **/ + LockedItemMetadata: AugmentedError; + /** + * Can't set more attributes per one call. + **/ + MaxAttributesLimitReached: AugmentedError; + /** + * The max supply is locked and can't be changed. + **/ + MaxSupplyLocked: AugmentedError; + /** + * All items have been minted. + **/ + MaxSupplyReached: AugmentedError; + /** + * The provided max supply is less than the number of items a collection already has. + **/ + MaxSupplyTooSmall: AugmentedError; + /** + * The given item has no metadata set. + **/ + MetadataNotFound: AugmentedError; + /** + * The method is disabled by system settings. + **/ + MethodDisabled: AugmentedError; + /** + * Mint has already ended. + **/ + MintEnded: AugmentedError; + /** + * Mint has not started yet. + **/ + MintNotStarted: AugmentedError; + /** + * Config for a collection or an item can't be found. + **/ + NoConfig: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * The provided account is not a delegate. + **/ + NotDelegate: AugmentedError; + /** + * Item is not for sale. + **/ + NotForSale: AugmentedError; + /** + * The item has reached its approval limit. + **/ + ReachedApprovalLimit: AugmentedError; + /** + * Some roles were not cleared. + **/ + RolesNotCleared: AugmentedError; + /** + * The named owner has not signed ownership acceptance of the collection. + **/ + Unaccepted: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * The given item ID is unknown. + **/ + UnknownCollection: AugmentedError; + /** + * The given item ID is unknown. + **/ + UnknownItem: AugmentedError; + /** + * Swap doesn't exist. + **/ + UnknownSwap: AugmentedError; + /** + * The witness data should be provided. + **/ + WitnessRequired: AugmentedError; + /** + * The delegate turned out to be different to what was expected. + **/ + WrongDelegate: AugmentedError; + /** + * The duration provided should be less than or equal to `MaxDeadlineDuration`. + **/ + WrongDuration: AugmentedError; + /** + * The provided namespace isn't supported in this call. + **/ + WrongNamespace: AugmentedError; + /** + * The extrinsic was sent by the wrong origin. + **/ + WrongOrigin: AugmentedError; + /** + * The owner turned out to be different to what was expected. + **/ + WrongOwner: AugmentedError; + /** + * The provided setting can't be set. + **/ + WrongSetting: AugmentedError; + /** + * The provided signature is incorrect. + **/ + WrongSignature: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + parachainSystem: { + /** + * The inherent which supplies the host configuration did not run this block. + **/ + HostConfigurationNotAvailable: AugmentedError; + /** + * No code upgrade has been authorized. + **/ + NothingAuthorized: AugmentedError; + /** + * No validation function upgrade is currently scheduled. + **/ + NotScheduled: AugmentedError; + /** + * Attempt to upgrade validation function while existing upgrade pending. + **/ + OverlappingUpgrades: AugmentedError; + /** + * Polkadot currently prohibits this parachain from upgrading its validation function. + **/ + ProhibitedByPolkadot: AugmentedError; + /** + * The supplied validation function has compiled into a blob larger than Polkadot is + * willing to run. + **/ + TooBig: AugmentedError; + /** + * The given code upgrade has not been authorized. + **/ + Unauthorized: AugmentedError; + /** + * The inherent which supplies the validation data did not run this block. + **/ + ValidationDataNotAvailable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + polkadotXcm: { + /** + * The given account is not an identifiable sovereign account for any location. + **/ + AccountNotSovereign: AugmentedError; + /** + * The location is invalid since it already has a subscription from us. + **/ + AlreadySubscribed: AugmentedError; + /** + * The given location could not be used (e.g. because it cannot be expressed in the + * desired version of XCM). + **/ + BadLocation: AugmentedError; + /** + * The version of the `Versioned` value used is not able to be interpreted. + **/ + BadVersion: AugmentedError; + /** + * Could not check-out the assets for teleportation to the destination chain. + **/ + CannotCheckOutTeleport: AugmentedError; + /** + * Could not re-anchor the assets to declare the fees for the destination chain. + **/ + CannotReanchor: AugmentedError; + /** + * The destination `Location` provided cannot be inverted. + **/ + DestinationNotInvertible: AugmentedError; + /** + * The assets to be sent are empty. + **/ + Empty: AugmentedError; + /** + * The operation required fees to be paid which the initiator could not meet. + **/ + FeesNotMet: AugmentedError; + /** + * The message execution fails the filter. + **/ + Filtered: AugmentedError; + /** + * The unlock operation cannot succeed because there are still consumers of the lock. + **/ + InUse: AugmentedError; + /** + * Invalid asset, reserve chain could not be determined for it. + **/ + InvalidAssetUnknownReserve: AugmentedError; + /** + * Invalid asset, do not support remote asset reserves with different fees reserves. + **/ + InvalidAssetUnsupportedReserve: AugmentedError; + /** + * Origin is invalid for sending. + **/ + InvalidOrigin: AugmentedError; + /** + * Local XCM execution incomplete. + **/ + LocalExecutionIncomplete: AugmentedError; + /** + * A remote lock with the corresponding data could not be found. + **/ + LockNotFound: AugmentedError; + /** + * The owner does not own (all) of the asset that they wish to do the operation on. + **/ + LowBalance: AugmentedError; + /** + * The referenced subscription could not be found. + **/ + NoSubscription: AugmentedError; + /** + * 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: AugmentedError; + /** + * Too many assets have been attempted for transfer. + **/ + TooManyAssets: AugmentedError; + /** + * The asset owner has too many locks on the asset. + **/ + TooManyLocks: AugmentedError; + /** + * Too many assets with different reserve locations have been attempted for transfer. + **/ + TooManyReserves: AugmentedError; + /** + * The desired destination was unreachable, generally because there is a no way of routing + * to it. + **/ + Unreachable: AugmentedError; + /** + * The message's weight could not be determined. + **/ + UnweighableMessage: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + poolAssets: { + /** + * The asset-account already exists. + **/ + AlreadyExists: AugmentedError; + /** + * The asset is not live, and likely being destroyed. + **/ + AssetNotLive: AugmentedError; + /** + * The asset ID must be equal to the [`NextAssetId`]. + **/ + BadAssetId: AugmentedError; + /** + * Invalid metadata given. + **/ + BadMetadata: AugmentedError; + /** + * Invalid witness data given. + **/ + BadWitness: AugmentedError; + /** + * Account balance must be greater than or equal to the transfer amount. + **/ + BalanceLow: AugmentedError; + /** + * Callback action resulted in error + **/ + CallbackFailed: AugmentedError; + /** + * The origin account is frozen. + **/ + Frozen: AugmentedError; + /** + * The asset status is not the expected status. + **/ + IncorrectStatus: AugmentedError; + /** + * The asset ID is already taken. + **/ + InUse: AugmentedError; + /** + * 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: AugmentedError; + /** + * Minimum balance should be non-zero. + **/ + MinBalanceZero: AugmentedError; + /** + * The account to alter does not exist. + **/ + NoAccount: AugmentedError; + /** + * The asset-account doesn't have an associated deposit. + **/ + NoDeposit: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * The asset should be frozen before the given operation. + **/ + NotFrozen: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * 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: AugmentedError; + /** + * The given asset ID is unknown. + **/ + Unknown: AugmentedError; + /** + * The operation would result in funds being burned. + **/ + WouldBurn: AugmentedError; + /** + * The source account would not survive the transfer and it needs to stay alive. + **/ + WouldDie: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + proxy: { + /** + * Account is already a proxy. + **/ + Duplicate: AugmentedError; + /** + * Call may not be made by proxy because it may escalate its privileges. + **/ + NoPermission: AugmentedError; + /** + * Cannot add self as proxy. + **/ + NoSelfProxy: AugmentedError; + /** + * Proxy registration not found. + **/ + NotFound: AugmentedError; + /** + * Sender is not a proxy of the account to be proxied. + **/ + NotProxy: AugmentedError; + /** + * There are too many proxies registered or too many announcements pending. + **/ + TooMany: AugmentedError; + /** + * Announcement, if made at all, was made too recently. + **/ + Unannounced: AugmentedError; + /** + * A call which is incompatible with the proxy type's filter was attempted. + **/ + Unproxyable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + session: { + /** + * Registered duplicate key. + **/ + DuplicatedKey: AugmentedError; + /** + * Invalid ownership proof. + **/ + InvalidProof: AugmentedError; + /** + * Key setting account is not live, so it's impossible to associate keys. + **/ + NoAccount: AugmentedError; + /** + * No associated validator ID for account. + **/ + NoAssociatedValidatorId: AugmentedError; + /** + * No keys are associated with this account. + **/ + NoKeys: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + system: { + /** + * The origin filter prevent the call to be dispatched. + **/ + CallFiltered: AugmentedError; + /** + * Failed to extract the runtime version from the new runtime. + * + * Either calling `Core_version` or decoding `RuntimeVersion` failed. + **/ + FailedToExtractRuntimeVersion: AugmentedError; + /** + * The name of specification does not match between the current runtime + * and the new runtime. + **/ + InvalidSpecName: AugmentedError; + /** + * A multi-block migration is ongoing and prevents the current code from being replaced. + **/ + MultiBlockMigrationsOngoing: AugmentedError; + /** + * Suicide called when the account has non-default composite data. + **/ + NonDefaultComposite: AugmentedError; + /** + * There is a non-zero reference count preventing the account from being purged. + **/ + NonZeroRefCount: AugmentedError; + /** + * No upgrade authorized. + **/ + NothingAuthorized: AugmentedError; + /** + * The specification version is not allowed to decrease between the current runtime + * and the new runtime. + **/ + SpecVersionNeedsToIncrease: AugmentedError; + /** + * The submitted code is not authorized. + **/ + Unauthorized: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + uniques: { + /** + * The item ID has already been used for an item. + **/ + AlreadyExists: AugmentedError; + /** + * Invalid witness data given. + **/ + BadWitness: AugmentedError; + /** + * The provided bid is too low. + **/ + BidTooLow: AugmentedError; + /** + * The item or collection is frozen. + **/ + Frozen: AugmentedError; + /** + * The item ID is already taken. + **/ + InUse: AugmentedError; + /** + * The item is locked. + **/ + Locked: AugmentedError; + /** + * The max supply has already been set. + **/ + MaxSupplyAlreadySet: AugmentedError; + /** + * All items have been minted. + **/ + MaxSupplyReached: AugmentedError; + /** + * The provided max supply is less to the amount of items a collection already has. + **/ + MaxSupplyTooSmall: AugmentedError; + /** + * There is no delegate approved. + **/ + NoDelegate: AugmentedError; + /** + * The signing account has no permission to do the operation. + **/ + NoPermission: AugmentedError; + /** + * Item is not for sale. + **/ + NotForSale: AugmentedError; + /** + * The named owner has not signed ownership of the collection is acceptable. + **/ + Unaccepted: AugmentedError; + /** + * No approval exists that would allow the transfer. + **/ + Unapproved: AugmentedError; + /** + * The given item ID is unknown. + **/ + UnknownCollection: AugmentedError; + /** + * The given item ID is unknown. + **/ + UnknownItem: AugmentedError; + /** + * The delegate turned out to be different to what was expected. + **/ + WrongDelegate: AugmentedError; + /** + * The owner turned out to be different to what was expected. + **/ + WrongOwner: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + utility: { + /** + * Too many calls batched. + **/ + TooManyCalls: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + vesting: { + /** + * Amount being transferred is too low to create a vesting schedule. + **/ + AmountLow: AugmentedError; + /** + * The account already has `MaxVestingSchedules` count of schedules and thus + * cannot add another one. Consider merging existing schedules in order to add another. + **/ + AtMaxVestingSchedules: AugmentedError; + /** + * Failed to create a new schedule because some parameter was invalid. + **/ + InvalidScheduleParams: AugmentedError; + /** + * The account given is not vesting. + **/ + NotVesting: AugmentedError; + /** + * An index was out of bounds of the vesting schedules. + **/ + ScheduleIndexOutOfBounds: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + xcmpQueue: { + /** + * The execution is already resumed. + **/ + AlreadyResumed: AugmentedError; + /** + * The execution is already suspended. + **/ + AlreadySuspended: AugmentedError; + /** + * Setting the queue config failed since one of its values was invalid. + **/ + BadQueueConfig: AugmentedError; + /** + * The message is too big. + **/ + TooBig: AugmentedError; + /** + * There are too many active outbound channels. + **/ + TooManyActiveOutboundChannels: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + } // AugmentedErrors +} // declare module diff --git a/packages/api-augment/src/assetHubPolkadot/events.ts b/packages/api-augment/src/assetHubPolkadot/events.ts new file mode 100644 index 000000000000..8f5bd43431b3 --- /dev/null +++ b/packages/api-augment/src/assetHubPolkadot/events.ts @@ -0,0 +1,1186 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/events'; + +import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types'; +import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256, Permill } from '@polkadot/types/interfaces/runtime'; +import type { AssetHubPolkadotRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup'; + +export type __AugmentedEvent = AugmentedEvent; + +declare module '@polkadot/api-base/types/events' { + interface AugmentedEvents { + assetConversion: { + /** + * A successful call of the `AddLiquidity` extrinsic will create this event. + **/ + LiquidityAdded: AugmentedEvent, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128], { who: AccountId32, mintTo: AccountId32, poolId: ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128 }>; + /** + * A successful call of the `RemoveLiquidity` extrinsic will create this event. + **/ + LiquidityRemoved: AugmentedEvent, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], { who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill }>; + /** + * A successful call of the `CreatePool` extrinsic will create this event. + **/ + PoolCreated: AugmentedEvent, poolAccount: AccountId32, lpToken: u32], { creator: AccountId32, poolId: ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>, poolAccount: AccountId32, lpToken: u32 }>; + /** + * Assets have been converted from one to another. + **/ + SwapCreditExecuted: AugmentedEvent>], { amountIn: u128, amountOut: u128, path: Vec> }>; + /** + * Assets have been converted from one to another. Both `SwapExactTokenForToken` + * and `SwapTokenForExactToken` will generate this event. + **/ + SwapExecuted: AugmentedEvent>], { who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec> }>; + /** + * Pool has been touched in order to fulfill operational requirements. + **/ + Touched: AugmentedEvent, who: AccountId32], { poolId: ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>, who: AccountId32 }>; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + assets: { + /** + * Accounts were destroyed for given asset. + **/ + AccountsDestroyed: AugmentedEvent; + /** + * An approval for account `delegate` was cancelled by `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * Approvals were destroyed for given asset. + **/ + ApprovalsDestroyed: AugmentedEvent; + /** + * (Additional) funds have been approved for transfer to a destination account. + **/ + ApprovedTransfer: AugmentedEvent; + /** + * Some asset `asset_id` was frozen. + **/ + AssetFrozen: AugmentedEvent; + /** + * The min_balance of an asset has been updated by the asset owner. + **/ + AssetMinBalanceChanged: AugmentedEvent; + /** + * An asset has had its attributes changed by the `Force` origin. + **/ + AssetStatusChanged: AugmentedEvent; + /** + * Some asset `asset_id` was thawed. + **/ + AssetThawed: AugmentedEvent; + /** + * Some account `who` was blocked. + **/ + Blocked: AugmentedEvent; + /** + * Some assets were destroyed. + **/ + Burned: AugmentedEvent; + /** + * Some asset class was created. + **/ + Created: AugmentedEvent; + /** + * Some assets were deposited (e.g. for transaction fees). + **/ + Deposited: AugmentedEvent; + /** + * An asset class was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * An asset class is in the process of being destroyed. + **/ + DestructionStarted: AugmentedEvent; + /** + * Some asset class was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * Some account `who` was frozen. + **/ + Frozen: AugmentedEvent; + /** + * Some assets were issued. + **/ + Issued: AugmentedEvent; + /** + * Metadata has been cleared for an asset. + **/ + MetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an asset. + **/ + MetadataSet: AugmentedEvent; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent; + /** + * Some account `who` was thawed. + **/ + Thawed: AugmentedEvent; + /** + * Some account `who` was created with a deposit from `depositor`. + **/ + Touched: AugmentedEvent; + /** + * Some assets were transferred. + **/ + Transferred: AugmentedEvent; + /** + * An `amount` was transferred in its entirety from `owner` to `destination` by + * the approved `delegate`. + **/ + TransferredApproved: AugmentedEvent; + /** + * Some assets were withdrawn from the account (e.g. for transaction fees). + **/ + Withdrawn: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + assetTxPayment: { + /** + * A swap of the refund in native currency back to asset failed. + **/ + AssetRefundFailed: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + balances: { + /** + * A balance was set by root. + **/ + BalanceSet: AugmentedEvent; + /** + * Some amount was burned from an account. + **/ + Burned: AugmentedEvent; + /** + * Some amount was deposited (e.g. for transaction fees). + **/ + Deposit: AugmentedEvent; + /** + * An account was removed whose balance was non-zero but below ExistentialDeposit, + * resulting in an outright loss. + **/ + DustLost: AugmentedEvent; + /** + * An account was created with some free balance. + **/ + Endowed: AugmentedEvent; + /** + * Some balance was frozen. + **/ + Frozen: AugmentedEvent; + /** + * Total issuance was increased by `amount`, creating a credit to be balanced. + **/ + Issued: AugmentedEvent; + /** + * Some balance was locked. + **/ + Locked: AugmentedEvent; + /** + * Some amount was minted into an account. + **/ + Minted: AugmentedEvent; + /** + * Total issuance was decreased by `amount`, creating a debt to be balanced. + **/ + Rescinded: AugmentedEvent; + /** + * Some balance was reserved (moved from free to reserved). + **/ + Reserved: AugmentedEvent; + /** + * Some balance was moved from the reserve of the first account to the second account. + * Final argument indicates the destination balance type. + **/ + ReserveRepatriated: AugmentedEvent; + /** + * Some amount was restored into an account. + **/ + Restored: AugmentedEvent; + /** + * Some amount was removed from the account (e.g. for misbehavior). + **/ + Slashed: AugmentedEvent; + /** + * Some amount was suspended from an account (it can be restored later). + **/ + Suspended: AugmentedEvent; + /** + * Some balance was thawed. + **/ + Thawed: AugmentedEvent; + /** + * The `TotalIssuance` was forcefully changed. + **/ + TotalIssuanceForced: AugmentedEvent; + /** + * Transfer succeeded. + **/ + Transfer: AugmentedEvent; + /** + * Some balance was unlocked. + **/ + Unlocked: AugmentedEvent; + /** + * Some balance was unreserved (moved from reserved to free). + **/ + Unreserved: AugmentedEvent; + /** + * An account was upgraded. + **/ + Upgraded: AugmentedEvent; + /** + * Some amount was withdrawn from the account (e.g. for transaction fees). + **/ + Withdraw: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + collatorSelection: { + /** + * A new candidate joined. + **/ + CandidateAdded: AugmentedEvent; + /** + * Bond of a candidate updated. + **/ + CandidateBondUpdated: AugmentedEvent; + /** + * A candidate was removed. + **/ + CandidateRemoved: AugmentedEvent; + /** + * An account was replaced in the candidate list by another one. + **/ + CandidateReplaced: AugmentedEvent; + /** + * An account was unable to be added to the Invulnerables because they did not have keys + * registered. Other Invulnerables may have been set. + **/ + InvalidInvulnerableSkipped: AugmentedEvent; + /** + * A new Invulnerable was added. + **/ + InvulnerableAdded: AugmentedEvent; + /** + * An Invulnerable was removed. + **/ + InvulnerableRemoved: AugmentedEvent; + /** + * The candidacy bond was set. + **/ + NewCandidacyBond: AugmentedEvent; + /** + * The number of desired candidates was set. + **/ + NewDesiredCandidates: AugmentedEvent; + /** + * New Invulnerables were set. + **/ + NewInvulnerables: AugmentedEvent], { invulnerables: Vec }>; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + cumulusXcm: { + /** + * Downward message executed with the given outcome. + * \[ id, outcome \] + **/ + ExecutedDownward: AugmentedEvent; + /** + * Downward message is invalid XCM. + * \[ id \] + **/ + InvalidFormat: AugmentedEvent; + /** + * Downward message is unsupported version of XCM. + * \[ id \] + **/ + UnsupportedVersion: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + foreignAssets: { + /** + * Accounts were destroyed for given asset. + **/ + AccountsDestroyed: AugmentedEvent; + /** + * An approval for account `delegate` was cancelled by `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * Approvals were destroyed for given asset. + **/ + ApprovalsDestroyed: AugmentedEvent; + /** + * (Additional) funds have been approved for transfer to a destination account. + **/ + ApprovedTransfer: AugmentedEvent; + /** + * Some asset `asset_id` was frozen. + **/ + AssetFrozen: AugmentedEvent; + /** + * The min_balance of an asset has been updated by the asset owner. + **/ + AssetMinBalanceChanged: AugmentedEvent; + /** + * An asset has had its attributes changed by the `Force` origin. + **/ + AssetStatusChanged: AugmentedEvent; + /** + * Some asset `asset_id` was thawed. + **/ + AssetThawed: AugmentedEvent; + /** + * Some account `who` was blocked. + **/ + Blocked: AugmentedEvent; + /** + * Some assets were destroyed. + **/ + Burned: AugmentedEvent; + /** + * Some asset class was created. + **/ + Created: AugmentedEvent; + /** + * Some assets were deposited (e.g. for transaction fees). + **/ + Deposited: AugmentedEvent; + /** + * An asset class was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * An asset class is in the process of being destroyed. + **/ + DestructionStarted: AugmentedEvent; + /** + * Some asset class was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * Some account `who` was frozen. + **/ + Frozen: AugmentedEvent; + /** + * Some assets were issued. + **/ + Issued: AugmentedEvent; + /** + * Metadata has been cleared for an asset. + **/ + MetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an asset. + **/ + MetadataSet: AugmentedEvent; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent; + /** + * Some account `who` was thawed. + **/ + Thawed: AugmentedEvent; + /** + * Some account `who` was created with a deposit from `depositor`. + **/ + Touched: AugmentedEvent; + /** + * Some assets were transferred. + **/ + Transferred: AugmentedEvent; + /** + * An `amount` was transferred in its entirety from `owner` to `destination` by + * the approved `delegate`. + **/ + TransferredApproved: AugmentedEvent; + /** + * Some assets were withdrawn from the account (e.g. for transaction fees). + **/ + Withdrawn: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + messageQueue: { + /** + * Message placed in overweight queue. + **/ + OverweightEnqueued: AugmentedEvent; + /** + * This page was reaped. + **/ + PageReaped: AugmentedEvent; + /** + * Message is processed. + **/ + Processed: AugmentedEvent; + /** + * Message discarded due to an error in the `MessageProcessor` (usually a format error). + **/ + ProcessingFailed: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + multisig: { + /** + * A multisig operation has been approved by someone. + **/ + MultisigApproval: AugmentedEvent; + /** + * A multisig operation has been cancelled. + **/ + MultisigCancelled: AugmentedEvent; + /** + * A multisig operation has been executed. + **/ + MultisigExecuted: AugmentedEvent], { approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed, result: Result }>; + /** + * A new multisig operation has begun. + **/ + NewMultisig: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + nfts: { + /** + * All approvals of an item got cancelled. + **/ + AllApprovalsCancelled: AugmentedEvent; + /** + * An approval for a `delegate` account to transfer the `item` of an item + * `collection` was cancelled by its `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * Attribute metadata has been cleared for a `collection` or `item`. + **/ + AttributeCleared: AugmentedEvent, key: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option, key: Bytes, namespace: PalletNftsAttributeNamespace }>; + /** + * New attribute metadata has been set for a `collection` or `item`. + **/ + AttributeSet: AugmentedEvent, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace], { collection: u32, maybeItem: Option, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace }>; + /** + * An `item` was destroyed. + **/ + Burned: AugmentedEvent; + /** + * A `collection` has had its config changed by the `Force` origin. + **/ + CollectionConfigChanged: AugmentedEvent; + /** + * Some `collection` was locked. + **/ + CollectionLocked: AugmentedEvent; + /** + * Max supply has been set for a collection. + **/ + CollectionMaxSupplySet: AugmentedEvent; + /** + * Metadata has been cleared for a `collection`. + **/ + CollectionMetadataCleared: AugmentedEvent; + /** + * New metadata has been set for a `collection`. + **/ + CollectionMetadataSet: AugmentedEvent; + /** + * Mint settings for a collection had changed. + **/ + CollectionMintSettingsUpdated: AugmentedEvent; + /** + * A `collection` was created. + **/ + Created: AugmentedEvent; + /** + * A `collection` was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * A `collection` was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * An `item` was issued. + **/ + Issued: AugmentedEvent; + /** + * A new approval to modify item attributes was added. + **/ + ItemAttributesApprovalAdded: AugmentedEvent; + /** + * A new approval to modify item attributes was removed. + **/ + ItemAttributesApprovalRemoved: AugmentedEvent; + /** + * An item was bought. + **/ + ItemBought: AugmentedEvent; + /** + * Metadata has been cleared for an item. + **/ + ItemMetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an item. + **/ + ItemMetadataSet: AugmentedEvent; + /** + * The price for the item was removed. + **/ + ItemPriceRemoved: AugmentedEvent; + /** + * The price was set for the item. + **/ + ItemPriceSet: AugmentedEvent], { collection: u32, item: u32, price: u128, whitelistedBuyer: Option }>; + /** + * `item` metadata or attributes were locked. + **/ + ItemPropertiesLocked: AugmentedEvent; + /** + * An `item` became non-transferable. + **/ + ItemTransferLocked: AugmentedEvent; + /** + * An `item` became transferable. + **/ + ItemTransferUnlocked: AugmentedEvent; + /** + * Event gets emitted when the `NextCollectionId` gets incremented. + **/ + NextCollectionIdIncremented: AugmentedEvent], { nextId: Option }>; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * Ownership acceptance has changed for an account. + **/ + OwnershipAcceptanceChanged: AugmentedEvent], { who: AccountId32, maybeCollection: Option }>; + /** + * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` + * within that `collection`. + **/ + PalletAttributeSet: AugmentedEvent, attribute: PalletNftsPalletAttributes, value: Bytes], { collection: u32, item: Option, attribute: PalletNftsPalletAttributes, value: Bytes }>; + /** + * New attributes have been set for an `item` of the `collection`. + **/ + PreSignedAttributesSet: AugmentedEvent; + /** + * The deposit for a set of `item`s within a `collection` has been updated. + **/ + Redeposited: AugmentedEvent], { collection: u32, successfulItems: Vec }>; + /** + * The swap was cancelled. + **/ + SwapCancelled: AugmentedEvent, price: Option, deadline: u32], { offeredCollection: u32, offeredItem: u32, desiredCollection: u32, desiredItem: Option, price: Option, deadline: u32 }>; + /** + * The swap has been claimed. + **/ + SwapClaimed: AugmentedEvent, deadline: u32], { sentCollection: u32, sentItem: u32, sentItemOwner: AccountId32, receivedCollection: u32, receivedItem: u32, receivedItemOwner: AccountId32, price: Option, deadline: u32 }>; + /** + * An `item` swap intent was created. + **/ + SwapCreated: AugmentedEvent, price: Option, deadline: u32], { offeredCollection: u32, offeredItem: u32, desiredCollection: u32, desiredItem: Option, price: Option, deadline: u32 }>; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent, admin: Option, freezer: Option], { collection: u32, issuer: Option, admin: Option, freezer: Option }>; + /** + * A tip was sent. + **/ + TipSent: AugmentedEvent; + /** + * An `item` of a `collection` has been approved by the `owner` for transfer by + * a `delegate`. + **/ + TransferApproved: AugmentedEvent], { collection: u32, item: u32, owner: AccountId32, delegate: AccountId32, deadline: Option }>; + /** + * An `item` was transferred. + **/ + Transferred: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + parachainSystem: { + /** + * Downward messages were processed using the given weight. + **/ + DownwardMessagesProcessed: AugmentedEvent; + /** + * Some downward messages have been received and will be processed. + **/ + DownwardMessagesReceived: AugmentedEvent; + /** + * An upward message was sent to the relay chain. + **/ + UpwardMessageSent: AugmentedEvent], { messageHash: Option }>; + /** + * The validation function was applied as of the contained relay chain block number. + **/ + ValidationFunctionApplied: AugmentedEvent; + /** + * The relay-chain aborted the upgrade process. + **/ + ValidationFunctionDiscarded: AugmentedEvent; + /** + * The validation function has been scheduled to apply. + **/ + ValidationFunctionStored: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + polkadotXcm: { + /** + * Some assets have been claimed from an asset trap + **/ + AssetsClaimed: AugmentedEvent; + /** + * Some assets have been placed in an asset trap. + **/ + AssetsTrapped: AugmentedEvent; + /** + * Execution of an XCM message was attempted. + **/ + Attempted: AugmentedEvent; + /** + * Fees were paid from a location for an operation (often for using `SendXcm`). + **/ + FeesPaid: AugmentedEvent; + /** + * 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: AugmentedEvent], { origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option }>; + /** + * 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: AugmentedEvent; + /** + * 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: AugmentedEvent], { origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option }>; + /** + * 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: AugmentedEvent; + /** + * Query response has been received and query is removed. The registered notification has + * been dispatched and executed successfully. + **/ + Notified: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * Query response has been received and query is removed. There was a general error with + * dispatching the notification call. + **/ + NotifyDispatchError: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * A given location which had a version change subscription was dropped owing to an error + * migrating the location to our new XCM format. + **/ + NotifyTargetMigrationFail: AugmentedEvent; + /** + * A given location which had a version change subscription was dropped owing to an error + * sending the notification to it. + **/ + NotifyTargetSendFail: AugmentedEvent; + /** + * Query response has been received and is ready for taking with `take_response`. There is + * no registered notification call. + **/ + ResponseReady: AugmentedEvent; + /** + * Received query response has been read and removed. + **/ + ResponseTaken: AugmentedEvent; + /** + * A XCM message was sent. + **/ + Sent: AugmentedEvent; + /** + * The supported version of a location has been changed. This might be through an + * automatic notification or a manual intervention. + **/ + SupportedVersionChanged: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * An XCM version change notification message has been attempted to be sent. + * + * The cost of sending it (borne by the chain) is included. + **/ + VersionChangeNotified: AugmentedEvent; + /** + * A XCM version migration finished. + **/ + VersionMigrationFinished: AugmentedEvent; + /** + * We have requested that a remote chain send us XCM version change notifications. + **/ + VersionNotifyRequested: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * We have requested that a remote chain stops sending us XCM version change + * notifications. + **/ + VersionNotifyUnrequested: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + poolAssets: { + /** + * Accounts were destroyed for given asset. + **/ + AccountsDestroyed: AugmentedEvent; + /** + * An approval for account `delegate` was cancelled by `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * Approvals were destroyed for given asset. + **/ + ApprovalsDestroyed: AugmentedEvent; + /** + * (Additional) funds have been approved for transfer to a destination account. + **/ + ApprovedTransfer: AugmentedEvent; + /** + * Some asset `asset_id` was frozen. + **/ + AssetFrozen: AugmentedEvent; + /** + * The min_balance of an asset has been updated by the asset owner. + **/ + AssetMinBalanceChanged: AugmentedEvent; + /** + * An asset has had its attributes changed by the `Force` origin. + **/ + AssetStatusChanged: AugmentedEvent; + /** + * Some asset `asset_id` was thawed. + **/ + AssetThawed: AugmentedEvent; + /** + * Some account `who` was blocked. + **/ + Blocked: AugmentedEvent; + /** + * Some assets were destroyed. + **/ + Burned: AugmentedEvent; + /** + * Some asset class was created. + **/ + Created: AugmentedEvent; + /** + * Some assets were deposited (e.g. for transaction fees). + **/ + Deposited: AugmentedEvent; + /** + * An asset class was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * An asset class is in the process of being destroyed. + **/ + DestructionStarted: AugmentedEvent; + /** + * Some asset class was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * Some account `who` was frozen. + **/ + Frozen: AugmentedEvent; + /** + * Some assets were issued. + **/ + Issued: AugmentedEvent; + /** + * Metadata has been cleared for an asset. + **/ + MetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an asset. + **/ + MetadataSet: AugmentedEvent; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent; + /** + * Some account `who` was thawed. + **/ + Thawed: AugmentedEvent; + /** + * Some account `who` was created with a deposit from `depositor`. + **/ + Touched: AugmentedEvent; + /** + * Some assets were transferred. + **/ + Transferred: AugmentedEvent; + /** + * An `amount` was transferred in its entirety from `owner` to `destination` by + * the approved `delegate`. + **/ + TransferredApproved: AugmentedEvent; + /** + * Some assets were withdrawn from the account (e.g. for transaction fees). + **/ + Withdrawn: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + proxy: { + /** + * An announcement was placed to make a call in the future. + **/ + Announced: AugmentedEvent; + /** + * A proxy was added. + **/ + ProxyAdded: AugmentedEvent; + /** + * A proxy was executed correctly, with the given. + **/ + ProxyExecuted: AugmentedEvent], { result: Result }>; + /** + * A proxy was removed. + **/ + ProxyRemoved: AugmentedEvent; + /** + * A pure account has been created by new proxy with given + * disambiguation index and proxy type. + **/ + PureCreated: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + session: { + /** + * New session has happened. Note that the argument is the session index, not the + * block number as the type might suggest. + **/ + NewSession: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + system: { + /** + * `:code` was updated. + **/ + CodeUpdated: AugmentedEvent; + /** + * An extrinsic failed. + **/ + ExtrinsicFailed: AugmentedEvent; + /** + * An extrinsic completed successfully. + **/ + ExtrinsicSuccess: AugmentedEvent; + /** + * An account was reaped. + **/ + KilledAccount: AugmentedEvent; + /** + * A new account was created. + **/ + NewAccount: AugmentedEvent; + /** + * On on-chain remark happened. + **/ + Remarked: AugmentedEvent; + /** + * An upgrade was authorized. + **/ + UpgradeAuthorized: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + transactionPayment: { + /** + * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, + * has been paid by `who`. + **/ + TransactionFeePaid: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + uniques: { + /** + * An approval for a `delegate` account to transfer the `item` of an item + * `collection` was cancelled by its `owner`. + **/ + ApprovalCancelled: AugmentedEvent; + /** + * An `item` of a `collection` has been approved by the `owner` for transfer by + * a `delegate`. + **/ + ApprovedTransfer: AugmentedEvent; + /** + * Attribute metadata has been cleared for a `collection` or `item`. + **/ + AttributeCleared: AugmentedEvent, key: Bytes], { collection: u32, maybeItem: Option, key: Bytes }>; + /** + * New attribute metadata has been set for a `collection` or `item`. + **/ + AttributeSet: AugmentedEvent, key: Bytes, value: Bytes], { collection: u32, maybeItem: Option, key: Bytes, value: Bytes }>; + /** + * An `item` was destroyed. + **/ + Burned: AugmentedEvent; + /** + * Some `collection` was frozen. + **/ + CollectionFrozen: AugmentedEvent; + /** + * Max supply has been set for a collection. + **/ + CollectionMaxSupplySet: AugmentedEvent; + /** + * Metadata has been cleared for a `collection`. + **/ + CollectionMetadataCleared: AugmentedEvent; + /** + * New metadata has been set for a `collection`. + **/ + CollectionMetadataSet: AugmentedEvent; + /** + * Some `collection` was thawed. + **/ + CollectionThawed: AugmentedEvent; + /** + * A `collection` was created. + **/ + Created: AugmentedEvent; + /** + * A `collection` was destroyed. + **/ + Destroyed: AugmentedEvent; + /** + * A `collection` was force-created. + **/ + ForceCreated: AugmentedEvent; + /** + * Some `item` was frozen. + **/ + Frozen: AugmentedEvent; + /** + * An `item` was issued. + **/ + Issued: AugmentedEvent; + /** + * An item was bought. + **/ + ItemBought: AugmentedEvent; + /** + * The price for the instance was removed. + **/ + ItemPriceRemoved: AugmentedEvent; + /** + * The price was set for the instance. + **/ + ItemPriceSet: AugmentedEvent], { collection: u32, item: u32, price: u128, whitelistedBuyer: Option }>; + /** + * A `collection` has had its attributes changed by the `Force` origin. + **/ + ItemStatusChanged: AugmentedEvent; + /** + * Metadata has been cleared for an item. + **/ + MetadataCleared: AugmentedEvent; + /** + * New metadata has been set for an item. + **/ + MetadataSet: AugmentedEvent; + /** + * The owner changed. + **/ + OwnerChanged: AugmentedEvent; + /** + * Ownership acceptance has changed for an account. + **/ + OwnershipAcceptanceChanged: AugmentedEvent], { who: AccountId32, maybeCollection: Option }>; + /** + * Metadata has been cleared for an item. + **/ + Redeposited: AugmentedEvent], { collection: u32, successfulItems: Vec }>; + /** + * The management team changed. + **/ + TeamChanged: AugmentedEvent; + /** + * Some `item` was thawed. + **/ + Thawed: AugmentedEvent; + /** + * An `item` was transferred. + **/ + Transferred: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + utility: { + /** + * Batch of dispatches completed fully with no error. + **/ + BatchCompleted: AugmentedEvent; + /** + * Batch of dispatches completed but has errors. + **/ + BatchCompletedWithErrors: AugmentedEvent; + /** + * Batch of dispatches did not complete fully. Index of first failing dispatch given, as + * well as the error. + **/ + BatchInterrupted: AugmentedEvent; + /** + * A call was dispatched. + **/ + DispatchedAs: AugmentedEvent], { result: Result }>; + /** + * A single item within a Batch of dispatches has completed with no error. + **/ + ItemCompleted: AugmentedEvent; + /** + * A single item within a Batch of dispatches has completed with error. + **/ + ItemFailed: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + vesting: { + /** + * An \[account\] has become fully vested. + **/ + VestingCompleted: AugmentedEvent; + /** + * 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: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + xcmpQueue: { + /** + * An HRMP message was sent to a sibling parachain. + **/ + XcmpMessageSent: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + } // AugmentedEvents +} // declare module diff --git a/packages/api-augment/src/assetHubPolkadot/query.ts b/packages/api-augment/src/assetHubPolkadot/query.ts new file mode 100644 index 000000000000..6dcb22dec438 --- /dev/null +++ b/packages/api-augment/src/assetHubPolkadot/query.ts @@ -0,0 +1,954 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/storage'; + +import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types'; +import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; +import type { AssetHubPolkadotRuntimeRuntimeHoldReason, AssetHubPolkadotRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV7AbridgedHostConfiguration, PolkadotPrimitivesV7PersistedValidationData, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, SpConsensusAuraEd25519AppEd25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, StagingXcmV4Instruction, StagingXcmV4Xcm, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup'; +import type { Observable } from '@polkadot/types/types'; + +export type __AugmentedQuery = AugmentedQuery unknown>; +export type __QueryableStorageEntry = QueryableStorageEntry; + +declare module '@polkadot/api-base/types/storage' { + interface AugmentedQueries { + assetConversion: { + /** + * Stores the `PoolAssetId` that is going to be used for the next lp token. + * This gets incremented whenever a new lp pool is created. + **/ + nextPoolAssetId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + pools: AugmentedQuery | [StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array]) => Observable>, [ITuple<[StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>]> & QueryableStorageEntry]>; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + assets: { + /** + * The holdings of a specific account for a specific asset. + **/ + account: AugmentedQuery Observable>, [u32, AccountId32]> & QueryableStorageEntry; + /** + * 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. + **/ + approvals: AugmentedQuery Observable>, [u32, AccountId32, AccountId32]> & QueryableStorageEntry; + /** + * Details of an asset. + **/ + asset: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Metadata of an asset. + **/ + metadata: AugmentedQuery Observable<{ + readonly deposit: u128; + readonly name: Bytes; + readonly symbol: Bytes; + readonly decimals: u8; + readonly isFrozen: bool; + } & Struct>, [u32]> & QueryableStorageEntry; + /** + * 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. + **/ + nextAssetId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + aura: { + /** + * The current authority set. + **/ + authorities: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The current slot of this block. + * + * This will be set in `on_initialize`. + **/ + currentSlot: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + 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`. + **/ + authorities: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Current slot paired with a number of authored blocks. + * + * Updated on each block initialization. + **/ + slotInfo: AugmentedQuery Observable>>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + authorship: { + /** + * Author of current block. + **/ + author: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + balances: { + /** + * 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. + **/ + account: AugmentedQuery Observable, [AccountId32]> & QueryableStorageEntry; + /** + * Freeze locks on account balances. + **/ + freezes: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * Holds on account balances. + **/ + holds: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * The total units of outstanding deactivated balance in the system. + **/ + inactiveIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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/` + **/ + locks: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * Named reserves on some account balances. + * + * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` + **/ + reserves: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * The total units issued in the system. + **/ + totalIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + collatorSelection: { + /** + * Fixed amount to deposit to become a collator. + * + * When a collator calls `leave_intent` they immediately receive the deposit back. + **/ + candidacyBond: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + candidateList: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Desired number of candidates. + * + * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct. + **/ + desiredCandidates: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The invulnerable, permissioned collators. This list must be sorted. + **/ + invulnerables: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Last block authored by collator. + **/ + lastAuthoredBlock: AugmentedQuery Observable, [AccountId32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + foreignAssets: { + /** + * The holdings of a specific account for a specific asset. + **/ + account: AugmentedQuery Observable>, [StagingXcmV3MultiLocation, AccountId32]> & QueryableStorageEntry; + /** + * 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. + **/ + approvals: AugmentedQuery Observable>, [StagingXcmV3MultiLocation, AccountId32, AccountId32]> & QueryableStorageEntry; + /** + * Details of an asset. + **/ + asset: AugmentedQuery Observable>, [StagingXcmV3MultiLocation]> & QueryableStorageEntry; + /** + * Metadata of an asset. + **/ + metadata: AugmentedQuery Observable<{ + readonly deposit: u128; + readonly name: Bytes; + readonly symbol: Bytes; + readonly decimals: u8; + readonly isFrozen: bool; + } & Struct>, [StagingXcmV3MultiLocation]> & QueryableStorageEntry; + /** + * 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. + **/ + nextAssetId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + messageQueue: { + /** + * The index of the first and last (non-empty) pages. + **/ + bookStateFor: AugmentedQuery Observable, [CumulusPrimitivesCoreAggregateMessageOrigin]> & QueryableStorageEntry; + /** + * The map of page indices to pages. + **/ + pages: AugmentedQuery Observable>, [CumulusPrimitivesCoreAggregateMessageOrigin, u32]> & QueryableStorageEntry; + /** + * The origin at which we should begin servicing. + **/ + serviceHead: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + multisig: { + /** + * The set of open multisig operations. + **/ + multisigs: AugmentedQuery Observable>, [AccountId32, U8aFixed]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + nfts: { + /** + * The items held by any given account; set out this way so that items owned by a single + * account can be enumerated. + **/ + account: AugmentedQuery Observable>, [AccountId32, u32, u32]> & QueryableStorageEntry; + /** + * Attributes of a collection. + **/ + attribute: AugmentedQuery | null | Uint8Array | u32 | AnyNumber, arg3: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable>>, [u32, Option, PalletNftsAttributeNamespace, Bytes]> & QueryableStorageEntry, PalletNftsAttributeNamespace, Bytes]>; + /** + * Details of a collection. + **/ + collection: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * The collections owned by any given account; set out this way so that collections owned by + * a single account can be enumerated. + **/ + collectionAccount: AugmentedQuery Observable>, [AccountId32, u32]> & QueryableStorageEntry; + /** + * Config of a collection. + **/ + collectionConfigOf: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Metadata of a collection. + **/ + collectionMetadataOf: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * The items in existence and their ownership details. + * Stores collection roles as per account. + **/ + collectionRoleOf: AugmentedQuery Observable>, [u32, AccountId32]> & QueryableStorageEntry; + /** + * The items in existence and their ownership details. + **/ + item: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Item attribute approvals. + **/ + itemAttributesApprovalsOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Config of an item. + **/ + itemConfigOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Metadata of an item. + **/ + itemMetadataOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * A price of an item. + **/ + itemPriceOf: AugmentedQuery Observable]>>>, [u32, u32]> & QueryableStorageEntry; + /** + * Stores the `CollectionId` that is going to be used for the next collection. + * This gets incremented whenever a new collection is created. + **/ + nextCollectionId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The collection, if any, of which an account is willing to take ownership. + **/ + ownershipAcceptance: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * Handles all the pending swaps. + **/ + pendingSwapOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainInfo: { + parachainId: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainSystem: { + /** + * 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. + **/ + aggregatedUnincludedSegment: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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`. + **/ + announcedHrmpMessagesPerCandidate: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * A custom head data that should be returned as result of `validate_block`. + * + * See `Pallet::set_custom_validation_head_data` for more information. + **/ + customValidationHeadData: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Were the validation data set to notify the relay chain? + **/ + didSetValidationCode: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + hostConfiguration: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * HRMP messages that were sent in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + hrmpOutboundMessages: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * HRMP watermark that was set in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + hrmpWatermark: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + lastDmqMqcHead: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + lastHrmpMqcHeads: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The relay chain block number associated with the last parachain block. + * + * This is updated in `on_finalize`. + **/ + lastRelayChainBlockNumber: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + newValidationCode: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Upward messages that are still pending and not yet send to the relay chain. + **/ + pendingUpwardMessages: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + pendingValidationCode: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Number of downward messages processed in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + processedDownwardMessages: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + relayStateProof: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + relevantMessagingState: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The weight we reserve at the beginning of the block for processing DMP messages. This + * overrides the amount set in the Config trait. + **/ + reservedDmpWeightOverride: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The weight we reserve at the beginning of the block for processing XCMP messages. This + * overrides the amount set in the Config trait. + **/ + reservedXcmpWeightOverride: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + unincludedSegment: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + upgradeGoAhead: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + upgradeRestrictionSignal: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The factor to multiply the base delivery fee by for UMP. + **/ + upwardDeliveryFeeFactor: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Upward messages that were sent in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + upwardMessages: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + validationData: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + polkadotXcm: { + /** + * 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). + **/ + assetTraps: AugmentedQuery Observable, [H256]> & QueryableStorageEntry; + /** + * The current migration's stage, if any. + **/ + currentMigration: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Fungible assets which we know are locked on this chain. + **/ + lockedFungibles: AugmentedQuery Observable>>>, [AccountId32]> & QueryableStorageEntry; + /** + * The ongoing queries. + **/ + queries: AugmentedQuery Observable>, [u64]> & QueryableStorageEntry; + /** + * The latest available query index. + **/ + queryCounter: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + recordedXcm: AugmentedQuery Observable>>, []> & QueryableStorageEntry; + /** + * Fungible assets which we know are locked on a remote chain. + **/ + remoteLockedFungibles: AugmentedQuery Observable>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry; + /** + * 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. + **/ + safeXcmVersion: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + shouldRecordXcm: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The Latest versions that we know various locations support. + **/ + supportedVersion: AugmentedQuery Observable>, [u32, XcmVersionedLocation]> & QueryableStorageEntry; + /** + * 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. + **/ + versionDiscoveryQueue: AugmentedQuery Observable>>, []> & QueryableStorageEntry; + /** + * All locations that we have requested version notifications from. + **/ + versionNotifiers: AugmentedQuery Observable>, [u32, XcmVersionedLocation]> & QueryableStorageEntry; + /** + * The target locations that are subscribed to our version changes, as well as the most recent + * of our versions we informed them of. + **/ + versionNotifyTargets: AugmentedQuery Observable>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry; + /** + * Global suspension state of the XCM executor. + **/ + xcmExecutionSuspended: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + poolAssets: { + /** + * The holdings of a specific account for a specific asset. + **/ + account: AugmentedQuery Observable>, [u32, AccountId32]> & QueryableStorageEntry; + /** + * 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. + **/ + approvals: AugmentedQuery Observable>, [u32, AccountId32, AccountId32]> & QueryableStorageEntry; + /** + * Details of an asset. + **/ + asset: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Metadata of an asset. + **/ + metadata: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * 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. + **/ + nextAssetId: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + proxy: { + /** + * The announcements made by the proxy (key). + **/ + announcements: AugmentedQuery Observable, u128]>>, [AccountId32]> & QueryableStorageEntry; + /** + * 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. + **/ + proxies: AugmentedQuery Observable, u128]>>, [AccountId32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + session: { + /** + * Current index of the session. + **/ + currentIndex: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + disabledValidators: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The owner of a key. The key is the `KeyTypeId` + the encoded key. + **/ + keyOwner: AugmentedQuery | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]> & QueryableStorageEntry]>; + /** + * The next session keys for a validator. + **/ + nextKeys: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * True if the underlying economic identities or weighting behind the validators + * has changed in the queued validator set. + **/ + queuedChanged: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The queued keys for the next session. When the next session begins, these keys + * will be used to determine the validator's session keys. + **/ + queuedKeys: AugmentedQuery Observable>>, []> & QueryableStorageEntry; + /** + * The current set of validators. + **/ + validators: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + system: { + /** + * The full account information for a particular account ID. + **/ + account: AugmentedQuery Observable, [AccountId32]> & QueryableStorageEntry; + /** + * Total length (in bytes) for all extrinsics put together, for the current block. + **/ + allExtrinsicsLen: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * `Some` if a code upgrade has been authorized. + **/ + authorizedUpgrade: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Map of block numbers to block hashes. + **/ + blockHash: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * The current weight for the block. + **/ + blockWeight: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Digest of the current block, also part of the block header. + **/ + digest: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The number of events in the `Events` list. + **/ + eventCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * 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. + **/ + events: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * 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. + **/ + eventTopics: AugmentedQuery Observable>>, [H256]> & QueryableStorageEntry; + /** + * The execution phase of the block. + **/ + executionPhase: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Total extrinsics count for the current block. + **/ + extrinsicCount: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Extrinsics data for the current block (maps an extrinsic's index to its data). + **/ + extrinsicData: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * Whether all inherents have been applied. + **/ + inherentsApplied: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. + **/ + lastRuntimeUpgrade: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The current block number being processed. Set by `execute_block`. + **/ + number: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Hash of the previous block. + **/ + parentHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False + * (default) if not. + **/ + upgradedToTripleRefCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. + **/ + upgradedToU32RefCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + timestamp: { + /** + * 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. + **/ + didUpdate: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The current time for the current block. + **/ + now: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + 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. + **/ + bridge: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + transactionPayment: { + nextFeeMultiplier: AugmentedQuery Observable, []> & QueryableStorageEntry; + storageVersion: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + uniques: { + /** + * The items held by any given account; set out this way so that items owned by a single + * account can be enumerated. + **/ + account: AugmentedQuery Observable>, [AccountId32, u32, u32]> & QueryableStorageEntry; + /** + * The items in existence and their ownership details. + **/ + asset: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Attributes of a collection. + **/ + attribute: AugmentedQuery | null | Uint8Array | u32 | AnyNumber, arg3: Bytes | string | Uint8Array) => Observable>>, [u32, Option, Bytes]> & QueryableStorageEntry, Bytes]>; + /** + * Details of a collection. + **/ + class: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * The collections owned by any given account; set out this way so that collections owned by + * a single account can be enumerated. + **/ + classAccount: AugmentedQuery Observable>, [AccountId32, u32]> & QueryableStorageEntry; + /** + * Metadata of a collection. + **/ + classMetadataOf: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Keeps track of the number of items a collection might have. + **/ + collectionMaxSupply: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + /** + * Metadata of an item. + **/ + instanceMetadataOf: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; + /** + * Price of an asset instance. + **/ + itemPriceOf: AugmentedQuery Observable]>>>, [u32, u32]> & QueryableStorageEntry; + /** + * The collection, if any, of which an account is willing to take ownership. + **/ + ownershipAcceptance: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + vesting: { + /** + * Storage version of the pallet. + * + * New networks start with latest version, as determined by the genesis build. + **/ + storageVersion: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Information regarding the vesting of a given account. + **/ + vesting: AugmentedQuery Observable>>, [AccountId32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + xcmpQueue: { + /** + * The factor to multiply the base delivery fee by. + **/ + deliveryFeeFactor: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * 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. + **/ + inboundXcmpSuspended: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The messages outbound in a given XCMP channel. + **/ + outboundXcmpMessages: AugmentedQuery Observable, [u32, u16]> & QueryableStorageEntry; + /** + * 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. + **/ + outboundXcmpStatus: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The configuration which controls the dynamics of the outbound queue. + **/ + queueConfig: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. + **/ + queueSuspended: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Any signal messages waiting to be sent. + **/ + signalMessages: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + } // AugmentedQueries +} // declare module diff --git a/packages/api-augment/src/assetHubPolkadot/runtime.ts b/packages/api-augment/src/assetHubPolkadot/runtime.ts new file mode 100644 index 000000000000..158253f13eeb --- /dev/null +++ b/packages/api-augment/src/assetHubPolkadot/runtime.ts @@ -0,0 +1,313 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/calls'; + +import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; +import type { Bytes, Null, Option, Result, Text, Vec, bool, u128, u32 } from '@polkadot/types-codec'; +import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; +import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; +import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; +import type { AccountId32, H256, RuntimeCall, Slot, SlotDuration } from '@polkadot/types/interfaces/runtime'; +import type { AssetHubPolkadotRuntimeOriginCaller, AssetsCommonRuntimeApiFungiblesAccessError, CumulusPrimitivesCoreCollationInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpConsensusAuraEd25519AppEd25519Public, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; +import type { IExtrinsic, Observable } from '@polkadot/types/types'; + +export type __AugmentedCall = AugmentedCall; +export type __DecoratedCallBase = DecoratedCallBase; + +declare module '@polkadot/api-base/types/calls' { + interface AugmentedCalls { + /** 0xbc9d89904f5b923f/ */ + accountNonceApi: { + /** + * Get current account nonce of given `AccountId`. + **/ + accountNonce: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x8a8047a53a8277ec/ */ + assetConversionApi: { + /** + * Returns the size of the liquidity pool for the given asset pair. + **/ + getReserves: AugmentedCall Observable>>>; + /** + * 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.) + **/ + quotePriceExactTokensForTokens: AugmentedCall Observable>>; + /** + * 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.) + **/ + quotePriceTokensForExactTokens: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xdd718d5cc53262d4/ */ + auraApi: { + /** + * Return the current set of authorities. + **/ + authorities: AugmentedCall Observable>>; + /** + * Returns the slot duration for Aura.,, Currently, only the value provided by this type at genesis will be used. + **/ + slotDuration: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 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. + **/ + canBuildUpon: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x40fe3ad401f8959a/ */ + blockBuilder: { + /** + * Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not. + **/ + applyExtrinsic: AugmentedCall Observable, SpRuntimeTransactionValidityTransactionValidityError>>>; + /** + * Check that the inherents are valid. The inherent data will vary from chain to chain. + **/ + checkInherents: AugmentedCall Observable>; + /** + * Finish the current block. + **/ + finalizeBlock: AugmentedCall Observable>; + /** + * Generate inherent extrinsics. The inherent data will vary from chain to chain. + **/ + inherentExtrinsics: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 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. + **/ + collectCollationInfo: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xdf6acb689907609b/ */ + core: { + /** + * Execute the given block. + **/ + executeBlock: AugmentedCall Observable>; + /** + * Initialize a block with the given header and return the runtime executive mode. + **/ + initializeBlock: AugmentedCall Observable>; + /** + * Returns the version of the runtime. + **/ + version: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x91b1c8b16328eb92/ */ + dryRunApi: { + /** + * Dry run call. + **/ + dryRunCall: AugmentedCall Observable>>; + /** + * Dry run XCM program + **/ + dryRunXcm: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xde92b8a0426b9bf6/ */ + fungiblesApi: { + /** + * Returns the list of all [`Asset`] that an `AccountId` has. + **/ + queryAccountBalances: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 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. + **/ + buildState: AugmentedCall Observable>>; + /** + * 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. + **/ + getPreset: AugmentedCall | null | Uint8Array | Text | string) => Observable>>; + /** + * 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. + **/ + presetNames: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x9ffb505aa738d69c/ */ + locationToAccountApi: { + /** + * Converts `Location` to `AccountId`. + **/ + convertLocation: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x37e397fc7c91f5e4/ */ + metadata: { + /** + * Returns the metadata of a runtime. + **/ + metadata: AugmentedCall Observable>; + /** + * 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. + **/ + metadataAtVersion: AugmentedCall Observable>>; + /** + * Returns the supported metadata versions.,, This can be used to call `metadata_at_version`. + **/ + metadataVersions: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xf78b278be53f454c/ */ + offchainWorkerApi: { + /** + * Starts the off-chain task for given block header. + **/ + offchainWorker: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xab3c0572291feb8b/ */ + sessionKeys: { + /** + * Decode the given public session keys.,, Returns the list of public raw public keys + key type. + **/ + decodeSessionKeys: AugmentedCall Observable>>>>; + /** + * 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. + **/ + generateSessionKeys: AugmentedCall | null | Uint8Array | Bytes | string) => Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 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. + **/ + validateTransaction: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x37c8bb1350a9a2a8/ */ + transactionPaymentApi: { + /** + * + **/ + queryFeeDetails: AugmentedCall Observable>; + /** + * + **/ + queryInfo: AugmentedCall Observable>; + /** + * + **/ + queryLengthToFee: AugmentedCall Observable>; + /** + * + **/ + queryWeightToFee: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xf3ff14d5ab527059/ */ + transactionPaymentCallApi: { + /** + * Query fee details of a given encoded `Call`. + **/ + queryCallFeeDetails: AugmentedCall Observable>; + /** + * Query information of a dispatch class, weight, and fee of a given encoded `Call`. + **/ + queryCallInfo: AugmentedCall Observable>; + /** + * Query the output of the current `LengthToFee` given some input. + **/ + queryLengthToFee: AugmentedCall Observable>; + /** + * Query the output of the current `WeightToFee` given some input. + **/ + queryWeightToFee: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x6ff52ee858e6c5bd/ */ + xcmPaymentApi: { + /** + * Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version. + **/ + queryAcceptablePaymentAssets: AugmentedCall Observable, XcmRuntimeApisFeesError>>>; + /** + * 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. + **/ + queryDeliveryFees: AugmentedCall Observable>>; + /** + * Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`. + **/ + queryWeightToAssetFee: AugmentedCall Observable>>; + /** + * Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`. + **/ + queryXcmWeight: AugmentedCall Observable>>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + } // AugmentedCalls +} // declare module diff --git a/packages/api-augment/src/assetHubPolkadot/tx.ts b/packages/api-augment/src/assetHubPolkadot/tx.ts new file mode 100644 index 000000000000..8a68b7404500 --- /dev/null +++ b/packages/api-augment/src/assetHubPolkadot/tx.ts @@ -0,0 +1,3896 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/submittable'; + +import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types'; +import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime'; +import type { AssetHubPolkadotRuntimeOriginCaller, AssetHubPolkadotRuntimeProxyType, AssetHubPolkadotRuntimeSessionKeys, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, PalletBalancesAdjustmentDirection, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV3MultiLocation, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; + +export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; +export type __SubmittableExtrinsic = SubmittableExtrinsic; +export type __SubmittableExtrinsicFunction = SubmittableExtrinsicFunction; + +declare module '@polkadot/api-base/types/submittable' { + interface AugmentedSubmittables { + assetConversion: { + /** + * 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. + **/ + addLiquidity: AugmentedSubmittable<(asset1: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, amount1Desired: u128 | AnyNumber | Uint8Array, amount2Desired: u128 | AnyNumber | Uint8Array, amount1Min: u128 | AnyNumber | Uint8Array, amount2Min: u128 | AnyNumber | Uint8Array, mintTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, StagingXcmV3MultiLocation, u128, u128, u128, u128, AccountId32]>; + /** + * 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. + **/ + createPool: AugmentedSubmittable<(asset1: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + removeLiquidity: AugmentedSubmittable<(asset1: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, lpTokenBurn: u128 | AnyNumber | Uint8Array, amount1MinReceive: u128 | AnyNumber | Uint8Array, amount2MinReceive: u128 | AnyNumber | Uint8Array, withdrawTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, StagingXcmV3MultiLocation, u128, u128, u128, 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. + **/ + swapExactTokensForTokens: AugmentedSubmittable<(path: Vec | (StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array)[], amountIn: u128 | AnyNumber | Uint8Array, amountOutMin: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Vec, u128, u128, AccountId32, bool]>; + /** + * 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. + **/ + swapTokensForExactTokens: AugmentedSubmittable<(path: Vec | (StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array)[], amountOut: u128 | AnyNumber | Uint8Array, amountInMax: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Vec, u128, u128, AccountId32, bool]>; + /** + * 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. + **/ + touch: AugmentedSubmittable<(asset1: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, StagingXcmV3MultiLocation]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + assets: { + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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)` + **/ + block: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * 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`. + **/ + burn: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, u128]>; + /** + * 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. + **/ + destroyAccounts: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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. + **/ + destroyApprovals: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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. + **/ + finishDestroy: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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)` + **/ + forceAssetStatus: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array, isSufficient: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress, MultiAddress, MultiAddress, Compact, bool, bool]>; + /** + * 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)` + **/ + forceCancelApproval: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress]>; + /** + * 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)` + **/ + forceClearMetadata: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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)` + **/ + forceCreate: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, isSufficient: bool | boolean | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, bool, Compact]>; + /** + * 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. + **/ + forceSetMetadata: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, Bytes, Bytes, u8, bool]>; + /** + * 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`. + **/ + forceTransfer: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress, Compact]>; + /** + * 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)` + **/ + freeze: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, 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)` + **/ + freezeAsset: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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`. + **/ + mint: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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. + **/ + refund: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, bool]>; + /** + * 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. + **/ + refundOther: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, 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)` + **/ + setMetadata: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, Bytes, Bytes, u8]>; + /** + * 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. + **/ + setMinBalance: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, u128]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress, MultiAddress]>; + /** + * 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`. + **/ + startDestroy: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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)` + **/ + thaw: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * 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)` + **/ + thawAsset: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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. + **/ + touch: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * 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. + **/ + touchOther: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * 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`. + **/ + transfer: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferApproved: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, destination: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, MultiAddress, Compact]>; + /** + * 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`. + **/ + transferKeepAlive: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(id: Compact | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + balances: { + /** + * 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_. + **/ + burn: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, bool]>; + /** + * Adjust the total issuance in a saturating way. + * + * Can only be called by root and always needs a positive `delta`. + * + * # Example + **/ + forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [PalletBalancesAdjustmentDirection, Compact]>; + /** + * Set the regular balance of a given account. + * + * The dispatch origin for this call is `root`. + **/ + forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; + /** + * Exactly as `transfer_allow_death`, except the origin must be root and the source account + * may be specified. + **/ + forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, Compact]>; + /** + * Unreserve some balance from a user by force. + * + * Can only be called by ROOT. + **/ + forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, u128]>; + /** + * 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). + **/ + transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [MultiAddress, bool]>; + /** + * 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. + **/ + transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; + /** + * 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 + **/ + transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; + /** + * 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). + **/ + upgradeAccounts: AugmentedSubmittable<(who: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + collatorSelection: { + /** + * 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`. + **/ + addInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must + * be sorted. + * + * The origin for this call must be the `UpdateOrigin`. + **/ + removeInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; + /** + * 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`. + **/ + setCandidacyBond: AugmentedSubmittable<(bond: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u128]>; + /** + * 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`. + **/ + setDesiredCandidates: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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`. + **/ + setInvulnerables: AugmentedSubmittable<(updated: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * 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. + **/ + takeCandidateSlot: AugmentedSubmittable<(deposit: u128 | AnyNumber | Uint8Array, target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [u128, 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. + **/ + updateBond: AugmentedSubmittable<(newDeposit: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u128]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + cumulusXcm: { + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + foreignAssets: { + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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)` + **/ + block: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * 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`. + **/ + burn: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, u128]>; + /** + * 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. + **/ + destroyAccounts: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + destroyApprovals: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + finishDestroy: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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)` + **/ + forceAssetStatus: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array, isSufficient: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress, MultiAddress, MultiAddress, Compact, bool, bool]>; + /** + * 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)` + **/ + forceCancelApproval: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress]>; + /** + * 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)` + **/ + forceClearMetadata: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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)` + **/ + forceCreate: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, isSufficient: bool | boolean | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, bool, Compact]>; + /** + * 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. + **/ + forceSetMetadata: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, Bytes, Bytes, u8, bool]>; + /** + * 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`. + **/ + forceTransfer: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress, Compact]>; + /** + * 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)` + **/ + freeze: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, 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)` + **/ + freezeAsset: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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`. + **/ + mint: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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. + **/ + refund: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, bool]>; + /** + * 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. + **/ + refundOther: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, 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)` + **/ + setMetadata: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, Bytes, Bytes, u8]>; + /** + * 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. + **/ + setMinBalance: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, u128]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress, MultiAddress]>; + /** + * 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`. + **/ + startDestroy: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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)` + **/ + thaw: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * 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)` + **/ + thawAsset: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + touch: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation]>; + /** + * 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. + **/ + touchOther: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * 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`. + **/ + transfer: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferApproved: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, destination: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, MultiAddress, Compact]>; + /** + * 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`. + **/ + transferKeepAlive: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(id: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + messageQueue: { + /** + * 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). + **/ + executeOverweight: AugmentedSubmittable<(messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin | { Here: any } | { Parent: any } | { Sibling: any } | string | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesCoreAggregateMessageOrigin, u32, u32, SpWeightsWeightV2Weight]>; + /** + * Remove a page which has no more messages remaining to be processed or is stale. + **/ + reapPage: AugmentedSubmittable<(messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin | { Here: any } | { Parent: any } | { Sibling: any } | string | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesCoreAggregateMessageOrigin, u32]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + multisig: { + /** + * 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`. + **/ + approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, Option, U8aFixed, 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`. + * + * 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`. + **/ + asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: Call | IMethod | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, Option, Call, SpWeightsWeightV2Weight]>; + /** + * 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. + **/ + asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, Call]>; + /** + * 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. + **/ + cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, PalletMultisigTimepoint, U8aFixed]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + nfts: { + /** + * 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. + **/ + approveItemAttributes: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress]>; + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, maybeDeadline: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [u32, u32, MultiAddress, Option]>; + /** + * 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)` + **/ + burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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. + **/ + buyItem: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, bidPrice: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u128]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, 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. + **/ + cancelItemAttributesApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witness: PalletNftsCancelAttributesApprovalWitness | { accountAttributes?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress, PalletNftsCancelAttributesApprovalWitness]>; + /** + * 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. + **/ + cancelSwap: AugmentedSubmittable<(offeredCollection: u32 | AnyNumber | Uint8Array, offeredItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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. + **/ + claimSwap: AugmentedSubmittable<(sendCollection: u32 | AnyNumber | Uint8Array, sendItem: u32 | AnyNumber | Uint8Array, receiveCollection: u32 | AnyNumber | Uint8Array, receiveItem: u32 | AnyNumber | Uint8Array, witnessPrice: Option | null | Uint8Array | PalletNftsPriceWithDirection | { amount?: any; direction?: any } | string) => SubmittableExtrinsic, [u32, u32, u32, u32, Option]>; + /** + * 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)` + **/ + clearAllTransferApprovals: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, PalletNftsAttributeNamespace, 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)` + **/ + clearCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, config: PalletNftsCollectionConfig | { settings?: any; maxSupply?: any; mintSettings?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletNftsCollectionConfig]>; + /** + * 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. + **/ + createSwap: AugmentedSubmittable<(offeredCollection: u32 | AnyNumber | Uint8Array, offeredItem: u32 | AnyNumber | Uint8Array, desiredCollection: u32 | AnyNumber | Uint8Array, maybeDesiredItem: Option | null | Uint8Array | u32 | AnyNumber, maybePrice: Option | null | Uint8Array | PalletNftsPriceWithDirection | { amount?: any; direction?: any } | string, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u32, Option, Option, u32]>; + /** + * 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` + **/ + destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletNftsDestroyWitness | { itemMetadatas?: any; itemConfigs?: any; attributes?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletNftsDestroyWitness]>; + /** + * 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)` + **/ + forceCollectionConfig: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, config: PalletNftsCollectionConfig | { settings?: any; maxSupply?: any; mintSettings?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletNftsCollectionConfig]>; + /** + * 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)` + **/ + forceCollectionOwner: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, 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. + * + * - `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)` + **/ + forceCreate: AugmentedSubmittable<(owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, config: PalletNftsCollectionConfig | { settings?: any; maxSupply?: any; mintSettings?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletNftsCollectionConfig]>; + /** + * 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)` + **/ + forceMint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, itemConfig: PalletNftsItemConfig | { settings?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress, PalletNftsItemConfig]>; + /** + * 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)` + **/ + forceSetAttribute: AugmentedSubmittable<(setAs: Option | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Option, u32, Option, PalletNftsAttributeNamespace, Bytes, Bytes]>; + /** + * 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)` + **/ + lockCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, lockSettings: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u64]>; + /** + * 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)` + **/ + lockItemProperties: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, lockMetadata: bool | boolean | Uint8Array, lockAttributes: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, u32, bool, bool]>; + /** + * 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)` + **/ + lockItemTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, witnessData: Option | null | Uint8Array | PalletNftsMintWitness | { ownedItem?: any; mintPrice?: any } | string) => SubmittableExtrinsic, [u32, u32, MultiAddress, Option]>; + /** + * 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. + **/ + mintPreSigned: AugmentedSubmittable<(mintData: PalletNftsPreSignedMint | { collection?: any; item?: any; attributes?: any; metadata?: any; onlyAccount?: any; deadline?: any; mintPrice?: any } | string | Uint8Array, signature: SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [PalletNftsPreSignedMint, SpRuntimeMultiSignature, AccountId32]>; + /** + * Allows to pay the tips. + * + * Origin must be Signed. + * + * - `tips`: Tips array. + * + * Emits `TipSent` on every tip transfer. + **/ + payTips: AugmentedSubmittable<(tips: Vec | (PalletNftsItemTip | { collection?: any; item?: any; receiver?: any; amount?: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * 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())` + **/ + redeposit: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, items: Vec | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; + /** + * 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`. + **/ + setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * 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)` + **/ + setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, PalletNftsAttributeNamespace, Bytes, Bytes]>; + /** + * 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. + **/ + setAttributesPreSigned: AugmentedSubmittable<(data: PalletNftsPreSignedAttributes | { collection?: any; item?: any; attributes?: any; namespace?: any; deadline?: any } | string | Uint8Array, signature: SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [PalletNftsPreSignedAttributes, SpRuntimeMultiSignature, AccountId32]>; + /** + * 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. + **/ + setCollectionMaxSupply: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maxSupply: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + setCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Bytes]>; + /** + * 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)` + **/ + setMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Bytes]>; + /** + * 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`. + **/ + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string, admin: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string, freezer: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, Option, Option, Option]>; + /** + * 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)` + **/ + transfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, newOwner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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)` + **/ + unlockItemTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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. + **/ + updateMintSettings: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, mintSettings: PalletNftsMintSettings | { mintType?: any; price?: any; startBlock?: any; endBlock?: any; defaultItemSettings?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletNftsMintSettings]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainInfo: { + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainSystem: { + /** + * 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. + **/ + authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array, checkVersion: bool | boolean | Uint8Array) => SubmittableExtrinsic, [H256, bool]>; + /** + * 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. + **/ + enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * 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. + **/ + setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | { validationData?: any; relayChainState?: any; downwardMessages?: any; horizontalMessages?: any } | string | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesParachainInherentParachainInherentData]>; + sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + polkadotXcm: { + /** + * 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. + **/ + claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedAssets, XcmVersionedLocation]>; + /** + * 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. + **/ + execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedXcm, SpWeightsWeightV2Weight]>; + /** + * 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. + **/ + forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * 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. + **/ + forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation]>; + /** + * 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. + **/ + forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic, [bool]>; + /** + * 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. + **/ + forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation]>; + /** + * 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. + **/ + forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV4Location, u32]>; + /** + * 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. + **/ + limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, 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. + **/ + limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>; + /** + * 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. + **/ + reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>; + send: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, 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. + **/ + teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>; + /** + * 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. + **/ + transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>; + /** + * 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. + **/ + transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + poolAssets: { + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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)` + **/ + block: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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`. + **/ + burn: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, u128]>; + /** + * 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. + **/ + destroyAccounts: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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. + **/ + destroyApprovals: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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. + **/ + finishDestroy: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + forceAssetStatus: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array, isSufficient: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, MultiAddress, MultiAddress, Compact, bool, bool]>; + /** + * 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)` + **/ + forceCancelApproval: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress]>; + /** + * 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)` + **/ + forceClearMetadata: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + forceCreate: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, isSufficient: bool | boolean | Uint8Array, minBalance: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, bool, Compact]>; + /** + * 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. + **/ + forceSetMetadata: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, Bytes, Bytes, u8, bool]>; + /** + * 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`. + **/ + forceTransfer: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, Compact]>; + /** + * 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)` + **/ + freeze: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, 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)` + **/ + freezeAsset: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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`. + **/ + mint: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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. + **/ + refund: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, bool]>; + /** + * 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. + **/ + refundOther: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, 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)` + **/ + setMetadata: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Bytes, Bytes, u8]>; + /** + * 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. + **/ + setMinBalance: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u128]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, MultiAddress]>; + /** + * 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`. + **/ + startDestroy: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + thaw: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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)` + **/ + thawAsset: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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. + **/ + touch: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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. + **/ + touchOther: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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`. + **/ + transfer: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferApproved: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, destination: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, Compact]>; + /** + * 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`. + **/ + transferKeepAlive: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, Compact]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + proxy: { + /** + * 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. + **/ + addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: AssetHubPolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, AssetHubPolkadotRuntimeProxyType, u32]>; + /** + * 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. + **/ + announce: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, H256]>; + /** + * 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. + **/ + createPure: AugmentedSubmittable<(proxyType: AssetHubPolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [AssetHubPolkadotRuntimeProxyType, u32, u16]>; + /** + * 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. + **/ + killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: AssetHubPolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact | AnyNumber | Uint8Array, extIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, AssetHubPolkadotRuntimeProxyType, u16, Compact, Compact]>; + /** + * 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. + **/ + proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option | null | Uint8Array | AssetHubPolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Option, Call]>; + /** + * 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. + **/ + proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option | null | Uint8Array | AssetHubPolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, Option, Call]>; + /** + * 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. + **/ + rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, 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. + **/ + removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, H256]>; + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * 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. + **/ + removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: AssetHubPolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, AssetHubPolkadotRuntimeProxyType, u32]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + session: { + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * 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. + **/ + setKeys: AugmentedSubmittable<(keys: AssetHubPolkadotRuntimeSessionKeys | { aura?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic, [AssetHubPolkadotRuntimeSessionKeys, Bytes]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + system: { + /** + * 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. + **/ + applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied + * later. + * + * This call requires Root origin. + **/ + authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [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. + **/ + authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; + /** + * 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. + **/ + killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Bytes, u32]>; + /** + * Kill some items from storage. + **/ + killStorage: AugmentedSubmittable<(keys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * Make some on-chain remark. + * + * Can be executed by every `origin`. + **/ + remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Make some on-chain remark and emit event. + **/ + remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Set the new runtime code. + **/ + setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [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! + **/ + setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; + /** + * Set the number of pages in the WebAssembly environment's heap. + **/ + setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u64]>; + /** + * Set some items of storage. + **/ + setStorage: AugmentedSubmittable<(items: Vec> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic, [Vec>]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + 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)`. + **/ + set: AugmentedSubmittable<(now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + toKusamaXcmRouter: { + /** + * Notification about congested bridge queue. + **/ + reportBridgeStatus: AugmentedSubmittable<(bridgeId: H256 | string | Uint8Array, isCongested: bool | boolean | Uint8Array) => SubmittableExtrinsic, [H256, bool]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + uniques: { + /** + * 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)` + **/ + approveTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, 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()`. + **/ + burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, u32, Option]>; + /** + * 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. + **/ + buyItem: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, bidPrice: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u128]>; + /** + * 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)` + **/ + cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, u32, Option]>; + /** + * 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)` + **/ + clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, Bytes]>; + /** + * 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)` + **/ + clearCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + clearMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + create: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * 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` + **/ + destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletUniquesDestroyWitness | { items?: any; itemMetadatas?: any; attributes?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletUniquesDestroyWitness]>; + /** + * 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)` + **/ + forceCreate: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, bool]>; + /** + * 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)` + **/ + forceItemStatus: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, MultiAddress, MultiAddress, bool, bool]>; + /** + * 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)` + **/ + freeze: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + freezeCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, 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())` + **/ + redeposit: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, items: Vec | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; + /** + * 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`. + **/ + setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * 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)` + **/ + setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, Bytes, Bytes]>; + /** + * 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. + **/ + setCollectionMaxSupply: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maxSupply: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + setCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, Bytes, bool]>; + /** + * 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)` + **/ + setMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, u32, Bytes, bool]>; + /** + * 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`. + **/ + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + /** + * 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)` + **/ + setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress, MultiAddress, MultiAddress]>; + /** + * 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)` + **/ + thaw: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * 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)` + **/ + thawCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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)` + **/ + transfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, MultiAddress]>; + /** + * 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)` + **/ + transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, newOwner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + utility: { + /** + * 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_. + **/ + asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [u16, Call]>; + /** + * 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. + **/ + batch: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * 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. + **/ + batchAll: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * Dispatches a function call with a provided origin. + * + * The dispatch origin for this call must be _Root_. + * + * ## Complexity + * - O(1). + **/ + dispatchAs: AugmentedSubmittable<(asOrigin: AssetHubPolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [AssetHubPolkadotRuntimeOriginCaller, Call]>; + /** + * 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. + **/ + forceBatch: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * 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_. + **/ + withWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [Call, SpWeightsWeightV2Weight]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + vesting: { + /** + * Force remove a vesting schedule + * + * The dispatch origin for this call must be _Root_. + * + * - `target`: An account that has a vesting schedule + * - `schedule_index`: The vesting schedule index that should be removed + **/ + forceRemoveVestingSchedule: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, scheduleIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, u32]>; + /** + * Force a vested transfer. + * + * The dispatch origin for this call must be _Root_. + * + * - `source`: The account whose funds should be transferred. + * - `target`: The account that should be transferred the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. + **/ + forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: PalletVestingVestingInfo | { locked?: any; perBlock?: any; startingBlock?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, PalletVestingVestingInfo]>; + /** + * Merge two vesting schedules together, creating a new vesting schedule that unlocks over + * the highest possible start and end blocks. If both schedules have already started the + * current block will be used as the schedule start; with the caveat that if one schedule + * is finished by the current block, the other will be treated as the new merged schedule, + * unmodified. + * + * NOTE: If `schedule1_index == schedule2_index` this is a no-op. + * NOTE: This will unlock all schedules through the current block prior to merging. + * NOTE: If both schedules have ended by the current block, no new schedule will be created + * and both will be removed. + * + * Merged schedule attributes: + * - `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block, + * current_block)`. + * - `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`. + * - `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`. + * + * The dispatch origin for this call must be _Signed_. + * + * - `schedule1_index`: index of the first schedule to merge. + * - `schedule2_index`: index of the second schedule to merge. + **/ + mergeSchedules: AugmentedSubmittable<(schedule1Index: u32 | AnyNumber | Uint8Array, schedule2Index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + /** + * Unlock any vested funds of the sender account. + * + * The dispatch origin for this call must be _Signed_ and the sender must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. + **/ + vest: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Create a vested transfer. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account receiving the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. + **/ + vestedTransfer: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: PalletVestingVestingInfo | { locked?: any; perBlock?: any; startingBlock?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletVestingVestingInfo]>; + /** + * Unlock any vested funds of a `target` account. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account whose vested funds should be unlocked. Must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. + **/ + vestOther: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + xcmpQueue: { + /** + * 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: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. + * + * - `origin`: Must pass `ControllerOrigin`. + **/ + suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * 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` + **/ + updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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` + **/ + updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * 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` + **/ + updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + } // AugmentedSubmittables +} // declare module diff --git a/packages/api-derive/src/tx/signingInfo.ts b/packages/api-derive/src/tx/signingInfo.ts index 8b489d166012..7a38c91980b2 100644 --- a/packages/api-derive/src/tx/signingInfo.ts +++ b/packages/api-derive/src/tx/signingInfo.ts @@ -77,7 +77,7 @@ interface Aura { function babeOrAuraPeriod (api: DeriveApi): BN | undefined { const period = api.consts.babe?.expectedBlockTime || // this will be present ones https://github.com/paritytech/polkadot-sdk/pull/3732 is merged - (api.consts['aura'] as unknown as Aura)?.slotDuration || + (api.consts.aura as unknown as Aura)?.slotDuration || api.consts.timestamp?.minimumPeriod.muln(2); return period && period.isZero && !period.isZero() ? period : undefined; diff --git a/packages/typegen/src/generate/lookup.ts b/packages/typegen/src/generate/lookup.ts index f0328c3b63f8..9dbc2addfc7a 100644 --- a/packages/typegen/src/generate/lookup.ts +++ b/packages/typegen/src/generate/lookup.ts @@ -11,6 +11,8 @@ import Handlebars from 'handlebars'; import path from 'node:path'; import * as defaultDefinitions from '@polkadot/types/interfaces/definitions'; +import staticAssetHubKusama from '@polkadot/types-support/metadata/v15/asset-hub-kusama-hex'; +import staticAssetHubPolkadot from '@polkadot/types-support/metadata/v15/asset-hub-polkadot-hex'; import staticKusama from '@polkadot/types-support/metadata/v15/kusama-hex'; import staticPolkadot from '@polkadot/types-support/metadata/v15/polkadot-hex'; import staticSubstrate from '@polkadot/types-support/metadata/v15/substrate-hex'; @@ -271,7 +273,9 @@ export function generateDefaultLookup (destDir = 'packages/types-augment/src/loo : [ ['substrate', staticSubstrate], ['polkadot', staticPolkadot], - ['kusama', staticKusama] + ['kusama', staticKusama], + ['asset-hub-kusama', staticAssetHubKusama], + ['asset-hub-polkadot', staticAssetHubPolkadot] ] ); } diff --git a/packages/typegen/src/generate/runtime.ts b/packages/typegen/src/generate/runtime.ts index 184755631b8e..08a6fbfc097a 100644 --- a/packages/typegen/src/generate/runtime.ts +++ b/packages/typegen/src/generate/runtime.ts @@ -23,6 +23,8 @@ const generateCallsTypesTemplate = Handlebars.compile(readTemplate('calls')); // This works similar to the PATHS_ALIAS set from the PortableRegistry const aliases: Record = { + AssetHubKusamaRuntimeRuntimeCall: 'RuntimeCall', + AssetHubPolkadotRuntimeRuntimeCall: 'RuntimeCall', KitchensinkRuntimeRuntimeCall: 'RuntimeCall', OpaqueValue: 'Bytes', PolkadotParachainPrimitivesPrimitivesId: 'ParaId', @@ -32,6 +34,7 @@ const aliases: Record = { PrimitiveTypesH256: 'H256', SpConsensusBabeOpaqueKeyOwnershipProof: 'OpaqueKeyOwnershipProof', SpConsensusSlotsSlot: 'Slot', + SpConsensusSlotsSlotDuration: 'SlotDuration', SpCoreCryptoAccountId32: 'AccountId32', SpCoreOpaqueMetadata: 'OpaqueMetadata', SpRuntimeOpaqueValue: 'Bytes', diff --git a/packages/typegen/src/interfacesTs.ts b/packages/typegen/src/interfacesTs.ts index ffb93f5b7b13..95839b06f9a1 100644 --- a/packages/typegen/src/interfacesTs.ts +++ b/packages/typegen/src/interfacesTs.ts @@ -3,6 +3,8 @@ import type { HexString } from '@polkadot/util/types'; +import assetHubKusama from '@polkadot/types-support/metadata/v15/asset-hub-kusama-hex'; +import assetHubPolkadot from '@polkadot/types-support/metadata/v15/asset-hub-polkadot-hex'; import kusama from '@polkadot/types-support/metadata/v15/kusama-hex'; import polkadot from '@polkadot/types-support/metadata/v15/polkadot-hex'; import substrate from '@polkadot/types-support/metadata/v15/substrate-hex'; @@ -10,7 +12,7 @@ import substrate from '@polkadot/types-support/metadata/v15/substrate-hex'; import { generateDefaultConsts, generateDefaultErrors, generateDefaultEvents, generateDefaultInterface, generateDefaultLookup, generateDefaultQuery, generateDefaultRpc, generateDefaultRuntime, generateDefaultTsDef, generateDefaultTx } from './generate/index.js'; const BASE = 'packages/api-augment/src'; -const METAS = Object.entries({ kusama, polkadot, substrate }); +const METAS = Object.entries({ assetHubKusama, assetHubPolkadot, kusama, polkadot, substrate }); export function main (): void { generateDefaultInterface(); diff --git a/packages/typegen/src/metadataMd.ts b/packages/typegen/src/metadataMd.ts index 67646428066e..741b9a8cf416 100644 --- a/packages/typegen/src/metadataMd.ts +++ b/packages/typegen/src/metadataMd.ts @@ -17,6 +17,8 @@ import { Metadata, TypeRegistry, Vec } from '@polkadot/types'; import * as definitions from '@polkadot/types/interfaces/definitions'; import { getStorage as getSubstrateStorage } from '@polkadot/types/metadata/decorate/storage/getStorage'; import { unwrapStorageType } from '@polkadot/types/util'; +import assetHubKusamaMeta, { rpc as assetHubKusamaRpc, version as assetHubKusamaVer } from '@polkadot/types-support/metadata/static-asset-hub-kusama'; +import assetHubPolkadotMeta, { rpc as assetHubPolkadotRpc, version as assetHubPolkadotVer } from '@polkadot/types-support/metadata/static-asset-hub-polkadot'; import kusamaMeta, { rpc as kusamaRpc, version as kusamaVer } from '@polkadot/types-support/metadata/static-kusama'; import polkadotMeta, { rpc as polkadotRpc, version as polkadotVer } from '@polkadot/types-support/metadata/static-polkadot'; import substrateMeta from '@polkadot/types-support/metadata/static-substrate'; @@ -55,6 +57,16 @@ interface StaticDef { const headerFn = (runtimeDesc: string) => `\n\n(NOTE: These were generated from a static/snapshot view of a recent ${runtimeDesc}. Some items may not be available in older nodes, or in any customized implementations.)`; const ALL_STATIC: Record = { + 'asset-hub-kusama': { + meta: assetHubKusamaMeta, + rpc: assetHubKusamaRpc, + ver: assetHubKusamaVer as unknown as { apis: ApiDef[] } + }, + 'asset-hub-polkadot': { + meta: assetHubPolkadotMeta, + rpc: assetHubPolkadotRpc, + ver: assetHubPolkadotVer as unknown as { apis: ApiDef[] } + }, kusama: { meta: kusamaMeta, rpc: kusamaRpc, diff --git a/packages/types-augment/src/lookup/asset-hub-kusama.ts b/packages/types-augment/src/lookup/asset-hub-kusama.ts new file mode 100644 index 000000000000..471cc54e80f4 --- /dev/null +++ b/packages/types-augment/src/lookup/asset-hub-kusama.ts @@ -0,0 +1,576 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +/* eslint-disable sort-keys */ + +export default { + /** + * Lookup31: cumulus_pallet_parachain_system::pallet::Event + **/ + CumulusPalletParachainSystemEvent: { + _enum: { + ValidationFunctionStored: 'Null', + ValidationFunctionApplied: { + relayChainBlockNum: 'u32', + }, + ValidationFunctionDiscarded: 'Null', + DownwardMessagesReceived: { + count: 'u32', + }, + DownwardMessagesProcessed: { + weightUsed: 'SpWeightsWeightV2Weight', + dmqHead: 'H256', + }, + UpwardMessageSent: { + messageHash: 'Option<[u8;32]>' + } + } + }, + /** + * Lookup48: pallet_collator_selection::pallet::Event + **/ + PalletCollatorSelectionEvent: { + _enum: { + NewInvulnerables: { + invulnerables: 'Vec', + }, + InvulnerableAdded: { + accountId: 'AccountId32', + }, + InvulnerableRemoved: { + accountId: 'AccountId32', + }, + NewDesiredCandidates: { + desiredCandidates: 'u32', + }, + NewCandidacyBond: { + bondAmount: 'u128', + }, + CandidateAdded: { + accountId: 'AccountId32', + deposit: 'u128', + }, + CandidateBondUpdated: { + accountId: 'AccountId32', + deposit: 'u128', + }, + CandidateRemoved: { + accountId: 'AccountId32', + }, + CandidateReplaced: { + _alias: { + new_: 'new', + }, + old: 'AccountId32', + new_: 'AccountId32', + deposit: 'u128', + }, + InvalidInvulnerableSkipped: { + accountId: 'AccountId32' + } + } + }, + /** + * Lookup51: cumulus_pallet_xcmp_queue::pallet::Event + **/ + CumulusPalletXcmpQueueEvent: { + _enum: { + XcmpMessageSent: { + messageHash: '[u8;32]' + } + } + }, + /** + * Lookup117: cumulus_pallet_xcm::pallet::Event + **/ + CumulusPalletXcmEvent: { + _enum: { + InvalidFormat: '[u8;32]', + UnsupportedVersion: '[u8;32]', + ExecutedDownward: '([u8;32],StagingXcmV4TraitsOutcome)' + } + }, + /** + * Lookup119: cumulus_primitives_core::AggregateMessageOrigin + **/ + CumulusPrimitivesCoreAggregateMessageOrigin: { + _enum: { + Here: 'Null', + Parent: 'Null', + Sibling: 'u32' + } + }, + /** + * Lookup128: asset_hub_kusama_runtime::ProxyType + **/ + AssetHubKusamaRuntimeProxyType: { + _enum: ['Any', 'NonTransfer', 'CancelProxy', 'Assets', 'AssetOwner', 'AssetManager', 'Collator'] + }, + /** + * Lookup177: cumulus_pallet_parachain_system::unincluded_segment::Ancestor + **/ + CumulusPalletParachainSystemUnincludedSegmentAncestor: { + usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth', + paraHeadHash: 'Option', + consumedGoAheadSignal: 'Option' + }, + /** + * Lookup178: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth + **/ + CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: { + umpMsgCount: 'u32', + umpTotalBytes: 'u32', + hrmpOutgoing: 'BTreeMap' + }, + /** + * Lookup180: cumulus_pallet_parachain_system::unincluded_segment::HrmpChannelUpdate + **/ + CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: { + msgCount: 'u32', + totalBytes: 'u32' + }, + /** + * Lookup186: cumulus_pallet_parachain_system::unincluded_segment::SegmentTracker + **/ + CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: { + usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth', + hrmpWatermark: 'Option', + consumedGoAheadSignal: 'Option' + }, + /** + * Lookup191: sp_trie::storage_proof::StorageProof + **/ + SpTrieStorageProof: { + trieNodes: 'BTreeSet' + }, + /** + * Lookup193: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot + **/ + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: { + dmqMqcHead: 'H256', + relayDispatchQueueRemainingCapacity: 'CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity', + ingressChannels: 'Vec<(u32,PolkadotPrimitivesV7AbridgedHrmpChannel)>', + egressChannels: 'Vec<(u32,PolkadotPrimitivesV7AbridgedHrmpChannel)>' + }, + /** + * Lookup194: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity + **/ + CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: { + remainingCount: 'u32', + remainingSize: 'u32' + }, + /** + * Lookup197: polkadot_primitives::v7::AbridgedHrmpChannel + **/ + PolkadotPrimitivesV7AbridgedHrmpChannel: { + maxCapacity: 'u32', + maxTotalSize: 'u32', + maxMessageSize: 'u32', + msgCount: 'u32', + totalSize: 'u32', + mqcHead: 'Option' + }, + /** + * Lookup198: polkadot_primitives::v7::AbridgedHostConfiguration + **/ + PolkadotPrimitivesV7AbridgedHostConfiguration: { + maxCodeSize: 'u32', + maxHeadDataSize: 'u32', + maxUpwardQueueCount: 'u32', + maxUpwardQueueSize: 'u32', + maxUpwardMessageSize: 'u32', + maxUpwardMessageNumPerCandidate: 'u32', + hrmpMaxMessageNumPerCandidate: 'u32', + validationUpgradeCooldown: 'u32', + validationUpgradeDelay: 'u32', + asyncBackingParams: 'PolkadotPrimitivesV7AsyncBackingAsyncBackingParams' + }, + /** + * Lookup207: cumulus_pallet_parachain_system::pallet::Call + **/ + CumulusPalletParachainSystemCall: { + _enum: { + set_validation_data: { + data: 'CumulusPrimitivesParachainInherentParachainInherentData', + }, + sudo_send_upward_message: { + message: 'Bytes', + }, + authorize_upgrade: { + codeHash: 'H256', + checkVersion: 'bool', + }, + enact_authorized_upgrade: { + code: 'Bytes' + } + } + }, + /** + * Lookup208: cumulus_primitives_parachain_inherent::ParachainInherentData + **/ + CumulusPrimitivesParachainInherentParachainInherentData: { + validationData: 'PolkadotPrimitivesV7PersistedValidationData', + relayChainState: 'SpTrieStorageProof', + downwardMessages: 'Vec', + horizontalMessages: 'BTreeMap>' + }, + /** + * Lookup216: cumulus_pallet_parachain_system::pallet::Error + **/ + CumulusPalletParachainSystemError: { + _enum: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled', 'NothingAuthorized', 'Unauthorized'] + }, + /** + * Lookup218: staging_parachain_info::pallet::Call + **/ + StagingParachainInfoCall: 'Null', + /** + * Lookup228: asset_hub_kusama_runtime::RuntimeHoldReason + **/ + AssetHubKusamaRuntimeRuntimeHoldReason: { + _enum: { + __Unused0: 'Null', + __Unused1: 'Null', + __Unused2: 'Null', + __Unused3: 'Null', + __Unused4: 'Null', + __Unused5: 'Null', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + __Unused30: 'Null', + __Unused31: 'Null', + __Unused32: 'Null', + __Unused33: 'Null', + __Unused34: 'Null', + __Unused35: 'Null', + __Unused36: 'Null', + __Unused37: 'Null', + __Unused38: 'Null', + __Unused39: 'Null', + __Unused40: 'Null', + __Unused41: 'Null', + __Unused42: 'Null', + __Unused43: 'Null', + __Unused44: 'Null', + __Unused45: 'Null', + __Unused46: 'Null', + __Unused47: 'Null', + __Unused48: 'Null', + __Unused49: 'Null', + __Unused50: 'Null', + __Unused51: 'Null', + __Unused52: 'Null', + __Unused53: 'Null', + NftFractionalization: 'PalletNftFractionalizationHoldReason', + __Unused55: 'Null', + __Unused56: 'Null', + __Unused57: 'Null', + __Unused58: 'Null', + __Unused59: 'Null', + __Unused60: 'Null', + __Unused61: 'Null', + __Unused62: 'Null', + __Unused63: 'Null', + __Unused64: 'Null', + __Unused65: 'Null', + __Unused66: 'Null', + __Unused67: 'Null', + __Unused68: 'Null', + __Unused69: 'Null', + StateTrieMigration: 'PalletStateTrieMigrationHoldReason' + } + }, + /** + * Lookup249: pallet_collator_selection::pallet::CandidateInfo + **/ + PalletCollatorSelectionCandidateInfo: { + who: 'AccountId32', + deposit: 'u128' + }, + /** + * Lookup251: pallet_collator_selection::pallet::Call + **/ + PalletCollatorSelectionCall: { + _enum: { + set_invulnerables: { + _alias: { + new_: 'new', + }, + new_: 'Vec', + }, + set_desired_candidates: { + max: 'u32', + }, + set_candidacy_bond: { + bond: 'u128', + }, + register_as_candidate: 'Null', + leave_intent: 'Null', + add_invulnerable: { + who: 'AccountId32', + }, + remove_invulnerable: { + who: 'AccountId32', + }, + update_bond: { + newDeposit: 'u128', + }, + take_candidate_slot: { + deposit: 'u128', + target: 'AccountId32' + } + } + }, + /** + * Lookup252: pallet_collator_selection::pallet::Error + **/ + PalletCollatorSelectionError: { + _enum: ['TooManyCandidates', 'TooFewEligibleCollators', 'AlreadyCandidate', 'NotCandidate', 'TooManyInvulnerables', 'AlreadyInvulnerable', 'NotInvulnerable', 'NoAssociatedValidatorId', 'ValidatorNotRegistered', 'InsertToCandidateListFailed', 'RemoveFromCandidateListFailed', 'DepositTooLow', 'UpdateCandidateListFailed', 'InsufficientBond', 'TargetIsNotCandidate', 'IdenticalDeposit', 'InvalidUnreserve'] + }, + /** + * Lookup255: asset_hub_kusama_runtime::SessionKeys + **/ + AssetHubKusamaRuntimeSessionKeys: { + aura: 'SpConsensusAuraSr25519AppSr25519Public' + }, + /** + * Lookup256: sp_consensus_aura::sr25519::app_sr25519::Public + **/ + SpConsensusAuraSr25519AppSr25519Public: '[u8;32]', + /** + * Lookup269: cumulus_pallet_xcmp_queue::OutboundChannelDetails + **/ + CumulusPalletXcmpQueueOutboundChannelDetails: { + recipient: 'u32', + state: 'CumulusPalletXcmpQueueOutboundState', + signalsExist: 'bool', + firstIndex: 'u16', + lastIndex: 'u16' + }, + /** + * Lookup270: cumulus_pallet_xcmp_queue::OutboundState + **/ + CumulusPalletXcmpQueueOutboundState: { + _enum: ['Ok', 'Suspended'] + }, + /** + * Lookup274: cumulus_pallet_xcmp_queue::QueueConfigData + **/ + CumulusPalletXcmpQueueQueueConfigData: { + suspendThreshold: 'u32', + dropThreshold: 'u32', + resumeThreshold: 'u32' + }, + /** + * Lookup275: cumulus_pallet_xcmp_queue::pallet::Call + **/ + CumulusPalletXcmpQueueCall: { + _enum: { + __Unused0: 'Null', + suspend_xcm_execution: 'Null', + resume_xcm_execution: 'Null', + update_suspend_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_drop_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_resume_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32' + } + } + }, + /** + * Lookup276: cumulus_pallet_xcmp_queue::pallet::Error + **/ + CumulusPalletXcmpQueueError: { + _enum: ['BadQueueConfig', 'AlreadySuspended', 'AlreadyResumed', 'TooManyActiveOutboundChannels', 'TooBig'] + }, + /** + * Lookup338: cumulus_pallet_xcm::pallet::Call + **/ + CumulusPalletXcmCall: 'Null', + /** + * Lookup339: bp_xcm_bridge_hub_router::BridgeState + **/ + BpXcmBridgeHubRouterBridgeState: { + deliveryFeeFactor: 'u128', + isCongested: 'bool' + }, + /** + * Lookup340: pallet_xcm_bridge_hub_router::pallet::Call + **/ + PalletXcmBridgeHubRouterCall: { + _enum: { + report_bridge_status: { + bridgeId: 'H256', + isCongested: 'bool' + } + } + }, + /** + * Lookup387: asset_hub_kusama_runtime::OriginCaller + **/ + AssetHubKusamaRuntimeOriginCaller: { + _enum: { + system: 'FrameSupportDispatchRawOrigin', + __Unused1: 'Null', + __Unused2: 'Null', + Void: 'SpCoreVoid', + __Unused4: 'Null', + __Unused5: 'Null', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + __Unused30: 'Null', + PolkadotXcm: 'PalletXcmOrigin', + CumulusXcm: 'CumulusPalletXcmOrigin' + } + }, + /** + * Lookup390: cumulus_pallet_xcm::pallet::Origin + **/ + CumulusPalletXcmOrigin: { + _enum: { + Relay: 'Null', + SiblingParachain: 'u32' + } + }, + /** + * Lookup473: asset_hub_kusama_runtime::Runtime + **/ + AssetHubKusamaRuntimeRuntime: 'Null', + /** + * Lookup525: assets_common::runtime_api::FungiblesAccessError + **/ + AssetsCommonRuntimeApiFungiblesAccessError: { + _enum: ['AssetIdConversionFailed', 'AmountToBalanceConversionFailed'] + }, + /** + * Lookup526: cumulus_primitives_core::CollationInfo + **/ + CumulusPrimitivesCoreCollationInfo: { + upwardMessages: 'Vec', + horizontalMessages: 'Vec', + newValidationCode: 'Option', + processedDownwardMessages: 'u32', + hrmpWatermark: 'u32', + headData: 'Bytes' + }, + /** + * Lookup532: asset_hub_kusama_runtime::RuntimeError + **/ + AssetHubKusamaRuntimeRuntimeError: { + _enum: { + System: 'FrameSystemError', + ParachainSystem: 'CumulusPalletParachainSystemError', + __Unused2: 'Null', + __Unused3: 'Null', + __Unused4: 'Null', + __Unused5: 'Null', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + Balances: 'PalletBalancesError', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + Vesting: 'PalletVestingError', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + CollatorSelection: 'PalletCollatorSelectionError', + Session: 'PalletSessionError', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + XcmpQueue: 'CumulusPalletXcmpQueueError', + PolkadotXcm: 'PalletXcmError', + __Unused32: 'Null', + __Unused33: 'Null', + __Unused34: 'Null', + MessageQueue: 'PalletMessageQueueError', + __Unused36: 'Null', + __Unused37: 'Null', + __Unused38: 'Null', + __Unused39: 'Null', + Utility: 'PalletUtilityError', + Multisig: 'PalletMultisigError', + Proxy: 'PalletProxyError', + __Unused43: 'Null', + __Unused44: 'Null', + __Unused45: 'Null', + __Unused46: 'Null', + __Unused47: 'Null', + __Unused48: 'Null', + __Unused49: 'Null', + Assets: 'PalletAssetsError', + Uniques: 'PalletUniquesError', + Nfts: 'PalletNftsError', + ForeignAssets: 'PalletAssetsError', + NftFractionalization: 'PalletNftFractionalizationError', + PoolAssets: 'PalletAssetsError', + AssetConversion: 'PalletAssetConversionError' + } + } +}; diff --git a/packages/types-augment/src/lookup/asset-hub-polkadot.ts b/packages/types-augment/src/lookup/asset-hub-polkadot.ts new file mode 100644 index 000000000000..67cab2a87eed --- /dev/null +++ b/packages/types-augment/src/lookup/asset-hub-polkadot.ts @@ -0,0 +1,134 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +/* eslint-disable sort-keys */ + +export default { + /** + * Lookup128: asset_hub_polkadot_runtime::ProxyType + **/ + AssetHubPolkadotRuntimeProxyType: { + _enum: ['Any', 'NonTransfer', 'CancelProxy', 'Assets', 'AssetOwner', 'AssetManager', 'Collator'] + }, + /** + * Lookup227: asset_hub_polkadot_runtime::RuntimeHoldReason + **/ + AssetHubPolkadotRuntimeRuntimeHoldReason: 'Null', + /** + * Lookup252: asset_hub_polkadot_runtime::SessionKeys + **/ + AssetHubPolkadotRuntimeSessionKeys: { + aura: 'SpConsensusAuraEd25519AppEd25519Public' + }, + /** + * Lookup253: sp_consensus_aura::ed25519::app_ed25519::Public + **/ + SpConsensusAuraEd25519AppEd25519Public: '[u8;32]', + /** + * Lookup383: asset_hub_polkadot_runtime::OriginCaller + **/ + AssetHubPolkadotRuntimeOriginCaller: { + _enum: { + system: 'FrameSupportDispatchRawOrigin', + __Unused1: 'Null', + __Unused2: 'Null', + Void: 'SpCoreVoid', + __Unused4: 'Null', + __Unused5: 'Null', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + __Unused30: 'Null', + PolkadotXcm: 'PalletXcmOrigin', + CumulusXcm: 'CumulusPalletXcmOrigin' + } + }, + /** + * Lookup467: asset_hub_polkadot_runtime::Runtime + **/ + AssetHubPolkadotRuntimeRuntime: 'Null', + /** + * Lookup526: asset_hub_polkadot_runtime::RuntimeError + **/ + AssetHubPolkadotRuntimeRuntimeError: { + _enum: { + System: 'FrameSystemError', + ParachainSystem: 'CumulusPalletParachainSystemError', + __Unused2: 'Null', + __Unused3: 'Null', + __Unused4: 'Null', + __Unused5: 'Null', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + Balances: 'PalletBalancesError', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + Vesting: 'PalletVestingError', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + CollatorSelection: 'PalletCollatorSelectionError', + Session: 'PalletSessionError', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + XcmpQueue: 'CumulusPalletXcmpQueueError', + PolkadotXcm: 'PalletXcmError', + __Unused32: 'Null', + __Unused33: 'Null', + __Unused34: 'Null', + MessageQueue: 'PalletMessageQueueError', + __Unused36: 'Null', + __Unused37: 'Null', + __Unused38: 'Null', + __Unused39: 'Null', + Utility: 'PalletUtilityError', + Multisig: 'PalletMultisigError', + Proxy: 'PalletProxyError', + __Unused43: 'Null', + __Unused44: 'Null', + __Unused45: 'Null', + __Unused46: 'Null', + __Unused47: 'Null', + __Unused48: 'Null', + __Unused49: 'Null', + Assets: 'PalletAssetsError', + Uniques: 'PalletUniquesError', + Nfts: 'PalletNftsError', + ForeignAssets: 'PalletAssetsError', + PoolAssets: 'PalletAssetsError', + AssetConversion: 'PalletAssetConversionError' + } + } +}; diff --git a/packages/types-augment/src/lookup/definitions.ts b/packages/types-augment/src/lookup/definitions.ts index 8998a77e7166..c78ec5de0d64 100644 --- a/packages/types-augment/src/lookup/definitions.ts +++ b/packages/types-augment/src/lookup/definitions.ts @@ -5,6 +5,8 @@ import type { Definitions } from '@polkadot/types/types'; import { objectSpread } from '@polkadot/util'; +import assetHubKusama from './asset-hub-kusama.js'; +import assetHubPolkadot from './asset-hub-polkadot.js'; import kusama from './kusama.js'; import polkadot from './polkadot.js'; import substrate from './substrate.js'; @@ -13,5 +15,5 @@ export default { rpc: {}, // Not 100% sure it is relevant, however the order here is the same // as exposed in the typegen lookup order - types: objectSpread({}, substrate, polkadot, kusama) + types: objectSpread({}, substrate, polkadot, kusama, assetHubPolkadot, assetHubKusama) } as Definitions; diff --git a/packages/types-augment/src/lookup/types-asset-hub-kusama.ts b/packages/types-augment/src/lookup/types-asset-hub-kusama.ts new file mode 100644 index 000000000000..d6529919cf38 --- /dev/null +++ b/packages/types-augment/src/lookup/types-asset-hub-kusama.ts @@ -0,0 +1,478 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/lookup'; + +import type { BTreeMap, BTreeSet, Bytes, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32 } from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; + +declare module '@polkadot/types/lookup' { + /** @name CumulusPalletParachainSystemEvent (31) */ + interface CumulusPalletParachainSystemEvent extends Enum { + readonly isValidationFunctionStored: boolean; + readonly isValidationFunctionApplied: boolean; + readonly asValidationFunctionApplied: { + readonly relayChainBlockNum: u32; + } & Struct; + readonly isValidationFunctionDiscarded: boolean; + readonly isDownwardMessagesReceived: boolean; + readonly asDownwardMessagesReceived: { + readonly count: u32; + } & Struct; + readonly isDownwardMessagesProcessed: boolean; + readonly asDownwardMessagesProcessed: { + readonly weightUsed: SpWeightsWeightV2Weight; + readonly dmqHead: H256; + } & Struct; + readonly isUpwardMessageSent: boolean; + readonly asUpwardMessageSent: { + readonly messageHash: Option; + } & Struct; + readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed' | 'UpwardMessageSent'; + } + + /** @name PalletCollatorSelectionEvent (48) */ + interface PalletCollatorSelectionEvent extends Enum { + readonly isNewInvulnerables: boolean; + readonly asNewInvulnerables: { + readonly invulnerables: Vec; + } & Struct; + readonly isInvulnerableAdded: boolean; + readonly asInvulnerableAdded: { + readonly accountId: AccountId32; + } & Struct; + readonly isInvulnerableRemoved: boolean; + readonly asInvulnerableRemoved: { + readonly accountId: AccountId32; + } & Struct; + readonly isNewDesiredCandidates: boolean; + readonly asNewDesiredCandidates: { + readonly desiredCandidates: u32; + } & Struct; + readonly isNewCandidacyBond: boolean; + readonly asNewCandidacyBond: { + readonly bondAmount: u128; + } & Struct; + readonly isCandidateAdded: boolean; + readonly asCandidateAdded: { + readonly accountId: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isCandidateBondUpdated: boolean; + readonly asCandidateBondUpdated: { + readonly accountId: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isCandidateRemoved: boolean; + readonly asCandidateRemoved: { + readonly accountId: AccountId32; + } & Struct; + readonly isCandidateReplaced: boolean; + readonly asCandidateReplaced: { + readonly old: AccountId32; + readonly new_: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isInvalidInvulnerableSkipped: boolean; + readonly asInvalidInvulnerableSkipped: { + readonly accountId: AccountId32; + } & Struct; + readonly type: 'NewInvulnerables' | 'InvulnerableAdded' | 'InvulnerableRemoved' | 'NewDesiredCandidates' | 'NewCandidacyBond' | 'CandidateAdded' | 'CandidateBondUpdated' | 'CandidateRemoved' | 'CandidateReplaced' | 'InvalidInvulnerableSkipped'; + } + + /** @name CumulusPalletXcmpQueueEvent (51) */ + interface CumulusPalletXcmpQueueEvent extends Enum { + readonly isXcmpMessageSent: boolean; + readonly asXcmpMessageSent: { + readonly messageHash: U8aFixed; + } & Struct; + readonly type: 'XcmpMessageSent'; + } + + /** @name CumulusPalletXcmEvent (117) */ + interface CumulusPalletXcmEvent extends Enum { + readonly isInvalidFormat: boolean; + readonly asInvalidFormat: U8aFixed; + readonly isUnsupportedVersion: boolean; + readonly asUnsupportedVersion: U8aFixed; + readonly isExecutedDownward: boolean; + readonly asExecutedDownward: ITuple<[U8aFixed, StagingXcmV4TraitsOutcome]>; + readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward'; + } + + /** @name CumulusPrimitivesCoreAggregateMessageOrigin (119) */ + interface CumulusPrimitivesCoreAggregateMessageOrigin extends Enum { + readonly isHere: boolean; + readonly isParent: boolean; + readonly isSibling: boolean; + readonly asSibling: u32; + readonly type: 'Here' | 'Parent' | 'Sibling'; + } + + /** @name AssetHubKusamaRuntimeProxyType (128) */ + interface AssetHubKusamaRuntimeProxyType extends Enum { + readonly isAny: boolean; + readonly isNonTransfer: boolean; + readonly isCancelProxy: boolean; + readonly isAssets: boolean; + readonly isAssetOwner: boolean; + readonly isAssetManager: boolean; + readonly isCollator: boolean; + readonly type: 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator'; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (177) */ + interface CumulusPalletParachainSystemUnincludedSegmentAncestor extends Struct { + readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + readonly paraHeadHash: Option; + readonly consumedGoAheadSignal: Option; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (178) */ + interface CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth extends Struct { + readonly umpMsgCount: u32; + readonly umpTotalBytes: u32; + readonly hrmpOutgoing: BTreeMap; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate (180) */ + interface CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate extends Struct { + readonly msgCount: u32; + readonly totalBytes: u32; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker (186) */ + interface CumulusPalletParachainSystemUnincludedSegmentSegmentTracker extends Struct { + readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + readonly hrmpWatermark: Option; + readonly consumedGoAheadSignal: Option; + } + + /** @name SpTrieStorageProof (191) */ + interface SpTrieStorageProof extends Struct { + readonly trieNodes: BTreeSet; + } + + /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (193) */ + interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct { + readonly dmqMqcHead: H256; + readonly relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; + readonly ingressChannels: Vec>; + readonly egressChannels: Vec>; + } + + /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (194) */ + interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity extends Struct { + readonly remainingCount: u32; + readonly remainingSize: u32; + } + + /** @name PolkadotPrimitivesV7AbridgedHrmpChannel (197) */ + interface PolkadotPrimitivesV7AbridgedHrmpChannel extends Struct { + readonly maxCapacity: u32; + readonly maxTotalSize: u32; + readonly maxMessageSize: u32; + readonly msgCount: u32; + readonly totalSize: u32; + readonly mqcHead: Option; + } + + /** @name PolkadotPrimitivesV7AbridgedHostConfiguration (198) */ + interface PolkadotPrimitivesV7AbridgedHostConfiguration extends Struct { + readonly maxCodeSize: u32; + readonly maxHeadDataSize: u32; + readonly maxUpwardQueueCount: u32; + readonly maxUpwardQueueSize: u32; + readonly maxUpwardMessageSize: u32; + readonly maxUpwardMessageNumPerCandidate: u32; + readonly hrmpMaxMessageNumPerCandidate: u32; + readonly validationUpgradeCooldown: u32; + readonly validationUpgradeDelay: u32; + readonly asyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams; + } + + /** @name CumulusPalletParachainSystemCall (207) */ + interface CumulusPalletParachainSystemCall extends Enum { + readonly isSetValidationData: boolean; + readonly asSetValidationData: { + readonly data: CumulusPrimitivesParachainInherentParachainInherentData; + } & Struct; + readonly isSudoSendUpwardMessage: boolean; + readonly asSudoSendUpwardMessage: { + readonly message: Bytes; + } & Struct; + readonly isAuthorizeUpgrade: boolean; + readonly asAuthorizeUpgrade: { + readonly codeHash: H256; + readonly checkVersion: bool; + } & Struct; + readonly isEnactAuthorizedUpgrade: boolean; + readonly asEnactAuthorizedUpgrade: { + readonly code: Bytes; + } & Struct; + readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade'; + } + + /** @name CumulusPrimitivesParachainInherentParachainInherentData (208) */ + interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct { + readonly validationData: PolkadotPrimitivesV7PersistedValidationData; + readonly relayChainState: SpTrieStorageProof; + readonly downwardMessages: Vec; + readonly horizontalMessages: BTreeMap>; + } + + /** @name CumulusPalletParachainSystemError (216) */ + interface CumulusPalletParachainSystemError extends Enum { + readonly isOverlappingUpgrades: boolean; + readonly isProhibitedByPolkadot: boolean; + readonly isTooBig: boolean; + readonly isValidationDataNotAvailable: boolean; + readonly isHostConfigurationNotAvailable: boolean; + readonly isNotScheduled: boolean; + readonly isNothingAuthorized: boolean; + readonly isUnauthorized: boolean; + readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized'; + } + + /** @name StagingParachainInfoCall (218) */ + type StagingParachainInfoCall = Null; + + /** @name AssetHubKusamaRuntimeRuntimeHoldReason (228) */ + interface AssetHubKusamaRuntimeRuntimeHoldReason extends Enum { + readonly isNftFractionalization: boolean; + readonly asNftFractionalization: PalletNftFractionalizationHoldReason; + readonly isStateTrieMigration: boolean; + readonly asStateTrieMigration: PalletStateTrieMigrationHoldReason; + readonly type: 'NftFractionalization' | 'StateTrieMigration'; + } + + /** @name PalletCollatorSelectionCandidateInfo (249) */ + interface PalletCollatorSelectionCandidateInfo extends Struct { + readonly who: AccountId32; + readonly deposit: u128; + } + + /** @name PalletCollatorSelectionCall (251) */ + interface PalletCollatorSelectionCall extends Enum { + readonly isSetInvulnerables: boolean; + readonly asSetInvulnerables: { + readonly new_: Vec; + } & Struct; + readonly isSetDesiredCandidates: boolean; + readonly asSetDesiredCandidates: { + readonly max: u32; + } & Struct; + readonly isSetCandidacyBond: boolean; + readonly asSetCandidacyBond: { + readonly bond: u128; + } & Struct; + readonly isRegisterAsCandidate: boolean; + readonly isLeaveIntent: boolean; + readonly isAddInvulnerable: boolean; + readonly asAddInvulnerable: { + readonly who: AccountId32; + } & Struct; + readonly isRemoveInvulnerable: boolean; + readonly asRemoveInvulnerable: { + readonly who: AccountId32; + } & Struct; + readonly isUpdateBond: boolean; + readonly asUpdateBond: { + readonly newDeposit: u128; + } & Struct; + readonly isTakeCandidateSlot: boolean; + readonly asTakeCandidateSlot: { + readonly deposit: u128; + readonly target: AccountId32; + } & Struct; + readonly type: 'SetInvulnerables' | 'SetDesiredCandidates' | 'SetCandidacyBond' | 'RegisterAsCandidate' | 'LeaveIntent' | 'AddInvulnerable' | 'RemoveInvulnerable' | 'UpdateBond' | 'TakeCandidateSlot'; + } + + /** @name PalletCollatorSelectionError (252) */ + interface PalletCollatorSelectionError extends Enum { + readonly isTooManyCandidates: boolean; + readonly isTooFewEligibleCollators: boolean; + readonly isAlreadyCandidate: boolean; + readonly isNotCandidate: boolean; + readonly isTooManyInvulnerables: boolean; + readonly isAlreadyInvulnerable: boolean; + readonly isNotInvulnerable: boolean; + readonly isNoAssociatedValidatorId: boolean; + readonly isValidatorNotRegistered: boolean; + readonly isInsertToCandidateListFailed: boolean; + readonly isRemoveFromCandidateListFailed: boolean; + readonly isDepositTooLow: boolean; + readonly isUpdateCandidateListFailed: boolean; + readonly isInsufficientBond: boolean; + readonly isTargetIsNotCandidate: boolean; + readonly isIdenticalDeposit: boolean; + readonly isInvalidUnreserve: boolean; + readonly type: 'TooManyCandidates' | 'TooFewEligibleCollators' | 'AlreadyCandidate' | 'NotCandidate' | 'TooManyInvulnerables' | 'AlreadyInvulnerable' | 'NotInvulnerable' | 'NoAssociatedValidatorId' | 'ValidatorNotRegistered' | 'InsertToCandidateListFailed' | 'RemoveFromCandidateListFailed' | 'DepositTooLow' | 'UpdateCandidateListFailed' | 'InsufficientBond' | 'TargetIsNotCandidate' | 'IdenticalDeposit' | 'InvalidUnreserve'; + } + + /** @name AssetHubKusamaRuntimeSessionKeys (255) */ + interface AssetHubKusamaRuntimeSessionKeys extends Struct { + readonly aura: SpConsensusAuraSr25519AppSr25519Public; + } + + /** @name SpConsensusAuraSr25519AppSr25519Public (256) */ + interface SpConsensusAuraSr25519AppSr25519Public extends U8aFixed {} + + /** @name CumulusPalletXcmpQueueOutboundChannelDetails (269) */ + interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct { + readonly recipient: u32; + readonly state: CumulusPalletXcmpQueueOutboundState; + readonly signalsExist: bool; + readonly firstIndex: u16; + readonly lastIndex: u16; + } + + /** @name CumulusPalletXcmpQueueOutboundState (270) */ + interface CumulusPalletXcmpQueueOutboundState extends Enum { + readonly isOk: boolean; + readonly isSuspended: boolean; + readonly type: 'Ok' | 'Suspended'; + } + + /** @name CumulusPalletXcmpQueueQueueConfigData (274) */ + interface CumulusPalletXcmpQueueQueueConfigData extends Struct { + readonly suspendThreshold: u32; + readonly dropThreshold: u32; + readonly resumeThreshold: u32; + } + + /** @name CumulusPalletXcmpQueueCall (275) */ + interface CumulusPalletXcmpQueueCall extends Enum { + readonly isSuspendXcmExecution: boolean; + readonly isResumeXcmExecution: boolean; + readonly isUpdateSuspendThreshold: boolean; + readonly asUpdateSuspendThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateDropThreshold: boolean; + readonly asUpdateDropThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateResumeThreshold: boolean; + readonly asUpdateResumeThreshold: { + readonly new_: u32; + } & Struct; + readonly type: 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold'; + } + + /** @name CumulusPalletXcmpQueueError (276) */ + interface CumulusPalletXcmpQueueError extends Enum { + readonly isBadQueueConfig: boolean; + readonly isAlreadySuspended: boolean; + readonly isAlreadyResumed: boolean; + readonly isTooManyActiveOutboundChannels: boolean; + readonly isTooBig: boolean; + readonly type: 'BadQueueConfig' | 'AlreadySuspended' | 'AlreadyResumed' | 'TooManyActiveOutboundChannels' | 'TooBig'; + } + + /** @name CumulusPalletXcmCall (338) */ + type CumulusPalletXcmCall = Null; + + /** @name BpXcmBridgeHubRouterBridgeState (339) */ + interface BpXcmBridgeHubRouterBridgeState extends Struct { + readonly deliveryFeeFactor: u128; + readonly isCongested: bool; + } + + /** @name PalletXcmBridgeHubRouterCall (340) */ + interface PalletXcmBridgeHubRouterCall extends Enum { + readonly isReportBridgeStatus: boolean; + readonly asReportBridgeStatus: { + readonly bridgeId: H256; + readonly isCongested: bool; + } & Struct; + readonly type: 'ReportBridgeStatus'; + } + + /** @name AssetHubKusamaRuntimeOriginCaller (387) */ + interface AssetHubKusamaRuntimeOriginCaller extends Enum { + readonly isSystem: boolean; + readonly asSystem: FrameSupportDispatchRawOrigin; + readonly isVoid: boolean; + readonly isPolkadotXcm: boolean; + readonly asPolkadotXcm: PalletXcmOrigin; + readonly isCumulusXcm: boolean; + readonly asCumulusXcm: CumulusPalletXcmOrigin; + readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm'; + } + + /** @name CumulusPalletXcmOrigin (390) */ + interface CumulusPalletXcmOrigin extends Enum { + readonly isRelay: boolean; + readonly isSiblingParachain: boolean; + readonly asSiblingParachain: u32; + readonly type: 'Relay' | 'SiblingParachain'; + } + + /** @name AssetHubKusamaRuntimeRuntime (473) */ + type AssetHubKusamaRuntimeRuntime = Null; + + /** @name AssetsCommonRuntimeApiFungiblesAccessError (525) */ + interface AssetsCommonRuntimeApiFungiblesAccessError extends Enum { + readonly isAssetIdConversionFailed: boolean; + readonly isAmountToBalanceConversionFailed: boolean; + readonly type: 'AssetIdConversionFailed' | 'AmountToBalanceConversionFailed'; + } + + /** @name CumulusPrimitivesCoreCollationInfo (526) */ + interface CumulusPrimitivesCoreCollationInfo extends Struct { + readonly upwardMessages: Vec; + readonly horizontalMessages: Vec; + readonly newValidationCode: Option; + readonly processedDownwardMessages: u32; + readonly hrmpWatermark: u32; + readonly headData: Bytes; + } + + /** @name AssetHubKusamaRuntimeRuntimeError (532) */ + interface AssetHubKusamaRuntimeRuntimeError extends Enum { + readonly isSystem: boolean; + readonly asSystem: FrameSystemError; + readonly isParachainSystem: boolean; + readonly asParachainSystem: CumulusPalletParachainSystemError; + readonly isBalances: boolean; + readonly asBalances: PalletBalancesError; + readonly isVesting: boolean; + readonly asVesting: PalletVestingError; + readonly isCollatorSelection: boolean; + readonly asCollatorSelection: PalletCollatorSelectionError; + readonly isSession: boolean; + readonly asSession: PalletSessionError; + readonly isXcmpQueue: boolean; + readonly asXcmpQueue: CumulusPalletXcmpQueueError; + readonly isPolkadotXcm: boolean; + readonly asPolkadotXcm: PalletXcmError; + readonly isMessageQueue: boolean; + readonly asMessageQueue: PalletMessageQueueError; + readonly isUtility: boolean; + readonly asUtility: PalletUtilityError; + readonly isMultisig: boolean; + readonly asMultisig: PalletMultisigError; + readonly isProxy: boolean; + readonly asProxy: PalletProxyError; + readonly isAssets: boolean; + readonly asAssets: PalletAssetsError; + readonly isUniques: boolean; + readonly asUniques: PalletUniquesError; + readonly isNfts: boolean; + readonly asNfts: PalletNftsError; + readonly isForeignAssets: boolean; + readonly asForeignAssets: PalletAssetsError; + readonly isNftFractionalization: boolean; + readonly asNftFractionalization: PalletNftFractionalizationError; + readonly isPoolAssets: boolean; + readonly asPoolAssets: PalletAssetsError; + readonly isAssetConversion: boolean; + readonly asAssetConversion: PalletAssetConversionError; + readonly type: 'System' | 'ParachainSystem' | 'Balances' | 'Vesting' | 'CollatorSelection' | 'Session' | 'XcmpQueue' | 'PolkadotXcm' | 'MessageQueue' | 'Utility' | 'Multisig' | 'Proxy' | 'Assets' | 'Uniques' | 'Nfts' | 'ForeignAssets' | 'NftFractionalization' | 'PoolAssets' | 'AssetConversion'; + } + +} // declare module diff --git a/packages/types-augment/src/lookup/types-asset-hub-polkadot.ts b/packages/types-augment/src/lookup/types-asset-hub-polkadot.ts new file mode 100644 index 000000000000..1ddb08f0a2c8 --- /dev/null +++ b/packages/types-augment/src/lookup/types-asset-hub-polkadot.ts @@ -0,0 +1,90 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/lookup'; + +import type { Enum, Null, Struct, U8aFixed } from '@polkadot/types-codec'; + +declare module '@polkadot/types/lookup' { + /** @name AssetHubPolkadotRuntimeProxyType (128) */ + interface AssetHubPolkadotRuntimeProxyType extends Enum { + readonly isAny: boolean; + readonly isNonTransfer: boolean; + readonly isCancelProxy: boolean; + readonly isAssets: boolean; + readonly isAssetOwner: boolean; + readonly isAssetManager: boolean; + readonly isCollator: boolean; + readonly type: 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator'; + } + + /** @name AssetHubPolkadotRuntimeRuntimeHoldReason (227) */ + type AssetHubPolkadotRuntimeRuntimeHoldReason = Null; + + /** @name AssetHubPolkadotRuntimeSessionKeys (252) */ + interface AssetHubPolkadotRuntimeSessionKeys extends Struct { + readonly aura: SpConsensusAuraEd25519AppEd25519Public; + } + + /** @name SpConsensusAuraEd25519AppEd25519Public (253) */ + interface SpConsensusAuraEd25519AppEd25519Public extends U8aFixed {} + + /** @name AssetHubPolkadotRuntimeOriginCaller (383) */ + interface AssetHubPolkadotRuntimeOriginCaller extends Enum { + readonly isSystem: boolean; + readonly asSystem: FrameSupportDispatchRawOrigin; + readonly isVoid: boolean; + readonly isPolkadotXcm: boolean; + readonly asPolkadotXcm: PalletXcmOrigin; + readonly isCumulusXcm: boolean; + readonly asCumulusXcm: CumulusPalletXcmOrigin; + readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm'; + } + + /** @name AssetHubPolkadotRuntimeRuntime (467) */ + type AssetHubPolkadotRuntimeRuntime = Null; + + /** @name AssetHubPolkadotRuntimeRuntimeError (526) */ + interface AssetHubPolkadotRuntimeRuntimeError extends Enum { + readonly isSystem: boolean; + readonly asSystem: FrameSystemError; + readonly isParachainSystem: boolean; + readonly asParachainSystem: CumulusPalletParachainSystemError; + readonly isBalances: boolean; + readonly asBalances: PalletBalancesError; + readonly isVesting: boolean; + readonly asVesting: PalletVestingError; + readonly isCollatorSelection: boolean; + readonly asCollatorSelection: PalletCollatorSelectionError; + readonly isSession: boolean; + readonly asSession: PalletSessionError; + readonly isXcmpQueue: boolean; + readonly asXcmpQueue: CumulusPalletXcmpQueueError; + readonly isPolkadotXcm: boolean; + readonly asPolkadotXcm: PalletXcmError; + readonly isMessageQueue: boolean; + readonly asMessageQueue: PalletMessageQueueError; + readonly isUtility: boolean; + readonly asUtility: PalletUtilityError; + readonly isMultisig: boolean; + readonly asMultisig: PalletMultisigError; + readonly isProxy: boolean; + readonly asProxy: PalletProxyError; + readonly isAssets: boolean; + readonly asAssets: PalletAssetsError; + readonly isUniques: boolean; + readonly asUniques: PalletUniquesError; + readonly isNfts: boolean; + readonly asNfts: PalletNftsError; + readonly isForeignAssets: boolean; + readonly asForeignAssets: PalletAssetsError; + readonly isPoolAssets: boolean; + readonly asPoolAssets: PalletAssetsError; + readonly isAssetConversion: boolean; + readonly asAssetConversion: PalletAssetConversionError; + readonly type: 'System' | 'ParachainSystem' | 'Balances' | 'Vesting' | 'CollatorSelection' | 'Session' | 'XcmpQueue' | 'PolkadotXcm' | 'MessageQueue' | 'Utility' | 'Multisig' | 'Proxy' | 'Assets' | 'Uniques' | 'Nfts' | 'ForeignAssets' | 'PoolAssets' | 'AssetConversion'; + } + +} // declare module diff --git a/packages/types-augment/src/lookup/types.ts b/packages/types-augment/src/lookup/types.ts index 0b81fbc5f1ab..7e3249eb3e96 100644 --- a/packages/types-augment/src/lookup/types.ts +++ b/packages/types-augment/src/lookup/types.ts @@ -1,6 +1,8 @@ // Copyright 2017-2024 @polkadot/types-augment authors & contributors // SPDX-License-Identifier: Apache-2.0 +import './types-asset-hub-kusama.js'; +import './types-asset-hub-polkadot.js'; import './types-substrate.js'; import './types-polkadot.js'; import './types-kusama.js'; diff --git a/packages/types-augment/src/registry/asset-hub-kusama.ts b/packages/types-augment/src/registry/asset-hub-kusama.ts new file mode 100644 index 000000000000..382f6f44a941 --- /dev/null +++ b/packages/types-augment/src/registry/asset-hub-kusama.ts @@ -0,0 +1,52 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/types/registry'; + +import type { AssetHubKusamaRuntimeOriginCaller, AssetHubKusamaRuntimeProxyType, AssetHubKusamaRuntimeRuntime, AssetHubKusamaRuntimeRuntimeError, AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, AssetsCommonRuntimeApiFungiblesAccessError, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth, CumulusPalletXcmCall, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesCoreCollationInfo, CumulusPrimitivesParachainInherentParachainInherentData, PalletCollatorSelectionCall, PalletCollatorSelectionCandidateInfo, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletXcmBridgeHubRouterCall, PolkadotPrimitivesV7AbridgedHostConfiguration, PolkadotPrimitivesV7AbridgedHrmpChannel, SpConsensusAuraSr25519AppSr25519Public, SpTrieStorageProof, StagingParachainInfoCall } from '@polkadot/types/lookup'; + +declare module '@polkadot/types/types/registry' { + interface InterfaceTypes { + AssetHubKusamaRuntimeOriginCaller: AssetHubKusamaRuntimeOriginCaller; + AssetHubKusamaRuntimeProxyType: AssetHubKusamaRuntimeProxyType; + AssetHubKusamaRuntimeRuntime: AssetHubKusamaRuntimeRuntime; + AssetHubKusamaRuntimeRuntimeError: AssetHubKusamaRuntimeRuntimeError; + AssetHubKusamaRuntimeRuntimeHoldReason: AssetHubKusamaRuntimeRuntimeHoldReason; + AssetHubKusamaRuntimeSessionKeys: AssetHubKusamaRuntimeSessionKeys; + AssetsCommonRuntimeApiFungiblesAccessError: AssetsCommonRuntimeApiFungiblesAccessError; + BpXcmBridgeHubRouterBridgeState: BpXcmBridgeHubRouterBridgeState; + CumulusPalletParachainSystemCall: CumulusPalletParachainSystemCall; + CumulusPalletParachainSystemError: CumulusPalletParachainSystemError; + CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent; + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot; + CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; + CumulusPalletParachainSystemUnincludedSegmentAncestor: CumulusPalletParachainSystemUnincludedSegmentAncestor; + CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate; + CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: CumulusPalletParachainSystemUnincludedSegmentSegmentTracker; + CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + CumulusPalletXcmCall: CumulusPalletXcmCall; + CumulusPalletXcmEvent: CumulusPalletXcmEvent; + CumulusPalletXcmOrigin: CumulusPalletXcmOrigin; + CumulusPalletXcmpQueueCall: CumulusPalletXcmpQueueCall; + CumulusPalletXcmpQueueError: CumulusPalletXcmpQueueError; + CumulusPalletXcmpQueueEvent: CumulusPalletXcmpQueueEvent; + CumulusPalletXcmpQueueOutboundChannelDetails: CumulusPalletXcmpQueueOutboundChannelDetails; + CumulusPalletXcmpQueueOutboundState: CumulusPalletXcmpQueueOutboundState; + CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData; + CumulusPrimitivesCoreAggregateMessageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; + CumulusPrimitivesCoreCollationInfo: CumulusPrimitivesCoreCollationInfo; + CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData; + PalletCollatorSelectionCall: PalletCollatorSelectionCall; + PalletCollatorSelectionCandidateInfo: PalletCollatorSelectionCandidateInfo; + PalletCollatorSelectionError: PalletCollatorSelectionError; + PalletCollatorSelectionEvent: PalletCollatorSelectionEvent; + PalletXcmBridgeHubRouterCall: PalletXcmBridgeHubRouterCall; + PolkadotPrimitivesV7AbridgedHostConfiguration: PolkadotPrimitivesV7AbridgedHostConfiguration; + PolkadotPrimitivesV7AbridgedHrmpChannel: PolkadotPrimitivesV7AbridgedHrmpChannel; + SpConsensusAuraSr25519AppSr25519Public: SpConsensusAuraSr25519AppSr25519Public; + SpTrieStorageProof: SpTrieStorageProof; + StagingParachainInfoCall: StagingParachainInfoCall; + } // InterfaceTypes +} // declare module diff --git a/packages/types-augment/src/registry/asset-hub-polkadot.ts b/packages/types-augment/src/registry/asset-hub-polkadot.ts new file mode 100644 index 000000000000..f7ca2fe527eb --- /dev/null +++ b/packages/types-augment/src/registry/asset-hub-polkadot.ts @@ -0,0 +1,20 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/types/registry'; + +import type { AssetHubPolkadotRuntimeOriginCaller, AssetHubPolkadotRuntimeProxyType, AssetHubPolkadotRuntimeRuntime, AssetHubPolkadotRuntimeRuntimeError, AssetHubPolkadotRuntimeRuntimeHoldReason, AssetHubPolkadotRuntimeSessionKeys, SpConsensusAuraEd25519AppEd25519Public } from '@polkadot/types/lookup'; + +declare module '@polkadot/types/types/registry' { + interface InterfaceTypes { + AssetHubPolkadotRuntimeOriginCaller: AssetHubPolkadotRuntimeOriginCaller; + AssetHubPolkadotRuntimeProxyType: AssetHubPolkadotRuntimeProxyType; + AssetHubPolkadotRuntimeRuntime: AssetHubPolkadotRuntimeRuntime; + AssetHubPolkadotRuntimeRuntimeError: AssetHubPolkadotRuntimeRuntimeError; + AssetHubPolkadotRuntimeRuntimeHoldReason: AssetHubPolkadotRuntimeRuntimeHoldReason; + AssetHubPolkadotRuntimeSessionKeys: AssetHubPolkadotRuntimeSessionKeys; + SpConsensusAuraEd25519AppEd25519Public: SpConsensusAuraEd25519AppEd25519Public; + } // InterfaceTypes +} // declare module diff --git a/packages/types-support/src/metadata/static-asset-hub-kusama.ts b/packages/types-support/src/metadata/static-asset-hub-kusama.ts new file mode 100644 index 000000000000..f601829fa95b --- /dev/null +++ b/packages/types-support/src/metadata/static-asset-hub-kusama.ts @@ -0,0 +1,10 @@ +// Copyright 2017-2024 @polkadot/types-support authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import metadata from './v15/asset-hub-kusama-hex.js'; +import rpc from './v15/asset-hub-kusama-rpc.js'; +import version from './v15/asset-hub-kusama-ver.js'; + +export { rpc, version }; + +export default metadata; diff --git a/packages/types-support/src/metadata/static-asset-hub-polkadot.ts b/packages/types-support/src/metadata/static-asset-hub-polkadot.ts new file mode 100644 index 000000000000..e1f6203506f4 --- /dev/null +++ b/packages/types-support/src/metadata/static-asset-hub-polkadot.ts @@ -0,0 +1,10 @@ +// Copyright 2017-2024 @polkadot/types-support authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import metadata from './v15/asset-hub-polkadot-hex.js'; +import rpc from './v15/asset-hub-polkadot-rpc.js'; +import version from './v15/asset-hub-polkadot-ver.js'; + +export { rpc, version }; + +export default metadata;