import { Enum, GetEnum, SizedHex, FixedSizeArray, TxCallData, SS58String, ResultPayload } from "polkadot-api"; type AnonymousEnum = T & { __anonymous: true; }; type MyTuple = [T, ...T[]]; type SeparateUndefined = undefined extends T ? undefined | Exclude : T; type Anonymize = SeparateUndefined ? T : T extends AnonymousEnum ? Enum : T extends MyTuple ? { [K in keyof T]: T[K]; } : T extends [] ? [] : T extends FixedSizeArray ? number extends L ? Array : FixedSizeArray : { [K in keyof T & string]: T[K]; }>; export type I6k1inef986368 = AnonymousEnum<{ "send": Anonymize; /** * 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. */ "teleport_assets": Anonymize; /** * 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. */ "reserve_transfer_assets": Anonymize; /** * 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": Anonymize; /** * 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. */ "force_xcm_version": Anonymize; /** * 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. */ "force_default_xcm_version": Anonymize; /** * 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. */ "force_subscribe_version_notify": Anonymize; /** * 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. */ "force_unsubscribe_version_notify": Anonymize; /** * 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. */ "limited_reserve_transfer_assets": Anonymize; /** * 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. */ "limited_teleport_assets": Anonymize; /** * 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. */ "force_suspension": Anonymize; /** * 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. */ "transfer_assets": Anonymize; /** * 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. */ "claim_assets": Anonymize; /** * 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. */ "transfer_assets_using_type_and_then": Anonymize; /** * Authorize another `aliaser` location to alias into the local `origin` making this call. * The `aliaser` is only authorized until the provided `expiry` block number. * The call can also be used for a previously authorized alias in order to update its * `expiry` block number. * * Usually useful to allow your local account to be aliased into from a remote location * also under your control (like your account on another chain). * * WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in * their/your name. Once authorized using this call, the `aliaser` can freely impersonate * `origin` in XCM programs executed on the local chain. */ "add_authorized_alias": Anonymize; /** * Remove a previously authorized `aliaser` from the list of locations that can alias into * the local `origin` making this call. */ "remove_authorized_alias": Anonymize; /** * Remove all previously authorized `aliaser`s that can alias into the local `origin` * making this call. */ "remove_all_authorized_aliases": undefined; }>; export type Ia5cotcvi888ln = { "dest": XcmVersionedLocation; "message": XcmVersionedXcm; }; export type XcmVersionedLocation = Enum<{ "V3": Anonymize; "V4": Anonymize; "V5": Anonymize; }>; export declare const XcmVersionedLocation: GetEnum; export type I4c0s5cioidn76 = { "parents": number; "interior": XcmV3Junctions; }; export type XcmV3Junctions = Enum<{ "Here": undefined; "X1": XcmV3Junction; "X2": FixedSizeArray<2, XcmV3Junction>; "X3": FixedSizeArray<3, XcmV3Junction>; "X4": FixedSizeArray<4, XcmV3Junction>; "X5": FixedSizeArray<5, XcmV3Junction>; "X6": FixedSizeArray<6, XcmV3Junction>; "X7": FixedSizeArray<7, XcmV3Junction>; "X8": FixedSizeArray<8, XcmV3Junction>; }>; export declare const XcmV3Junctions: GetEnum; export type XcmV3Junction = Enum<{ "Parachain": number; "AccountId32": { "network"?: Anonymize; "id": SizedHex<32>; }; "AccountIndex64": { "network"?: Anonymize; "index": bigint; }; "AccountKey20": { "network"?: Anonymize; "key": SizedHex<20>; }; "PalletInstance": number; "GeneralIndex": bigint; "GeneralKey": Anonymize; "OnlyChild": undefined; "Plurality": Anonymize; "GlobalConsensus": XcmV3JunctionNetworkId; }>; export declare const XcmV3Junction: GetEnum; export type Idcq3vns9tgp5p = (XcmV3JunctionNetworkId) | undefined; export type XcmV3JunctionNetworkId = Enum<{ "ByGenesis": SizedHex<32>; "ByFork": Anonymize; "Polkadot": undefined; "Kusama": undefined; "Westend": undefined; "Rococo": undefined; "Wococo": undefined; "Ethereum": Anonymize; "BitcoinCore": undefined; "BitcoinCash": undefined; "PolkadotBulletin": undefined; }>; export declare const XcmV3JunctionNetworkId: GetEnum; export type I15vf5oinmcgps = { "block_number": bigint; "block_hash": SizedHex<32>; }; export type I623eo8t3jrbeo = { "chain_id": bigint; }; export type I15lht6t53odo4 = { "length": number; "data": SizedHex<32>; }; export type I518fbtnclg1oc = { "id": XcmV3JunctionBodyId; "part": XcmV2JunctionBodyPart; }; export type XcmV3JunctionBodyId = Enum<{ "Unit": undefined; "Moniker": SizedHex<4>; "Index": number; "Executive": undefined; "Technical": undefined; "Legislative": undefined; "Judicial": undefined; "Defense": undefined; "Administration": undefined; "Treasury": undefined; }>; export declare const XcmV3JunctionBodyId: GetEnum; export type XcmV2JunctionBodyPart = Enum<{ "Voice": undefined; "Members": Anonymize; "Fraction": { "nom": number; "denom": number; }; "AtLeastProportion": { "nom": number; "denom": number; }; "MoreThanProportion": { "nom": number; "denom": number; }; }>; export declare const XcmV2JunctionBodyPart: GetEnum; export type Iafscmv8tjf0ou = { "count": number; }; export type If9iqq7i64mur8 = { "parents": number; "interior": XcmV5Junctions; }; export type XcmV5Junctions = Enum<{ "Here": undefined; "X1": XcmV5Junction; "X2": FixedSizeArray<2, XcmV5Junction>; "X3": FixedSizeArray<3, XcmV5Junction>; "X4": FixedSizeArray<4, XcmV5Junction>; "X5": FixedSizeArray<5, XcmV5Junction>; "X6": FixedSizeArray<6, XcmV5Junction>; "X7": FixedSizeArray<7, XcmV5Junction>; "X8": FixedSizeArray<8, XcmV5Junction>; }>; export declare const XcmV5Junctions: GetEnum; export type XcmV5Junction = Enum<{ "Parachain": number; "AccountId32": { "network"?: Anonymize; "id": SizedHex<32>; }; "AccountIndex64": { "network"?: Anonymize; "index": bigint; }; "AccountKey20": { "network"?: Anonymize; "key": SizedHex<20>; }; "PalletInstance": number; "GeneralIndex": bigint; "GeneralKey": Anonymize; "OnlyChild": undefined; "Plurality": Anonymize; "GlobalConsensus": XcmV5NetworkId; }>; export declare const XcmV5Junction: GetEnum; export type I97pd2rst02a7r = (XcmV5NetworkId) | undefined; export type XcmV5NetworkId = Enum<{ "ByGenesis": SizedHex<32>; "ByFork": Anonymize; "Polkadot": undefined; "Kusama": undefined; "Ethereum": Anonymize; "BitcoinCore": undefined; "BitcoinCash": undefined; "PolkadotBulletin": undefined; }>; export declare const XcmV5NetworkId: GetEnum; export type XcmVersionedXcm = Enum<{ "V3": Anonymize; "V4": Anonymize; "V5": Anonymize; }>; export declare const XcmVersionedXcm: GetEnum; export type Ianvng4e08j9ii = Array; export type XcmV3Instruction = Enum<{ "WithdrawAsset": Anonymize; "ReserveAssetDeposited": Anonymize; "ReceiveTeleportedAsset": Anonymize; "QueryResponse": { "query_id": bigint; "response": XcmV3Response; "max_weight": Anonymize; "querier"?: Anonymize; }; "TransferAsset": { "assets": Anonymize; "beneficiary": Anonymize; }; "TransferReserveAsset": { "assets": Anonymize; "dest": Anonymize; "xcm": Anonymize; }; "Transact": Anonymize; "HrmpNewChannelOpenRequest": Anonymize; "HrmpChannelAccepted": Anonymize; "HrmpChannelClosing": Anonymize; "ClearOrigin": undefined; "DescendOrigin": XcmV3Junctions; "ReportError": Anonymize; "DepositAsset": { "assets": XcmV3MultiassetMultiAssetFilter; "beneficiary": Anonymize; }; "DepositReserveAsset": { "assets": XcmV3MultiassetMultiAssetFilter; "dest": Anonymize; "xcm": Anonymize; }; "ExchangeAsset": { "give": XcmV3MultiassetMultiAssetFilter; "want": Anonymize; "maximal": boolean; }; "InitiateReserveWithdraw": { "assets": XcmV3MultiassetMultiAssetFilter; "reserve": Anonymize; "xcm": Anonymize; }; "InitiateTeleport": { "assets": XcmV3MultiassetMultiAssetFilter; "dest": Anonymize; "xcm": Anonymize; }; "ReportHolding": { "response_info": Anonymize; "assets": XcmV3MultiassetMultiAssetFilter; }; "BuyExecution": { "fees": Anonymize; "weight_limit": XcmV3WeightLimit; }; "RefundSurplus": undefined; "SetErrorHandler": Anonymize; "SetAppendix": Anonymize; "ClearError": undefined; "ClaimAsset": { "assets": Anonymize; "ticket": Anonymize; }; "Trap": bigint; "SubscribeVersion": Anonymize; "UnsubscribeVersion": undefined; "BurnAsset": Anonymize; "ExpectAsset": Anonymize; "ExpectOrigin"?: Anonymize; "ExpectError"?: Anonymize; "ExpectTransactStatus": XcmV3MaybeErrorCode; "QueryPallet": Anonymize; "ExpectPallet": Anonymize; "ReportTransactStatus": Anonymize; "ClearTransactStatus": undefined; "UniversalOrigin": XcmV3Junction; "ExportMessage": { "network": XcmV3JunctionNetworkId; "destination": XcmV3Junctions; "xcm": Anonymize; }; "LockAsset": { "asset": Anonymize; "unlocker": Anonymize; }; "UnlockAsset": { "asset": Anonymize; "target": Anonymize; }; "NoteUnlockable": { "asset": Anonymize; "owner": Anonymize; }; "RequestUnlock": { "asset": Anonymize; "locker": Anonymize; }; "SetFeesMode": Anonymize; "SetTopic": SizedHex<32>; "ClearTopic": undefined; "AliasOrigin": Anonymize; "UnpaidExecution": Anonymize; }>; export declare const XcmV3Instruction: GetEnum; export type Iai6dhqiq3bach = Array>; export type Idcm24504c8bkk = { "id": XcmV3MultiassetAssetId; "fun": XcmV3MultiassetFungibility; }; export type XcmV3MultiassetAssetId = Enum<{ "Concrete": Anonymize; "Abstract": SizedHex<32>; }>; export declare const XcmV3MultiassetAssetId: GetEnum; export type XcmV3MultiassetFungibility = Enum<{ "Fungible": bigint; "NonFungible": XcmV3MultiassetAssetInstance; }>; export declare const XcmV3MultiassetFungibility: GetEnum; export type XcmV3MultiassetAssetInstance = Enum<{ "Undefined": undefined; "Index": bigint; "Array4": SizedHex<4>; "Array8": SizedHex<8>; "Array16": SizedHex<16>; "Array32": SizedHex<32>; }>; export declare const XcmV3MultiassetAssetInstance: GetEnum; export type XcmV3Response = Enum<{ "Null": undefined; "Assets": Anonymize; "ExecutionResult"?: Anonymize; "Version": number; "PalletsInfo": Anonymize; "DispatchResult": XcmV3MaybeErrorCode; }>; export declare const XcmV3Response: GetEnum; export type I7sltvf8v2nure = ([number, XcmV3TraitsError]) | undefined; export type XcmV3TraitsError = Enum<{ "Overflow": undefined; "Unimplemented": undefined; "UntrustedReserveLocation": undefined; "UntrustedTeleportLocation": undefined; "LocationFull": undefined; "LocationNotInvertible": undefined; "BadOrigin": undefined; "InvalidLocation": undefined; "AssetNotFound": undefined; "FailedToTransactAsset": undefined; "NotWithdrawable": undefined; "LocationCannotHold": undefined; "ExceedsMaxMessageSize": undefined; "DestinationUnsupported": undefined; "Transport": undefined; "Unroutable": undefined; "UnknownClaim": undefined; "FailedToDecode": undefined; "MaxWeightInvalid": undefined; "NotHoldingFees": undefined; "TooExpensive": undefined; "Trap": bigint; "ExpectationFalse": undefined; "PalletNotFound": undefined; "NameMismatch": undefined; "VersionIncompatible": undefined; "HoldingWouldOverflow": undefined; "ExportError": undefined; "ReanchorFailed": undefined; "NoDeal": undefined; "FeesNotMet": undefined; "LockError": undefined; "NoPermission": undefined; "Unanchored": undefined; "NotDepositable": undefined; "UnhandledXcmVersion": undefined; "WeightLimitReached": Anonymize; "Barrier": undefined; "WeightNotComputable": undefined; "ExceedsStackLimit": undefined; }>; export declare const XcmV3TraitsError: GetEnum; export type I4q39t5hn830vp = { "ref_time": bigint; "proof_size": bigint; }; export type I599u7h20b52at = Array<{ "index": number; "name": Uint8Array; "module_name": Uint8Array; "major": number; "minor": number; "patch": number; }>; export type XcmV3MaybeErrorCode = Enum<{ "Success": undefined; "Error": Uint8Array; "TruncatedError": Uint8Array; }>; export declare const XcmV3MaybeErrorCode: GetEnum; export type Ia9cgf4r40b26h = (Anonymize) | undefined; export type I92p6l5cs3fr50 = { "origin_kind": XcmV2OriginKind; "require_weight_at_most": Anonymize; "call": Uint8Array; }; export type XcmV2OriginKind = Enum<{ "Native": undefined; "SovereignAccount": undefined; "Superuser": undefined; "Xcm": undefined; }>; export declare const XcmV2OriginKind: GetEnum; export type I5uhhrjqfuo4e5 = { "sender": number; "max_message_size": number; "max_capacity": number; }; export type Ifij4jam0o7sub = { "recipient": number; }; export type Ieeb4svd9i8fji = { "initiator": number; "sender": number; "recipient": number; }; export type I4r3v6e91d1qbs = { "destination": Anonymize; "query_id": bigint; "max_weight": Anonymize; }; export type XcmV3MultiassetMultiAssetFilter = Enum<{ "Definite": Anonymize; "Wild": XcmV3MultiassetWildMultiAsset; }>; export declare const XcmV3MultiassetMultiAssetFilter: GetEnum; export type XcmV3MultiassetWildMultiAsset = Enum<{ "All": undefined; "AllOf": { "id": XcmV3MultiassetAssetId; "fun": XcmV2MultiassetWildFungibility; }; "AllCounted": number; "AllOfCounted": { "id": XcmV3MultiassetAssetId; "fun": XcmV2MultiassetWildFungibility; "count": number; }; }>; export declare const XcmV3MultiassetWildMultiAsset: GetEnum; export type XcmV2MultiassetWildFungibility = Enum<{ "Fungible": undefined; "NonFungible": undefined; }>; export declare const XcmV2MultiassetWildFungibility: GetEnum; export type XcmV3WeightLimit = Enum<{ "Unlimited": undefined; "Limited": Anonymize; }>; export declare const XcmV3WeightLimit: GetEnum; export type Ieprdqqu7ildvr = { "query_id": bigint; "max_response_weight": Anonymize; }; export type Iba5bdbapp16oo = { "module_name": Uint8Array; "response_info": Anonymize; }; export type Id7mf37dkpgfjs = { "index": number; "name": Uint8Array; "module_name": Uint8Array; "crate_major": number; "min_crate_minor": number; }; export type I4nae9rsql8fa7 = { "jit_withdraw": boolean; }; export type I40d50jeai33oq = { "weight_limit": XcmV3WeightLimit; "check_origin"?: Anonymize; }; export type Iegrepoo0c1jc5 = Array; export type XcmV4Instruction = Enum<{ "WithdrawAsset": Anonymize; "ReserveAssetDeposited": Anonymize; "ReceiveTeleportedAsset": Anonymize; "QueryResponse": { "query_id": bigint; "response": XcmV4Response; "max_weight": Anonymize; "querier"?: Anonymize; }; "TransferAsset": { "assets": Anonymize; "beneficiary": Anonymize; }; "TransferReserveAsset": { "assets": Anonymize; "dest": Anonymize; "xcm": Anonymize; }; "Transact": Anonymize; "HrmpNewChannelOpenRequest": Anonymize; "HrmpChannelAccepted": Anonymize; "HrmpChannelClosing": Anonymize; "ClearOrigin": undefined; "DescendOrigin": XcmV3Junctions; "ReportError": Anonymize; "DepositAsset": { "assets": XcmV4AssetAssetFilter; "beneficiary": Anonymize; }; "DepositReserveAsset": { "assets": XcmV4AssetAssetFilter; "dest": Anonymize; "xcm": Anonymize; }; "ExchangeAsset": { "give": XcmV4AssetAssetFilter; "want": Anonymize; "maximal": boolean; }; "InitiateReserveWithdraw": { "assets": XcmV4AssetAssetFilter; "reserve": Anonymize; "xcm": Anonymize; }; "InitiateTeleport": { "assets": XcmV4AssetAssetFilter; "dest": Anonymize; "xcm": Anonymize; }; "ReportHolding": { "response_info": Anonymize; "assets": XcmV4AssetAssetFilter; }; "BuyExecution": { "fees": Anonymize; "weight_limit": XcmV3WeightLimit; }; "RefundSurplus": undefined; "SetErrorHandler": Anonymize; "SetAppendix": Anonymize; "ClearError": undefined; "ClaimAsset": { "assets": Anonymize; "ticket": Anonymize; }; "Trap": bigint; "SubscribeVersion": Anonymize; "UnsubscribeVersion": undefined; "BurnAsset": Anonymize; "ExpectAsset": Anonymize; "ExpectOrigin"?: Anonymize; "ExpectError"?: Anonymize; "ExpectTransactStatus": XcmV3MaybeErrorCode; "QueryPallet": Anonymize; "ExpectPallet": Anonymize; "ReportTransactStatus": Anonymize; "ClearTransactStatus": undefined; "UniversalOrigin": XcmV3Junction; "ExportMessage": { "network": XcmV3JunctionNetworkId; "destination": XcmV3Junctions; "xcm": Anonymize; }; "LockAsset": { "asset": Anonymize; "unlocker": Anonymize; }; "UnlockAsset": { "asset": Anonymize; "target": Anonymize; }; "NoteUnlockable": { "asset": Anonymize; "owner": Anonymize; }; "RequestUnlock": { "asset": Anonymize; "locker": Anonymize; }; "SetFeesMode": Anonymize; "SetTopic": SizedHex<32>; "ClearTopic": undefined; "AliasOrigin": Anonymize; "UnpaidExecution": Anonymize; }>; export declare const XcmV4Instruction: GetEnum; export type I50mli3hb64f9b = Array>; export type Ia5l7mu5a6v49o = { "id": Anonymize; "fun": XcmV3MultiassetFungibility; }; export type XcmV4Response = Enum<{ "Null": undefined; "Assets": Anonymize; "ExecutionResult"?: Anonymize; "Version": number; "PalletsInfo": Anonymize; "DispatchResult": XcmV3MaybeErrorCode; }>; export declare const XcmV4Response: GetEnum; export type XcmV4AssetAssetFilter = Enum<{ "Definite": Anonymize; "Wild": XcmV4AssetWildAsset; }>; export declare const XcmV4AssetAssetFilter: GetEnum; export type XcmV4AssetWildAsset = Enum<{ "All": undefined; "AllOf": { "id": Anonymize; "fun": XcmV2MultiassetWildFungibility; }; "AllCounted": number; "AllOfCounted": { "id": Anonymize; "fun": XcmV2MultiassetWildFungibility; "count": number; }; }>; export declare const XcmV4AssetWildAsset: GetEnum; export type Ict03eedr8de9s = Array; export type XcmV5Instruction = Enum<{ "WithdrawAsset": Anonymize; "ReserveAssetDeposited": Anonymize; "ReceiveTeleportedAsset": Anonymize; "QueryResponse": { "query_id": bigint; "response": Anonymize; "max_weight": Anonymize; "querier"?: Anonymize; }; "TransferAsset": { "assets": Anonymize; "beneficiary": Anonymize; }; "TransferReserveAsset": { "assets": Anonymize; "dest": Anonymize; "xcm": Anonymize; }; "Transact": { "origin_kind": XcmV2OriginKind; "fallback_max_weight"?: Anonymize; "call": Uint8Array; }; "HrmpNewChannelOpenRequest": Anonymize; "HrmpChannelAccepted": Anonymize; "HrmpChannelClosing": Anonymize; "ClearOrigin": undefined; "DescendOrigin": XcmV5Junctions; "ReportError": Anonymize; "DepositAsset": { "assets": XcmV5AssetFilter; "beneficiary": Anonymize; }; "DepositReserveAsset": { "assets": XcmV5AssetFilter; "dest": Anonymize; "xcm": Anonymize; }; "ExchangeAsset": { "give": XcmV5AssetFilter; "want": Anonymize; "maximal": boolean; }; "InitiateReserveWithdraw": { "assets": XcmV5AssetFilter; "reserve": Anonymize; "xcm": Anonymize; }; "InitiateTeleport": { "assets": XcmV5AssetFilter; "dest": Anonymize; "xcm": Anonymize; }; "ReportHolding": { "response_info": Anonymize; "assets": XcmV5AssetFilter; }; "BuyExecution": { "fees": Anonymize; "weight_limit": XcmV3WeightLimit; }; "RefundSurplus": undefined; "SetErrorHandler": Anonymize; "SetAppendix": Anonymize; "ClearError": undefined; "ClaimAsset": { "assets": Anonymize; "ticket": Anonymize; }; "Trap": bigint; "SubscribeVersion": Anonymize; "UnsubscribeVersion": undefined; "BurnAsset": Anonymize; "ExpectAsset": Anonymize; "ExpectOrigin"?: Anonymize; "ExpectError"?: Anonymize; "ExpectTransactStatus": XcmV3MaybeErrorCode; "QueryPallet": { "module_name": Uint8Array; "response_info": Anonymize; }; "ExpectPallet": Anonymize; "ReportTransactStatus": Anonymize; "ClearTransactStatus": undefined; "UniversalOrigin": XcmV5Junction; "ExportMessage": { "network": XcmV5NetworkId; "destination": XcmV5Junctions; "xcm": Anonymize; }; "LockAsset": { "asset": Anonymize; "unlocker": Anonymize; }; "UnlockAsset": { "asset": Anonymize; "target": Anonymize; }; "NoteUnlockable": { "asset": Anonymize; "owner": Anonymize; }; "RequestUnlock": { "asset": Anonymize; "locker": Anonymize; }; "SetFeesMode": Anonymize; "SetTopic": SizedHex<32>; "ClearTopic": undefined; "AliasOrigin": Anonymize; "UnpaidExecution": { "weight_limit": XcmV3WeightLimit; "check_origin"?: Anonymize; }; "PayFees": { "asset": Anonymize; }; "InitiateTransfer": { "destination": Anonymize; "remote_fees"?: (Anonymize) | undefined; "preserve_origin": boolean; "assets": Array>; "remote_xcm": Anonymize; }; "ExecuteWithOrigin": { "descendant_origin"?: (XcmV5Junctions) | undefined; "xcm": Anonymize; }; "SetHints": { "hints": Array; }>>; }; }>; export declare const XcmV5Instruction: GetEnum; export type I4npjalvhmfuj = Array>; export type Iffh1nc5e1mod6 = { "id": Anonymize; "fun": XcmV3MultiassetFungibility; }; export type I7vucpgm2c6959 = AnonymousEnum<{ "Null": undefined; "Assets": Anonymize; "ExecutionResult"?: Anonymize; "Version": number; "PalletsInfo": Anonymize; "DispatchResult": XcmV3MaybeErrorCode; }>; export type I3l6ejee750fv1 = ([number, Anonymize]) | undefined; export type Id56rgs0bdb7gl = AnonymousEnum<{ "Overflow": undefined; "Unimplemented": undefined; "UntrustedReserveLocation": undefined; "UntrustedTeleportLocation": undefined; "LocationFull": undefined; "LocationNotInvertible": undefined; "BadOrigin": undefined; "InvalidLocation": undefined; "AssetNotFound": undefined; "FailedToTransactAsset": undefined; "NotWithdrawable": undefined; "LocationCannotHold": undefined; "ExceedsMaxMessageSize": undefined; "DestinationUnsupported": undefined; "Transport": undefined; "Unroutable": undefined; "UnknownClaim": undefined; "FailedToDecode": undefined; "MaxWeightInvalid": undefined; "NotHoldingFees": undefined; "TooExpensive": undefined; "Trap": bigint; "ExpectationFalse": undefined; "PalletNotFound": undefined; "NameMismatch": undefined; "VersionIncompatible": undefined; "HoldingWouldOverflow": undefined; "ExportError": undefined; "ReanchorFailed": undefined; "NoDeal": undefined; "FeesNotMet": undefined; "LockError": undefined; "NoPermission": undefined; "Unanchored": undefined; "NotDepositable": undefined; "TooManyAssets": undefined; "UnhandledXcmVersion": undefined; "WeightLimitReached": Anonymize; "Barrier": undefined; "WeightNotComputable": undefined; "ExceedsStackLimit": undefined; }>; export type I4pai6qnfk426l = (Anonymize) | undefined; export type Iasb8k6ash5mjn = (Anonymize) | undefined; export type I6vsmh07hrp1rc = { "destination": Anonymize; "query_id": bigint; "max_weight": Anonymize; }; export type XcmV5AssetFilter = Enum<{ "Definite": Anonymize; "Wild": XcmV5WildAsset; }>; export declare const XcmV5AssetFilter: GetEnum; export type XcmV5WildAsset = Enum<{ "All": undefined; "AllOf": { "id": Anonymize; "fun": XcmV2MultiassetWildFungibility; }; "AllCounted": number; "AllOfCounted": { "id": Anonymize; "fun": XcmV2MultiassetWildFungibility; "count": number; }; }>; export declare const XcmV5WildAsset: GetEnum; export type Ifhmc9e7vpeeig = AnonymousEnum<{ "Teleport": XcmV5AssetFilter; "ReserveDeposit": XcmV5AssetFilter; "ReserveWithdraw": XcmV5AssetFilter; }>; export type I2adkav4nfpltp = { "location": Anonymize; }; export type I21jsa919m88fd = { "dest": XcmVersionedLocation; "beneficiary": XcmVersionedLocation; "assets": XcmVersionedAssets; "fee_asset_item": number; }; export type XcmVersionedAssets = Enum<{ "V3": Anonymize; "V4": Anonymize; "V5": Anonymize; }>; export declare const XcmVersionedAssets: GetEnum; export type Iegif7m3upfe1k = { "message": XcmVersionedXcm; "max_weight": Anonymize; }; export type I9kt8c221c83ln = { "location": Anonymize; "version": number; }; export type Ic76kfh5ebqkpl = { "maybe_xcm_version"?: Anonymize; }; export type I4arjljr6dpflb = (number) | undefined; export type Icscpmubum33bq = { "location": XcmVersionedLocation; }; export type I21d2olof7eb60 = { "dest": XcmVersionedLocation; "beneficiary": XcmVersionedLocation; "assets": XcmVersionedAssets; "fee_asset_item": number; "weight_limit": XcmV3WeightLimit; }; export type Ibgm4rnf22lal1 = { "suspended": boolean; }; export type Ie68np0vpihith = { "assets": XcmVersionedAssets; "beneficiary": XcmVersionedLocation; }; export type I9bnv6lu0crf1q = { "dest": XcmVersionedLocation; "assets": XcmVersionedAssets; "assets_transfer_type": Enum<{ "Teleport": undefined; "LocalReserve": undefined; "DestinationReserve": undefined; "RemoteReserve": XcmVersionedLocation; }>; "remote_fees_id": XcmVersionedAssetId; "fees_transfer_type": Enum<{ "Teleport": undefined; "LocalReserve": undefined; "DestinationReserve": undefined; "RemoteReserve": XcmVersionedLocation; }>; "custom_xcm_on_dest": XcmVersionedXcm; "weight_limit": XcmV3WeightLimit; }; export type XcmVersionedAssetId = Enum<{ "V3": XcmV3MultiassetAssetId; "V4": Anonymize; "V5": Anonymize; }>; export declare const XcmVersionedAssetId: GetEnum; export type Iauhjqifrdklq7 = { "aliaser": XcmVersionedLocation; "expires"?: Anonymize; }; export type I35p85j063s0il = (bigint) | undefined; export type Ie1uso9m8rt5cf = { "aliaser": XcmVersionedLocation; }; export type Icavsc9euq31jd = AnonymousEnum<{ /** * 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": Anonymize; /** * 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_. */ "as_derivative": Anonymize; /** * 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. */ "batch_all": Anonymize; /** * Dispatches a function call with a provided origin. * * The dispatch origin for this call must be _Root_. * * ## Complexity * - O(1). */ "dispatch_as": Anonymize; /** * 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. */ "force_batch": Anonymize; /** * 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_. */ "with_weight": Anonymize; /** * Dispatch a fallback call in the event the main call fails to execute. * May be called from any origin except `None`. * * This function first attempts to dispatch the `main` call. * If the `main` call fails, the `fallback` is attemted. * if the fallback is successfully dispatched, the weights of both calls * are accumulated and an event containing the main call error is deposited. * * In the event of a fallback failure the whole call fails * with the weights returned. * * - `main`: The main call to be dispatched. This is the primary action to execute. * - `fallback`: The fallback call to be dispatched in case the `main` call fails. * * ## Dispatch Logic * - If the origin is `root`, both the main and fallback calls are executed without * applying any origin filters. * - If the origin is not `root`, the origin filter is applied to both the `main` and * `fallback` calls. * * ## Use Case * - Some use cases might involve submitting a `batch` type call in either main, fallback * or both. */ "if_else": Anonymize; /** * Dispatches a function call with a provided origin. * * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call. * * The dispatch origin for this call must be _Root_. */ "dispatch_as_fallible": Anonymize; }>; export type Idrv9sn94spntn = { "calls": Array; }; export type I66celthih5oio = { "index": number; "call": TxCallData; }; export type I6h467t3h9mu0r = { "as_origin": Anonymize; "call": TxCallData; }; export type I7qpv90droestd = AnonymousEnum<{ "system": Anonymize; "PolkadotXcm": Anonymize; "CumulusXcm": Anonymize; "Origins": GovernanceOrigin; "Revive": Enum<{ "EthTransaction": SS58String; }>; }>; export type I9gqitj4t615g3 = AnonymousEnum<{ "Root": undefined; "Signed": SS58String; "None": undefined; "Authorized": undefined; }>; export type Icvilmd7qu30i4 = AnonymousEnum<{ "Xcm": Anonymize; "Response": Anonymize; }>; export type I3in0d0lb61qi8 = AnonymousEnum<{ "Relay": undefined; "SiblingParachain": number; }>; export type GovernanceOrigin = Enum<{ "StakingAdmin": undefined; "Treasurer": undefined; "FellowshipAdmin": undefined; "GeneralAdmin": undefined; "AuctionAdmin": undefined; "LeaseAdmin": undefined; "ReferendumCanceller": undefined; "ReferendumKiller": undefined; "SmallTipper": undefined; "BigTipper": undefined; "SmallSpender": undefined; "MediumSpender": undefined; "BigSpender": undefined; "WhitelistedCaller": undefined; "WishForChange": undefined; }>; export declare const GovernanceOrigin: GetEnum; export type Iaoqe81db6mqng = { "call": TxCallData; "weight": Anonymize; }; export type Ie9o86shcq0ome = { "main": TxCallData; "fallback": TxCallData; }; export type Icl8d9d3sgv21g = AnonymousEnum<{ /** * The name of specification does not match between the current runtime * and the new runtime. */ "InvalidSpecName": undefined; /** * The specification version is not allowed to decrease between the current runtime * and the new runtime. */ "SpecVersionNeedsToIncrease": undefined; /** * Failed to extract the runtime version from the new runtime. * * Either calling `Core_version` or decoding `RuntimeVersion` failed. */ "FailedToExtractRuntimeVersion": undefined; /** * Suicide called when the account has non-default composite data. */ "NonDefaultComposite": undefined; /** * There is a non-zero reference count preventing the account from being purged. */ "NonZeroRefCount": undefined; /** * The origin filter prevent the call to be dispatched. */ "CallFiltered": undefined; /** * A multi-block migration is ongoing and prevents the current code from being replaced. */ "MultiBlockMigrationsOngoing": undefined; /** * The specified [`Task`] is not valid. */ "InvalidTask": undefined; /** * The specified [`Task`] failed during execution. */ "FailedTask": undefined; /** * No upgrade authorized. */ "NothingAuthorized": undefined; /** * The submitted code is not authorized. */ "Unauthorized": undefined; }>; export type Icjkr35j4tmg7k = AnonymousEnum<{ /** * Attempt to upgrade validation function while existing upgrade pending. */ "OverlappingUpgrades": undefined; /** * Polkadot currently prohibits this parachain from upgrading its validation function. */ "ProhibitedByPolkadot": undefined; /** * The supplied validation function has compiled into a blob larger than Polkadot is * willing to run. */ "TooBig": undefined; /** * The inherent which supplies the validation data did not run this block. */ "ValidationDataNotAvailable": undefined; /** * The inherent which supplies the host configuration did not run this block. */ "HostConfigurationNotAvailable": undefined; /** * No validation function upgrade is currently scheduled. */ "NotScheduled": undefined; }>; export type I4cfhml1prt4lu = AnonymousEnum<{ /** * Preimage is too large to store on-chain. */ "TooBig": undefined; /** * Preimage has already been noted on-chain. */ "AlreadyNoted": undefined; /** * The user is not authorized to perform this action. */ "NotAuthorized": undefined; /** * The preimage cannot be removed since it has not yet been noted. */ "NotNoted": undefined; /** * A preimage may not be removed when there are outstanding requests. */ "Requested": undefined; /** * The preimage request cannot be removed since no outstanding requests exist. */ "NotRequested": undefined; /** * More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once. */ "TooMany": undefined; /** * Too few hashes were requested to be upgraded (i.e. zero). */ "TooFew": undefined; }>; export type If7oa8fprnilo5 = AnonymousEnum<{ /** * Failed to schedule a call */ "FailedToSchedule": undefined; /** * Cannot find the scheduled call. */ "NotFound": undefined; /** * Given target block number is in the past. */ "TargetBlockNumberInPast": undefined; /** * Reschedule failed because it does not change scheduled time. */ "RescheduleNoChange": undefined; /** * Attempt to use a non-named function on a named task. */ "Named": undefined; }>; export type Iaaqq5jevtahm8 = AnonymousEnum<{ /** * The operation cannot complete since some MBMs are ongoing. */ "Ongoing": undefined; }>; export type Idj13i7adlomht = AnonymousEnum<{ /** * Vesting balance too high to send value. */ "VestingBalance": undefined; /** * Account liquidity restrictions prevent withdrawal. */ "LiquidityRestrictions": undefined; /** * Balance too low to send value. */ "InsufficientBalance": undefined; /** * Value too low to create account due to existential deposit. */ "ExistentialDeposit": undefined; /** * Transfer/payment would kill account. */ "Expendability": undefined; /** * A vesting schedule already exists for this account. */ "ExistingVestingSchedule": undefined; /** * Beneficiary account must pre-exist. */ "DeadAccount": undefined; /** * Number of named reserves exceed `MaxReserves`. */ "TooManyReserves": undefined; /** * Number of holds exceed `VariantCountOf`. */ "TooManyHolds": undefined; /** * Number of freezes exceed `MaxFreezes`. */ "TooManyFreezes": undefined; /** * The issuance cannot be modified since it is already deactivated. */ "IssuanceDeactivated": undefined; /** * The delta cannot be zero. */ "DeltaZero": undefined; }>; export type Icof2acl69lq3c = AnonymousEnum<{ /** * The account given is not vesting. */ "NotVesting": undefined; /** * The account already has `MaxVestingSchedules` count of schedules and thus * cannot add another one. Consider merging existing schedules in order to add another. */ "AtMaxVestingSchedules": undefined; /** * Amount being transferred is too low to create a vesting schedule. */ "AmountLow": undefined; /** * An index was out of bounds of the vesting schedules. */ "ScheduleIndexOutOfBounds": undefined; /** * Failed to create a new schedule because some parameter was invalid. */ "InvalidScheduleParams": undefined; }>; export type Ijh2jbbqvb176 = AnonymousEnum<{ /** * Invalid Ethereum signature. */ "InvalidEthereumSignature": undefined; /** * Ethereum address has no claim. */ "SignerHasNoClaim": undefined; /** * Account ID sending transaction has no claim. */ "SenderHasNoClaim": undefined; /** * There's not enough in the pot to pay out some unvested amount. Generally implies a * logic error. */ "PotUnderflow": undefined; /** * A needed statement was not included. */ "InvalidStatement": undefined; /** * The account already has a vested balance. */ "VestedBalanceExists": undefined; }>; export type If9no21kcna8iv = AnonymousEnum<{ /** * A key in the budget allocation does not match any registered recipient. */ "UnknownBudgetKey": undefined; /** * Budget allocation percentages do not sum to exactly 100%. */ "BudgetNotExact": undefined; }>; export type I36bcffk2387dv = AnonymousEnum<{ /** * The pallet has too many candidates. */ "TooManyCandidates": undefined; /** * Leaving would result in too few candidates. */ "TooFewEligibleCollators": undefined; /** * Account is already a candidate. */ "AlreadyCandidate": undefined; /** * Account is not a candidate. */ "NotCandidate": undefined; /** * There are too many Invulnerables. */ "TooManyInvulnerables": undefined; /** * Account is already an Invulnerable. */ "AlreadyInvulnerable": undefined; /** * Account is not an Invulnerable. */ "NotInvulnerable": undefined; /** * Account has no associated validator ID. */ "NoAssociatedValidatorId": undefined; /** * Validator ID is not yet registered. */ "ValidatorNotRegistered": undefined; /** * Could not insert in the candidate list. */ "InsertToCandidateListFailed": undefined; /** * Could not remove from the candidate list. */ "RemoveFromCandidateListFailed": undefined; /** * New deposit amount would be below the minimum candidacy bond. */ "DepositTooLow": undefined; /** * Could not update the candidate list. */ "UpdateCandidateListFailed": undefined; /** * Deposit amount is too low to take the target's slot in the candidate list. */ "InsufficientBond": undefined; /** * The target account to be replaced in the candidate list is not a candidate. */ "TargetIsNotCandidate": undefined; /** * The updated deposit amount is equal to the amount already reserved. */ "IdenticalDeposit": undefined; /** * Cannot lower candidacy bond while occupying a future collator slot in the list. */ "InvalidUnreserve": undefined; }>; export type I1e07dgbaqd1sq = AnonymousEnum<{ /** * Invalid ownership proof. */ "InvalidProof": undefined; /** * No associated validator ID for account. */ "NoAssociatedValidatorId": undefined; /** * Registered duplicate key. */ "DuplicatedKey": undefined; /** * No keys are associated with this account. */ "NoKeys": undefined; /** * Key setting account is not live, so it's impossible to associate keys. */ "NoAccount": undefined; }>; export type Idnnbndsjjeqqs = AnonymousEnum<{ /** * Setting the queue config failed since one of its values was invalid. */ "BadQueueConfig": undefined; /** * The execution is already suspended. */ "AlreadySuspended": undefined; /** * The execution is already resumed. */ "AlreadyResumed": undefined; /** * There are too many active outbound channels. */ "TooManyActiveOutboundChannels": undefined; /** * The message is too big. */ "TooBig": undefined; }>; export type I4vcvo9od6afmt = AnonymousEnum<{ /** * The desired destination was unreachable, generally because there is a no way of routing * to it. */ "Unreachable": undefined; /** * 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": undefined; /** * The message execution fails the filter. */ "Filtered": undefined; /** * The message's weight could not be determined. */ "UnweighableMessage": undefined; /** * The destination `Location` provided cannot be inverted. */ "DestinationNotInvertible": undefined; /** * The assets to be sent are empty. */ "Empty": undefined; /** * Could not re-anchor the assets to declare the fees for the destination chain. */ "CannotReanchor": undefined; /** * Too many assets have been attempted for transfer. */ "TooManyAssets": undefined; /** * Origin is invalid for sending. */ "InvalidOrigin": undefined; /** * The version of the `Versioned` value used is not able to be interpreted. */ "BadVersion": undefined; /** * The given location could not be used (e.g. because it cannot be expressed in the * desired version of XCM). */ "BadLocation": undefined; /** * The referenced subscription could not be found. */ "NoSubscription": undefined; /** * The location is invalid since it already has a subscription from us. */ "AlreadySubscribed": undefined; /** * Could not check-out the assets for teleportation to the destination chain. */ "CannotCheckOutTeleport": undefined; /** * The owner does not own (all) of the asset that they wish to do the operation on. */ "LowBalance": undefined; /** * The asset owner has too many locks on the asset. */ "TooManyLocks": undefined; /** * The given account is not an identifiable sovereign account for any location. */ "AccountNotSovereign": undefined; /** * The operation required fees to be paid which the initiator could not meet. */ "FeesNotMet": undefined; /** * A remote lock with the corresponding data could not be found. */ "LockNotFound": undefined; /** * The unlock operation cannot succeed because there are still consumers of the lock. */ "InUse": undefined; /** * Invalid asset, reserve chain could not be determined for it. */ "InvalidAssetUnknownReserve": undefined; /** * Invalid asset, do not support remote asset reserves with different fees reserves. */ "InvalidAssetUnsupportedReserve": undefined; /** * Too many assets with different reserve locations have been attempted for transfer. */ "TooManyReserves": undefined; /** * Local XCM execution incomplete. */ "LocalExecutionIncomplete": undefined; /** * Too many locations authorized to alias origin. */ "TooManyAuthorizedAliases": undefined; /** * Expiry block number is in the past. */ "ExpiresInPast": undefined; /** * The alias to remove authorization for was not found. */ "AliasNotFound": undefined; /** * Local XCM execution incomplete with the actual XCM error and the index of the * instruction that caused the error. */ "LocalExecutionIncompleteWithError": Anonymize; }>; export type I5r8t4iaend96p = { "index": number; "error": Enum<{ "Overflow": undefined; "Unimplemented": undefined; "UntrustedReserveLocation": undefined; "UntrustedTeleportLocation": undefined; "LocationFull": undefined; "LocationNotInvertible": undefined; "BadOrigin": undefined; "InvalidLocation": undefined; "AssetNotFound": undefined; "FailedToTransactAsset": undefined; "NotWithdrawable": undefined; "LocationCannotHold": undefined; "ExceedsMaxMessageSize": undefined; "DestinationUnsupported": undefined; "Transport": undefined; "Unroutable": undefined; "UnknownClaim": undefined; "FailedToDecode": undefined; "MaxWeightInvalid": undefined; "NotHoldingFees": undefined; "TooExpensive": undefined; "Trap": undefined; "ExpectationFalse": undefined; "PalletNotFound": undefined; "NameMismatch": undefined; "VersionIncompatible": undefined; "HoldingWouldOverflow": undefined; "ExportError": undefined; "ReanchorFailed": undefined; "NoDeal": undefined; "FeesNotMet": undefined; "LockError": undefined; "NoPermission": undefined; "Unanchored": undefined; "NotDepositable": undefined; "TooManyAssets": undefined; "UnhandledXcmVersion": undefined; "WeightLimitReached": undefined; "Barrier": undefined; "WeightNotComputable": undefined; "ExceedsStackLimit": undefined; }>; }; export type I5iupade5ag2dp = AnonymousEnum<{ /** * Page is not reapable because it has items remaining to be processed and is not old * enough. */ "NotReapable": undefined; /** * Page to be reaped does not exist. */ "NoPage": undefined; /** * The referenced message could not be found. */ "NoMessage": undefined; /** * The message was already processed and cannot be processed again. */ "AlreadyProcessed": undefined; /** * The message is queued for future execution. */ "Queued": undefined; /** * There is temporarily not enough weight to continue servicing messages. */ "InsufficientWeight": undefined; /** * This message is temporarily unprocessable. * * Such errors are expected, but not guaranteed, to resolve themselves eventually through * retrying. */ "TemporarilyUnprocessable": undefined; /** * 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": undefined; /** * Another call is in progress and needs to finish before this call can happen. */ "RecursiveDisallowed": undefined; }>; export type Idqkarp7hi55vf = AnonymousEnum<{ /** * Convert versioned location failure */ "UnsupportedLocationVersion": undefined; /** * Check location failure, should start from the dispatch origin as owner */ "InvalidAssetOwner": undefined; /** * Send xcm message failure */ "SendFailure": undefined; /** * Withdraw fee asset failure */ "FeesNotMet": undefined; /** * Convert to reanchored location failure */ "LocationConversionFailed": undefined; /** * Message export is halted */ "Halted": undefined; /** * The desired destination was unreachable, generally because there is a no way of routing * to it. */ "Unreachable": undefined; /** * The asset provided for the tip is unsupported. */ "UnsupportedAsset": undefined; /** * Unable to withdraw asset. */ "WithdrawError": undefined; /** * Account could not be converted to a location. */ "InvalidAccount": undefined; /** * Provided tip asset could not be swapped for ether. */ "SwapError": undefined; /** * Ether could not be burned. */ "BurnError": undefined; /** * The tip provided is zero. */ "TipAmountZero": undefined; }>; export type I8dt2g2hcrgh36 = AnonymousEnum<{ /** * Too many calls batched. */ "TooManyCalls": undefined; }>; export type Ia76qmhhg4jvb9 = AnonymousEnum<{ /** * Threshold must be 2 or greater. */ "MinimumThreshold": undefined; /** * Call is already approved by this signatory. */ "AlreadyApproved": undefined; /** * Call doesn't need any (more) approvals. */ "NoApprovalsNeeded": undefined; /** * There are too few signatories in the list. */ "TooFewSignatories": undefined; /** * There are too many signatories in the list. */ "TooManySignatories": undefined; /** * The signatories were provided out of order; they should be ordered. */ "SignatoriesOutOfOrder": undefined; /** * The sender was contained in the other signatories; it shouldn't be. */ "SenderInSignatories": undefined; /** * Multisig operation not found in storage. */ "NotFound": undefined; /** * Only the account that originally created the multisig is able to cancel it or update * its deposits. */ "NotOwner": undefined; /** * No timepoint was given, yet the multisig operation is already underway. */ "NoTimepoint": undefined; /** * A different timepoint was given to the multisig operation that is underway. */ "WrongTimepoint": undefined; /** * A timepoint was given, yet no multisig operation is underway. */ "UnexpectedTimepoint": undefined; /** * The maximum weight information provided was too low. */ "MaxWeightTooLow": undefined; /** * The data to be stored is already stored. */ "AlreadyStored": undefined; }>; export type Iuvt54ei4cehc = AnonymousEnum<{ /** * There are too many proxies registered or too many announcements pending. */ "TooMany": undefined; /** * Proxy registration not found. */ "NotFound": undefined; /** * Sender is not a proxy of the account to be proxied. */ "NotProxy": undefined; /** * A call which is incompatible with the proxy type's filter was attempted. */ "Unproxyable": undefined; /** * Account is already a proxy. */ "Duplicate": undefined; /** * Call may not be made by proxy because it may escalate its privileges. */ "NoPermission": undefined; /** * Announcement, if made at all, was made too recently. */ "Unannounced": undefined; /** * Cannot add self as proxy. */ "NoSelfProxy": undefined; }>; export type Icq1825fru3di2 = AnonymousEnum<{ /** * The index was not already assigned. */ "NotAssigned": undefined; /** * The index is assigned to another account. */ "NotOwner": undefined; /** * The index was not available. */ "InUse": undefined; /** * The source and destination accounts are identical. */ "NotTransfer": undefined; /** * The index is permanent and may not be freed/changed. */ "Permanent": undefined; }>; export type I8ktb7n3252jn5 = AnonymousEnum<{ /** * Account balance must be greater than or equal to the transfer amount. */ "BalanceLow": undefined; /** * The account to alter does not exist. */ "NoAccount": undefined; /** * The signing account has no permission to do the operation. */ "NoPermission": undefined; /** * The given asset ID is unknown. */ "Unknown": undefined; /** * The origin account is frozen. */ "Frozen": undefined; /** * The asset ID is already taken. */ "InUse": undefined; /** * Invalid witness data given. */ "BadWitness": undefined; /** * Minimum balance should be non-zero. */ "MinBalanceZero": undefined; /** * 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": undefined; /** * Invalid metadata given. */ "BadMetadata": undefined; /** * No approval exists that would allow the transfer. */ "Unapproved": undefined; /** * The source account would not survive the transfer and it needs to stay alive. */ "WouldDie": undefined; /** * The asset-account already exists. */ "AlreadyExists": undefined; /** * The asset-account doesn't have an associated deposit. */ "NoDeposit": undefined; /** * The operation would result in funds being burned. */ "WouldBurn": undefined; /** * 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": undefined; /** * The asset is not live, and likely being destroyed. */ "AssetNotLive": undefined; /** * The asset status is not the expected status. */ "IncorrectStatus": undefined; /** * The asset should be frozen before the given operation. */ "NotFrozen": undefined; /** * Callback action resulted in error */ "CallbackFailed": undefined; /** * The asset ID must be equal to the [`NextAssetId`]. */ "BadAssetId": undefined; /** * The asset cannot be destroyed because some accounts for this asset contain freezes. */ "ContainsFreezes": undefined; /** * The asset cannot be destroyed because some accounts for this asset contain holds. */ "ContainsHolds": undefined; /** * Tried setting too many reserves. */ "TooManyReserves": undefined; }>; export type Ie9ou99obd2hgv = AnonymousEnum<{ /** * The signing account has no permission to do the operation. */ "NoPermission": undefined; /** * The given item ID is unknown. */ "UnknownCollection": undefined; /** * The item ID has already been used for an item. */ "AlreadyExists": undefined; /** * The owner turned out to be different to what was expected. */ "WrongOwner": undefined; /** * Invalid witness data given. */ "BadWitness": undefined; /** * The item ID is already taken. */ "InUse": undefined; /** * The item or collection is frozen. */ "Frozen": undefined; /** * The delegate turned out to be different to what was expected. */ "WrongDelegate": undefined; /** * There is no delegate approved. */ "NoDelegate": undefined; /** * No approval exists that would allow the transfer. */ "Unapproved": undefined; /** * The named owner has not signed ownership of the collection is acceptable. */ "Unaccepted": undefined; /** * The item is locked. */ "Locked": undefined; /** * All items have been minted. */ "MaxSupplyReached": undefined; /** * The max supply has already been set. */ "MaxSupplyAlreadySet": undefined; /** * The provided max supply is less to the amount of items a collection already has. */ "MaxSupplyTooSmall": undefined; /** * The given item ID is unknown. */ "UnknownItem": undefined; /** * Item is not for sale. */ "NotForSale": undefined; /** * The provided bid is too low. */ "BidTooLow": undefined; /** * No metadata is found. */ "NoMetadata": undefined; /** * Wrong metadata key/value bytes supplied. */ "WrongMetadata": undefined; /** * An attribute is not found. */ "AttributeNotFound": undefined; /** * Wrong attribute key/value bytes supplied. */ "WrongAttribute": undefined; }>; export type I58r1150kmj18u = AnonymousEnum<{ /** * The signing account has no permission to do the operation. */ "NoPermission": undefined; /** * The given item ID is unknown. */ "UnknownCollection": undefined; /** * The item ID has already been used for an item. */ "AlreadyExists": undefined; /** * The approval had a deadline that expired, so the approval isn't valid anymore. */ "ApprovalExpired": undefined; /** * The owner turned out to be different to what was expected. */ "WrongOwner": undefined; /** * The witness data given does not match the current state of the chain. */ "BadWitness": undefined; /** * Collection ID is already taken. */ "CollectionIdInUse": undefined; /** * Items within that collection are non-transferable. */ "ItemsNonTransferable": undefined; /** * The provided account is not a delegate. */ "NotDelegate": undefined; /** * The delegate turned out to be different to what was expected. */ "WrongDelegate": undefined; /** * No approval exists that would allow the transfer. */ "Unapproved": undefined; /** * The named owner has not signed ownership acceptance of the collection. */ "Unaccepted": undefined; /** * The item is locked (non-transferable). */ "ItemLocked": undefined; /** * Item's attributes are locked. */ "LockedItemAttributes": undefined; /** * Collection's attributes are locked. */ "LockedCollectionAttributes": undefined; /** * Item's metadata is locked. */ "LockedItemMetadata": undefined; /** * Collection's metadata is locked. */ "LockedCollectionMetadata": undefined; /** * All items have been minted. */ "MaxSupplyReached": undefined; /** * The max supply is locked and can't be changed. */ "MaxSupplyLocked": undefined; /** * The provided max supply is less than the number of items a collection already has. */ "MaxSupplyTooSmall": undefined; /** * The given item ID is unknown. */ "UnknownItem": undefined; /** * Swap doesn't exist. */ "UnknownSwap": undefined; /** * The given item has no metadata set. */ "MetadataNotFound": undefined; /** * The provided attribute can't be found. */ "AttributeNotFound": undefined; /** * Item is not for sale. */ "NotForSale": undefined; /** * The provided bid is too low. */ "BidTooLow": undefined; /** * The item has reached its approval limit. */ "ReachedApprovalLimit": undefined; /** * The deadline has already expired. */ "DeadlineExpired": undefined; /** * The duration provided should be less than or equal to `MaxDeadlineDuration`. */ "WrongDuration": undefined; /** * The method is disabled by system settings. */ "MethodDisabled": undefined; /** * The provided setting can't be set. */ "WrongSetting": undefined; /** * Item's config already exists and should be equal to the provided one. */ "InconsistentItemConfig": undefined; /** * Config for a collection or an item can't be found. */ "NoConfig": undefined; /** * Some roles were not cleared. */ "RolesNotCleared": undefined; /** * Mint has not started yet. */ "MintNotStarted": undefined; /** * Mint has already ended. */ "MintEnded": undefined; /** * The provided Item was already used for claiming. */ "AlreadyClaimed": undefined; /** * The provided data is incorrect. */ "IncorrectData": undefined; /** * The extrinsic was sent by the wrong origin. */ "WrongOrigin": undefined; /** * The provided signature is incorrect. */ "WrongSignature": undefined; /** * The provided metadata might be too long. */ "IncorrectMetadata": undefined; /** * Can't set more attributes per one call. */ "MaxAttributesLimitReached": undefined; /** * The provided namespace isn't supported in this call. */ "WrongNamespace": undefined; /** * Can't delete non-empty collections. */ "CollectionNotEmpty": undefined; /** * The witness data should be provided. */ "WitnessRequired": undefined; }>; export type Ief86g08j4h0fi = AnonymousEnum<{ /** * Provided asset pair is not supported for pool. */ "InvalidAssetPair": undefined; /** * Pool already exists. */ "PoolExists": undefined; /** * Desired amount can't be zero. */ "WrongDesiredAmount": undefined; /** * Provided amount should be greater than or equal to the existential deposit/asset's * minimal amount. */ "AmountOneLessThanMinimal": undefined; /** * Provided amount should be greater than or equal to the existential deposit/asset's * minimal amount. */ "AmountTwoLessThanMinimal": undefined; /** * Reserve needs to always be greater than or equal to the existential deposit/asset's * minimal amount. */ "ReserveLeftLessThanMinimal": undefined; /** * Desired amount can't be equal to the pool reserve. */ "AmountOutTooHigh": undefined; /** * The pool doesn't exist. */ "PoolNotFound": undefined; /** * An overflow happened. */ "Overflow": undefined; /** * The minimal amount requirement for the first token in the pair wasn't met. */ "AssetOneDepositDidNotMeetMinimum": undefined; /** * The minimal amount requirement for the second token in the pair wasn't met. */ "AssetTwoDepositDidNotMeetMinimum": undefined; /** * The minimal amount requirement for the first token in the pair wasn't met. */ "AssetOneWithdrawalDidNotMeetMinimum": undefined; /** * The minimal amount requirement for the second token in the pair wasn't met. */ "AssetTwoWithdrawalDidNotMeetMinimum": undefined; /** * Optimal calculated amount is less than desired. */ "OptimalAmountLessThanDesired": undefined; /** * Insufficient liquidity minted. */ "InsufficientLiquidityMinted": undefined; /** * Requested liquidity can't be zero. */ "ZeroLiquidity": undefined; /** * Amount can't be zero. */ "ZeroAmount": undefined; /** * Calculated amount out is less than provided minimum amount. */ "ProvidedMinimumNotSufficientForSwap": undefined; /** * Provided maximum amount is not sufficient for swap. */ "ProvidedMaximumNotSufficientForSwap": undefined; /** * The provided path must consists of 2 assets at least. */ "InvalidPath": undefined; /** * The provided path must consists of unique assets. */ "NonUniquePath": undefined; /** * It was not possible to get or increment the Id of the pool. */ "IncorrectPoolAssetId": undefined; /** * The destination account cannot exist with the swapped funds. */ "BelowMinimum": undefined; /** * The pool exists but has no liquidity (at least one of the reserves is zero). */ "PoolEmpty": undefined; }>; export type I36uss0m9fpcsf = AnonymousEnum<{ /** * No proposal, bounty or spend at that index. */ "InvalidIndex": undefined; /** * Too many approvals in the queue. */ "TooManyApprovals": undefined; /** * The spend origin is valid but the amount it is allowed to spend is lower than the * amount to be spent. */ "InsufficientPermission": undefined; /** * Proposal has not been approved. */ "ProposalNotApproved": undefined; /** * The balance of the asset kind is not convertible to the balance of the native asset. */ "FailedToConvertBalance": undefined; /** * The spend has expired and cannot be claimed. */ "SpendExpired": undefined; /** * The spend is not yet eligible for payout. */ "EarlyPayout": undefined; /** * The payment has already been attempted. */ "AlreadyAttempted": undefined; /** * There was some issue with the mechanism of payment. */ "PayoutError": undefined; /** * The payout was not yet attempted/claimed. */ "NotAttempted": undefined; /** * The payment has neither failed nor succeeded yet. */ "Inconclusive": undefined; }>; export type Idfa8k8ikssbsf = AnonymousEnum<{ /** * Poll is not ongoing. */ "NotOngoing": undefined; /** * The given account did not vote on the poll. */ "NotVoter": undefined; /** * The actor has no permission to conduct the action. */ "NoPermission": undefined; /** * The actor has no permission to conduct the action right now but will do in the future. */ "NoPermissionYet": undefined; /** * The account is already delegating. */ "AlreadyDelegating": undefined; /** * The account currently has votes attached to it and the operation cannot succeed until * these are removed through `remove_vote`. */ "AlreadyVoting": undefined; /** * Too high a balance was provided that the account cannot afford. */ "InsufficientFunds": undefined; /** * The account is not currently delegating. */ "NotDelegating": undefined; /** * Delegation to oneself makes no sense. */ "Nonsense": undefined; /** * Maximum number of votes reached. */ "MaxVotesReached": undefined; /** * The class must be supplied since it is not easily determinable from the state. */ "ClassNeeded": undefined; /** * The class ID supplied is invalid. */ "BadClass": undefined; }>; export type I84u4ul208g742 = AnonymousEnum<{ /** * Referendum is not ongoing. */ "NotOngoing": undefined; /** * Referendum's decision deposit is already paid. */ "HasDeposit": undefined; /** * The track identifier given was invalid. */ "BadTrack": undefined; /** * There are already a full complement of referenda in progress for this track. */ "Full": undefined; /** * The queue of the track is empty. */ "QueueEmpty": undefined; /** * The referendum index provided is invalid in this context. */ "BadReferendum": undefined; /** * There was nothing to do in the advancement. */ "NothingToDo": undefined; /** * No track exists for the proposal origin. */ "NoTrack": undefined; /** * Any deposit cannot be refunded until after the decision is over. */ "Unfinished": undefined; /** * The deposit refunder is not the depositor. */ "NoPermission": undefined; /** * The deposit cannot be refunded since none was made. */ "NoDeposit": undefined; /** * The referendum status is invalid for this operation. */ "BadStatus": undefined; /** * The preimage does not exist. */ "PreimageNotExist": undefined; /** * The preimage is stored with a different length than the one provided. */ "PreimageStoredWithDifferentLength": undefined; }>; export type I15nctscutpbeh = AnonymousEnum<{ /** * The preimage of the call hash could not be loaded. */ "UnavailablePreImage": undefined; /** * The call could not be decoded. */ "UndecodableCall": undefined; /** * The weight of the decoded call was higher than the witness. */ "InvalidCallWeightWitness": undefined; /** * The call was not whitelisted. */ "CallIsNotWhitelisted": undefined; /** * The call was already whitelisted; No-Op. */ "CallAlreadyWhitelisted": undefined; }>; export type I6cac4658fiknc = AnonymousEnum<{ /** * Proposer's balance is too low. */ "InsufficientProposersBalance": undefined; /** * No proposal or bounty at that index. */ "InvalidIndex": undefined; /** * The reason given is just too big. */ "ReasonTooBig": undefined; /** * The bounty status is unexpected. */ "UnexpectedStatus": undefined; /** * Require bounty curator. */ "RequireCurator": undefined; /** * Invalid bounty value. */ "InvalidValue": undefined; /** * Invalid bounty fee. */ "InvalidFee": undefined; /** * A bounty payout is pending. * To cancel the bounty, you must unassign and slash the curator. */ "PendingPayout": undefined; /** * The bounties cannot be claimed/closed because it's still in the countdown period. */ "Premature": undefined; /** * The bounty cannot be closed because it has active child bounties. */ "HasActiveChildBounty": undefined; /** * Too many approvals are already queued. */ "TooManyQueued": undefined; /** * User is not the proposer of the bounty. */ "NotProposer": undefined; }>; export type I4u5ou5u3tthff = AnonymousEnum<{ /** * The parent bounty is not in active state. */ "ParentBountyNotActive": undefined; /** * The bounty balance is not enough to add new child-bounty. */ "InsufficientBountyBalance": undefined; /** * Number of child bounties exceeds limit `MaxActiveChildBountyCount`. */ "TooManyChildBounties": undefined; }>; export type I3qgd61cgli6cp = AnonymousEnum<{ /** * The given asset ID is unknown. */ "UnknownAssetKind": undefined; /** * The given asset ID already has an assigned conversion rate and cannot be re-created. */ "AlreadyExists": undefined; /** * Overflow ocurred when calculating the inverse rate. */ "Overflow": undefined; }>; export type Idkclbbe1igg42 = AnonymousEnum<{ /** * No child-/bounty at that index. */ "InvalidIndex": undefined; /** * The reason given is just too big. */ "ReasonTooBig": undefined; /** * Invalid child-/bounty value. */ "InvalidValue": undefined; /** * The balance of the asset kind is not convertible to the balance of the native asset for * asserting the origin permissions. */ "FailedToConvertBalance": undefined; /** * The child-/bounty status is unexpected. */ "UnexpectedStatus": undefined; /** * Require child-/bounty curator. */ "RequireCurator": undefined; /** * The spend origin is valid but the amount it is allowed to spend is lower than the * requested amount. */ "InsufficientPermission": undefined; /** * There was issue with funding the child-/bounty. */ "FundingError": undefined; /** * There was issue with refunding the child-/bounty. */ "RefundError": undefined; "PayoutError": undefined; /** * Child-/bounty funding has not concluded yet. */ "FundingInconclusive": undefined; /** * Child-/bounty refund has not concluded yet. */ "RefundInconclusive": undefined; /** * Child-/bounty payout has not concluded yet. */ "PayoutInconclusive": undefined; /** * The child-/bounty or funding source account could not be derived from the indexes and * asset kind. */ "FailedToConvertSource": undefined; /** * The parent bounty cannot be closed because it has active child bounties. */ "HasActiveChildBounty": undefined; /** * Number of child bounties exceeds limit `MaxActiveChildBountyCount`. */ "TooManyChildBounties": undefined; /** * The parent bounty value is not enough to add new child-bounty. */ "InsufficientBountyValue": undefined; /** * The preimage does not exist. */ "PreimageNotExist": undefined; }>; export type I96objte63brjr = AnonymousEnum<{ /** * Max signed limits not respected. */ "MaxSignedLimits": undefined; /** * A key was longer than the configured maximum. * * This means that the migration halted at the current [`Progress`] and * can be resumed with a larger [`crate::Config::MaxKeyLen`] value. * Retrying with the same [`crate::Config::MaxKeyLen`] value will not work. * The value should only be increased to avoid a storage migration for the currently * stored [`crate::Progress::LastKey`]. */ "KeyTooLong": undefined; /** * submitter does not have enough funds. */ "NotEnoughFunds": undefined; /** * Bad witness data provided. */ "BadWitness": undefined; /** * Signed migration is not allowed because the maximum limit is not set yet. */ "SignedMigrationNotAllowed": undefined; /** * Bad child root provided. */ "BadChildRoot": undefined; }>; export type Iuudu4kursojc = AnonymousEnum<{ /** * A (bonded) pool id does not exist. */ "PoolNotFound": undefined; /** * An account is not a member. */ "PoolMemberNotFound": undefined; /** * A reward pool does not exist. In all cases this is a system logic error. */ "RewardPoolNotFound": undefined; /** * A sub pool does not exist. */ "SubPoolsNotFound": undefined; /** * An account is already delegating in another pool. An account may only belong to one * pool at a time. */ "AccountBelongsToOtherPool": undefined; /** * The member is fully unbonded (and thus cannot access the bonded and reward pool * anymore to, for example, collect rewards). */ "FullyUnbonding": undefined; /** * The member cannot unbond further chunks due to reaching the limit. */ "MaxUnbondingLimit": undefined; /** * None of the funds can be withdrawn yet because the bonding duration has not passed. */ "CannotWithdrawAny": undefined; /** * The amount does not meet the minimum bond to either join or create a pool. * * The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The * caller does not have nominating permissions for the pool. Members can never unbond to a * value below `MinJoinBond`. */ "MinimumBondNotMet": undefined; /** * The transaction could not be executed due to overflow risk for the pool. */ "OverflowRisk": undefined; /** * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for * other members to be permissionlessly unbonded. */ "NotDestroying": undefined; /** * The caller does not have nominating permissions for the pool. */ "NotNominator": undefined; /** * Either a) the caller cannot make a valid kick or b) the pool is not destroying. */ "NotKickerOrDestroying": undefined; /** * The pool is not open to join */ "NotOpen": undefined; /** * The system is maxed out on pools. */ "MaxPools": undefined; /** * Too many members in the pool or system. */ "MaxPoolMembers": undefined; /** * The pools state cannot be changed. */ "CanNotChangeState": undefined; /** * The caller does not have adequate permissions. */ "DoesNotHavePermission": undefined; /** * Metadata exceeds [`Config::MaxMetadataLen`] */ "MetadataExceedsMaxLen": undefined; /** * Some error occurred that should never happen. This should be reported to the * maintainers. */ "Defensive": Anonymize; /** * Partial unbonding now allowed permissionlessly. */ "PartialUnbondNotAllowedPermissionlessly": undefined; /** * The pool's max commission cannot be set higher than the existing value. */ "MaxCommissionRestricted": undefined; /** * The supplied commission exceeds the max allowed commission. */ "CommissionExceedsMaximum": undefined; /** * The supplied commission exceeds global maximum commission. */ "CommissionExceedsGlobalMaximum": undefined; /** * Not enough blocks have surpassed since the last commission update. */ "CommissionChangeThrottled": undefined; /** * The submitted changes to commission change rate are not allowed. */ "CommissionChangeRateNotAllowed": undefined; /** * There is no pending commission to claim. */ "NoPendingCommission": undefined; /** * No commission current has been set. */ "NoCommissionCurrentSet": undefined; /** * Pool id currently in use. */ "PoolIdInUse": undefined; /** * Pool id provided is not correct/usable. */ "InvalidPoolId": undefined; /** * Bonding extra is restricted to the exact pending reward amount. */ "BondExtraRestricted": undefined; /** * No imbalance in the ED deposit for the pool. */ "NothingToAdjust": undefined; /** * No slash pending that can be applied to the member. */ "NothingToSlash": undefined; /** * The slash amount is too low to be applied. */ "SlashTooLow": undefined; /** * The pool or member delegation has already migrated to delegate stake. */ "AlreadyMigrated": undefined; /** * The pool or member delegation has not migrated yet to delegate stake. */ "NotMigrated": undefined; /** * This call is not allowed in the current state of the pallet. */ "NotSupported": undefined; /** * Account is restricted from participation in pools. This may happen if the account is * staking in another way already. */ "Restricted": undefined; }>; export type Ie2db4l6126rkt = AnonymousEnum<{ "NotEnoughSpaceInUnbondPool": undefined; "PoolNotFound": undefined; "RewardPoolNotFound": undefined; "SubPoolsNotFound": undefined; "BondedStashKilledPrematurely": undefined; "DelegationUnsupported": undefined; "SlashNotApplied": undefined; }>; export type I2e4fekrkcdej2 = AnonymousEnum<{ /** * A error in the list interface implementation. */ "List": Anonymize; /** * Could not update a node, because the pallet is locked. */ "Locked": undefined; }>; export type Ictkqqlhdjt761 = AnonymousEnum<{ "Duplicate": undefined; "NotHeavier": undefined; "NotInSameBag": undefined; "NodeNotFound": undefined; "Locked": undefined; }>; export type Iaogv3iimefnis = AnonymousEnum<{ /** * The account cannot perform this operation. */ "NotAllowed": undefined; /** * An existing staker cannot perform this action. */ "AlreadyStaking": undefined; /** * Reward Destination cannot be same as `Agent` account. */ "InvalidRewardDestination": undefined; /** * Delegation conditions are not met. * * Possible issues are * 1) Cannot delegate to self, * 2) Cannot delegate to multiple delegates. */ "InvalidDelegation": undefined; /** * The account does not have enough funds to perform the operation. */ "NotEnoughFunds": undefined; /** * Not an existing `Agent` account. */ "NotAgent": undefined; /** * Not a Delegator account. */ "NotDelegator": undefined; /** * Some corruption in internal state. */ "BadState": undefined; /** * Unapplied pending slash restricts operation on `Agent`. */ "UnappliedSlash": undefined; /** * `Agent` has no pending slash to be applied. */ "NothingToSlash": undefined; /** * Failed to withdraw amount from Core Staking. */ "WithdrawFailed": undefined; /** * Operation not supported by this pallet. */ "NotSupported": undefined; }>; export type I1ucg3dr90s1tp = AnonymousEnum<{ /** * Failed to send XCM message to the Relay Chain. */ "XcmSendFailed": undefined; /** * The origin account is not a registered validator. * * Only accounts that have called `validate()` can set or purge session keys. When called * via a staking proxy, the origin is the delegating account (stash), which must be a * registered validator. */ "NotValidator": undefined; /** * The session keys could not be decoded as the expected RelayChainSessionKeys type. */ "InvalidKeys": undefined; /** * Invalid ownership proof for the session keys. */ "InvalidProof": undefined; /** * Delivery fees exceeded the specified maximum. */ "FeesExceededMax": undefined; }>; export type I6gonitoaqpiua = AnonymousEnum<{ /** * Triggering the `Fallback` failed. */ "Fallback": undefined; /** * Unexpected phase */ "UnexpectedPhase": undefined; /** * Snapshot was unavailable. */ "Snapshot": undefined; }>; export type I9i66md365gdq9 = AnonymousEnum<{ /** * The phase is not signed. */ "PhaseNotSigned": undefined; /** * The submission is a duplicate. */ "Duplicate": undefined; /** * The queue is full. */ "QueueFull": undefined; /** * The page index is out of bounds. */ "BadPageIndex": undefined; /** * The account is not registered. */ "NotRegistered": undefined; /** * No submission found. */ "NoSubmission": undefined; /** * Round is not yet over. */ "RoundNotOver": undefined; /** * Bad witness data provided. */ "BadWitnessData": undefined; /** * Too many invulnerable accounts are provided, */ "TooManyInvulnerables": undefined; }>; export type Ibor9117nik4td = AnonymousEnum<{ /** * Not a controller account. */ "NotController": undefined; /** * Not a stash account. */ "NotStash": undefined; /** * Stash is already bonded. */ "AlreadyBonded": undefined; /** * Controller is already paired. */ "AlreadyPaired": undefined; /** * Targets cannot be empty. */ "EmptyTargets": undefined; /** * Duplicate index. */ "DuplicateIndex": undefined; /** * Slash record not found. */ "InvalidSlashRecord": undefined; /** * Cannot bond, nominate or validate with value less than the minimum defined by * governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the * intention, `chill` first to remove one's role as validator/nominator. */ "InsufficientBond": undefined; /** * Can not schedule more unlock chunks. */ "NoMoreChunks": undefined; /** * Can not rebond without unlocking chunks. */ "NoUnlockChunk": undefined; /** * Attempting to target a stash that still has funds. */ "FundedTarget": undefined; /** * Invalid era to reward. */ "InvalidEraToReward": undefined; /** * Invalid number of nominations. */ "InvalidNumberOfNominations": undefined; /** * Rewards for this era have already been claimed for this validator. */ "AlreadyClaimed": undefined; /** * No nominators exist on this page. */ "InvalidPage": undefined; /** * Incorrect previous history depth input provided. */ "IncorrectHistoryDepth": undefined; /** * Internal state has become somehow corrupted and the operation cannot continue. */ "BadState": undefined; /** * Too many nomination targets supplied. */ "TooManyTargets": undefined; /** * A nomination target was supplied that was blocked or otherwise not a validator. */ "BadTarget": undefined; /** * The user has enough bond and thus cannot be chilled forcefully by an external person. */ "CannotChillOther": undefined; /** * There are too many nominators in the system. Governance needs to adjust the staking * settings to keep things safe for the runtime. */ "TooManyNominators": undefined; /** * There are too many validator candidates in the system. Governance needs to adjust the * staking settings to keep things safe for the runtime. */ "TooManyValidators": undefined; /** * Commission is too low. Must be at least `MinCommission`. */ "CommissionTooLow": undefined; /** * Some bound is not met. */ "BoundNotMet": undefined; /** * Used when attempting to use deprecated controller account logic. */ "ControllerDeprecated": undefined; /** * Cannot reset a ledger. */ "CannotRestoreLedger": undefined; /** * Provided reward destination is not allowed. */ "RewardDestinationRestricted": undefined; /** * Not enough funds available to withdraw. */ "NotEnoughFunds": undefined; /** * Operation not allowed for virtual stakers. */ "VirtualStakerNotAllowed": undefined; /** * Stash could not be reaped as other pallet might depend on it. */ "CannotReapStash": undefined; /** * The stake of this account is already migrated to `Fungible` holds. */ "AlreadyMigrated": undefined; /** * Era not yet started. */ "EraNotStarted": undefined; /** * Account is restricted from participation in staking. This may happen if the account is * staking in another way already, such as via pool. */ "Restricted": undefined; /** * Unapplied slashes in the recently concluded era is blocking this operation. * See `Call::apply_slash` to apply them. */ "UnappliedSlashesInPreviousEra": undefined; /** * The era is not eligible for pruning. */ "EraNotPrunable": undefined; /** * The slash has been cancelled and cannot be applied. */ "CancelledSlash": undefined; /** * Commission is higher than the allowed maximum `MaxCommission`. */ "CommissionTooHigh": undefined; /** * Optimum self-stake cannot be greater than hard cap. */ "OptimumGreaterThanCap": undefined; }>; export type I8r3rk2nkfs0an = AnonymousEnum<{ /** * Invalid schedule supplied, e.g. with zero weight of a basic operation. */ "InvalidSchedule": undefined; /** * Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`. */ "InvalidCallFlags": undefined; /** * The executed contract exhausted its gas limit. */ "OutOfGas": undefined; /** * Performing the requested transfer failed. Probably because there isn't enough * free balance in the sender's account. */ "TransferFailed": undefined; /** * Performing a call was denied because the calling depth reached the limit * of what is specified in the schedule. */ "MaxCallDepthReached": undefined; /** * No contract was found at the specified address. */ "ContractNotFound": undefined; /** * No code could be found at the supplied code hash. */ "CodeNotFound": undefined; /** * No code info could be found at the supplied code hash. */ "CodeInfoNotFound": undefined; /** * A buffer outside of sandbox memory was passed to a contract API function. */ "OutOfBounds": undefined; /** * Input passed to a contract API function failed to decode as expected type. */ "DecodingFailed": undefined; /** * Contract trapped during execution. */ "ContractTrapped": undefined; /** * Event body or storage item exceeds [`limits::STORAGE_BYTES`]. */ "ValueTooLarge": undefined; /** * Termination of a contract is not allowed while the contract is already * on the call stack. Can be triggered by `seal_terminate`. */ "TerminatedWhileReentrant": undefined; /** * `seal_call` forwarded this contracts input. It therefore is no longer available. */ "InputForwarded": undefined; /** * The amount of topics passed to `seal_deposit_events` exceeds the limit. */ "TooManyTopics": undefined; /** * A contract with the same AccountId already exists. */ "DuplicateContract": undefined; /** * A contract self destructed in its constructor. * * This can be triggered by a call to `seal_terminate`. */ "TerminatedInConstructor": undefined; /** * A call tried to invoke a contract that is flagged as non-reentrant. */ "ReentranceDenied": undefined; /** * A contract called into the runtime which then called back into this pallet. */ "ReenteredPallet": undefined; /** * A contract attempted to invoke a state modifying API while being in read-only mode. */ "StateChangeDenied": undefined; /** * Origin doesn't have enough balance to pay the required storage deposits. */ "StorageDepositNotEnoughFunds": undefined; /** * More storage was created than allowed by the storage deposit limit. */ "StorageDepositLimitExhausted": undefined; /** * Code removal was denied because the code is still in use by at least one contract. */ "CodeInUse": undefined; /** * The contract ran to completion but decided to revert its storage changes. * Please note that this error is only returned from extrinsics. When called directly * or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags * to determine whether a reversion has taken place. */ "ContractReverted": undefined; /** * The contract failed to compile or is missing the correct entry points. * * A more detailed error can be found on the node console if debug messages are enabled * by supplying `-lruntime::revive=debug`. */ "CodeRejected": undefined; /** * The code blob supplied is larger than [`limits::code::BLOB_BYTES`]. */ "BlobTooLarge": undefined; /** * The contract declares too much memory (ro + rw + stack). */ "StaticMemoryTooLarge": undefined; /** * The program contains a basic block that is larger than allowed. */ "BasicBlockTooLarge": undefined; /** * The program contains an invalid instruction. */ "InvalidInstruction": undefined; /** * The contract has reached its maximum number of delegate dependencies. */ "MaxDelegateDependenciesReached": undefined; /** * The dependency was not found in the contract's delegate dependencies. */ "DelegateDependencyNotFound": undefined; /** * The contract already depends on the given delegate dependency. */ "DelegateDependencyAlreadyExists": undefined; /** * Can not add a delegate dependency to the code hash of the contract itself. */ "CannotAddSelfAsDelegateDependency": undefined; /** * Can not add more data to transient storage. */ "OutOfTransientStorage": undefined; /** * The contract tried to call a syscall which does not exist (at its current api level). */ "InvalidSyscall": undefined; /** * Invalid storage flags were passed to one of the storage syscalls. */ "InvalidStorageFlags": undefined; /** * PolkaVM failed during code execution. Probably due to a malformed program. */ "ExecutionFailed": undefined; /** * Failed to convert a U256 to a Balance. */ "BalanceConversionFailed": undefined; /** * Immutable data can only be set during deploys and only be read during calls. * Additionally, it is only valid to set the data once and it must not be empty. */ "InvalidImmutableAccess": undefined; /** * An `AccountID32` account tried to interact with the pallet without having a mapping. * * Call [`Pallet::map_account`] in order to create a mapping for the account. */ "AccountUnmapped": undefined; /** * Tried to map an account that is already mapped. */ "AccountAlreadyMapped": undefined; /** * The transaction used to dry-run a contract is invalid. */ "InvalidGenericTransaction": undefined; /** * The refcount of a code either over or underflowed. */ "RefcountOverOrUnderflow": undefined; /** * Unsupported precompile address. */ "UnsupportedPrecompileAddress": undefined; /** * The calldata exceeds [`limits::CALLDATA_BYTES`]. */ "CallDataTooLarge": undefined; /** * The return data exceeds [`limits::CALLDATA_BYTES`]. */ "ReturnDataTooLarge": undefined; /** * Invalid jump destination. Dynamic jumps points to invalid not jumpdest opcode. */ "InvalidJump": undefined; /** * Attempting to pop a value from an empty stack. */ "StackUnderflow": undefined; /** * Attempting to push a value onto a full stack. */ "StackOverflow": undefined; /** * Too much deposit was drawn from the shared txfee and deposit credit. * * This happens if the passed `gas` inside the ethereum transaction is too low. */ "TxFeeOverdraw": undefined; /** * When calling an EVM constructor `data` has to be empty. * * EVM constructors do not accept data. Their input data is part of the code blob itself. */ "EvmConstructorNonEmptyData": undefined; /** * Tried to construct an EVM contract via code hash. * * EVM contracts can only be instantiated via code upload as no initcode is * stored on-chain. */ "EvmConstructedFromHash": undefined; /** * The contract does not have enough balance to refund the storage deposit. * * This is a bug and should never happen. It means the accounting got out of sync. */ "StorageRefundNotEnoughFunds": undefined; /** * This means there are locks on the contracts storage deposit that prevents refunding it. * * This would be the case if the contract used its storage deposits for governance * or other pallets that allow creating locks over held balance. */ "StorageRefundLocked": undefined; /** * Called a pre-compile that is not allowed to be delegate called. * * Some pre-compile functions will trap the caller context if being delegate * called or if their caller was being delegate called. */ "PrecompileDelegateDenied": undefined; /** * ECDSA public key recovery failed. Most probably wrong recovery id or signature. */ "EcdsaRecoveryFailed": undefined; /** * Manual mapping is disabled when auto-mapping is enabled. */ "AutoMappingEnabled": undefined; /** * A contract cannot be created at this address: it still has uncleared * [`NativeDepositOf`] entries from a previously terminated contract that the deletion * queue has not yet drained. */ "PendingDepositCleanup": undefined; }>; export type I5k971batm6ehv = AnonymousEnum<{ /** * The permit signature is invalid. */ "InvalidSignature": undefined; /** * The signer does not match the owner. */ "SignerMismatch": undefined; /** * The permit has expired (deadline passed). */ "PermitExpired": undefined; /** * The signature's `s` value is too high (malleability protection). */ "SignatureSValueTooHigh": undefined; /** * The signature's `v` value is invalid. */ "InvalidVValue": undefined; /** * Nonce overflow - account has used too many permits. */ "NonceOverflow": undefined; /** * The owner address is invalid (e.g., zero address). */ "InvalidOwner": undefined; /** * The spender address is invalid (e.g., zero address). */ "InvalidSpender": undefined; }>; export type Ibl4g7bmj805f = AnonymousEnum<{ /** * Either no lease deposit or already unreserved. */ "NoLeaseReserve": undefined; /** * Either no crowdloan contribution or already withdrawn. */ "NoCrowdloanContribution": undefined; /** * Either no crowdloan reserve or already unreserved. */ "NoCrowdloanReserve": undefined; /** * Failed to withdraw crowdloan contribution. */ "FailedToWithdrawCrowdloanContribution": undefined; /** * Block number is not yet reached. */ "NotYet": undefined; /** * Not all contributions are withdrawn. */ "ContributionsRemaining": undefined; /** * The account is not a derived account. */ "WrongDerivedTranslation": undefined; /** * Account cannot be migrated since it is not a sovereign parachain account. */ "NotSovereign": undefined; /** * Internal error, please bug report. */ "InternalError": undefined; /** * The Asset Hub migration is not completed. */ "MigrationNotCompleted": undefined; /** * The balance is zero. */ "ZeroBalance": undefined; /** * Failed to transfer balance. */ "FailedToTransfer": undefined; /** * The account has already been translated. */ "AlreadyTranslated": undefined; /** * The derivation path is too long. */ "TooLongDerivationPath": undefined; /** * Failed to force unstake. */ "FailedToForceUnstake": undefined; }>; export type Iftvbctbo05fu4 = ResultPayload, Anonymize>; export type Iavct6f844hfju = AnonymousEnum<{ "Unimplemented": undefined; "VersionedConversionFailed": undefined; "WeightNotComputable": undefined; "UnhandledXcmVersion": undefined; "AssetNotFound": undefined; "Unroutable": undefined; }>; export type Ic0c3req3mlc1l = ResultPayload, Anonymize>; export type I7ocn4njqde3v5 = ResultPayload>; export type Iek7ha36da9mf5 = ResultPayload>; export type I2nhpa757v7jk9 = AnonymousEnum<{ "System": Enum<{ /** * Make some on-chain remark. * * Can be executed by every `origin`. */ "remark": Anonymize; /** * Set the number of pages in the WebAssembly environment's heap. */ "set_heap_pages": Anonymize; /** * Set the new runtime code. */ "set_code": Anonymize; /** * 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! */ "set_code_without_checks": Anonymize; /** * Set some items of storage. */ "set_storage": Anonymize; /** * Kill some items from storage. */ "kill_storage": Anonymize; /** * 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. */ "kill_prefix": Anonymize; /** * Make some on-chain remark and emit event. */ "remark_with_event": Anonymize; "do_task": Anonymize; /** * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied * later. * * This call requires Root origin. */ "authorize_upgrade": Anonymize; /** * 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. */ "authorize_upgrade_without_checks": Anonymize; /** * 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. */ "apply_authorized_upgrade": Anonymize; }>; "ParachainSystem": Anonymize; "Timestamp": Anonymize; "ParachainInfo": undefined; "Preimage": Anonymize; "Scheduler": Enum<{ /** * Anonymously schedule a task. */ "schedule": { "when": number; "maybe_periodic"?: Anonymize; "priority": number; "call": TxCallData; }; /** * Cancel a scheduled task (named or anonymous), by providing the block it is scheduled for * execution in, as well as the index of the task in that block's agenda. * * In the case of a named task, it will remove it from the lookup table as well. */ "cancel": Anonymize; /** * Schedule a named task. */ "schedule_named": { "id": SizedHex<32>; "when": number; "maybe_periodic"?: Anonymize; "priority": number; "call": TxCallData; }; /** * Cancel a named scheduled task. */ "cancel_named": Anonymize; /** * Anonymously schedule a task after a delay. */ "schedule_after": { "after": number; "maybe_periodic"?: Anonymize; "priority": number; "call": TxCallData; }; /** * Schedule a named task after a delay. */ "schedule_named_after": { "id": SizedHex<32>; "after": number; "maybe_periodic"?: Anonymize; "priority": number; "call": TxCallData; }; /** * Set a retry configuration for a task so that, in case its scheduled run fails, it will * be retried after `period` blocks, for a total amount of `retries` retries or until it * succeeds. * * Tasks which need to be scheduled for a retry are still subject to weight metering and * agenda space, same as a regular task. If a periodic task fails, it will be scheduled * normally while the task is retrying. * * Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic * clones of the original task. Their retry configuration will be derived from the * original task's configuration, but will have a lower value for `remaining` than the * original `total_retries`. * * This call **cannot** be used to set a retry configuration for a named task. */ "set_retry": Anonymize; /** * Set a retry configuration for a named task so that, in case its scheduled run fails, it * will be retried after `period` blocks, for a total amount of `retries` retries or until * it succeeds. * * Tasks which need to be scheduled for a retry are still subject to weight metering and * agenda space, same as a regular task. If a periodic task fails, it will be scheduled * normally while the task is retrying. * * Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic * clones of the original task. Their retry configuration will be derived from the * original task's configuration, but will have a lower value for `remaining` than the * original `total_retries`. * * This is the only way to set a retry configuration for a named task. */ "set_retry_named": Anonymize; /** * Removes the retry configuration of a task. */ "cancel_retry": Anonymize; /** * Cancel the retry configuration of a named task. */ "cancel_retry_named": Anonymize; }>; "Parameters": Enum<{ /** * Set the value of a parameter. * * The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be * deleted by setting them to `None`. */ "set_parameter": { "key_value": Enum<{ "StakingElection": Enum<{ "SignedPhase": Anonymize; "MaxSignedSubmissions": Anonymize; "UnsignedPhase": Anonymize; "MinerPages": Anonymize; "MaxElectingVoters": Anonymize; "TargetSnapshotPerBlock": Anonymize; "MaxEraDuration": FixedSizeArray<1, Anonymize>; }>; "Scheduler": Enum<{ "MaxScheduledPerBlock": Anonymize; "MaximumWeight": FixedSizeArray<1, Anonymize>; }>; "MessageQueue": Enum<{ "MaxOnInitWeight": FixedSizeArray<1, (Anonymize) | undefined>; "MaxOnIdleWeight": FixedSizeArray<1, (Anonymize) | undefined>; }>; }>; }; }>; "MultiBlockMigrations": Anonymize; "Balances": Anonymize; "Vesting": Enum<{ /** * 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": undefined; /** * 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)`. */ "vest_other": { "target": MultiAddress; }; /** * 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)`. */ "vested_transfer": { "target": MultiAddress; "schedule": Anonymize; }; /** * 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)`. */ "force_vested_transfer": { "source": MultiAddress; "target": MultiAddress; "schedule": Anonymize; }; /** * 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. */ "merge_schedules": { "schedule1_index": number; "schedule2_index": number; }; /** * 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 */ "force_remove_vesting_schedule": { "target": MultiAddress; "schedule_index": number; }; }>; "Claims": Enum<{ /** * Make a claim to collect your DOTs. * * The dispatch origin for this call must be _None_. * * Unsigned Validation: * A call to claim is deemed valid if the signature provided matches * the expected signed message of: * * > Ethereum Signed Message: * > (configured prefix string)(address) * * and `address` matches the `dest` account. * * Parameters: * - `dest`: The destination account to payout the claim. * - `ethereum_signature`: The signature of an ethereum signed message matching the format * described above. * * * The weight of this call is invariant over the input parameters. * Weight includes logic to validate unsigned `claim` call. * * Total Complexity: O(1) * */ "claim": { "dest": SS58String; "ethereum_signature": SizedHex<65>; }; /** * Mint a new claim to collect DOTs. * * The dispatch origin for this call must be _Root_. * * Parameters: * - `who`: The Ethereum address allowed to collect this claim. * - `value`: The number of DOTs that will be claimed. * - `vesting_schedule`: An optional vesting schedule for these DOTs. * * * The weight of this call is invariant over the input parameters. * We assume worst case that both vesting and statement is being inserted. * * Total Complexity: O(1) * */ "mint_claim": { "who": SizedHex<20>; "value": bigint; "vesting_schedule"?: ([bigint, bigint, number]) | undefined; "statement"?: (ClaimsStatementKind) | undefined; }; /** * Make a claim to collect your DOTs by signing a statement. * * The dispatch origin for this call must be _None_. * * Unsigned Validation: * A call to `claim_attest` is deemed valid if the signature provided matches * the expected signed message of: * * > Ethereum Signed Message: * > (configured prefix string)(address)(statement) * * and `address` matches the `dest` account; the `statement` must match that which is * expected according to your purchase arrangement. * * Parameters: * - `dest`: The destination account to payout the claim. * - `ethereum_signature`: The signature of an ethereum signed message matching the format * described above. * - `statement`: The identity of the statement which is being attested to in the * signature. * * * The weight of this call is invariant over the input parameters. * Weight includes logic to validate unsigned `claim_attest` call. * * Total Complexity: O(1) * */ "claim_attest": { "dest": SS58String; "ethereum_signature": SizedHex<65>; "statement": Uint8Array; }; /** * Attest to a statement, needed to finalize the claims process. * * WARNING: Insecure unless your chain includes `PrevalidateAttests` as a * `TransactionExtension`. * * Unsigned Validation: * A call to attest is deemed valid if the sender has a `Preclaim` registered * and provides a `statement` which is expected for the account. * * Parameters: * - `statement`: The identity of the statement which is being attested to in the * signature. * * * The weight of this call is invariant over the input parameters. * Weight includes logic to do pre-validation on `attest` call. * * Total Complexity: O(1) * */ "attest": { "statement": Uint8Array; }; "move_claim": { "old": SizedHex<20>; "new": SizedHex<20>; "maybe_preclaim"?: Anonymize; }; }>; "Dap": Enum<{ /** * Set the budget allocation map. * * Each key must match a registered `BudgetRecipient`. The sum of all percentages * must be exactly 100%. Recipients not included in the map receive nothing. */ "set_budget_allocation": { "new_allocations": Anonymize; }; }>; "CollatorSelection": Anonymize; "Session": Anonymize; "XcmpQueue": Anonymize; "PolkadotXcm": Anonymize; "CumulusXcm": undefined; "ToKusamaXcmRouter": Enum<{ /** * Notification about congested bridge queue. */ "report_bridge_status": { "bridge_id": SizedHex<32>; "is_congested": boolean; }; }>; "MessageQueue": Anonymize; "SnowbridgeSystemFrontend": Enum<{ /** * Set the operating mode for exporting messages to Ethereum. */ "set_operating_mode": Anonymize; /** * Initiates the registration for a Polkadot-native token as a wrapped ERC20 token on * Ethereum. * - `asset_id`: Location of the asset * - `metadata`: Metadata to include in the instantiated ERC20 contract on Ethereum * * All origins are allowed, however `asset_id` must be a location nested within the origin * consensus system. */ "register_token": { "asset_id": XcmVersionedLocation; "metadata": Anonymize; "fee_asset": Anonymize; }; /** * Add an additional relayer tip for a committed message identified by `message_id`. * The tip asset will be swapped for ether. */ "add_tip": { "message_id": Anonymize; "asset": Anonymize; }; }>; "Utility": Anonymize; "Multisig": Enum<{ /** * 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. */ "as_multi_threshold_1": { "other_signatories": Anonymize; "call": TxCallData; }; /** * 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 the approval threshold is met (including the sender's approval), this will * immediately execute the call.** This is the only way to execute a multisig call - * `approve_as_multi` will never trigger execution. * * 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: For intermediate approvals (not the final approval), you should generally use * `approve_as_multi` instead, since it only requires a hash of the call and is more * efficient. * * 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`. */ "as_multi": { "threshold": number; "other_signatories": Anonymize; "maybe_timepoint"?: Anonymize; "call": TxCallData; "max_weight": Anonymize; }; /** * Register approval for a dispatch to be made from a deterministic composite account if * approved by a total of `threshold - 1` of `other_signatories`. * * **This function will NEVER execute the call, even if the approval threshold is * reached.** It only registers approval. To actually execute the call, `as_multi` must * be called with the full call data by any of the signatories. * * This function is more efficient than `as_multi` for intermediate approvals since it * only requires the call hash, not the full call data. * * 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: To execute the call after approvals are gathered, any signatory must call * `as_multi` with the full call data. This function cannot execute the call. * * ## 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`. */ "approve_as_multi": Anonymize; /** * 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. */ "cancel_as_multi": Anonymize; /** * Poke the deposit reserved for an existing multisig operation. * * The dispatch origin for this call must be _Signed_ and must be the original depositor of * the multisig operation. * * The transaction fee is waived if the deposit amount has changed. * * - `threshold`: The total number of approvals needed for this multisig. * - `other_signatories`: The accounts (other than the sender) who are part of the * multisig. * - `call_hash`: The hash of the call this deposit is reserved for. * * Emits `DepositPoked` if successful. */ "poke_deposit": Anonymize; }>; "Proxy": Enum<{ /** * 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": { "real": MultiAddress; "force_proxy_type"?: Anonymize; "call": TxCallData; }; /** * 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. */ "add_proxy": { "delegate": MultiAddress; "proxy_type": Anonymize; "delay": number; }; /** * Unregister a proxy account for the sender. * * The dispatch origin for this call must be _Signed_. * * Parameters: * - `proxy`: The account that the `caller` would like to remove as a proxy. * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ "remove_proxy": { "delegate": MultiAddress; "proxy_type": Anonymize; "delay": number; }; /** * Unregister all proxy accounts for the sender. * * The dispatch origin for this call must be _Signed_. * * WARNING: This may be called on accounts created by `create_pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ "remove_proxies": undefined; /** * 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. */ "create_pure": { "proxy_type": Anonymize; "delay": number; "index": number; }; /** * Removes a previously spawned pure proxy. * * WARNING: **All access to this account will be lost.** Any funds held in it will be * inaccessible. * * Requires a `Signed` origin, and the sender account must have been created by a call to * `create_pure` with corresponding parameters. * * - `spawner`: The account that originally called `create_pure` to create this account. * - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`. * - `proxy_type`: The proxy type originally passed to `create_pure`. * - `height`: The height of the chain when the call to `create_pure` was processed. * - `ext_index`: The extrinsic index in which the call to `create_pure` was processed. * * Fails with `NoPermission` in case the caller is not a previously created pure * account whose `create_pure` call has corresponding parameters. */ "kill_pure": { "spawner": MultiAddress; "proxy_type": Anonymize; "index": number; "height": number; "ext_index": number; }; /** * Publish the hash of a proxy-call that will be made in the future. * * This must be called some number of blocks before the corresponding `proxy` is attempted * if the delay associated with the proxy relationship is greater than zero. * * No more than `MaxPending` announcements may be made at any one time. * * This will take a deposit of `AnnouncementDepositFactor` as well as * `AnnouncementDepositBase` if there are no other pending announcements. * * The dispatch origin for this call must be _Signed_ and a proxy of `real`. * * Parameters: * - `real`: The account that the proxy will make a call on behalf of. * - `call_hash`: The hash of the call to be made by the `real` account. */ "announce": Anonymize; /** * 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. */ "remove_announcement": Anonymize; /** * 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. */ "reject_announcement": Anonymize; /** * 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. */ "proxy_announced": { "delegate": MultiAddress; "real": MultiAddress; "force_proxy_type"?: Anonymize; "call": TxCallData; }; /** * Poke / Adjust deposits made for proxies and announcements based on current values. * This can be used by accounts to possibly lower their locked amount. * * The dispatch origin for this call must be _Signed_. * * The transaction fee is waived if the deposit amount has changed. * * Emits `DepositPoked` if successful. */ "poke_deposit": undefined; }>; "Indices": Enum<{ /** * Assign an previously unassigned index. * * Payment: `Deposit` is reserved from the sender account. * * The dispatch origin for this call must be _Signed_. * * - `index`: the index to be claimed. This must not be in use. * * Emits `IndexAssigned` if successful. * * ## Complexity * - `O(1)`. */ "claim": Anonymize; /** * Assign an index already owned by the sender to another account. The balance reservation * is effectively transferred to the new account. * * The dispatch origin for this call must be _Signed_. * * - `index`: the index to be re-assigned. This must be owned by the sender. * - `new`: the new owner of the index. This function is a no-op if it is equal to sender. * * Emits `IndexAssigned` if successful. * * ## Complexity * - `O(1)`. */ "transfer": { "new": MultiAddress; "index": number; }; /** * Free up an index owned by the sender. * * Payment: Any previous deposit placed for the index is unreserved in the sender account. * * The dispatch origin for this call must be _Signed_ and the sender must own the index. * * - `index`: the index to be freed. This must be owned by the sender. * * Emits `IndexFreed` if successful. * * ## Complexity * - `O(1)`. */ "free": Anonymize; /** * Force an index to an account. This doesn't require a deposit. If the index is already * held, then any deposit is reimbursed to its current owner. * * The dispatch origin for this call must be _Root_. * * - `index`: the index to be (re-)assigned. * - `new`: the new owner of the index. This function is a no-op if it is equal to sender. * - `freeze`: if set to `true`, will freeze the index so it cannot be transferred. * * Emits `IndexAssigned` if successful. * * ## Complexity * - `O(1)`. */ "force_transfer": { "new": MultiAddress; "index": number; "freeze": boolean; }; /** * Freeze an index so it will always point to the sender account. This consumes the * deposit. * * The dispatch origin for this call must be _Signed_ and the signing account must have a * non-frozen account `index`. * * - `index`: the index to be frozen in place. * * Emits `IndexFrozen` if successful. * * ## Complexity * - `O(1)`. */ "freeze": Anonymize; /** * Poke the deposit reserved for an index. * * The dispatch origin for this call must be _Signed_ and the signing account must have a * non-frozen account `index`. * * The transaction fees is waived if the deposit is changed after poking/reconsideration. * * - `index`: the index whose deposit is to be poked/reconsidered. * * Emits `DepositPoked` if successful. */ "poke_deposit": Anonymize; }>; "Assets": Enum<{ /** * 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": { "id": number; "admin": MultiAddress; "min_balance": bigint; }; /** * Issue a new class of fungible assets from a privileged origin. * * This new asset class has no assets initially. * * The origin must conform to `ForceOrigin`. * * Unlike `create`, no funds are reserved. * * - `id`: The identifier of the new asset. This must not be currently in use to identify * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. * - `owner`: The owner of this class of assets. The owner has full superuser permissions * over this asset, but may later change and configure the permissions using * `transfer_ownership` and `set_team`. * - `min_balance`: The minimum balance of this new asset that any single account must * have. If an account's balance is reduced below this, then it collapses to zero. * * Emits `ForceCreated` event when successful. * * Weight: `O(1)` */ "force_create": { "id": number; "owner": MultiAddress; "is_sufficient": boolean; "min_balance": bigint; }; /** * Start the process of destroying a fungible asset class. * * `start_destroy` is the first in a series of extrinsics that should be called, to allow * destruction of an asset class. * * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if * an account contains holds or freezes in place. */ "start_destroy": { "id": number; }; /** * Destroy all accounts associated with a given asset. * * `destroy_accounts` should only be called after `start_destroy` has been called, and the * asset is in a `Destroying` state. * * Due to weight restrictions, this function may need to be called multiple times to fully * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * Each call emits the `Event::DestroyedAccounts` event. */ "destroy_accounts": { "id": number; }; /** * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). * * `destroy_approvals` should only be called after `start_destroy` has been called, and the * asset is in a `Destroying` state. * * Due to weight restrictions, this function may need to be called multiple times to fully * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * Each call emits the `Event::DestroyedApprovals` event. */ "destroy_approvals": { "id": number; }; /** * Complete destroying asset and unreserve currency. * * `finish_destroy` should only be called after `start_destroy` has been called, and the * asset is in a `Destroying` state. All accounts or approvals should be destroyed before * hand. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * Each successful call emits the `Event::Destroyed` event. */ "finish_destroy": { "id": number; }; /** * Mint assets of a particular class. * * The origin must be Signed and the sender must be the Issuer of the asset `id`. * * - `id`: The identifier of the asset to have some amount minted. * - `beneficiary`: The account to be credited with the minted assets. * - `amount`: The amount of the asset to be minted. * * Emits `Issued` event when successful. * * Weight: `O(1)` * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. */ "mint": { "id": number; "beneficiary": MultiAddress; "amount": bigint; }; /** * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. * * Origin must be Signed and the sender should be the Manager of the asset `id`. * * Bails with `NoAccount` if the `who` is already dead. * * - `id`: The identifier of the asset to have some amount burned. * - `who`: The account to be debited from. * - `amount`: The maximum amount by which `who`'s balance should be reduced. * * Emits `Burned` with the actual amount burned. If this takes the balance to below the * minimum for the asset, then the amount burned is increased to take it to zero. * * Weight: `O(1)` * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. */ "burn": { "id": number; "who": MultiAddress; "amount": bigint; }; /** * Move some assets from the sender account to another. * * Origin must be Signed. * * - `id`: The identifier of the asset to have some amount transferred. * - `target`: The account to be credited. * - `amount`: The amount by which the sender's balance of assets should be reduced and * `target`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the sender balance above zero but below * the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of * `target`. */ "transfer": { "id": number; "target": MultiAddress; "amount": bigint; }; /** * Move some assets from the sender account to another, keeping the sender account alive. * * Origin must be Signed. * * - `id`: The identifier of the asset to have some amount transferred. * - `target`: The account to be credited. * - `amount`: The amount by which the sender's balance of assets should be reduced and * `target`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the sender balance above zero but below * the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of * `target`. */ "transfer_keep_alive": { "id": number; "target": MultiAddress; "amount": bigint; }; /** * Move some assets from one account to another. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to have some amount transferred. * - `source`: The account to be debited. * - `dest`: The account to be credited. * - `amount`: The amount by which the `source`'s balance of assets should be reduced and * `dest`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the `source` balance above zero but * below the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of * `dest`. */ "force_transfer": { "id": number; "source": MultiAddress; "dest": MultiAddress; "amount": bigint; }; /** * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` * must already exist as an entry in `Account`s of the asset. If you want to freeze an * account that does not have an entry, use `touch_other` first. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `who`: The account to be frozen. * * Emits `Frozen`. * * Weight: `O(1)` */ "freeze": { "id": number; "who": MultiAddress; }; /** * Allow unprivileged transfers to and from an account again. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `who`: The account to be unfrozen. * * Emits `Thawed`. * * Weight: `O(1)` */ "thaw": { "id": number; "who": MultiAddress; }; /** * Disallow further unprivileged transfers for the asset class. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * * Emits `Frozen`. * * Weight: `O(1)` */ "freeze_asset": { "id": number; }; /** * Allow unprivileged transfers for the asset again. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to be thawed. * * Emits `Thawed`. * * Weight: `O(1)` */ "thaw_asset": { "id": number; }; /** * Change the Owner of an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * - `id`: The identifier of the asset. * - `owner`: The new Owner of this asset. * * Emits `OwnerChanged`. * * Weight: `O(1)` */ "transfer_ownership": { "id": number; "owner": MultiAddress; }; /** * Change the Issuer, Admin and Freezer of an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `issuer`: The new Issuer of this asset. * - `admin`: The new Admin of this asset. * - `freezer`: The new Freezer of this asset. * * Emits `TeamChanged`. * * Weight: `O(1)` */ "set_team": { "id": number; "issuer": MultiAddress; "admin": MultiAddress; "freezer": MultiAddress; }; /** * Set the metadata for an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * Funds of sender are reserved according to the formula: * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into * account any already reserved funds. * * - `id`: The identifier of the asset to update. * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. * - `decimals`: The number of decimals this asset uses to represent one unit. * * Emits `MetadataSet`. * * Weight: `O(1)` */ "set_metadata": { "id": number; "name": Uint8Array; "symbol": Uint8Array; "decimals": number; }; /** * Clear the metadata for an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * Any deposit is freed for the asset owner. * * - `id`: The identifier of the asset to clear. * * Emits `MetadataCleared`. * * Weight: `O(1)` */ "clear_metadata": { "id": number; }; /** * Force the metadata for an asset to some value. * * Origin must be ForceOrigin. * * Any deposit is left alone. * * - `id`: The identifier of the asset to update. * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. * - `decimals`: The number of decimals this asset uses to represent one unit. * * Emits `MetadataSet`. * * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. */ "force_set_metadata": { "id": number; "name": Uint8Array; "symbol": Uint8Array; "decimals": number; "is_frozen": boolean; }; /** * Clear the metadata for an asset. * * Origin must be ForceOrigin. * * Any deposit is returned. * * - `id`: The identifier of the asset to clear. * * Emits `MetadataCleared`. * * Weight: `O(1)` */ "force_clear_metadata": { "id": number; }; /** * Alter the attributes of a given asset. * * Origin must be `ForceOrigin`. * * - `id`: The identifier of the asset. * - `owner`: The new Owner of this asset. * - `issuer`: The new Issuer of this asset. * - `admin`: The new Admin of this asset. * - `freezer`: The new Freezer of this asset. * - `min_balance`: The minimum balance of this new asset that any single account must * have. If an account's balance is reduced below this, then it collapses to zero. * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient * value to account for the state bloat associated with its balance storage. If set to * `true`, then non-zero balances may be stored without a `consumer` reference (and thus * an ED in the Balances pallet or whatever else is used to control user-account state * growth). * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin * instructions. * * Emits `AssetStatusChanged` with the identity of the asset. * * Weight: `O(1)` */ "force_asset_status": { "id": number; "owner": MultiAddress; "issuer": MultiAddress; "admin": MultiAddress; "freezer": MultiAddress; "min_balance": bigint; "is_sufficient": boolean; "is_frozen": boolean; }; /** * Approve an amount of asset for transfer by a delegated third-party account. * * Origin must be Signed. * * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account * for the purpose of holding the approval. If some non-zero amount of assets is already * approved from signing account to `delegate`, then it is topped up or unreserved to * meet the right value. * * NOTE: The signing account does not need to own `amount` of assets at the point of * making this call. * * - `id`: The identifier of the asset. * - `delegate`: The account to delegate permission to transfer asset. * - `amount`: The amount of asset that may be transferred by `delegate`. If there is * already an approval in place, then this acts additively. * * Emits `ApprovedTransfer` on success. * * Weight: `O(1)` */ "approve_transfer": { "id": number; "delegate": MultiAddress; "amount": bigint; }; /** * Cancel all of some asset approved for delegated transfer by a third-party account. * * Origin must be Signed and there must be an approval in place between signer and * `delegate`. * * Unreserves any deposit previously reserved by `approve_transfer` for the approval. * * - `id`: The identifier of the asset. * - `delegate`: The account delegated permission to transfer asset. * * Emits `ApprovalCancelled` on success. * * Weight: `O(1)` */ "cancel_approval": { "id": number; "delegate": MultiAddress; }; /** * Cancel all of some asset approved for delegated transfer by a third-party account. * * Origin must be either ForceOrigin or Signed origin with the signer being the Admin * account of the asset `id`. * * Unreserves any deposit previously reserved by `approve_transfer` for the approval. * * - `id`: The identifier of the asset. * - `delegate`: The account delegated permission to transfer asset. * * Emits `ApprovalCancelled` on success. * * Weight: `O(1)` */ "force_cancel_approval": { "id": number; "owner": MultiAddress; "delegate": MultiAddress; }; /** * Transfer some asset balance from a previously delegated account to some third-party * account. * * Origin must be Signed and there must be an approval in place by the `owner` to the * signer. * * If the entire amount approved for transfer is transferred, then any deposit previously * reserved by `approve_transfer` is unreserved. * * - `id`: The identifier of the asset. * - `owner`: The account which previously approved for a transfer of at least `amount` and * from which the asset balance will be withdrawn. * - `destination`: The account to which the asset balance of `amount` will be transferred. * - `amount`: The amount of assets to transfer. * * Emits `TransferredApproved` on success. * * Weight: `O(1)` */ "transfer_approved": { "id": number; "owner": MultiAddress; "destination": MultiAddress; "amount": bigint; }; /** * Create an asset account for non-provider assets. * * A deposit will be taken from the signer account. * * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit * to be taken. * - `id`: The identifier of the asset for the account to be created. * * Emits `Touched` event when successful. */ "touch": { "id": number; }; /** * Return the deposit (if any) of an asset account or a consumer reference (if any) of an * account. * * The origin must be Signed. * * - `id`: The identifier of the asset for which the caller would like the deposit * refunded. * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. * * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if * the asset account contains holds or freezes in place. * * Emits `Refunded` event when successful. */ "refund": { "id": number; "allow_burn": boolean; }; /** * Sets the minimum balance of an asset. * * Only works if there aren't any accounts that are holding the asset or if * the new value of `min_balance` is less than the old one. * * Origin must be Signed and the sender has to be the Owner of the * asset `id`. * * - `id`: The identifier of the asset. * - `min_balance`: The new value of `min_balance`. * * Emits `AssetMinBalanceChanged` event when successful. */ "set_min_balance": { "id": number; "min_balance": bigint; }; /** * Create an asset account for `who`. * * 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, the asset status must * be live. * - `who`: The account to be created. * * Emits `Touched` event when successful. */ "touch_other": { "id": number; "who": MultiAddress; }; /** * Return the deposit (if any) of a target asset account. Useful if you are the depositor. * * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In * order to burn a non-zero balance of the asset, the caller must be the account and should * use `refund`. * * - `id`: The identifier of the asset for the account holding a deposit. * - `who`: The account to refund. * * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if * the asset account contains holds or freezes in place. * * Emits `Refunded` event when successful. */ "refund_other": { "id": number; "who": MultiAddress; }; /** * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the account's asset. * - `who`: The account to be unblocked. * * Emits `Blocked`. * * Weight: `O(1)` */ "block": { "id": number; "who": MultiAddress; }; /** * Transfer the entire transferable balance from the caller asset account. * * NOTE: This function only attempts to transfer _transferable_ balances. This means that * any held, frozen, or minimum balance (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. * * - `id`: The identifier of the asset for the account holding a deposit. * - `dest`: The recipient of the transfer. * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all * of the funds the asset account has, causing the sender asset account to be killed * (false), or transfer everything except at least the minimum balance, which will * guarantee to keep the sender asset account alive (true). */ "transfer_all": { "id": number; "dest": MultiAddress; "keep_alive": boolean; }; /** * Sets the trusted reserve information of an asset. * * Origin must be the Owner of the asset `id`. The origin must conform to the configured * `CreateOrigin` or be the signed `owner` configured during asset creation. * * - `id`: The identifier of the asset. * - `reserves`: The full list of trusted reserves information. * * Emits `AssetMinBalanceChanged` event when successful. */ "set_reserves": { "id": number; "reserves": Anonymize; }; }>; "Uniques": Enum<{ /** * 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": { "collection": number; "admin": MultiAddress; }; /** * Issue a new collection of non-fungible items from a privileged origin. * * This new collection has no items initially. * * The origin must conform to `ForceOrigin`. * * Unlike `create`, no funds are reserved. * * - `collection`: The identifier of the new item. This must not be currently in use. * - `owner`: The owner of this collection of items. The owner has full superuser * permissions * over this item, but may later change and configure the permissions using * `transfer_ownership` and `set_team`. * * Emits `ForceCreated` event when successful. * * Weight: `O(1)` */ "force_create": { "collection": number; "owner": MultiAddress; "free_holding": boolean; }; /** * Destroy a collection of fungible items. * * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the * owner of the `collection`. * * - `collection`: The identifier of the collection to be destroyed. * - `witness`: Information on the items minted in the collection. This must be * correct. * * Emits `Destroyed` event when successful. * * Weight: `O(n + m)` where: * - `n = witness.items` * - `m = witness.item_metadatas` * - `a = witness.attributes` */ "destroy": { "collection": number; "witness": Anonymize; }; /** * 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": { "collection": number; "item": number; "owner": MultiAddress; }; /** * Destroy a single item. * * Origin must be Signed and the signing account must be either: * - the Admin of the `collection`; * - the Owner of the `item`; * * - `collection`: The collection of the item to be burned. * - `item`: The item of the item to be burned. * - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the * item is owned by this value. * * Emits `Burned` with the actual amount burned. * * Weight: `O(1)` * Modes: `check_owner.is_some()`. */ "burn": { "collection": number; "item": number; "check_owner"?: Anonymize; }; /** * 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": Anonymize; /** * 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": Anonymize; /** * 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": Anonymize; /** * 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": Anonymize; /** * 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)` */ "freeze_collection": Anonymize; /** * 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)` */ "thaw_collection": Anonymize; /** * 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)` */ "transfer_ownership": Anonymize; /** * 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)` */ "set_team": { "collection": number; "issuer": MultiAddress; "admin": MultiAddress; "freezer": MultiAddress; }; /** * Approve an item to be transferred by a delegated third-party account. * * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be * either the owner of the `item` or the admin of the collection. * * - `collection`: The collection of the item to be approved for delegated transfer. * - `item`: The item of the item to be approved for delegated transfer. * - `delegate`: The account to delegate permission to transfer the item. * * Important NOTE: The `approved` account gets reset after each transfer. * * Emits `ApprovedTransfer` on success. * * Weight: `O(1)` */ "approve_transfer": Anonymize; /** * 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)` */ "cancel_approval": { "collection": number; "item": number; "maybe_check_delegate"?: Anonymize; }; /** * 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)` */ "force_item_status": { "collection": number; "owner": MultiAddress; "issuer": MultiAddress; "admin": MultiAddress; "freezer": MultiAddress; "free_holding": boolean; "is_frozen": boolean; }; /** * Set an attribute for a collection or item. * * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the * `collection`. * * If the origin is Signed, then funds of signer are reserved according to the formula: * `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into * account any already reserved funds. * * - `collection`: The identifier of the collection whose item's metadata to set. * - `maybe_item`: The identifier of the item whose metadata to set. * - `key`: The key of the attribute. * - `value`: The value to which to set the attribute. * * Emits `AttributeSet`. * * Weight: `O(1)` */ "set_attribute": Anonymize; /** * 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)` */ "clear_attribute": Anonymize; /** * 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)` */ "set_metadata": Anonymize; /** * 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)` */ "clear_metadata": Anonymize; /** * 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)` */ "set_collection_metadata": Anonymize; /** * 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)` */ "clear_collection_metadata": Anonymize; /** * 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`. */ "set_accept_ownership": Anonymize; /** * 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. */ "set_collection_max_supply": Anonymize; /** * 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`. */ "set_price": Anonymize; /** * 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. */ "buy_item": Anonymize; }>; "Nfts": Enum<{ /** * 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": { "admin": MultiAddress; "config": Anonymize; }; /** * 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)` */ "force_create": { "owner": MultiAddress; "config": Anonymize; }; /** * 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": { "collection": number; "witness": { "item_metadatas": number; "item_configs": number; "attributes": number; }; }; /** * 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": { "collection": number; "item": number; "mint_to": MultiAddress; "witness_data"?: ({ "owned_item"?: Anonymize; "mint_price"?: Anonymize; }) | undefined; }; /** * Mint an item of a particular collection from a privileged origin. * * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the * Issuer of the `collection`. * * - `collection`: The collection of the item to be minted. * - `item`: An identifier of the new item. * - `mint_to`: Account into which the item will be minted. * - `item_config`: A config of the new item. * * Emits `Issued` event when successful. * * Weight: `O(1)` */ "force_mint": { "collection": number; "item": number; "mint_to": MultiAddress; "item_config": bigint; }; /** * 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": Anonymize; /** * 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": Anonymize; /** * 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": Anonymize; /** * 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)` */ "lock_item_transfer": Anonymize; /** * 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)` */ "unlock_item_transfer": Anonymize; /** * 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)` */ "lock_collection": { "collection": number; "lock_settings": bigint; }; /** * 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)` */ "transfer_ownership": Anonymize; /** * 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)` */ "set_team": { "collection": number; "issuer"?: Anonymize; "admin"?: Anonymize; "freezer"?: Anonymize; }; /** * 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)` */ "force_collection_owner": { "collection": number; "owner": MultiAddress; }; /** * Change the config of a collection. * * Origin must be `ForceOrigin`. * * - `collection`: The identifier of the collection. * - `config`: The new config of this collection. * * Emits `CollectionConfigChanged`. * * Weight: `O(1)` */ "force_collection_config": { "collection": number; "config": Anonymize; }; /** * 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)` */ "approve_transfer": { "collection": number; "item": number; "delegate": MultiAddress; "maybe_deadline"?: Anonymize; }; /** * 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)` */ "cancel_approval": Anonymize; /** * 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)` */ "clear_all_transfer_approvals": Anonymize; /** * 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)` */ "lock_item_properties": Anonymize; /** * 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)` */ "set_attribute": Anonymize; /** * 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)` */ "force_set_attribute": { "set_as"?: Anonymize; "collection": number; "maybe_item"?: Anonymize; "namespace": Anonymize; "key": Uint8Array; "value": Uint8Array; }; /** * 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)` */ "clear_attribute": Anonymize; /** * 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. */ "approve_item_attributes": Anonymize; /** * 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. */ "cancel_item_attributes_approval": { "collection": number; "item": number; "delegate": MultiAddress; "witness": number; }; /** * 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)` */ "set_metadata": Anonymize; /** * 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)` */ "clear_metadata": Anonymize; /** * 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)` */ "set_collection_metadata": Anonymize; /** * 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)` */ "clear_collection_metadata": Anonymize; /** * 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`. */ "set_accept_ownership": Anonymize; /** * 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. */ "set_collection_max_supply": Anonymize; /** * 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. */ "update_mint_settings": { "collection": number; "mint_settings": Anonymize; }; /** * 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`. */ "set_price": Anonymize; /** * 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. */ "buy_item": Anonymize; /** * Allows to pay the tips. * * Origin must be Signed. * * - `tips`: Tips array. * * Emits `TipSent` on every tip transfer. */ "pay_tips": { "tips": Array<{ "collection": number; "item": number; "receiver": SS58String; "amount": bigint; }>; }; /** * 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. */ "create_swap": { "offered_collection": number; "offered_item": number; "desired_collection": number; "maybe_desired_item"?: Anonymize; "maybe_price"?: Anonymize; "duration": number; }; /** * Cancel an atomic swap. * * Origin must be Signed. * Origin must be an owner of the `item` if the deadline hasn't expired. * * - `collection`: The collection of the item. * - `item`: The item an owner wants to give. * * Emits `SwapCancelled` on success. */ "cancel_swap": { "offered_collection": number; "offered_item": number; }; /** * Claim an atomic swap. * This method executes a pending swap, that was created by a counterpart before. * * Origin must be Signed and must be an owner of the `item`. * * - `send_collection`: The collection of the item to be sent. * - `send_item`: The item to be sent. * - `receive_collection`: The collection of the item to be received. * - `receive_item`: The item to be received. * - `witness_price`: A price that was previously agreed on. * * Emits `SwapClaimed` on success. */ "claim_swap": { "send_collection": number; "send_item": number; "receive_collection": number; "receive_item": number; "witness_price"?: Anonymize; }; /** * 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. */ "mint_pre_signed": { "mint_data": { "collection": number; "item": number; "attributes": Anonymize; "metadata": Uint8Array; "only_account"?: Anonymize; "deadline": number; "mint_price"?: Anonymize; }; "signature": Anonymize; "signer": SS58String; }; /** * 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. */ "set_attributes_pre_signed": { "data": { "collection": number; "item": number; "attributes": Anonymize; "namespace": Anonymize; "deadline": number; }; "signature": Anonymize; "signer": SS58String; }; }>; "ForeignAssets": Enum<{ /** * 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": { "id": Anonymize; "admin": MultiAddress; "min_balance": bigint; }; /** * Issue a new class of fungible assets from a privileged origin. * * This new asset class has no assets initially. * * The origin must conform to `ForceOrigin`. * * Unlike `create`, no funds are reserved. * * - `id`: The identifier of the new asset. This must not be currently in use to identify * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. * - `owner`: The owner of this class of assets. The owner has full superuser permissions * over this asset, but may later change and configure the permissions using * `transfer_ownership` and `set_team`. * - `min_balance`: The minimum balance of this new asset that any single account must * have. If an account's balance is reduced below this, then it collapses to zero. * * Emits `ForceCreated` event when successful. * * Weight: `O(1)` */ "force_create": { "id": Anonymize; "owner": MultiAddress; "is_sufficient": boolean; "min_balance": bigint; }; /** * Start the process of destroying a fungible asset class. * * `start_destroy` is the first in a series of extrinsics that should be called, to allow * destruction of an asset class. * * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if * an account contains holds or freezes in place. */ "start_destroy": { "id": Anonymize; }; /** * 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. */ "destroy_accounts": { "id": Anonymize; }; /** * 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. */ "destroy_approvals": { "id": Anonymize; }; /** * 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. */ "finish_destroy": { "id": Anonymize; }; /** * 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": { "id": Anonymize; "beneficiary": MultiAddress; "amount": bigint; }; /** * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. * * Origin must be Signed and the sender should be the Manager of the asset `id`. * * Bails with `NoAccount` if the `who` is already dead. * * - `id`: The identifier of the asset to have some amount burned. * - `who`: The account to be debited from. * - `amount`: The maximum amount by which `who`'s balance should be reduced. * * Emits `Burned` with the actual amount burned. If this takes the balance to below the * minimum for the asset, then the amount burned is increased to take it to zero. * * Weight: `O(1)` * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. */ "burn": { "id": Anonymize; "who": MultiAddress; "amount": bigint; }; /** * Move some assets from the sender account to another. * * Origin must be Signed. * * - `id`: The identifier of the asset to have some amount transferred. * - `target`: The account to be credited. * - `amount`: The amount by which the sender's balance of assets should be reduced and * `target`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the sender balance above zero but below * the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of * `target`. */ "transfer": { "id": Anonymize; "target": MultiAddress; "amount": bigint; }; /** * Move some assets from the sender account to another, keeping the sender account alive. * * Origin must be Signed. * * - `id`: The identifier of the asset to have some amount transferred. * - `target`: The account to be credited. * - `amount`: The amount by which the sender's balance of assets should be reduced and * `target`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the sender balance above zero but below * the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of * `target`. */ "transfer_keep_alive": { "id": Anonymize; "target": MultiAddress; "amount": bigint; }; /** * Move some assets from one account to another. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to have some amount transferred. * - `source`: The account to be debited. * - `dest`: The account to be credited. * - `amount`: The amount by which the `source`'s balance of assets should be reduced and * `dest`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the `source` balance above zero but * below the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of * `dest`. */ "force_transfer": { "id": Anonymize; "source": MultiAddress; "dest": MultiAddress; "amount": bigint; }; /** * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` * must already exist as an entry in `Account`s of the asset. If you want to freeze an * account that does not have an entry, use `touch_other` first. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `who`: The account to be frozen. * * Emits `Frozen`. * * Weight: `O(1)` */ "freeze": { "id": Anonymize; "who": MultiAddress; }; /** * Allow unprivileged transfers to and from an account again. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `who`: The account to be unfrozen. * * Emits `Thawed`. * * Weight: `O(1)` */ "thaw": { "id": Anonymize; "who": MultiAddress; }; /** * Disallow further unprivileged transfers for the asset class. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * * Emits `Frozen`. * * Weight: `O(1)` */ "freeze_asset": { "id": Anonymize; }; /** * 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)` */ "thaw_asset": { "id": Anonymize; }; /** * 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)` */ "transfer_ownership": { "id": Anonymize; "owner": MultiAddress; }; /** * Change the Issuer, Admin and Freezer of an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `issuer`: The new Issuer of this asset. * - `admin`: The new Admin of this asset. * - `freezer`: The new Freezer of this asset. * * Emits `TeamChanged`. * * Weight: `O(1)` */ "set_team": { "id": Anonymize; "issuer": MultiAddress; "admin": MultiAddress; "freezer": MultiAddress; }; /** * Set the metadata for an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * Funds of sender are reserved according to the formula: * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into * account any already reserved funds. * * - `id`: The identifier of the asset to update. * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. * - `decimals`: The number of decimals this asset uses to represent one unit. * * Emits `MetadataSet`. * * Weight: `O(1)` */ "set_metadata": { "id": Anonymize; "name": Uint8Array; "symbol": Uint8Array; "decimals": number; }; /** * Clear the metadata for an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * Any deposit is freed for the asset owner. * * - `id`: The identifier of the asset to clear. * * Emits `MetadataCleared`. * * Weight: `O(1)` */ "clear_metadata": { "id": Anonymize; }; /** * 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. */ "force_set_metadata": { "id": Anonymize; "name": Uint8Array; "symbol": Uint8Array; "decimals": number; "is_frozen": boolean; }; /** * Clear the metadata for an asset. * * Origin must be ForceOrigin. * * Any deposit is returned. * * - `id`: The identifier of the asset to clear. * * Emits `MetadataCleared`. * * Weight: `O(1)` */ "force_clear_metadata": { "id": Anonymize; }; /** * 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)` */ "force_asset_status": { "id": Anonymize; "owner": MultiAddress; "issuer": MultiAddress; "admin": MultiAddress; "freezer": MultiAddress; "min_balance": bigint; "is_sufficient": boolean; "is_frozen": boolean; }; /** * Approve an amount of asset for transfer by a delegated third-party account. * * Origin must be Signed. * * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account * for the purpose of holding the approval. If some non-zero amount of assets is already * approved from signing account to `delegate`, then it is topped up or unreserved to * meet the right value. * * NOTE: The signing account does not need to own `amount` of assets at the point of * making this call. * * - `id`: The identifier of the asset. * - `delegate`: The account to delegate permission to transfer asset. * - `amount`: The amount of asset that may be transferred by `delegate`. If there is * already an approval in place, then this acts additively. * * Emits `ApprovedTransfer` on success. * * Weight: `O(1)` */ "approve_transfer": { "id": Anonymize; "delegate": MultiAddress; "amount": bigint; }; /** * Cancel all of some asset approved for delegated transfer by a third-party account. * * Origin must be Signed and there must be an approval in place between signer and * `delegate`. * * Unreserves any deposit previously reserved by `approve_transfer` for the approval. * * - `id`: The identifier of the asset. * - `delegate`: The account delegated permission to transfer asset. * * Emits `ApprovalCancelled` on success. * * Weight: `O(1)` */ "cancel_approval": { "id": Anonymize; "delegate": MultiAddress; }; /** * Cancel all of some asset approved for delegated transfer by a third-party account. * * Origin must be either ForceOrigin or Signed origin with the signer being the Admin * account of the asset `id`. * * Unreserves any deposit previously reserved by `approve_transfer` for the approval. * * - `id`: The identifier of the asset. * - `delegate`: The account delegated permission to transfer asset. * * Emits `ApprovalCancelled` on success. * * Weight: `O(1)` */ "force_cancel_approval": { "id": Anonymize; "owner": MultiAddress; "delegate": MultiAddress; }; /** * Transfer some asset balance from a previously delegated account to some third-party * account. * * Origin must be Signed and there must be an approval in place by the `owner` to the * signer. * * If the entire amount approved for transfer is transferred, then any deposit previously * reserved by `approve_transfer` is unreserved. * * - `id`: The identifier of the asset. * - `owner`: The account which previously approved for a transfer of at least `amount` and * from which the asset balance will be withdrawn. * - `destination`: The account to which the asset balance of `amount` will be transferred. * - `amount`: The amount of assets to transfer. * * Emits `TransferredApproved` on success. * * Weight: `O(1)` */ "transfer_approved": { "id": Anonymize; "owner": MultiAddress; "destination": MultiAddress; "amount": bigint; }; /** * Create an asset account for non-provider assets. * * A deposit will be taken from the signer account. * * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit * to be taken. * - `id`: The identifier of the asset for the account to be created. * * Emits `Touched` event when successful. */ "touch": { "id": Anonymize; }; /** * 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. * * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if * the asset account contains holds or freezes in place. * * Emits `Refunded` event when successful. */ "refund": { "id": Anonymize; "allow_burn": boolean; }; /** * Sets the minimum balance of an asset. * * Only works if there aren't any accounts that are holding the asset or if * the new value of `min_balance` is less than the old one. * * Origin must be Signed and the sender has to be the Owner of the * asset `id`. * * - `id`: The identifier of the asset. * - `min_balance`: The new value of `min_balance`. * * Emits `AssetMinBalanceChanged` event when successful. */ "set_min_balance": { "id": Anonymize; "min_balance": bigint; }; /** * Create an asset account for `who`. * * 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, the asset status must * be live. * - `who`: The account to be created. * * Emits `Touched` event when successful. */ "touch_other": { "id": Anonymize; "who": MultiAddress; }; /** * Return the deposit (if any) of a target asset account. Useful if you are the depositor. * * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In * order to burn a non-zero balance of the asset, the caller must be the account and should * use `refund`. * * - `id`: The identifier of the asset for the account holding a deposit. * - `who`: The account to refund. * * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if * the asset account contains holds or freezes in place. * * Emits `Refunded` event when successful. */ "refund_other": { "id": Anonymize; "who": MultiAddress; }; /** * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the account's asset. * - `who`: The account to be unblocked. * * Emits `Blocked`. * * Weight: `O(1)` */ "block": { "id": Anonymize; "who": MultiAddress; }; /** * Transfer the entire transferable balance from the caller asset account. * * NOTE: This function only attempts to transfer _transferable_ balances. This means that * any held, frozen, or minimum balance (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. * * - `id`: The identifier of the asset for the account holding a deposit. * - `dest`: The recipient of the transfer. * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all * of the funds the asset account has, causing the sender asset account to be killed * (false), or transfer everything except at least the minimum balance, which will * guarantee to keep the sender asset account alive (true). */ "transfer_all": { "id": Anonymize; "dest": MultiAddress; "keep_alive": boolean; }; /** * Sets the trusted reserve information of an asset. * * Origin must be the Owner of the asset `id`. The origin must conform to the configured * `CreateOrigin` or be the signed `owner` configured during asset creation. * * - `id`: The identifier of the asset. * - `reserves`: The full list of trusted reserves information. * * Emits `AssetMinBalanceChanged` event when successful. */ "set_reserves": { "id": Anonymize; "reserves": Anonymize; }; }>; "PoolAssets": Enum<{ /** * 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": { "id": number; "admin": MultiAddress; "min_balance": bigint; }; /** * Issue a new class of fungible assets from a privileged origin. * * This new asset class has no assets initially. * * The origin must conform to `ForceOrigin`. * * Unlike `create`, no funds are reserved. * * - `id`: The identifier of the new asset. This must not be currently in use to identify * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. * - `owner`: The owner of this class of assets. The owner has full superuser permissions * over this asset, but may later change and configure the permissions using * `transfer_ownership` and `set_team`. * - `min_balance`: The minimum balance of this new asset that any single account must * have. If an account's balance is reduced below this, then it collapses to zero. * * Emits `ForceCreated` event when successful. * * Weight: `O(1)` */ "force_create": { "id": number; "owner": MultiAddress; "is_sufficient": boolean; "min_balance": bigint; }; /** * Start the process of destroying a fungible asset class. * * `start_destroy` is the first in a series of extrinsics that should be called, to allow * destruction of an asset class. * * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if * an account contains holds or freezes in place. */ "start_destroy": { "id": number; }; /** * Destroy all accounts associated with a given asset. * * `destroy_accounts` should only be called after `start_destroy` has been called, and the * asset is in a `Destroying` state. * * Due to weight restrictions, this function may need to be called multiple times to fully * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * Each call emits the `Event::DestroyedAccounts` event. */ "destroy_accounts": { "id": number; }; /** * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). * * `destroy_approvals` should only be called after `start_destroy` has been called, and the * asset is in a `Destroying` state. * * Due to weight restrictions, this function may need to be called multiple times to fully * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * Each call emits the `Event::DestroyedApprovals` event. */ "destroy_approvals": { "id": number; }; /** * Complete destroying asset and unreserve currency. * * `finish_destroy` should only be called after `start_destroy` has been called, and the * asset is in a `Destroying` state. All accounts or approvals should be destroyed before * hand. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * Each successful call emits the `Event::Destroyed` event. */ "finish_destroy": { "id": number; }; /** * Mint assets of a particular class. * * The origin must be Signed and the sender must be the Issuer of the asset `id`. * * - `id`: The identifier of the asset to have some amount minted. * - `beneficiary`: The account to be credited with the minted assets. * - `amount`: The amount of the asset to be minted. * * Emits `Issued` event when successful. * * Weight: `O(1)` * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. */ "mint": { "id": number; "beneficiary": MultiAddress; "amount": bigint; }; /** * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. * * Origin must be Signed and the sender should be the Manager of the asset `id`. * * Bails with `NoAccount` if the `who` is already dead. * * - `id`: The identifier of the asset to have some amount burned. * - `who`: The account to be debited from. * - `amount`: The maximum amount by which `who`'s balance should be reduced. * * Emits `Burned` with the actual amount burned. If this takes the balance to below the * minimum for the asset, then the amount burned is increased to take it to zero. * * Weight: `O(1)` * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. */ "burn": { "id": number; "who": MultiAddress; "amount": bigint; }; /** * Move some assets from the sender account to another. * * Origin must be Signed. * * - `id`: The identifier of the asset to have some amount transferred. * - `target`: The account to be credited. * - `amount`: The amount by which the sender's balance of assets should be reduced and * `target`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the sender balance above zero but below * the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of * `target`. */ "transfer": { "id": number; "target": MultiAddress; "amount": bigint; }; /** * Move some assets from the sender account to another, keeping the sender account alive. * * Origin must be Signed. * * - `id`: The identifier of the asset to have some amount transferred. * - `target`: The account to be credited. * - `amount`: The amount by which the sender's balance of assets should be reduced and * `target`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the sender balance above zero but below * the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of * `target`. */ "transfer_keep_alive": { "id": number; "target": MultiAddress; "amount": bigint; }; /** * Move some assets from one account to another. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to have some amount transferred. * - `source`: The account to be debited. * - `dest`: The account to be credited. * - `amount`: The amount by which the `source`'s balance of assets should be reduced and * `dest`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the `source` balance above zero but * below the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of * `dest`. */ "force_transfer": { "id": number; "source": MultiAddress; "dest": MultiAddress; "amount": bigint; }; /** * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` * must already exist as an entry in `Account`s of the asset. If you want to freeze an * account that does not have an entry, use `touch_other` first. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `who`: The account to be frozen. * * Emits `Frozen`. * * Weight: `O(1)` */ "freeze": { "id": number; "who": MultiAddress; }; /** * Allow unprivileged transfers to and from an account again. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `who`: The account to be unfrozen. * * Emits `Thawed`. * * Weight: `O(1)` */ "thaw": { "id": number; "who": MultiAddress; }; /** * Disallow further unprivileged transfers for the asset class. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * * Emits `Frozen`. * * Weight: `O(1)` */ "freeze_asset": { "id": number; }; /** * Allow unprivileged transfers for the asset again. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to be thawed. * * Emits `Thawed`. * * Weight: `O(1)` */ "thaw_asset": { "id": number; }; /** * Change the Owner of an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * - `id`: The identifier of the asset. * - `owner`: The new Owner of this asset. * * Emits `OwnerChanged`. * * Weight: `O(1)` */ "transfer_ownership": { "id": number; "owner": MultiAddress; }; /** * Change the Issuer, Admin and Freezer of an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `issuer`: The new Issuer of this asset. * - `admin`: The new Admin of this asset. * - `freezer`: The new Freezer of this asset. * * Emits `TeamChanged`. * * Weight: `O(1)` */ "set_team": { "id": number; "issuer": MultiAddress; "admin": MultiAddress; "freezer": MultiAddress; }; /** * Set the metadata for an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * Funds of sender are reserved according to the formula: * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into * account any already reserved funds. * * - `id`: The identifier of the asset to update. * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. * - `decimals`: The number of decimals this asset uses to represent one unit. * * Emits `MetadataSet`. * * Weight: `O(1)` */ "set_metadata": { "id": number; "name": Uint8Array; "symbol": Uint8Array; "decimals": number; }; /** * Clear the metadata for an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * Any deposit is freed for the asset owner. * * - `id`: The identifier of the asset to clear. * * Emits `MetadataCleared`. * * Weight: `O(1)` */ "clear_metadata": { "id": number; }; /** * Force the metadata for an asset to some value. * * Origin must be ForceOrigin. * * Any deposit is left alone. * * - `id`: The identifier of the asset to update. * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. * - `decimals`: The number of decimals this asset uses to represent one unit. * * Emits `MetadataSet`. * * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. */ "force_set_metadata": { "id": number; "name": Uint8Array; "symbol": Uint8Array; "decimals": number; "is_frozen": boolean; }; /** * Clear the metadata for an asset. * * Origin must be ForceOrigin. * * Any deposit is returned. * * - `id`: The identifier of the asset to clear. * * Emits `MetadataCleared`. * * Weight: `O(1)` */ "force_clear_metadata": { "id": number; }; /** * Alter the attributes of a given asset. * * Origin must be `ForceOrigin`. * * - `id`: The identifier of the asset. * - `owner`: The new Owner of this asset. * - `issuer`: The new Issuer of this asset. * - `admin`: The new Admin of this asset. * - `freezer`: The new Freezer of this asset. * - `min_balance`: The minimum balance of this new asset that any single account must * have. If an account's balance is reduced below this, then it collapses to zero. * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient * value to account for the state bloat associated with its balance storage. If set to * `true`, then non-zero balances may be stored without a `consumer` reference (and thus * an ED in the Balances pallet or whatever else is used to control user-account state * growth). * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin * instructions. * * Emits `AssetStatusChanged` with the identity of the asset. * * Weight: `O(1)` */ "force_asset_status": { "id": number; "owner": MultiAddress; "issuer": MultiAddress; "admin": MultiAddress; "freezer": MultiAddress; "min_balance": bigint; "is_sufficient": boolean; "is_frozen": boolean; }; /** * Approve an amount of asset for transfer by a delegated third-party account. * * Origin must be Signed. * * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account * for the purpose of holding the approval. If some non-zero amount of assets is already * approved from signing account to `delegate`, then it is topped up or unreserved to * meet the right value. * * NOTE: The signing account does not need to own `amount` of assets at the point of * making this call. * * - `id`: The identifier of the asset. * - `delegate`: The account to delegate permission to transfer asset. * - `amount`: The amount of asset that may be transferred by `delegate`. If there is * already an approval in place, then this acts additively. * * Emits `ApprovedTransfer` on success. * * Weight: `O(1)` */ "approve_transfer": { "id": number; "delegate": MultiAddress; "amount": bigint; }; /** * Cancel all of some asset approved for delegated transfer by a third-party account. * * Origin must be Signed and there must be an approval in place between signer and * `delegate`. * * Unreserves any deposit previously reserved by `approve_transfer` for the approval. * * - `id`: The identifier of the asset. * - `delegate`: The account delegated permission to transfer asset. * * Emits `ApprovalCancelled` on success. * * Weight: `O(1)` */ "cancel_approval": { "id": number; "delegate": MultiAddress; }; /** * Cancel all of some asset approved for delegated transfer by a third-party account. * * Origin must be either ForceOrigin or Signed origin with the signer being the Admin * account of the asset `id`. * * Unreserves any deposit previously reserved by `approve_transfer` for the approval. * * - `id`: The identifier of the asset. * - `delegate`: The account delegated permission to transfer asset. * * Emits `ApprovalCancelled` on success. * * Weight: `O(1)` */ "force_cancel_approval": { "id": number; "owner": MultiAddress; "delegate": MultiAddress; }; /** * Transfer some asset balance from a previously delegated account to some third-party * account. * * Origin must be Signed and there must be an approval in place by the `owner` to the * signer. * * If the entire amount approved for transfer is transferred, then any deposit previously * reserved by `approve_transfer` is unreserved. * * - `id`: The identifier of the asset. * - `owner`: The account which previously approved for a transfer of at least `amount` and * from which the asset balance will be withdrawn. * - `destination`: The account to which the asset balance of `amount` will be transferred. * - `amount`: The amount of assets to transfer. * * Emits `TransferredApproved` on success. * * Weight: `O(1)` */ "transfer_approved": { "id": number; "owner": MultiAddress; "destination": MultiAddress; "amount": bigint; }; /** * Create an asset account for non-provider assets. * * A deposit will be taken from the signer account. * * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit * to be taken. * - `id`: The identifier of the asset for the account to be created. * * Emits `Touched` event when successful. */ "touch": { "id": number; }; /** * Return the deposit (if any) of an asset account or a consumer reference (if any) of an * account. * * The origin must be Signed. * * - `id`: The identifier of the asset for which the caller would like the deposit * refunded. * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. * * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if * the asset account contains holds or freezes in place. * * Emits `Refunded` event when successful. */ "refund": { "id": number; "allow_burn": boolean; }; /** * Sets the minimum balance of an asset. * * Only works if there aren't any accounts that are holding the asset or if * the new value of `min_balance` is less than the old one. * * Origin must be Signed and the sender has to be the Owner of the * asset `id`. * * - `id`: The identifier of the asset. * - `min_balance`: The new value of `min_balance`. * * Emits `AssetMinBalanceChanged` event when successful. */ "set_min_balance": { "id": number; "min_balance": bigint; }; /** * Create an asset account for `who`. * * 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, the asset status must * be live. * - `who`: The account to be created. * * Emits `Touched` event when successful. */ "touch_other": { "id": number; "who": MultiAddress; }; /** * Return the deposit (if any) of a target asset account. Useful if you are the depositor. * * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In * order to burn a non-zero balance of the asset, the caller must be the account and should * use `refund`. * * - `id`: The identifier of the asset for the account holding a deposit. * - `who`: The account to refund. * * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if * the asset account contains holds or freezes in place. * * Emits `Refunded` event when successful. */ "refund_other": { "id": number; "who": MultiAddress; }; /** * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the account's asset. * - `who`: The account to be unblocked. * * Emits `Blocked`. * * Weight: `O(1)` */ "block": { "id": number; "who": MultiAddress; }; /** * Transfer the entire transferable balance from the caller asset account. * * NOTE: This function only attempts to transfer _transferable_ balances. This means that * any held, frozen, or minimum balance (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. * * - `id`: The identifier of the asset for the account holding a deposit. * - `dest`: The recipient of the transfer. * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all * of the funds the asset account has, causing the sender asset account to be killed * (false), or transfer everything except at least the minimum balance, which will * guarantee to keep the sender asset account alive (true). */ "transfer_all": { "id": number; "dest": MultiAddress; "keep_alive": boolean; }; /** * Sets the trusted reserve information of an asset. * * Origin must be the Owner of the asset `id`. The origin must conform to the configured * `CreateOrigin` or be the signed `owner` configured during asset creation. * * - `id`: The identifier of the asset. * - `reserves`: The full list of trusted reserves information. * * Emits `AssetMinBalanceChanged` event when successful. */ "set_reserves": { "id": number; "reserves": Anonymize; }; }>; "AssetConversion": Enum<{ /** * 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. */ "create_pool": { "asset1": Anonymize; "asset2": Anonymize; }; /** * 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`]. */ "add_liquidity": { "asset1": Anonymize; "asset2": Anonymize; "amount1_desired": bigint; "amount2_desired": bigint; "amount1_min": bigint; "amount2_min": bigint; "mint_to": SS58String; }; /** * 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. */ "remove_liquidity": { "asset1": Anonymize; "asset2": Anonymize; "lp_token_burn": bigint; "amount1_min_receive": bigint; "amount2_min_receive": bigint; "withdraw_to": SS58String; }; /** * 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. */ "swap_exact_tokens_for_tokens": { "path": Anonymize; "amount_in": bigint; "amount_out_min": bigint; "send_to": SS58String; "keep_alive": boolean; }; /** * Swap any amount of `asset1` to get the exact amount of `asset2`. * `amount_in_max` param allows to specify the max amount of the `asset1` * you're happy to provide. * * [`AssetConversionApi::quote_price_tokens_for_exact_tokens`] runtime call can be called * for a quote. */ "swap_tokens_for_exact_tokens": { "path": Anonymize; "amount_out": bigint; "amount_in_max": bigint; "send_to": SS58String; "keep_alive": boolean; }; /** * Touch an existing pool to fulfill prerequisites before providing liquidity, such as * ensuring that the pool's accounts are in place. It is typically useful when a pool * creator removes the pool's accounts and does not provide a liquidity. This action may * involve holding assets from the caller as a deposit for creating the pool's accounts. * * The origin must be Signed. * * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2). * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2). * * Emits `Touched` event when successful. */ "touch": { "asset1": Anonymize; "asset2": Anonymize; }; }>; "Treasury": Enum<{ /** * Propose and approve a spend of treasury funds. * * ## Dispatch Origin * * Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`. * * ### Details * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the * beneficiary. * * ### Parameters * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. * - `beneficiary`: The destination account for the transfer. * * ## Events * * Emits [`Event::SpendApproved`] if successful. */ "spend_local": { "amount": bigint; "beneficiary": MultiAddress; }; /** * Force a previously approved proposal to be removed from the approval queue. * * ## Dispatch Origin * * Must be [`Config::RejectOrigin`]. * * ## Details * * The original deposit will no longer be returned. * * ### Parameters * - `proposal_id`: The index of a proposal * * ### Complexity * - O(A) where `A` is the number of approvals * * ### Errors * - [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the * approval queue, i.e., the proposal has not been approved. This could also mean the * proposal does not exist altogether, thus there is no way it would have been approved * in the first place. */ "remove_approval": Anonymize; /** * Propose and approve a spend of treasury funds. * * ## Dispatch Origin * * Must be [`Config::SpendOrigin`] with the `Success` value being at least * `amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted * for assertion using the [`Config::BalanceConverter`]. * * ## Details * * Create an approved spend for transferring a specific `amount` of `asset_kind` to a * designated beneficiary. The spend must be claimed using the `payout` dispatchable within * the [`Config::PayoutPeriod`]. * * ### Parameters * - `asset_kind`: An indicator of the specific asset class to be spent. * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. * - `beneficiary`: The beneficiary of the spend. * - `valid_from`: The block number from which the spend can be claimed. It can refer to * the past if the resulting spend has not yet expired according to the * [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after * approval. * * ## Events * * Emits [`Event::AssetSpendApproved`] if successful. */ "spend": { "asset_kind": Anonymize; "amount": bigint; "beneficiary": Anonymize; "valid_from"?: Anonymize; }; /** * Claim a spend. * * ## Dispatch Origin * * Must be signed * * ## Details * * Spends must be claimed within some temporal bounds. A spend may be claimed within one * [`Config::PayoutPeriod`] from the `valid_from` block. * In case of a payout failure, the spend status must be updated with the `check_status` * dispatchable before retrying with the current function. * * ### Parameters * - `index`: The spend index. * * ## Events * * Emits [`Event::Paid`] if successful. */ "payout": Anonymize; /** * Check the status of the spend and remove it from the storage if processed. * * ## Dispatch Origin * * Must be signed. * * ## Details * * The status check is a prerequisite for retrying a failed payout. * If a spend has either succeeded or expired, it is removed from the storage by this * function. In such instances, transaction fees are refunded. * * ### Parameters * - `index`: The spend index. * * ## Events * * Emits [`Event::PaymentFailed`] if the spend payout has failed. * Emits [`Event::SpendProcessed`] if the spend payout has succeed. */ "check_status": Anonymize; /** * Void previously approved spend. * * ## Dispatch Origin * * Must be [`Config::RejectOrigin`]. * * ## Details * * A spend void is only possible if the payout has not been attempted yet. * * ### Parameters * - `index`: The spend index. * * ## Events * * Emits [`Event::AssetSpendVoided`] if successful. */ "void_spend": Anonymize; }>; "ConvictionVoting": Enum<{ /** * Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal; * otherwise it is a vote to keep the status quo. * * The dispatch origin of this call must be _Signed_. * * - `poll_index`: The index of the poll to vote for. * - `vote`: The vote configuration. * * Weight: `O(R)` where R is the number of polls the voter has voted on. */ "vote": Anonymize; /** * Delegate the voting power (with some given conviction) of the sending account for a * particular class of polls. * * The balance delegated is locked for as long as it's delegated, and thereafter for the * time appropriate for the conviction's lock period. * * The dispatch origin of this call must be _Signed_, and the signing account must either: * - be delegating already; or * - have no voting activity (if there is, then it will need to be removed through * `remove_vote`). * * - `to`: The account whose voting the `target` account's voting power will follow. * - `class`: The class of polls to delegate. To delegate multiple classes, multiple calls * to this function are required. * - `conviction`: The conviction that will be attached to the delegated votes. When the * account is undelegated, the funds will be locked for the corresponding period. * - `balance`: The amount of the account's balance to be used in delegating. This must not * be more than the account's current balance. * * Emits `Delegated`. * * Weight: `O(R)` where R is the number of polls the voter delegating to has * voted on. Weight is initially charged as if maximum votes, but is refunded later. */ "delegate": { "class": number; "to": MultiAddress; "conviction": VotingConviction; "balance": bigint; }; /** * Undelegate the voting power of the sending account for a particular class of polls. * * Tokens may be unlocked following once an amount of time consistent with the lock period * of the conviction with which the delegation was issued has passed. * * The dispatch origin of this call must be _Signed_ and the signing account must be * currently delegating. * * - `class`: The class of polls to remove the delegation from. * * Emits `Undelegated`. * * Weight: `O(R)` where R is the number of polls the voter delegating to has * voted on. Weight is initially charged as if maximum votes, but is refunded later. */ "undelegate": Anonymize; /** * Remove the lock caused by prior voting/delegating which has expired within a particular * class. * * The dispatch origin of this call must be _Signed_. * * - `class`: The class of polls to unlock. * - `target`: The account to remove the lock on. * * Weight: `O(R)` with R number of vote of target. */ "unlock": { "class": number; "target": MultiAddress; }; /** * Remove a vote for a poll. * * If: * - the poll was cancelled, or * - the poll is ongoing, or * - the poll has ended such that * - the vote of the account was in opposition to the result; or * - there was no conviction to the account's vote; or * - the account made a split vote * ...then the vote is removed cleanly and a following call to `unlock` may result in more * funds being available. * * If, however, the poll has ended and: * - it finished corresponding to the vote of the account, and * - the account made a standard vote with conviction, and * - the lock period of the conviction is not over * ...then the lock will be aggregated into the overall account's lock, which may involve * *overlocking* (where the two locks are combined into a single lock that is the maximum * of both the amount locked and the time is it locked for). * * The dispatch origin of this call must be _Signed_, and the signer must have a vote * registered for poll `index`. * * - `index`: The index of poll of the vote to be removed. * - `class`: Optional parameter, if given it indicates the class of the poll. For polls * which have finished or are cancelled, this must be `Some`. * * Weight: `O(R + log R)` where R is the number of polls that `target` has voted on. * Weight is calculated for the maximum number of vote. */ "remove_vote": Anonymize; /** * Remove a vote for a poll. * * If the `target` is equal to the signer, then this function is exactly equivalent to * `remove_vote`. If not equal to the signer, then the vote must have expired, * either because the poll was cancelled, because the voter lost the poll or * because the conviction period is over. * * The dispatch origin of this call must be _Signed_. * * - `target`: The account of the vote to be removed; this account must have voted for poll * `index`. * - `index`: The index of poll of the vote to be removed. * - `class`: The class of the poll. * * Weight: `O(R + log R)` where R is the number of polls that `target` has voted on. * Weight is calculated for the maximum number of vote. */ "remove_other_vote": { "target": MultiAddress; "class": number; "index": number; }; }>; "Referenda": Enum<{ /** * Propose a referendum on a privileged action. * * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds * available. * - `proposal_origin`: The origin from which the proposal should be executed. * - `proposal`: The proposal. * - `enactment_moment`: The moment that the proposal should be enacted. * * Emits `Submitted`. */ "submit": { "proposal_origin": Anonymize; "proposal": PreimagesBounded; "enactment_moment": TraitsScheduleDispatchTime; }; /** * Post the Decision Deposit for a referendum. * * - `origin`: must be `Signed` and the account must have funds available for the * referendum's track's Decision Deposit. * - `index`: The index of the submitted referendum whose Decision Deposit is yet to be * posted. * * Emits `DecisionDepositPlaced`. */ "place_decision_deposit": Anonymize; /** * Refund the Decision Deposit for a closed referendum back to the depositor. * * - `origin`: must be `Signed` or `Root`. * - `index`: The index of a closed referendum whose Decision Deposit has not yet been * refunded. * * Emits `DecisionDepositRefunded`. */ "refund_decision_deposit": Anonymize; /** * Cancel an ongoing referendum. * * - `origin`: must be the `CancelOrigin`. * - `index`: The index of the referendum to be cancelled. * * Emits `Cancelled`. */ "cancel": Anonymize; /** * Cancel an ongoing referendum and slash the deposits. * * - `origin`: must be the `KillOrigin`. * - `index`: The index of the referendum to be cancelled. * * Emits `Killed` and `DepositSlashed`. */ "kill": Anonymize; /** * Advance a referendum onto its next logical state. Only used internally. * * - `origin`: must be `Root`. * - `index`: the referendum to be advanced. */ "nudge_referendum": Anonymize; /** * Advance a track onto its next logical state. Only used internally. * * - `origin`: must be `Root`. * - `track`: the track to be advanced. * * Action item for when there is now one fewer referendum in the deciding phase and the * `DecidingCount` is not yet updated. This means that we should either: * - begin deciding another referendum (and leave `DecidingCount` alone); or * - decrement `DecidingCount`. */ "one_fewer_deciding": Anonymize; /** * Refund the Submission Deposit for a closed referendum back to the depositor. * * - `origin`: must be `Signed` or `Root`. * - `index`: The index of a closed referendum whose Submission Deposit has not yet been * refunded. * * Emits `SubmissionDepositRefunded`. */ "refund_submission_deposit": Anonymize; /** * Set or clear metadata of a referendum. * * Parameters: * - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a * metadata of a finished referendum. * - `index`: The index of a referendum to set or clear metadata for. * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata. */ "set_metadata": Anonymize; }>; "Whitelist": Enum<{ "whitelist_call": Anonymize; "remove_whitelisted_call": Anonymize; "dispatch_whitelisted_call": Anonymize; "dispatch_whitelisted_call_with_preimage": Anonymize; }>; "Bounties": Enum<{ /** * Propose a new bounty. * * The dispatch origin for this call must be _Signed_. * * Payment: `TipReportDepositBase` will be reserved from the origin account, as well as * `DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval, * or slashed when rejected. * * - `curator`: The curator account whom will manage this bounty. * - `fee`: The curator fee. * - `value`: The total payment amount of this bounty, curator fee included. * - `description`: The description of this bounty. */ "propose_bounty": { "value": bigint; "description": Uint8Array; }; /** * Approve a bounty proposal. At a later time, the bounty will be funded and become active * and the original deposit will be returned. * * May only be called from `T::SpendOrigin`. * * ## Complexity * - O(1). */ "approve_bounty": Anonymize; /** * Propose a curator to a funded bounty. * * May only be called from `T::SpendOrigin`. * * ## Complexity * - O(1). */ "propose_curator": { "bounty_id": number; "curator": MultiAddress; "fee": bigint; }; /** * Unassign curator from a bounty. * * This function can only be called by the `RejectOrigin` a signed origin. * * If this function is called by the `RejectOrigin`, we assume that the curator is * malicious or inactive. As a result, we will slash the curator when possible. * * If the origin is the curator, we take this as a sign they are unable to do their job and * they willingly give up. We could slash them, but for now we allow them to recover their * deposit and exit without issue. (We may want to change this if it is abused.) * * Finally, the origin can be anyone if and only if the curator is "inactive". This allows * anyone in the community to call out that a curator is not doing their due diligence, and * we should pick a new curator. In this case the curator should also be slashed. * * ## Complexity * - O(1). */ "unassign_curator": Anonymize; /** * Accept the curator role for a bounty. * A deposit will be reserved from curator and refund upon successful payout. * * May only be called from the curator. * * ## Complexity * - O(1). */ "accept_curator": Anonymize; /** * Award bounty to a beneficiary account. The beneficiary will be able to claim the funds * after a delay. * * The dispatch origin for this call must be the curator of this bounty. * * - `bounty_id`: Bounty ID to award. * - `beneficiary`: The beneficiary account whom will receive the payout. * * ## Complexity * - O(1). */ "award_bounty": { "bounty_id": number; "beneficiary": MultiAddress; }; /** * Claim the payout from an awarded bounty after payout delay. * * The dispatch origin for this call must be the beneficiary of this bounty. * * - `bounty_id`: Bounty ID to claim. * * ## Complexity * - O(1). */ "claim_bounty": Anonymize; /** * Cancel a proposed or active bounty. All the funds will be sent to treasury and * the curator deposit will be unreserved if possible. * * Only `T::RejectOrigin` is able to cancel a bounty. * * - `bounty_id`: Bounty ID to cancel. * * ## Complexity * - O(1). */ "close_bounty": Anonymize; /** * Extend the expiry time of an active bounty. * * The dispatch origin for this call must be the curator of this bounty. * * - `bounty_id`: Bounty ID to extend. * - `remark`: additional information. * * ## Complexity * - O(1). */ "extend_bounty_expiry": { "bounty_id": number; "remark": Uint8Array; }; /** * Approve bountry and propose a curator simultaneously. * This call is a shortcut to calling `approve_bounty` and `propose_curator` separately. * * May only be called from `T::SpendOrigin`. * * - `bounty_id`: Bounty ID to approve. * - `curator`: The curator account whom will manage this bounty. * - `fee`: The curator fee. * * ## Complexity * - O(1). */ "approve_bounty_with_curator": { "bounty_id": number; "curator": MultiAddress; "fee": bigint; }; /** * Poke the deposit reserved for creating a bounty proposal. * * This can be used by accounts to update their reserved amount. * * The dispatch origin for this call must be _Signed_. * * Parameters: * - `bounty_id`: The bounty id for which to adjust the deposit. * * If the deposit is updated, the difference will be reserved/unreserved from the * proposer's account. * * The transaction is made free if the deposit is updated and paid otherwise. * * Emits `DepositPoked` if the deposit is updated. */ "poke_deposit": Anonymize; }>; "ChildBounties": Enum<{ /** * Add a new child-bounty. * * The dispatch origin for this call must be the curator of parent * bounty and the parent bounty must be in "active" state. * * Child-bounty gets added successfully & fund gets transferred from * parent bounty to child-bounty account, if parent bounty has enough * funds, else the call fails. * * Upper bound to maximum number of active child bounties that can be * added are managed via runtime trait config * [`Config::MaxActiveChildBountyCount`]. * * If the call is success, the status of child-bounty is updated to * "Added". * * - `parent_bounty_id`: Index of parent bounty for which child-bounty is being added. * - `value`: Value for executing the proposal. * - `description`: Text description for the child-bounty. */ "add_child_bounty": { "parent_bounty_id": number; "value": bigint; "description": Uint8Array; }; /** * Propose curator for funded child-bounty. * * The dispatch origin for this call must be curator of parent bounty. * * Parent bounty must be in active state, for this child-bounty call to * work. * * Child-bounty must be in "Added" state, for processing the call. And * state of child-bounty is moved to "CuratorProposed" on successful * call completion. * * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child bounty. * - `curator`: Address of child-bounty curator. * - `fee`: payment fee to child-bounty curator for execution. */ "propose_curator": { "parent_bounty_id": number; "child_bounty_id": number; "curator": MultiAddress; "fee": bigint; }; /** * Accept the curator role for the child-bounty. * * The dispatch origin for this call must be the curator of this * child-bounty. * * A deposit will be reserved from the curator and refund upon * successful payout or cancellation. * * Fee for curator is deducted from curator fee of parent bounty. * * Parent bounty must be in active state, for this child-bounty call to * work. * * Child-bounty must be in "CuratorProposed" state, for processing the * call. And state of child-bounty is moved to "Active" on successful * call completion. * * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child bounty. */ "accept_curator": { "parent_bounty_id": number; "child_bounty_id": number; }; /** * Unassign curator from a child-bounty. * * The dispatch origin for this call can be either `RejectOrigin`, or * the curator of the parent bounty, or any signed origin. * * For the origin other than T::RejectOrigin and the child-bounty * curator, parent bounty must be in active state, for this call to * work. We allow child-bounty curator and T::RejectOrigin to execute * this call irrespective of the parent bounty state. * * If this function is called by the `RejectOrigin` or the * parent bounty curator, we assume that the child-bounty curator is * malicious or inactive. As a result, child-bounty curator deposit is * slashed. * * If the origin is the child-bounty curator, we take this as a sign * that they are unable to do their job, and are willingly giving up. * We could slash the deposit, but for now we allow them to unreserve * their deposit and exit without issue. (We may want to change this if * it is abused.) * * Finally, the origin can be anyone iff the child-bounty curator is * "inactive". Expiry update due of parent bounty is used to estimate * inactive state of child-bounty curator. * * This allows anyone in the community to call out that a child-bounty * curator is not doing their due diligence, and we should pick a new * one. In this case the child-bounty curator deposit is slashed. * * State of child-bounty is moved to Added state on successful call * completion. * * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child bounty. */ "unassign_curator": { "parent_bounty_id": number; "child_bounty_id": number; }; /** * Award child-bounty to a beneficiary. * * The beneficiary will be able to claim the funds after a delay. * * The dispatch origin for this call must be the parent curator or * curator of this child-bounty. * * Parent bounty must be in active state, for this child-bounty call to * work. * * Child-bounty must be in active state, for processing the call. And * state of child-bounty is moved to "PendingPayout" on successful call * completion. * * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child bounty. * - `beneficiary`: Beneficiary account. */ "award_child_bounty": { "parent_bounty_id": number; "child_bounty_id": number; "beneficiary": MultiAddress; }; /** * Claim the payout from an awarded child-bounty after payout delay. * * The dispatch origin for this call may be any signed origin. * * Call works independent of parent bounty state, No need for parent * bounty to be in active state. * * The Beneficiary is paid out with agreed bounty value. Curator fee is * paid & curator deposit is unreserved. * * Child-bounty must be in "PendingPayout" state, for processing the * call. And instance of child-bounty is removed from the state on * successful call completion. * * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child bounty. */ "claim_child_bounty": { "parent_bounty_id": number; "child_bounty_id": number; }; /** * Cancel a proposed or active child-bounty. Child-bounty account funds * are transferred to parent bounty account. The child-bounty curator * deposit may be unreserved if possible. * * The dispatch origin for this call must be either parent curator or * `T::RejectOrigin`. * * If the state of child-bounty is `Active`, curator deposit is * unreserved. * * If the state of child-bounty is `PendingPayout`, call fails & * returns `PendingPayout` error. * * For the origin other than T::RejectOrigin, parent bounty must be in * active state, for this child-bounty call to work. For origin * T::RejectOrigin execution is forced. * * Instance of child-bounty is removed from the state on successful * call completion. * * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child bounty. */ "close_child_bounty": { "parent_bounty_id": number; "child_bounty_id": number; }; }>; "AssetRate": Enum<{ /** * Initialize a conversion rate to native balance for the given asset. * * ## Complexity * - O(1) */ "create": Anonymize; /** * Update the conversion rate to native balance for the given asset. * * ## Complexity * - O(1) */ "update": Anonymize; /** * Remove an existing conversion rate to native balance for the given asset. * * ## Complexity * - O(1) */ "remove": Anonymize; }>; "MultiAssetBounties": Enum<{ /** * Fund a new bounty with a proposed curator, initiating the payment from the * funding source to the bounty account/location. * * ## Dispatch Origin * * Must be [`Config::SpendOrigin`] with the `Success` value being at least * the bounty value converted to native balance using [`Config::BalanceConverter`]. * The converted native amount is validated against the maximum spendable amount * returned by [`Config::SpendOrigin`]. * * ## Details * * - The `SpendOrigin` must have sufficient permissions to fund the bounty. * - The bounty `value` (in asset balance) is converted to native balance for validation. * - In case of a funding failure, the bounty status must be updated with the * `check_status` call before retrying with `retry_payment` call. * * ### Parameters * - `asset_kind`: An indicator of the specific asset class to be funded. * - `value`: The total payment amount of this bounty. * - `curator`: Address of bounty curator. * - `metadata`: The hash of an on-chain stored preimage with bounty metadata. * * ## Events * * Emits [`Event::BountyCreated`] and [`Event::Paid`] if successful. */ "fund_bounty": { "asset_kind": Anonymize; "value": bigint; "curator": MultiAddress; "metadata": SizedHex<32>; }; /** * Fund a new child-bounty with a proposed curator, initiating the payment from the parent * bounty to the child-bounty account/location. * * ## Dispatch Origin * * Must be signed by the parent curator. * * ## Details * * - If `curator` is not provided, the child-bounty will default to using the parent * curator, allowing the parent curator to immediately call `check_status` and * `award_bounty` to payout the child-bounty. * - In case of a funding failure, the child-/bounty status must be updated with the * `check_status` call before retrying with `retry_payment` call. * * ### Parameters * - `parent_bounty_id`: Index of parent bounty for which child-bounty is being added. * - `value`: The payment amount of this child-bounty. * - `metadata`: The hash of an on-chain stored preimage with child-bounty metadata. * - `curator`: Address of child-bounty curator. * * ## Events * * Emits [`Event::ChildBountyCreated`] and [`Event::Paid`] if successful. */ "fund_child_bounty": { "parent_bounty_id": number; "value": bigint; "metadata": SizedHex<32>; "curator"?: Anonymize; }; /** * Propose a new curator for a child-/bounty after the previous was unassigned. * * ## Dispatch Origin * * Must be signed by `T::SpendOrigin` for a bounty, or by the parent bounty curator * for a child-bounty. * * ## Details * * - The child-/bounty must be in the `CuratorUnassigned` state. * - For a bounty, the `SpendOrigin` must have sufficient permissions to propose the * curator. * * ### Parameters * - `parent_bounty_id`: Index of bounty. * - `child_bounty_id`: Index of child-bounty. * - `curator`: Account to be proposed as the curator. * * ## Events * * Emits [`Event::CuratorProposed`] if successful. */ "propose_curator": { "parent_bounty_id": number; "child_bounty_id"?: Anonymize; "curator": MultiAddress; }; /** * Accept the curator role for a child-/bounty. * * ## Dispatch Origin * * Must be signed by the proposed curator. * * ## Details * * - The child-/bounty must be in the `Funded` state. * - The curator must accept the role by calling this function. * - A deposit will be reserved from the curator and refunded upon successful payout. * * ### Parameters * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child-bounty. * * ## Events * * Emits [`Event::BountyBecameActive`] if successful. */ "accept_curator": { "parent_bounty_id": number; "child_bounty_id"?: Anonymize; }; /** * Unassign curator from a child-/bounty. * * ## Dispatch Origin * * This function can only be called by the `RejectOrigin` or the child-/bounty curator. * * ## Details * * - If this function is called by the `RejectOrigin`, or by the parent curator in the case * of a child bounty, we assume that the curator is malicious or inactive. As a result, * we will slash the curator when possible. * - If the origin is the child-/bounty curator, we take this as a sign they are unable to * do their job and they willingly give up. We could slash them, but for now we allow * them to recover their deposit and exit without issue. (We may want to change this if * it is abused). * - If successful, the child-/bounty status is updated to `CuratorUnassigned`. To * reactivate the bounty, a new curator must be proposed and must accept the role. * * ### Parameters * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child-bounty. * * ## Events * * Emits [`Event::CuratorUnassigned`] if successful. */ "unassign_curator": { "parent_bounty_id": number; "child_bounty_id"?: Anonymize; }; /** * Awards the child-/bounty to a beneficiary account/location, * initiating the payout payments to both the beneficiary and the curator. * * ## Dispatch Origin * * This function can only be called by the `RejectOrigin` or the child-/bounty curator. * * ## Details * * - The child-/bounty must be in the `Active` state. * - if awarding a parent bounty it must not have active or funded child bounties. * - Initiates payout payment from the child-/bounty to the beneficiary account/location. * - If successful the child-/bounty status is updated to `PayoutAttempted`. * - In case of a payout failure, the child-/bounty status must be updated with * `check_status` call before retrying with `retry_payment` call. * * ### Parameters * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child-bounty. * - `beneficiary`: Account/location to be awarded the child-/bounty. * * ## Events * * Emits [`Event::BountyAwarded`] and [`Event::Paid`] if successful. */ "award_bounty": { "parent_bounty_id": number; "child_bounty_id"?: Anonymize; "beneficiary": Anonymize; }; /** * Cancel an active child-/bounty. A payment to send all the funds to the funding source is * initialized. * * ## Dispatch Origin * * This function can only be called by the `RejectOrigin` or the parent bounty curator. * * ## Details * * - If the child-/bounty is in the `Funded` state, a refund payment is initiated. * - If the child-/bounty is in the `Active` state, a refund payment is initiated and the * child-/bounty status is updated with the curator account/location. * - If the child-/bounty is in the funding or payout phase, it cannot be canceled. * - In case of a refund failure, the child-/bounty status must be updated with the * `check_status` call before retrying with `retry_payment` call. * * ### Parameters * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child-bounty. * * ## Events * * Emits [`Event::BountyCanceled`] and [`Event::Paid`] if successful. */ "close_bounty": { "parent_bounty_id": number; "child_bounty_id"?: Anonymize; }; /** * Check and update the payment status of a child-/bounty. * * ## Dispatch Origin * * Must be signed. * * ## Details * * - If the child-/bounty status is `FundingAttempted`, it checks if the funding payment * has succeeded. If successful, the bounty status becomes `Funded`. * - If the child-/bounty status is `RefundAttempted`, it checks if the refund payment has * succeeded. If successful, the child-/bounty is removed from storage. * - If the child-/bounty status is `PayoutAttempted`, it checks if the payout payment has * succeeded. If successful, the child-/bounty is removed from storage. * * ### Parameters * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child-bounty. * * ## Events * * Emits [`Event::BountyBecameActive`] if the child/bounty status transitions to `Active`. * Emits [`Event::BountyRefundProcessed`] if the refund payment has succeed. * Emits [`Event::BountyPayoutProcessed`] if the payout payment has succeed. * Emits [`Event::PaymentFailed`] if the funding, refund our payment payment has failed. */ "check_status": { "parent_bounty_id": number; "child_bounty_id"?: Anonymize; }; /** * Retry the funding, refund or payout payments. * * ## Dispatch Origin * * Must be signed. * * ## Details * * - If the child-/bounty status is `FundingAttempted`, it retries the funding payment from * funding source the child-/bounty account/location. * - If the child-/bounty status is `RefundAttempted`, it retries the refund payment from * the child-/bounty account/location to the funding source. * - If the child-/bounty status is `PayoutAttempted`, it retries the payout payment from * the child-/bounty account/location to the beneficiary account/location. * * ### Parameters * - `parent_bounty_id`: Index of parent bounty. * - `child_bounty_id`: Index of child-bounty. * * ## Events * * Emits [`Event::Paid`] if the funding, refund or payout payment has initiated. */ "retry_payment": { "parent_bounty_id": number; "child_bounty_id"?: Anonymize; }; /** * Increase the value of an active bounty by `amount`. * * ## Dispatch Origin * * Must be signed by the bounty curator. * * ## Details * * - The bounty must be in the `Active` state. * - Raises the recorded `value` by `amount`. This is used to register funds that were * transferred into the bounty account out-of-band (e.g. recurring external top-ups), so * they become available to award or to allocate to child bounties. It must be greater * than 0. * - The curator deposit is re-evaluated for the new value and any additional deposit is * collected from the curator. * - The value can only be increased, never decreased, so the invariant that the sum of * child-bounty values never exceeds the parent value is preserved. * - This call does **not** check that the bounty account holds `new_value`; it only * updates the recorded value. Payouts stay bounded by the account's real balance at * settlement, so increasing the value beyond the available funds simply makes a later * payout fail — no funds are moved by this call. * - Only a parent bounty's value can be increased via this call. * * ### Parameters * - `parent_bounty_id`: Index of the bounty whose value is increased. * - `amount`: The amount to add to the bounty value. * * ## Events * * Emits [`Event::BountyValueIncreased`] if successful. */ "increase_value": { "parent_bounty_id": number; "amount": bigint; }; }>; "StateTrieMigration": Anonymize; "NominationPools": Enum<{ /** * Stake funds with a pool. The amount to bond is delegated (or transferred based on * [`adapter::StakeStrategyType`]) from the member to the pool account and immediately * increases the pool's bond. * * The method of transferring the amount to the pool account is determined by * [`adapter::StakeStrategyType`]. If the pool is configured to use * [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of * the `origin`, while the pool gains the right to use these funds for staking. * * # Note * * * An account can only be a member of a single pool. * * An account cannot join the same pool multiple times. * * This call will *not* dust the member account, so the member must have at least * `existential deposit + amount` in their account. * * Only a pool with [`PoolState::Open`] can be joined */ "join": Anonymize; /** * Bond `extra` more funds from `origin` into the pool to which they already belong. * * Additional funds can come from either the free balance of the account, of from the * accumulated rewards, see [`BondExtra`]. * * Bonding extra funds implies an automatic payout of all pending rewards as well. * See `bond_extra_other` to bond pending rewards of `other` members. */ "bond_extra": { "extra": NominationPoolsBondExtra; }; /** * A bonded member can use this to claim their payout based on the rewards that the pool * has accumulated since their last claimed payout (OR since joining if this is their first * time claiming rewards). The payout will be transferred to the member's account. * * The member will earn rewards pro rata based on the members stake vs the sum of the * members in the pools stake. Rewards do not "expire". * * See `claim_payout_other` to claim rewards on behalf of some `other` pool member. */ "claim_payout": undefined; /** * Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It * implicitly collects the rewards one last time, since not doing so would mean some * rewards would be forfeited. * * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any * account). * * # Conditions for a permissionless dispatch. * * * The pool is blocked and the caller is either the root or bouncer. This is refereed to * as a kick. * * The pool is destroying and the member is not the depositor. * * The pool is destroying, the member is the depositor and no other members are in the * pool. * * ## Conditions for permissioned dispatch (i.e. the caller is also the * `member_account`): * * * The caller is not the depositor. * * The caller is the depositor, the pool is destroying and no other members are in the * pool. * * # Note * * If there are too many unlocking chunks to unbond with the pool account, * [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks. * The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`] * to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks * are available). However, it may not be possible to release the current unlocking chunks, * in which case, the result of this call will likely be the `NoMoreChunks` error from the * staking system. */ "unbond": { "member_account": MultiAddress; "unbonding_points": bigint; }; /** * Call `withdraw_unbonded` for the pools account. This call can be made by any account. * * This is useful if there are too many unlocking chunks to call `unbond`, and some * can be cleared by withdrawing. In the case there are too many unlocking chunks, the user * would probably see an error like `NoMoreChunks` emitted from the staking system when * they attempt to unbond. */ "pool_withdraw_unbonded": { "pool_id": number; "num_slashing_spans": number; }; /** * Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an * error is returned. * * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any * account). * * # Conditions for a permissionless dispatch * * * The pool is in destroy mode and the target is not the depositor. * * The target is the depositor and they are the only member in the sub pools. * * The pool is blocked and the caller is either the root or bouncer. * * # Conditions for permissioned dispatch * * * The caller is the target and they are not the depositor. * * # Note * * - If the target is the depositor, the pool will be destroyed. * - If the pool has any pending slash, we also try to slash the member before letting them * withdraw. This calculation adds some weight overhead and is only defensive. In reality, * pool slashes must have been already applied via permissionless [`Call::apply_slash`]. */ "withdraw_unbonded": { "member_account": MultiAddress; "num_slashing_spans": number; }; /** * Create a new delegation pool. * * # Arguments * * * `amount` - The amount of funds to delegate to the pool. This also acts of a sort of * deposit since the pools creator cannot fully unbond funds until the pool is being * destroyed. * * `index` - A disambiguation index for creating the account. Likely only useful when * creating multiple pools in the same extrinsic. * * `root` - The account to set as [`PoolRoles::root`]. * * `nominator` - The account to set as the [`PoolRoles::nominator`]. * * `bouncer` - The account to set as the [`PoolRoles::bouncer`]. * * # Note * * In addition to `amount`, the caller will transfer the existential deposit; so the caller * needs at have at least `amount + existential_deposit` transferable. */ "create": { "amount": bigint; "root": MultiAddress; "nominator": MultiAddress; "bouncer": MultiAddress; }; /** * Create a new delegation pool with a previously used pool id * * # Arguments * * same as `create` with the inclusion of * * `pool_id` - `A valid PoolId. */ "create_with_pool_id": { "amount": bigint; "root": MultiAddress; "nominator": MultiAddress; "bouncer": MultiAddress; "pool_id": number; }; /** * Nominate on behalf of the pool. * * The dispatch origin of this call must be signed by the pool nominator or the pool * root role. * * This directly forwards the call to an implementation of `StakingInterface` (e.g., * `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool. * * # Note * * In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to * have at least `depositor_min_bond` in the pool to start nominating. */ "nominate": { "pool_id": number; "validators": Anonymize; }; /** * Set a new state for the pool. * * If a pool is already in the `Destroying` state, then under no condition can its state * change again. * * The dispatch origin of this call must be either: * * 1. signed by the bouncer, or the root role of the pool, * 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and * then the state of the pool can be permissionlessly changed to `Destroying`. */ "set_state": { "pool_id": number; "state": NominationPoolsPoolState; }; /** * Set a new metadata for the pool. * * The dispatch origin of this call must be signed by the bouncer, or the root role of the * pool. */ "set_metadata": { "pool_id": number; "metadata": Uint8Array; }; /** * Update configurations for the nomination pools. The origin for this call must be * [`Config::AdminOrigin`]. * * # Arguments * * * `min_join_bond` - Set [`MinJoinBond`]. * * `min_create_bond` - Set [`MinCreateBond`]. * * `max_pools` - Set [`MaxPools`]. * * `max_members` - Set [`MaxPoolMembers`]. * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]. * * `global_max_commission` - Set [`GlobalMaxCommission`]. */ "set_configs": { "min_join_bond": StakingPalletConfigOpBig; "min_create_bond": StakingPalletConfigOpBig; "max_pools": StakingPalletConfigOp; "max_members": StakingPalletConfigOp; "max_members_per_pool": StakingPalletConfigOp; "global_max_commission": StakingPalletConfigOp; }; /** * Update the roles of the pool. * * The root is the only entity that can change any of the roles, including itself, * excluding the depositor, who can never change. * * It emits an event, notifying UIs of the role change. This event is quite relevant to * most pool members and they should be informed of changes to pool roles. */ "update_roles": { "pool_id": number; "new_root": NominationPoolsConfigOp; "new_nominator": NominationPoolsConfigOp; "new_bouncer": NominationPoolsConfigOp; }; /** * Chill on behalf of the pool. * * The dispatch origin of this call can be signed by the pool nominator or the pool * root role, same as [`Pallet::nominate`]. * * This directly forwards the call to an implementation of `StakingInterface` (e.g., * `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool. * * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any * account). * * # Conditions for a permissionless dispatch: * * When pool depositor has less than `MinNominatorBond` staked, otherwise pool members * are unable to unbond. * * # Conditions for permissioned dispatch: * * The caller is the pool's nominator or root. */ "chill": Anonymize; /** * `origin` bonds funds from `extra` for some pool member `member` into their respective * pools. * * `origin` can bond extra funds from free balance or pending rewards when `origin == * other`. * * In the case of `origin != other`, `origin` can only bond extra pending rewards of * `other` members assuming set_claim_permission for the given member is * `PermissionlessCompound` or `PermissionlessAll`. */ "bond_extra_other": { "member": MultiAddress; "extra": NominationPoolsBondExtra; }; /** * Allows a pool member to set a claim permission to allow or disallow permissionless * bonding and withdrawing. * * # Arguments * * * `origin` - Member of a pool. * * `permission` - The permission to be applied. */ "set_claim_permission": { "permission": NominationPoolsClaimPermission; }; /** * `origin` can claim payouts on some pool member `other`'s behalf. * * Pool member `other` must have a `PermissionlessWithdraw` or `PermissionlessAll` claim * permission for this call to be successful. */ "claim_payout_other": { "other": SS58String; }; /** * Set the commission of a pool. * Both a commission percentage and a commission payee must be provided in the `current` * tuple. Where a `current` of `None` is provided, any current commission will be removed. * * - If a `None` is supplied to `new_commission`, existing commission will be removed. */ "set_commission": { "pool_id": number; "new_commission"?: Anonymize; }; /** * Set the maximum commission of a pool. * * - Initial max can be set to any `Perbill`, and only smaller values thereafter. * - Current commission will be lowered in the event it is higher than a new max * commission. */ "set_commission_max": Anonymize; /** * Set the commission change rate for a pool. * * Initial change rate is not bounded, whereas subsequent updates can only be more * restrictive than the current. */ "set_commission_change_rate": Anonymize; /** * Claim pending commission. * * The `root` role of the pool is _always_ allowed to claim the pool's commission. * * If the pool has set `CommissionClaimPermission::Permissionless`, then any account can * trigger the process of claiming the pool's commission. * * If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only * accounts * * `acc`, and * * the pool's root account * * may call this extrinsic on behalf of the pool. * * Pending commissions are paid out and added to the total claimed commission. * The total pending commission is reset to zero. */ "claim_commission": Anonymize; /** * Top up the deficit or withdraw the excess ED from the pool. * * When a pool is created, the pool depositor transfers ED to the reward account of the * pool. ED is subject to change and over time, the deposit in the reward account may be * insufficient to cover the ED deficit of the pool or vice-versa where there is excess * deposit to the pool. This call allows anyone to adjust the ED deposit of the * pool by either topping up the deficit or claiming the excess. */ "adjust_pool_deposit": Anonymize; /** * Set or remove a pool's commission claim permission. * * Determines who can claim the pool's pending commission. Only the `Root` role of the pool * is able to configure commission claim permissions. */ "set_commission_claim_permission": Anonymize; /** * Apply a pending slash on a member. * * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type: * [`adapter::StakeStrategyType::Delegate`]. * * The pending slash amount of the member must be equal or more than `ExistentialDeposit`. * This call can be dispatched permissionlessly (i.e. by any account). If the execution * is successful, fee is refunded and caller may be rewarded with a part of the slash * based on the [`crate::pallet::Config::StakeAdapter`] configuration. */ "apply_slash": { "member_account": MultiAddress; }; /** * Migrates delegated funds from the pool account to the `member_account`. * * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type: * [`adapter::StakeStrategyType::Delegate`]. * * This is a permission-less call and refunds any fee if claim is successful. * * If the pool has migrated to delegation based staking, the staked tokens of pool members * can be moved and held in their own account. See [`adapter::DelegateStake`] */ "migrate_delegation": { "member_account": MultiAddress; }; /** * Migrate pool from [`adapter::StakeStrategyType::Transfer`] to * [`adapter::StakeStrategyType::Delegate`]. * * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type: * [`adapter::StakeStrategyType::Delegate`]. * * This call can be dispatched permissionlessly, and refunds any fee if successful. * * If the pool has already migrated to delegation based staking, this call will fail. */ "migrate_pool_to_delegate_stake": Anonymize; }>; "VoterList": Enum<{ /** * Declare that some `dislocated` account has, through rewards or penalties, sufficiently * changed its score that it should properly fall into a different bag than its current * one. * * Anyone can call this function about any potentially dislocated account. * * Will always update the stored score of `dislocated` to the correct score, based on * `ScoreProvider`. * * If `dislocated` does not exists, it returns an error. */ "rebag": { "dislocated": MultiAddress; }; /** * Move the caller's Id directly in front of `lighter`. * * The dispatch origin for this call must be _Signed_ and can only be called by the Id of * the account going in front of `lighter`. Fee is payed by the origin under all * circumstances. * * Only works if: * * - both nodes are within the same bag, * - and `origin` has a greater `Score` than `lighter`. */ "put_in_front_of": { "lighter": MultiAddress; }; /** * Same as [`Pallet::put_in_front_of`], but it can be called by anyone. * * Fee is paid by the origin under all circumstances. */ "put_in_front_of_other": { "heavier": MultiAddress; "lighter": MultiAddress; }; }>; "StakingRcClient": Enum<{ /** * Called to indicate the start of a new session on the relay chain. */ "relay_session_report": { "report": { "end_index": number; "validator_points": Anonymize; "activation_timestamp"?: Anonymize; "leftover": boolean; }; }; "relay_new_offence_paged": { "offences": Array<[number, { "offender": SS58String; "reporters": Anonymize; "slash_fraction": number; }]>; }; /** * Set session keys for a validator. Keys are validated on AssetHub and forwarded to RC. * * On the first call, a deposit of `KeyDeposit` is held from the stash. Subsequent calls * do not charge again. The deposit is released on `purge_keys`. * * **Validation on AssetHub:** * - Keys are decoded as `T::RelayChainSessionKeys` to ensure they match RC's expected * format. * - Ownership proof is validated using `OpaqueKeys::ownership_proof_is_valid`. * * If validation passes, only the validated keys are sent to RC (with empty proof), * since RC trusts AH's validation. * * **Fees:** * The actual cost of this call is higher than what the weight-based fee estimate shows. * In addition to the local transaction weight fee, the stash account is charged an XCM * fee (delivery + RC execution cost) via `XcmExecutor::charge_fees`. The relay chain * uses `UnpaidExecution`, so the full remote cost is charged upfront on AssetHub. * * When called via a staking proxy, the proxy pays the transaction weight fee, * while the stash (delegating account) pays the XCM fee. * * **Max Fee Limit:** * Users can optionally specify `max_delivery_and_remote_execution_fee` to limit the * delivery + RC execution fee. This does not include the local transaction weight fee. If * the fee exceeds this limit, the operation fails with `FeesExceededMax`. Pass `None` for * unlimited (no cap). * * NOTE: unlike the current flow for new validators on RC (bond -> set_keys -> validate), * users on Asset Hub MUST call bond and validate BEFORE calling set_keys. Attempting to * set keys before declaring intent to validate will fail with NotValidator. */ "set_keys": { "keys": Uint8Array; "proof": Uint8Array; "max_delivery_and_remote_execution_fee"?: Anonymize; }; /** * Remove session keys for a validator and release the key deposit. * * This purges the keys from the Relay Chain. * * Unlike `set_keys`, this does not require the caller to be a registered validator. * This is intentional: a validator who has chilled (stopped validating) should still * be able to purge their session keys. This matches the behavior of the original * `pallet-session::purge_keys` which allows anyone to call it. * * The Relay Chain will reject the call with `NoKeys` error if the account has no * keys set. * * **Fees:** * The actual cost of this call is higher than what the weight-based fee estimate shows. * In addition to the local transaction weight fee, the caller is charged an XCM fee * (delivery + RC execution cost) via `XcmExecutor::charge_fees`. The relay chain uses * `UnpaidExecution`, so the full remote cost is charged upfront on AssetHub. * * When called via a staking proxy, the proxy pays the transaction weight fee, * while the delegating account pays the XCM fee. * * **Max Fee Limit:** * Users can optionally specify `max_delivery_and_remote_execution_fee` to limit the * delivery + RC execution fee. This does not include the local transaction weight fee. If * the fee exceeds this limit, the operation fails with `FeesExceededMax`. Pass `None` for * unlimited (no cap). */ "purge_keys": { "max_delivery_and_remote_execution_fee"?: Anonymize; }; }>; "MultiBlockElection": Enum<{ /** * Manage this pallet. * * The origin of this call must be [`Config::ManagerOrigin`]. * * See [`ManagerOperation`] for various operations that are possible. */ "manage": { "op": Enum<{ "ForceRotateRound": undefined; "ForceSetPhase": Anonymize; "EmergencyFallback": undefined; }>; }; "admin": { "op": Enum<{ "EmergencySetSolution": [Array<[SS58String, { "total": bigint; "voters": Array<[SS58String, bigint]>; }]>, Anonymize]; "SetMinUntrustedScore": Anonymize; }>; }; }>; "MultiBlockElectionVerifier": undefined; "MultiBlockElectionUnsigned": Enum<{ /** * Submit an unsigned solution. * * This works very much like an inherent, as only the validators are permitted to submit * anything. By default validators will compute this call in their `offchain_worker` hook * and try and submit it back. * * This is different from signed page submission mainly in that the solution page is * verified on the fly. * * The `paged_solution` may contain at most [`Config::MinerPages`] pages. They are * interpreted as msp -> lsp, as per [`crate::Pallet::msp_range_for`]. * * For example, if `Pages = 4`, and `MinerPages = 2`, our full snapshot range would be [0, * 1, 2, 3], with 3 being msp. But, in this case, then the `paged_raw_solution.pages` is * expected to correspond to `[snapshot(2), snapshot(3)]`. */ "submit_unsigned": { "paged_solution": { "solution_pages": Array>; "score": Anonymize; "round": number; }; }; }>; "MultiBlockElectionSigned": Enum<{ /** * Register oneself for an upcoming signed election. */ "register": { "claimed_score": Anonymize; }; /** * Submit a single page of a solution. * * Must always come after [`Pallet::register`]. * * `maybe_solution` can be set to `None` to erase the page. * * Collects deposits from the signed origin based on [`Config::DepositBase`] and * [`Config::DepositPerPage`]. */ "submit_page": { "page": number; "maybe_solution"?: (Anonymize) | undefined; }; /** * Retract a submission. * * A portion of the deposit may be returned, based on the [`Config::EjectGraceRatio`]. * * This will fully remove the solution from storage. */ "bail": undefined; /** * Clear the data of a submitter form an old round. * * The dispatch origin of this call must be signed, and the original submitter. * * This can only be called for submissions that end up being discarded, as in they are not * processed and they end up lingering in the queue. */ "clear_old_round_data": { "round": number; "witness_pages": number; }; /** * Set the invulnerable list. * * Dispatch origin must the the same as [`crate::Config::AdminOrigin`]. */ "set_invulnerables": { "inv": Anonymize; }; }>; "Staking": Enum<{ /** * Take the origin account as a stash and lock up `value` of its balance. `controller` will * be the account that controls it. * * `value` must be more than the `minimum_balance` specified by `T::Currency`. * * The dispatch origin for this call must be _Signed_ by the stash account. * * Emits `Bonded`. * * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned * unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed * as dust. */ "bond": { "value": bigint; "payee": StakingRewardDestination; }; /** * Add some extra amount that have appeared in the stash `free_balance` into the balance up * for staking. * * The dispatch origin for this call must be _Signed_ by the stash, not the controller. * * Use this if there are additional funds in your stash account that you wish to bond. * Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose * any limitation on the amount that can be added. * * Emits `Bonded`. */ "bond_extra": { "max_additional": bigint; }; /** * Schedule a portion of the stash to be unlocked ready for transfer out after the bond * period ends. If this leaves an amount actively bonded less than * [`asset::existential_deposit`], then it is increased to the full amount. * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. * * Once the unlock period is done, you can call `withdraw_unbonded` to actually move * the funds out of management ready for transfer. * * No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`) * can co-exists at the same time. If there are no unlocking chunks slots available * [`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible). * * If a user encounters the `InsufficientBond` error when calling this extrinsic, * they should call `chill` first in order to free up their bonded funds. * * Emits `Unbonded`. * * See also [`Call::withdraw_unbonded`]. */ "unbond": Anonymize; /** * Remove any stake that has been fully unbonded and is ready for withdrawal. * * Stake is considered fully unbonded once [`Config::BondingDuration`] has elapsed since * the unbonding was initiated. In rare cases—such as when offences for the unbonded era * have been reported but not yet processed—withdrawal is restricted to eras for which * all offences have been processed. * * The unlocked stake will be returned as free balance in the stash account. * * The dispatch origin for this call must be _Signed_ by the controller. * * Emits `Withdrawn`. * * See also [`Call::unbond`]. * * ## Parameters * * - `num_slashing_spans`: **Deprecated**. Retained only for backward compatibility; this * parameter has no effect. */ "withdraw_unbonded": { "num_slashing_spans": number; }; /** * Declare the desire to validate for the origin controller. * * Effects will be felt at the beginning of the next era. * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ "validate": { "prefs": Anonymize; }; /** * Declare the desire to nominate `targets` for the origin controller. * * Effects will be felt at the beginning of the next era. * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ "nominate": { "targets": Anonymize; }; /** * Declare no desire to either validate or nominate. * * Effects will be felt at the beginning of the next era. * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. * * ## Complexity * - Independent of the arguments. Insignificant complexity. * - Contains one read. * - Writes are limited to the `origin` account key. */ "chill": undefined; /** * (Re-)set the payment target for a controller. * * Effects will be felt instantly (as soon as this function is completed successfully). * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ "set_payee": { "payee": StakingRewardDestination; }; /** * (Re-)sets the controller of a stash to the stash itself. This function previously * accepted a `controller` argument to set the controller to an account other than the * stash itself. This functionality has now been removed, now only setting the controller * to the stash, if it is not already. * * Effects will be felt instantly (as soon as this function is completed successfully). * * The dispatch origin for this call must be _Signed_ by the stash, not the controller. */ "set_controller": undefined; /** * Sets the ideal number of validators. * * The dispatch origin must be Root. */ "set_validator_count": Anonymize; /** * Increments the ideal number of validators up to maximum of * `T::MaxValidatorSet`. * * The dispatch origin must be Root. */ "increase_validator_count": { "additional": number; }; /** * Scale up the ideal number of validators by a factor up to maximum of * `T::MaxValidatorSet`. * * The dispatch origin must be Root. */ "scale_validator_count": { "factor": number; }; /** * Force there to be no new eras indefinitely. * * The dispatch origin must be Root. * * # Warning * * The election process starts multiple blocks before the end of the era. * Thus the election process may be ongoing when this is called. In this case the * election will continue until the next era is triggered. */ "force_no_eras": undefined; /** * Force there to be a new era at the end of the next session. After this, it will be * reset to normal (non-forced) behaviour. * * The dispatch origin must be Root. * * # Warning * * The election process starts multiple blocks before the end of the era. * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ "force_new_era": undefined; /** * Force a current staker to become completely unstaked, immediately. * * The dispatch origin must be Root. * ## Parameters * * - `stash`: The stash account to be unstaked. * - `num_slashing_spans`: **Deprecated**. This parameter is retained for backward * compatibility. It no longer has any effect. */ "force_unstake": { "stash": SS58String; "num_slashing_spans": number; }; /** * Force there to be a new era at the end of sessions indefinitely. * * The dispatch origin must be Root. * * # Warning * * The election process starts multiple blocks before the end of the era. * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ "force_new_era_always": undefined; /** * Cancels scheduled slashes for a given era before they are applied. * * This function allows `T::AdminOrigin` to cancel pending slashes for specified validators * in a given era. The cancelled slashes are stored and will be checked when applying * slashes. * * ## Parameters * - `era`: The staking era for which slashes should be cancelled. This is the era where * the slash would be applied, not the era in which the offence was committed. * - `validator_slashes`: A list of validator stash accounts and their slash fractions to * be cancelled. */ "cancel_deferred_slash": { "era": number; "validator_slashes": Anonymize; }; /** * Pay out next page of the stakers behind a validator for the given era. * * - `validator_stash` is the stash account of the validator. * - `era` may be any era between `[current_era - history_depth; current_era]`. * * The origin of this call must be _Signed_. Any account can call this function, even if * it is not one of the stakers. * * The reward payout could be paged in case there are too many nominators backing the * `validator_stash`. This call will payout unpaid pages in an ascending order. To claim a * specific page, use `payout_stakers_by_page`.` * * If all pages are claimed, it returns an error `InvalidPage`. */ "payout_stakers": { "validator_stash": SS58String; "era": number; }; /** * Rebond a portion of the stash scheduled to be unlocked. * * The dispatch origin must be signed by the controller. */ "rebond": Anonymize; /** * Remove all data structures concerning a staker/stash once it is at a state where it can * be considered `dust` in the staking system. The requirements are: * * 1. the `total_balance` of the stash is below `min_chilled_bond` or is zero. * 2. or, the `ledger.total` of the stash is below `min_chilled_bond` or is zero. * * The former can happen in cases like a slash; the latter when a fully unbonded account * is still receiving staking rewards in `RewardDestination::Staked`. * * It can be called by anyone, as long as `stash` meets the above requirements. * * Refunds the transaction fees upon successful execution. * * ## Parameters * * - `stash`: The stash account to be reaped. * - `num_slashing_spans`: **Deprecated**. This parameter is retained for backward * compatibility. It no longer has any effect. */ "reap_stash": { "stash": SS58String; "num_slashing_spans": number; }; /** * Remove the given nominations from the calling validator. * * Effects will be felt at the beginning of the next era. * * The dispatch origin for this call must be _Signed_ by the controller, not the stash. * * - `who`: A list of nominator stash accounts who are nominating this validator which * should no longer be nominating this validator. * * Note: Making this call only makes sense if you first set the validator preferences to * block any further nominations. */ "kick": { "who": Anonymize; }; /** * Update the various staking configurations . * * * `min_nominator_bond`: The minimum active bond needed to be a nominator. * * `min_validator_bond`: The minimum active bond needed to be a validator. * * `max_nominator_count`: The max number of users who can be a nominator at once. When * set to `None`, no limit is enforced. * * `max_validator_count`: The max number of users who can be a validator at once. When * set to `None`, no limit is enforced. * * `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which * should be filled in order for the `chill_other` transaction to work. * * `min_commission`: The minimum amount of commission that each validators must maintain. * This is checked only upon calling `validate`. Existing validators are not affected. * * RuntimeOrigin must be Root to call this function. * * NOTE: Existing nominators and validators will not be affected by this update. * to kick people under the new limits, `chill_other` should be called. */ "set_staking_configs": { "min_nominator_bond": StakingPalletConfigOpBig; "min_validator_bond": StakingPalletConfigOpBig; "max_nominator_count": StakingPalletConfigOp; "max_validator_count": StakingPalletConfigOp; "chill_threshold": StakingPalletConfigOp; "min_commission": StakingPalletConfigOp; "max_staked_rewards": StakingPalletConfigOp; "are_nominators_slashable": Enum<{ "Noop": undefined; "Set": boolean; "Remove": undefined; }>; }; /** * Declare a `controller` to stop participating as either a validator or nominator. * * Effects will be felt at the beginning of the next era. * * The dispatch origin for this call must be _Signed_, but can be called by anyone. * * If the caller is the same as the controller being targeted, then no further checks are * enforced, and this function behaves just like `chill`. * * If the caller is different than the controller being targeted, the following conditions * must be met: * * * `controller` must belong to a nominator who has become non-decodable, * * Or: * * * A `ChillThreshold` must be set and checked which defines how close to the max * nominators or validators we must reach before users can start chilling one-another. * * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine * how close we are to the threshold. * * A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines * if this is a person that should be chilled because they have not met the threshold * bond required. * * This can be helpful if bond requirements are updated, and we need to remove old users * who do not satisfy these requirements. */ "chill_other": Anonymize; /** * Clamps a validator's commission to the `[MinCommission, MaxCommission]` range. * * Named `force_apply_min_commission` for legacy reasons — it also enforces the * maximum. Any account can call this. */ "force_apply_min_commission": { "validator_stash": SS58String; }; /** * Sets the minimum amount of commission that each validators must maintain. * * This call has lower privilege requirements than `set_staking_config` and can be called * by the `T::AdminOrigin`. Root can always call this. */ "set_min_commission": Anonymize; /** * Pay out a page of the stakers behind a validator for the given era and page. * * - `validator_stash` is the stash account of the validator. * - `era` may be any era between `[current_era - history_depth; current_era]`. * - `page` is the page index of nominators to pay out with value between 0 and * `num_nominators / T::MaxExposurePageSize`. * * The origin of this call must be _Signed_. Any account can call this function, even if * it is not one of the stakers. * * If a validator has more than [`Config::MaxExposurePageSize`] nominators backing * them, then the list of nominators is paged, with each page being capped at * [`Config::MaxExposurePageSize`]. If a validator has more than one page of nominators, * the call needs to be made for each page separately in order for all the nominators * backing a validator to receive the reward. The nominators are not sorted across pages * and so it should not be assumed the highest staker would be on the topmost page and vice * versa. If rewards are not claimed in [`Config::HistoryDepth`] eras, they are lost. * * The validator's own reward (commission + own-stake share) is prorated across pages * proportional to each page's stake. The full validator reward is the sum across all * pages. */ "payout_stakers_by_page": { "validator_stash": SS58String; "era": number; "page": number; }; /** * Migrates an account's `RewardDestination::Controller` to * `RewardDestination::Account(controller)`. * * Effects will be felt instantly (as soon as this function is completed successfully). * * This will waive the transaction fee if the `payee` is successfully migrated. */ "update_payee": { "controller": SS58String; }; /** * Updates a batch of controller accounts to their corresponding stash account if they are * not the same. Ignores any controller accounts that do not exist, and does not operate if * the stash and controller are already the same. * * Effects will be felt instantly (as soon as this function is completed successfully). * * The dispatch origin must be `T::AdminOrigin`. */ "deprecate_controller_batch": { "controllers": Anonymize; }; /** * Restores the state of a ledger which is in an inconsistent state. * * The requirements to restore a ledger are the following: * * The stash is bonded; or * * The stash is not bonded but it has a staking lock left behind; or * * If the stash has an associated ledger and its state is inconsistent; or * * If the ledger is not corrupted *but* its staking lock is out of sync. * * The `maybe_*` input parameters will overwrite the corresponding data and metadata of the * ledger associated with the stash. If the input parameters are not set, the ledger will * be reset values from on-chain state. */ "restore_ledger": { "stash": SS58String; "maybe_controller"?: Anonymize; "maybe_total"?: Anonymize; "maybe_unlocking"?: (Array<{ "value": bigint; "era": number; }>) | undefined; }; /** * Migrates permissionlessly a stash from locks to holds. * * This removes the old lock on the stake and creates a hold on it atomically. If all * stake cannot be held, the best effort is made to hold as much as possible. The remaining * stake is removed from the ledger. * * The fee is waived if the migration is successful. */ "migrate_currency": Anonymize; /** * Manually and permissionlessly applies a deferred slash for a given era. * * Normally, slashes are automatically applied shortly after the start of the `slash_era`. * The automatic application of slashes is handled by the pallet's internal logic, and it * tries to apply one slash page per block of the era. * If for some reason, one era is not enough for applying all slash pages, the remaining * slashes need to be manually (permissionlessly) applied. * * For a given era x, if at era x+1, slashes are still unapplied, all withdrawals get * blocked, and these need to be manually applied by calling this function. * This function exists as a **fallback mechanism** for this extreme situation, but we * never expect to encounter this in normal scenarios. * * The parameters for this call can be queried by looking at the `UnappliedSlashes` storage * for eras older than the active era. * * ## Parameters * - `slash_era`: The application era (`offence_era + SlashDeferDuration`), i.e. the key * into [`UnappliedSlashes`]. * - `slash_key`: A unique identifier for the slash, represented as a tuple: * - `stash`: The stash account of the validator being slashed. * - `slash_fraction`: The fraction of the stake that was slashed. * - `page_index`: The index of the exposure page being processed. * * ## Behavior * - The function is **permissionless**—anyone can call it. * - The `slash_era` **must be the current era or a past era**. * If it is in the future, the * call fails with `EraNotStarted`. * - The fee is waived if the slash is successfully applied. * * ## Future Improvement * - Implement an **off-chain worker (OCW) task** to automatically apply slashes when there * is unused block space, improving efficiency. */ "apply_slash": { "slash_era": number; "slash_key": [SS58String, number, number]; }; /** * Perform one step of era pruning to prevent PoV size exhaustion from unbounded deletions. * * This extrinsic enables permissionless lazy pruning of era data by performing * incremental deletion of storage items. Each call processes a limited number * of items based on available block weight to avoid exceeding block limits. * * Returns `Pays::No` when work is performed to incentivize regular maintenance. * Anyone can call this to help maintain the chain's storage health. * * The era must be eligible for pruning (older than HistoryDepth + 1). * Check `EraPruningState` storage to see if an era needs pruning before calling. */ "prune_era_step": Anonymize; /** * Sets the maximum commission that validators can set. * * The dispatch origin must be `T::AdminOrigin`. */ "set_max_commission": Anonymize; /** * Configure the validator self-stake incentive parameters. * * The dispatch origin must be `T::AdminOrigin`. * * Changes take effect in the next era when rewards are calculated. */ "set_validator_self_stake_incentive_config": { "optimum_self_stake": StakingPalletConfigOpBig; "hard_cap_self_stake": StakingPalletConfigOpBig; "self_stake_slope_factor": StakingPalletConfigOp; }; }>; "Revive": Enum<{ /** * A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server. * * # Parameters * * * `payload`: The encoded [`crate::evm::TransactionSigned`]. * * # Note * * This call cannot be dispatched directly; attempting to do so will result in a failed * transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the * signer and validating the transaction. */ "eth_transact": { "payload": Uint8Array; }; /** * Makes a call to an account, optionally transferring some balance. * * # Parameters * * * `dest`: Address of the contract to call. * * `value`: The balance to transfer from the `origin` to `dest`. * * `weight_limit`: The weight limit enforced when executing the constructor. * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the * caller to pay for the storage consumed. * * `data`: The input data to pass to the contract. * * * If the account is a smart-contract account, the associated code will be * executed and any value will be transferred. * * If the account is a regular account, any value will be transferred. * * If no account exists and the call value is not less than `existential_deposit`, * a regular account will be created and any value will be transferred. */ "call": { "dest": SizedHex<20>; "value": bigint; "weight_limit": Anonymize; "storage_deposit_limit": bigint; "data": Uint8Array; }; /** * Instantiates a contract from a previously deployed vm binary. * * This function is identical to [`Self::instantiate_with_code`] but without the * code deployment step. Instead, the `code_hash` of an on-chain deployed vm binary * must be supplied. */ "instantiate": { "value": bigint; "weight_limit": Anonymize; "storage_deposit_limit": bigint; "code_hash": SizedHex<32>; "data": Uint8Array; "salt"?: Anonymize; }; /** * Instantiates a new contract from the supplied `code` optionally transferring * some balance. * * This dispatchable has the same effect as calling [`Self::upload_code`] + * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please * also check the documentation of [`Self::upload_code`]. * * # Parameters * * * `value`: The balance to transfer from the `origin` to the newly created contract. * * `weight_limit`: The weight limit enforced when executing the constructor. * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved * from the caller to pay for the storage consumed. * * `code`: The contract code to deploy in raw bytes. * * `data`: The input data to pass to the contract constructor. * * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2` * semantics are used. If `None` then `CRATE1` is used. * * * Instantiation is executed as follows: * * - The supplied `code` is deployed, and a `code_hash` is created for that code. * - If the `code_hash` already exists on the chain the underlying `code` will be shared. * - The destination address is computed based on the sender, code_hash and the salt. * - The smart-contract account is created at the computed address. * - The `value` is transferred to the new account. * - The `deploy` function is executed in the context of the newly-created account. */ "instantiate_with_code": { "value": bigint; "weight_limit": Anonymize; "storage_deposit_limit": bigint; "code": Uint8Array; "data": Uint8Array; "salt"?: Anonymize; }; /** * Same as [`Self::instantiate_with_code`], but intended to be dispatched **only** * by an EVM transaction through the EVM compatibility layer. * * # Parameters * * * `value`: The balance to transfer from the `origin` to the newly created contract. * * `weight_limit`: The gas limit used to derive the transaction weight for transaction * payment * * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution * * `code`: The contract code to deploy in raw bytes. * * `data`: The input data to pass to the contract constructor. * * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction, * represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This * is used for building the Ethereum transaction root. * * effective_gas_price: the price of a unit of gas * * encoded len: the byte code size of the `eth_transact` extrinsic * * Calling this dispatchable ensures that the origin's nonce is bumped only once, * via the `CheckNonce` transaction extension. In contrast, [`Self::instantiate_with_code`] * also bumps the nonce after contract instantiation, since it may be invoked multiple * times within a batch call transaction. */ "eth_instantiate_with_code": { "value": Anonymize; "weight_limit": Anonymize; "eth_gas_limit": Anonymize; "code": Uint8Array; "data": Uint8Array; "transaction_encoded": Uint8Array; "effective_gas_price": Anonymize; "encoded_len": number; }; /** * Same as [`Self::call`], but intended to be dispatched **only** * by an EVM transaction through the EVM compatibility layer. * * # Parameters * * * `dest`: The Ethereum address of the account to be called * * `value`: The balance to transfer from the `origin` to the newly created contract. * * `weight_limit`: The gas limit used to derive the transaction weight for transaction * payment * * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution * * `data`: The input data to pass to the contract constructor. * * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction, * represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This * is used for building the Ethereum transaction root. * * effective_gas_price: the price of a unit of gas * * encoded len: the byte code size of the `eth_transact` extrinsic */ "eth_call": { "dest": SizedHex<20>; "value": Anonymize; "weight_limit": Anonymize; "eth_gas_limit": Anonymize; "data": Uint8Array; "transaction_encoded": Uint8Array; "effective_gas_price": Anonymize; "encoded_len": number; }; /** * Executes a Substrate runtime call from an Ethereum transaction. * * This dispatchable is intended to be called **only** through the EVM compatibility * layer. The provided call will be dispatched using `RawOrigin::Signed`. * * # Parameters * * * `origin`: Must be an [`Origin::EthTransaction`] origin. * * `call`: The Substrate runtime call to execute. * * `transaction_encoded`: The RLP encoding of the Ethereum transaction, */ "eth_substrate_call": { "call": TxCallData; "transaction_encoded": Uint8Array; }; /** * Upload new `code` without instantiating a contract from it. * * If the code does not already exist a deposit is reserved from the caller * The size of the reserve depends on the size of the supplied `code`. * * # Note * * Anyone can instantiate a contract from any uploaded code and thus prevent its removal. * To avoid this situation a constructor could employ access control so that it can * only be instantiated by permissioned entities. The same is true when uploading * through [`Self::instantiate_with_code`]. * * If the refcount of the code reaches zero after terminating the last contract that * references this code, the code will be removed automatically. */ "upload_code": { "code": Uint8Array; "storage_deposit_limit": bigint; }; /** * Remove the code stored under `code_hash` and refund the deposit to its owner. * * A code can only be removed by its original uploader (its owner) and only if it is * not used by any contract. */ "remove_code": Anonymize; /** * Privileged function that changes the code of an existing contract. * * This takes care of updating refcounts and all other necessary operations. Returns * an error if either the `code_hash` or `dest` do not exist. * * # Note * * This does **not** change the address of the contract in question. This means * that the contract address is no longer derived from its code hash after calling * this dispatchable. */ "set_code": { "dest": SizedHex<20>; "code_hash": SizedHex<32>; }; /** * Register the callers account id so that it can be used in contract interactions. * * This will error if the origin is already mapped or is a eth native `Address20`. It will * take a deposit that can be released by calling [`Self::unmap_account`]. * * Noop when [`Config::AutoMap`] is enabled, as accounts are automatically mapped * on creation via [`AutoMapper`]. */ "map_account": undefined; /** * Map many accounts and make the TX free if at least 90% were unmapped or held deposits. */ "batch_map_accounts": Anonymize; /** * Unregister the callers account id in order to free the deposit. * * There is no reason to ever call this function other than freeing up the deposit. * This is only useful when the account should no longer be used. * * Disabled when [`Config::AutoMap`] is enabled, as accounts are automatically unmapped * on kill via [`AutoMapper`]. */ "unmap_account": undefined; /** * Dispatch an `call` with the origin set to the callers fallback address. * * Every `AccountId32` can control its corresponding fallback account. The fallback account * is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a * recovery function in case an `AccountId20` was used without creating a mapping first. */ "dispatch_as_fallback_account": Anonymize; }>; "AhOps": Enum<{ /** * Unreserve the deposit that was taken for creating a crowdloan. * * This can be called by any signed origin. It unreserves the lease deposit on the account * that won the lease auction. It can be unreserved once all leases expired. Note that it * will be called automatically from `withdraw_crowdloan_contribution` for the matching * crowdloan account. * * Solo bidder accounts that won lease auctions can use this to unreserve their amount. */ "unreserve_lease_deposit": { "block": number; "depositor"?: Anonymize; "para_id": number; }; /** * Withdraw the contribution of a finished crowdloan. * * A crowdloan contribution can be withdrawn if either: * - The crowdloan failed to in an auction and timed out * - Won an auction and all leases expired * * Can be called by any signed origin. */ "withdraw_crowdloan_contribution": { "block": number; "depositor"?: Anonymize; "para_id": number; }; /** * Unreserve the deposit that was taken for creating a crowdloan. * * This can be called once either: * - The crowdloan failed to win an auction and timed out * - Won an auction, all leases expired and all contributions are withdrawn * * Can be called by any signed origin. The condition that all contributions are withdrawn * is in place since the reserve acts as a storage deposit. */ "unreserve_crowdloan_reserve": { "block": number; "depositor"?: Anonymize; "para_id": number; }; /** * Transfer the balance from the pre-migration treasury account to the post-migration * treasury account. * * This call can only be called after the migration is completed. */ "transfer_to_post_migration_treasury": Anonymize; /** * Translate recursively derived parachain sovereign child account to its sibling. * * Uses the same derivation path on the sibling. The old and new account arguments are only * witness data to ensure correct usage. Can only be called by the `MigrateOrigin`. * * This migrates: * - Native DOT balance * - All assets listed in `T::RelevantAssets` * - Staked balances * * Things like non-relevant assets or vested transfers may remain on the old account. */ "translate_para_sovereign_child_to_sibling_derived": { "para_id": number; "derivation_path": Anonymize; "old_account": SS58String; "new_account": SS58String; }; }>; }>; export type I8ofcg5rbj0g2c = { "remark": Uint8Array; }; export type I4adgbll7gku4i = { "pages": bigint; }; export type I6pjjpfvhvcfru = { "code": Uint8Array; }; export type I9pj91mj79qekl = { "items": Anonymize; }; export type I6pi5ou8r1hblk = Array>; export type I39uah9nss64h9 = { "keys": Anonymize; }; export type Itom7fk49o0c9 = Array; export type Ik64dknsq7k08 = { "prefix": Uint8Array; "subkeys": number; }; export type I3m5sq54sjdlso = {}; export type Ib51vk42m1po4n = { "code_hash": SizedHex<32>; }; export type I3u72uvpuo4qrt = AnonymousEnum<{ /** * 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. */ "set_validation_data": { "data": { "validation_data": Anonymize; "relay_chain_state": Anonymize; "relay_parent_descendants": Anonymize; "collator_peer_id"?: Anonymize; }; "inbound_messages_data": { "downward_messages": { "full_messages": Anonymize; "hashed_messages": Array>; }; "horizontal_messages": { "full_messages": Array<[number, Anonymize]>; "hashed_messages": Array<[number, Anonymize]>; }; }; }; "sudo_send_upward_message": Anonymize; }>; export type Ifn6q3equiq9qi = { "parent_head": Uint8Array; "relay_parent_number": number; "relay_parent_storage_root": SizedHex<32>; "max_pov_size": number; }; export type I935sp4t02t2v1 = Array>; export type Ic952bubvq4k7d = { "parent_hash": SizedHex<32>; "number": number; "state_root": SizedHex<32>; "extrinsics_root": SizedHex<32>; "digest": Array; }; export type DigestItem = Enum<{ "PreRuntime": [SizedHex<4>, Uint8Array]; "Consensus": [SizedHex<4>, Uint8Array]; "Seal": [SizedHex<4>, Uint8Array]; "Other": Uint8Array; "RuntimeEnvironmentUpdated": undefined; }>; export declare const DigestItem: GetEnum; export type Iabpgqcjikia83 = (Uint8Array) | undefined; export type I6ljjd4b5fa4ov = Array<{ "sent_at": number; "msg": Uint8Array; }>; export type Icqnh9ino03itn = { "sent_at": number; "msg_hash": SizedHex<32>; }; export type I409qo0sfkbh16 = { "sent_at": number; "data": Uint8Array; }; export type Ifpj261e8s63m3 = { "message": Uint8Array; }; export type I7d75gqfg6jh9c = AnonymousEnum<{ /** * 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": { "now": bigint; }; }>; export type If81ks88t5mpk5 = AnonymousEnum<{ /** * Register a preimage on-chain. * * If the preimage was previously requested, no fees or deposits are taken for providing * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. */ "note_preimage": { "bytes": Uint8Array; }; /** * Clear an unrequested preimage from the runtime storage. * * If `len` is provided, then it will be a much cheaper operation. * * - `hash`: The hash of the preimage to be removed from the store. * - `len`: The length of the preimage of `hash`. */ "unnote_preimage": Anonymize; /** * Request a preimage be uploaded to the chain without paying any fees or deposits. * * If the preimage requests has already been provided on-chain, we unreserve any deposit * a user may have paid, and take the control of the preimage out of their hands. */ "request_preimage": Anonymize; /** * Clear a previously made request for a preimage. * * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. */ "unrequest_preimage": Anonymize; /** * Ensure that the bulk of pre-images is upgraded. * * The caller pays no fee if at least 90% of pre-images were successfully updated. */ "ensure_updated": { "hashes": Anonymize; }; }>; export type I1jm8m1rh9e20v = { "hash": SizedHex<32>; }; export type Ic5m5lp1oioo8r = Array>; export type Iep7au1720bm0e = (Anonymize) | undefined; export type I9jd27rnpm8ttv = FixedSizeArray<2, number>; export type I5n4sebgkfr760 = { "when": number; "index": number; }; export type Ifs1i5fk9cqvr6 = { "id": SizedHex<32>; }; export type Ieg3fd8p4pkt10 = { "task": Anonymize; "retries": number; "period": number; }; export type I8kg5ll427kfqq = { "id": SizedHex<32>; "retries": number; "period": number; }; export type I467333262q1l9 = { "task": Anonymize; }; export type Idqsmalvqe2q98 = FixedSizeArray<1, Anonymize>; export type I4oqb168b2d4er = AnonymousEnum<{ /** * Allows root to set a cursor to forcefully start, stop or forward the migration process. * * Should normally not be needed and is only in place as emergency measure. Note that * restarting the migration process in this manner will not call the * [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event. */ "force_set_cursor": { "cursor"?: (Enum<{ "Active": { "index": number; "inner_cursor"?: Anonymize; "started_at": number; }; "Stuck": undefined; }>) | undefined; }; /** * Allows root to set an active cursor to forcefully start/forward the migration process. * * This is an edge-case version of [`Self::force_set_cursor`] that allows to set the * `started_at` value to the next block number. Otherwise this would not be possible, since * `force_set_cursor` takes an absolute block number. Setting `started_at` to `None` * indicates that the current block number plus one should be used. */ "force_set_active_cursor": { "index": number; "inner_cursor"?: Anonymize; "started_at"?: Anonymize; }; /** * Forces the onboarding of the migrations. * * This process happens automatically on a runtime upgrade. It is in place as an emergency * measurement. The cursor needs to be `None` for this to succeed. */ "force_onboard_mbms": undefined; /** * Clears the `Historic` set. * * `map_cursor` must be set to the last value that was returned by the * `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a * way that will result in a sensible weight. */ "clear_historic": { "selector": Enum<{ "Specific": Anonymize; "Wildcard": { "limit"?: Anonymize; "previous_cursor"?: Anonymize; }; }>; }; }>; export type I9svldsp29mh87 = AnonymousEnum<{ /** * 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. */ "transfer_allow_death": { "dest": MultiAddress; "value": bigint; }; /** * Exactly as `transfer_allow_death`, except the origin must be root and the source account * may be specified. */ "force_transfer": { "source": MultiAddress; "dest": MultiAddress; "value": bigint; }; /** * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not * kill the origin account. * * 99% of the time you want [`transfer_allow_death`] instead. * * [`transfer_allow_death`]: struct.Pallet.html#method.transfer */ "transfer_keep_alive": { "dest": MultiAddress; "value": bigint; }; /** * Transfer the entire transferable balance from the caller account. * * NOTE: This function only attempts to transfer _transferable_ balances. This means that * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be * transferred by this function. To ensure that this function results in a killed account, * you might need to prepare the account by removing any reference counters, storage * deposits, etc... * * The dispatch origin of this call must be Signed. * * - `dest`: The recipient of the transfer. * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all * of the funds the account has, causing the sender account to be killed (false), or * transfer everything except at least the existential deposit, which will guarantee to * keep the sender account alive (true). */ "transfer_all": { "dest": MultiAddress; "keep_alive": boolean; }; /** * Unreserve some balance from a user by force. * * Can only be called by ROOT. */ "force_unreserve": { "who": MultiAddress; "amount": bigint; }; /** * Upgrade a specified account. * * - `origin`: Must be `Signed`. * - `who`: The account to be upgraded. * * This will waive the transaction fee if at least all but 10% of the accounts needed to * be upgraded. (We let some not have to be upgraded just in order to allow for the * possibility of churn). */ "upgrade_accounts": Anonymize; /** * Set the regular balance of a given account. * * The dispatch origin for this call is `root`. */ "force_set_balance": { "who": MultiAddress; "new_free": bigint; }; /** * Adjust the total issuance in a saturating way. * * Can only be called by root and always needs a positive `delta`. * * # Example */ "force_adjust_total_issuance": Anonymize; /** * 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": Anonymize; }>; export type MultiAddress = Enum<{ "Id": SS58String; "Index": undefined; "Raw": Uint8Array; "Address32": SizedHex<32>; "Address20": SizedHex<20>; }>; export declare const MultiAddress: GetEnum; export type Ibmr18suc9ikh9 = { "who": Anonymize; }; export type Ia2lhg7l2hilo3 = Array; export type I5u8olqbbvfnvf = { "direction": BalancesAdjustmentDirection; "delta": bigint; }; export type BalancesAdjustmentDirection = Enum<{ "Increase": undefined; "Decrease": undefined; }>; export declare const BalancesAdjustmentDirection: GetEnum; export type I5utcetro501ir = { "value": bigint; "keep_alive": boolean; }; export type I4aro1m78pdrtt = { "locked": bigint; "per_block": bigint; "starting_block": number; }; export type ClaimsStatementKind = Enum<{ "Regular": undefined; "Saft": undefined; }>; export declare const ClaimsStatementKind: GetEnum; export type Ihfphjolmsqq1 = (SS58String) | undefined; export type Ib2ccgbk23rsam = Array<[Uint8Array, number]>; export type I9dpq5287dur8b = AnonymousEnum<{ /** * 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`. */ "set_invulnerables": { "new": Anonymize; }; /** * 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`. */ "set_desired_candidates": { "max": number; }; /** * Set the candidacy bond amount. * * If the candidacy bond is increased by this call, all current candidates which have a * deposit lower than the new bond will be kicked from the list and get their deposits * back. * * The origin for this call must be the `UpdateOrigin`. */ "set_candidacy_bond": { "bond": bigint; }; /** * Register this account as a collator candidate. The account must (a) already have * registered session keys and (b) be able to reserve the `CandidacyBond`. * * This call is not available to `Invulnerable` collators. */ "register_as_candidate": undefined; /** * 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`. */ "leave_intent": undefined; /** * 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`. */ "add_invulnerable": Anonymize; /** * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must * be sorted. * * The origin for this call must be the `UpdateOrigin`. */ "remove_invulnerable": Anonymize; /** * 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. */ "update_bond": { "new_deposit": bigint; }; /** * The caller `origin` replaces a candidate `target` in the collator candidate list by * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than * the existing bond of the target it is trying to replace. * * This call will fail if the caller is already a collator candidate or invulnerable, the * caller does not have registered session keys, the target is not a collator candidate, * and/or the `deposit` amount cannot be reserved. */ "take_candidate_slot": { "deposit": bigint; "target": SS58String; }; }>; export type I4cbvqmqadhrea = { "who": SS58String; }; export type I77dda7hps0u37 = AnonymousEnum<{ /** * 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. * * - `origin`: The dispatch origin of this function must be signed. * - `keys`: The new session keys to set. These are the public keys of all sessions keys * setup in the runtime. * - `proof`: The proof that `origin` has access to the private keys of `keys`. See * [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the * proof format. */ "set_keys": { "keys": SizedHex<32>; "proof": Uint8Array; }; /** * 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). */ "purge_keys": undefined; }>; export type Ib7tahn20bvsep = AnonymousEnum<{ /** * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. * * - `origin`: Must pass `ControllerOrigin`. */ "suspend_xcm_execution": undefined; /** * 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`. */ "resume_xcm_execution": undefined; /** * 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` */ "update_suspend_threshold": Anonymize; /** * 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` */ "update_drop_threshold": Anonymize; /** * 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` */ "update_resume_threshold": Anonymize; }>; export type I3vh014cqgmrfd = { "new": number; }; export type Ic2uoe7jdksosp = AnonymousEnum<{ /** * Remove a page which has no more messages remaining to be processed or is stale. */ "reap_page": { "message_origin": Anonymize; "page_index": number; }; /** * Execute an overweight message. * * Temporary processing errors will be propagated whereas permanent errors are treated * as success condition. * * - `origin`: Must be `Signed`. * - `message_origin`: The origin from which the message to be executed arrived. * - `page`: The page in the queue in which the message to be executed is sitting. * - `index`: The index into the queue of the message to be executed. * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution * of the message. * * Benchmark complexity considerations: O(index + weight_limit). */ "execute_overweight": { "message_origin": Anonymize; "page": number; "index": number; "weight_limit": Anonymize; }; }>; export type Iejeo53sea6n4q = AnonymousEnum<{ "Here": undefined; "Parent": undefined; "Sibling": number; }>; export type I9i6b1362umn1t = { "mode": Anonymize; }; export type Ibqjcgmcid3dll = AnonymousEnum<{ "Normal": undefined; "Halted": undefined; }>; export type Ia47pat0p8ipkl = { "name": Uint8Array; "symbol": Uint8Array; "decimals": number; }; export type I7gjv4h838nbot = AnonymousEnum<{ "Inbound": bigint; "Outbound": bigint; }>; export type I95jfd8j5cr5eh = (Anonymize) | undefined; export type Itvprrpb0nm3o = { "height": number; "index": number; }; export type Ideaemvoneh309 = { "threshold": number; "other_signatories": Anonymize; "maybe_timepoint"?: Anonymize; "call_hash": SizedHex<32>; "max_weight": Anonymize; }; export type I3d9o9d7epp66v = { "threshold": number; "other_signatories": Anonymize; "timepoint": Anonymize; "call_hash": SizedHex<32>; }; export type I6lqh1vgb4mcja = { "threshold": number; "other_signatories": Anonymize; "call_hash": SizedHex<32>; }; export type Ivujr393rmtoa = (Anonymize) | undefined; export type Idugco9k7jdh0f = AnonymousEnum<{ "Any": undefined; "NonTransfer": undefined; "CancelProxy": undefined; "Assets": undefined; "AssetOwner": undefined; "AssetManager": undefined; "Collator": undefined; "Governance": undefined; "Staking": undefined; "NominationPools": undefined; "Auction": undefined; "ParaRegistration": undefined; "StakingOperator": undefined; }>; export type I2eb501t8s6hsq = { "real": MultiAddress; "call_hash": SizedHex<32>; }; export type Ianmuoljk2sk1u = { "delegate": MultiAddress; "call_hash": SizedHex<32>; }; export type I666bl2fqjkejo = { "index": number; }; export type I35l6p7kq19mr0 = Array; export type I59th026dnaruk = { "items": number; "item_metadatas": number; "attributes": number; }; export type Ia0jlc0rcbskuk = (MultiAddress) | undefined; export type Ibgvkh96s68a66 = { "collection": number; "item": number; "dest": MultiAddress; }; export type If9vko7pv0231m = { "collection": number; "items": Anonymize; }; export type Icgljjb6j82uhn = Array; export type Iafkqus0ohh6l6 = { "collection": number; "item": number; }; export type I6cu7obfo0rr0o = { "collection": number; }; export type I736lv5q9m5bot = { "collection": number; "new_owner": MultiAddress; }; export type Ib92t90p616grb = { "collection": number; "item": number; "delegate": MultiAddress; }; export type I5tvvgui05tn6e = { "collection": number; "maybe_item"?: Anonymize; "key": Uint8Array; "value": Uint8Array; }; export type Ibal0joadvdc2h = { "collection": number; "maybe_item"?: Anonymize; "key": Uint8Array; }; export type Iceq9fmmp9aeqv = { "collection": number; "item": number; "data": Uint8Array; "is_frozen": boolean; }; export type I9viqhmdtuof5e = { "collection": number; "data": Uint8Array; "is_frozen": boolean; }; export type Ibqooroq6rr5kr = { "maybe_collection"?: Anonymize; }; export type I6h88h8vba22v8 = { "collection": number; "max_supply": number; }; export type Ia9cd4jqb5eecb = { "collection": number; "item": number; "price"?: Anonymize; "whitelisted_buyer"?: Anonymize; }; export type I19jiel1ftbcce = { "collection": number; "item": number; "bid_price": bigint; }; export type I72ndo6phms8ik = { "settings": bigint; "max_supply"?: Anonymize; "mint_settings": Anonymize; }; export type Ia3s8qquibn97v = { "mint_type": Enum<{ "Issuer": undefined; "Public": undefined; "HolderOf": number; }>; "price"?: Anonymize; "start_block"?: Anonymize; "end_block"?: Anonymize; "default_item_settings": bigint; }; export type I1jj31tn29ie3c = { "collection": number; "item": number; "lock_metadata": boolean; "lock_attributes": boolean; }; export type I5llu6o6a0go5i = { "collection": number; "maybe_item"?: Anonymize; "namespace": Anonymize; "key": Uint8Array; "value": Uint8Array; }; export type If3jjadhmug6qc = AnonymousEnum<{ "Pallet": undefined; "CollectionOwner": undefined; "ItemOwner": undefined; "Account": SS58String; }>; export type I93r2effh7od84 = { "collection": number; "maybe_item"?: Anonymize; "namespace": Anonymize; "key": Uint8Array; }; export type Icrkms46uh8tpb = { "collection": number; "item": number; "data": Uint8Array; }; export type I78u60nqh0etah = { "collection": number; "data": Uint8Array; }; export type I6oogc1jbmmi81 = ({ "amount": bigint; "direction": Enum<{ "Send": undefined; "Receive": undefined; }>; }) | undefined; export type I3fo6882e5tjh8 = AnonymousEnum<{ "Ed25519": SizedHex<64>; "Sr25519": SizedHex<64>; "Ecdsa": SizedHex<65>; "Eth": SizedHex<65>; }>; export type If2801grpltbp8 = Array<{ "reserve": Anonymize; "teleportable": boolean; }>; export type I40r0k8147eovg = Array>; export type Icm9m0qeemu66d = { "proposal_id": number; }; export type I2q3ri6itcjj5u = AnonymousEnum<{ "V3": { "location": Anonymize; "asset_id": XcmV3MultiassetAssetId; }; "V4": { "location": Anonymize; "asset_id": Anonymize; }; "V5": { "location": Anonymize; "asset_id": Anonymize; }; }>; export type I11rphme8avgla = AnonymousEnum<{ "V4": { "location": Anonymize; "account_id": Anonymize; }; "V5": { "location": Anonymize; "account_id": Anonymize; }; }>; export type Idnsr2pndm36h0 = { "poll_index": number; "vote": ConvictionVotingVoteAccountVote; }; export type ConvictionVotingVoteAccountVote = Enum<{ "Standard": Anonymize; "Split": Anonymize; "SplitAbstain": { "aye": bigint; "nay": bigint; "abstain": bigint; }; }>; export declare const ConvictionVotingVoteAccountVote: GetEnum; export type Ib024p97ls1cla = { "vote": number; "balance": bigint; }; export type I5pi71t9bosoiv = { "aye": bigint; "nay": bigint; }; export type VotingConviction = Enum<{ "None": undefined; "Locked1x": undefined; "Locked2x": undefined; "Locked3x": undefined; "Locked4x": undefined; "Locked5x": undefined; "Locked6x": undefined; }>; export declare const VotingConviction: GetEnum; export type I8steo882k7qns = { "class": number; }; export type I5f178ab6b89t3 = { "class"?: Anonymize; "index": number; }; export type PreimagesBounded = Enum<{ "Legacy": Anonymize; "Inline": Uint8Array; "Lookup": { "hash": SizedHex<32>; "len": number; }; }>; export declare const PreimagesBounded: GetEnum; export type TraitsScheduleDispatchTime = Enum<{ "At": number; "After": number; }>; export declare const TraitsScheduleDispatchTime: GetEnum; export type Icbio0e1f0034b = { "track": number; }; export type I8c0vkqjjipnuj = { "index": number; "maybe_hash"?: Anonymize; }; export type I4s6vifaf8k998 = (SizedHex<32>) | undefined; export type I1adbcfi5uc62r = { "call_hash": SizedHex<32>; }; export type Ibf6ucefn8fh49 = { "call_hash": SizedHex<32>; "call_encoded_len": number; "call_weight_witness": Anonymize; }; export type I2ntlmm4bbil8d = { "call": TxCallData; }; export type Ia9p5bg6p18r0i = { "bounty_id": number; }; export type I9c4d50jrp7as1 = { "asset_kind": Anonymize; "rate": bigint; }; export type Ifplevr9hp8jo3 = { "asset_kind": Anonymize; }; export type I39l72gdmkk30t = AnonymousEnum<{ /** * Control the automatic migration. * * The dispatch origin of this call must be [`Config::ControlOrigin`]. */ "control_auto_migration": { "maybe_config"?: (Anonymize) | undefined; }; /** * Continue the migration for the given `limits`. * * The dispatch origin of this call can be any signed account. * * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit, * Upon successful execution, the transaction fee is returned. * * The (potentially over-estimated) of the byte length of all the data read must be * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing * that executing the current `MigrationTask` with the given `limits` will not exceed * `real_size_upper` bytes of read data. * * The `witness_task` is merely a helper to prevent the caller from being slashed or * generally trigger a migration that they do not intend. This parameter is just a message * from caller, saying that they believed `witness_task` was the last state of the * migration, and they only wish for their transaction to do anything, if this assumption * holds. In case `witness_task` does not match, the transaction fails. * * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the * recommended way of doing this is to pass a `limit` that only bounds `count`, as the * `size` limit can always be overwritten. */ "continue_migrate": { "limits": Anonymize; "real_size_upper": number; "witness_task": { "progress_top": Anonymize; "progress_child": Anonymize; "size": number; "top_items": number; "child_items": number; }; }; /** * Migrate the list of top keys by iterating each of them one by one. * * This does not affect the global migration process tracker ([`MigrationProcess`]), and * should only be used in case any keys are leftover due to a bug. */ "migrate_custom_top": { "keys": Anonymize; "witness_size": number; }; /** * Migrate the list of child keys by iterating each of them one by one. * * All of the given child keys must be present under one `child_root`. * * This does not affect the global migration process tracker ([`MigrationProcess`]), and * should only be used in case any keys are leftover due to a bug. */ "migrate_custom_child": { "root": Uint8Array; "child_keys": Anonymize; "total_size": number; }; /** * Set the maximum limit of the signed migration. */ "set_signed_max_limits": { "limits": Anonymize; }; /** * Forcefully set the progress the running migration. * * This is only useful in one case: the next key to migrate is too big to be migrated with * a signed account, in a parachain context, and we simply want to skip it. A reasonable * example of this would be `:code:`, which is both very expensive to migrate, and commonly * used, so probably it is already migrated. * * In case you mess things up, you can also, in principle, use this to reset the migration * process. */ "force_set_progress": { "progress_top": Anonymize; "progress_child": Anonymize; }; }>; export type I215mkl885p4da = { "size": number; "item": number; }; export type I1ufmh6d8psvik = AnonymousEnum<{ "ToStart": undefined; "LastKey": Uint8Array; "Complete": undefined; }>; export type Ieg1oc56mamrl5 = { "amount": bigint; "pool_id": number; }; export type NominationPoolsBondExtra = Enum<{ "FreeBalance": bigint; "Rewards": undefined; }>; export declare const NominationPoolsBondExtra: GetEnum; export type NominationPoolsPoolState = Enum<{ "Open": undefined; "Blocked": undefined; "Destroying": undefined; }>; export declare const NominationPoolsPoolState: GetEnum; export type StakingPalletConfigOpBig = Enum<{ "Noop": undefined; "Set": bigint; "Remove": undefined; }>; export declare const StakingPalletConfigOpBig: GetEnum; export type StakingPalletConfigOp = Enum<{ "Noop": undefined; "Set": number; "Remove": undefined; }>; export declare const StakingPalletConfigOp: GetEnum; export type NominationPoolsConfigOp = Enum<{ "Noop": undefined; "Set": SS58String; "Remove": undefined; }>; export declare const NominationPoolsConfigOp: GetEnum; export type I931cottvong90 = { "pool_id": number; }; export type NominationPoolsClaimPermission = Enum<{ "Permissioned": undefined; "PermissionlessCompound": undefined; "PermissionlessWithdraw": undefined; "PermissionlessAll": undefined; }>; export declare const NominationPoolsClaimPermission: GetEnum; export type Ie8iutm7u02lmj = (Anonymize) | undefined; export type I7svnfko10tq2e = [number, SS58String]; export type I8cbluptqo8kbp = { "pool_id": number; "max_commission": number; }; export type I81cc4plffa1dm = { "pool_id": number; "change_rate": { "max_increase": number; "min_delay": number; }; }; export type I3ihan8icf0c5k = { "pool_id": number; "permission"?: (NominationPoolsCommissionClaimPermission) | undefined; }; export type NominationPoolsCommissionClaimPermission = Enum<{ "Permissionless": undefined; "Account": SS58String; }>; export declare const NominationPoolsCommissionClaimPermission: GetEnum; export type I205qrookusi3d = Array>; export type I6ouflveob4eli = [SS58String, number]; export type I76de2jfh8ds4a = ([bigint, number]) | undefined; export type I7d4qtdlascfk8 = AnonymousEnum<{ "Off": undefined; "Signed": number; "SignedValidation": number; "Unsigned": number; "Snapshot": number; "Done": undefined; "Export": number; "Emergency": undefined; }>; export type I8s6n43okuj2b1 = { "minimal_stake": bigint; "sum_stake": bigint; "sum_stake_squared": bigint; }; export type I1nvcsqg39g26j = { "votes1": Array>; "votes2": Array<[number, Anonymize, number]>; "votes3": Array<[number, FixedSizeArray<2, Anonymize>, number]>; "votes4": Array<[number, FixedSizeArray<3, Anonymize>, number]>; "votes5": Array<[number, FixedSizeArray<4, Anonymize>, number]>; "votes6": Array<[number, FixedSizeArray<5, Anonymize>, number]>; "votes7": Array<[number, FixedSizeArray<6, Anonymize>, number]>; "votes8": Array<[number, FixedSizeArray<7, Anonymize>, number]>; "votes9": Array<[number, FixedSizeArray<8, Anonymize>, number]>; "votes10": Array<[number, FixedSizeArray<9, Anonymize>, number]>; "votes11": Array<[number, FixedSizeArray<10, Anonymize>, number]>; "votes12": Array<[number, FixedSizeArray<11, Anonymize>, number]>; "votes13": Array<[number, FixedSizeArray<12, Anonymize>, number]>; "votes14": Array<[number, FixedSizeArray<13, Anonymize>, number]>; "votes15": Array<[number, FixedSizeArray<14, Anonymize>, number]>; "votes16": Array<[number, FixedSizeArray<15, Anonymize>, number]>; }; export type I5g2vv0ckl2m8b = [number, number]; export type StakingRewardDestination = Enum<{ "Staked": undefined; "Stash": undefined; "Controller": undefined; "Account": SS58String; "None": undefined; }>; export declare const StakingRewardDestination: GetEnum; export type Ie5v6njpckr05b = { "value": bigint; }; export type I9o7ssi9vmhmgr = { "commission": number; "blocked": boolean; }; export type I28gn91b2ttnbk = Array; export type Idl3umm12u5pa = { "stash": SS58String; }; export type I9bur6p3ovq9mo = { "era": number; }; export type I4totqt881mlti = FixedSizeArray<4, bigint>; export type I9gel4bv68gacj = { "accounts": Anonymize; }; export type I22bm4d7re21j9 = { "asset_id": Anonymize; }; export type I7d04odr0ekssi = ResultPayload<{ "execution_result": Anonymize; "emitted_events": Anonymize; "local_xcm"?: (XcmVersionedXcm) | undefined; "forwarded_xcms": Anonymize; }, Anonymize>; export type I8vl1iaqsoibq5 = ResultPayload, { "post_info": Anonymize; "error": Anonymize; }>; export type Ia1u1r3n74r13c = { "actual_weight"?: Anonymize; "pays_fee": Anonymize; }; export type Iehg04bj71rkd = AnonymousEnum<{ "Yes": undefined; "No": undefined; }>; export type Ic4j5dic3ka9rg = AnonymousEnum<{ "Other": undefined; "CannotLookup": undefined; "BadOrigin": undefined; "Module": Enum<{ "System": Anonymize; "ParachainSystem": Anonymize; "Preimage": Anonymize; "Scheduler": Anonymize; "MultiBlockMigrations": Anonymize; "Balances": Anonymize; "Vesting": Anonymize; "Claims": Anonymize; "Dap": Anonymize; "CollatorSelection": Anonymize; "Session": Anonymize; "XcmpQueue": Anonymize; "PolkadotXcm": Anonymize; "MessageQueue": Anonymize; "SnowbridgeSystemFrontend": Anonymize; "Utility": Anonymize; "Multisig": Anonymize; "Proxy": Anonymize; "Indices": Anonymize; "Assets": Anonymize; "Uniques": Anonymize; "Nfts": Anonymize; "ForeignAssets": Anonymize; "PoolAssets": Anonymize; "AssetConversion": Anonymize; "Treasury": Anonymize; "ConvictionVoting": Anonymize; "Referenda": Anonymize; "Whitelist": Anonymize; "Bounties": Anonymize; "ChildBounties": Anonymize; "AssetRate": Anonymize; "MultiAssetBounties": Anonymize; "StateTrieMigration": Anonymize; "NominationPools": Anonymize; "VoterList": Anonymize; "DelegatedStaking": Anonymize; "StakingRcClient": Anonymize; "MultiBlockElection": Anonymize; "MultiBlockElectionSigned": Anonymize; "Staking": Anonymize; "Revive": Anonymize; "AssetsPrecompilesPermit": Anonymize; "AhOps": Anonymize; }>; "ConsumerRemaining": undefined; "NoProviders": undefined; "TooManyConsumers": undefined; "Token": TokenError; "Arithmetic": ArithmeticError; "Transactional": TransactionalError; "Exhausted": undefined; "Corruption": undefined; "Unavailable": undefined; "RootNotAllowed": undefined; "Trie": Enum<{ "InvalidStateRoot": undefined; "IncompleteDatabase": undefined; "ValueAtIncompleteKey": undefined; "DecoderError": undefined; "InvalidHash": undefined; "DuplicateKey": undefined; "ExtraneousNode": undefined; "ExtraneousValue": undefined; "ExtraneousHashReference": undefined; "InvalidChildReference": undefined; "ValueMismatch": undefined; "IncompleteProof": undefined; "RootMismatch": undefined; "DecodeError": undefined; }>; }>; export type TokenError = Enum<{ "FundsUnavailable": undefined; "OnlyProvider": undefined; "BelowMinimum": undefined; "CannotCreate": undefined; "UnknownAsset": undefined; "Frozen": undefined; "Unsupported": undefined; "CannotCreateHold": undefined; "NotExpendable": undefined; "Blocked": undefined; }>; export declare const TokenError: GetEnum; export type ArithmeticError = Enum<{ "Underflow": undefined; "Overflow": undefined; "DivisionByZero": undefined; }>; export declare const ArithmeticError: GetEnum; export type TransactionalError = Enum<{ "LimitReached": undefined; "NoLayer": undefined; }>; export declare const TransactionalError: GetEnum; export type I4irg6h39si3pi = Array; }; /** * An extrinsic failed. */ "ExtrinsicFailed": { "dispatch_error": Anonymize; "dispatch_info": Anonymize; }; /** * `:code` was updated to the code with the given hash. */ "CodeUpdated": Anonymize; /** * A new account was created. */ "NewAccount": Anonymize; /** * An account was reaped. */ "KilledAccount": Anonymize; /** * On on-chain remark happened. */ "Remarked": { "sender": SS58String; "hash": SizedHex<32>; }; /** * A [`Task`] has started executing */ "TaskStarted": Anonymize; /** * A [`Task`] has finished executing. */ "TaskCompleted": Anonymize; /** * A [`Task`] failed during execution. */ "TaskFailed": { "err": Anonymize; }; /** * An upgrade was authorized. */ "UpgradeAuthorized": { "code_hash": SizedHex<32>; "check_version": boolean; }; /** * An invalid authorized upgrade was rejected while trying to apply it. */ "RejectedInvalidAuthorizedUpgrade": { "code_hash": SizedHex<32>; "error": Anonymize; }; }>; "ParachainSystem": Enum<{ /** * The validation function has been scheduled to apply. */ "ValidationFunctionStored": undefined; /** * The validation function was applied as of the contained relay chain block number. */ "ValidationFunctionApplied": { "relay_chain_block_num": number; }; /** * The relay-chain aborted the upgrade process. */ "ValidationFunctionDiscarded": undefined; /** * Some downward messages have been received and will be processed. */ "DownwardMessagesReceived": Anonymize; /** * Downward messages were processed using the given weight. */ "DownwardMessagesProcessed": { "weight_used": Anonymize; "dmq_head": SizedHex<32>; }; /** * An upward message was sent to the relay chain. */ "UpwardMessageSent": { "message_hash"?: Anonymize; }; }>; "Preimage": PreimageEvent; "Scheduler": Enum<{ /** * Scheduled some task. */ "Scheduled": Anonymize; /** * Canceled some task. */ "Canceled": Anonymize; /** * Dispatched some task. */ "Dispatched": { "task": Anonymize; "id"?: Anonymize; "result": Anonymize; }; /** * Set a retry configuration for some task. */ "RetrySet": { "task": Anonymize; "id"?: Anonymize; "period": number; "retries": number; }; /** * Cancel a retry configuration for some task. */ "RetryCancelled": { "task": Anonymize; "id"?: Anonymize; }; /** * The call for the provided hash was not found so the task has been aborted. */ "CallUnavailable": { "task": Anonymize; "id"?: Anonymize; }; /** * The given task was unable to be renewed since the agenda is full at that block. */ "PeriodicFailed": { "task": Anonymize; "id"?: Anonymize; }; /** * The given task was unable to be retried since the agenda is full at that block or there * was not enough weight to reschedule it. */ "RetryFailed": { "task": Anonymize; "id"?: Anonymize; }; /** * The given task can never be executed since it is overweight. */ "PermanentlyOverweight": { "task": Anonymize; "id"?: Anonymize; }; /** * Agenda is incomplete from `when`. */ "AgendaIncomplete": { "when": number; }; }>; "Parameters": Enum<{ /** * A Parameter was set. * * Is also emitted when the value was not changed. */ "Updated": { /** * The key that was updated. */ "key": Enum<{ "StakingElection": Enum<{ "SignedPhase": undefined; "MaxSignedSubmissions": undefined; "UnsignedPhase": undefined; "MinerPages": undefined; "MaxElectingVoters": undefined; "TargetSnapshotPerBlock": undefined; "MaxEraDuration": undefined; }>; "Scheduler": Enum<{ "MaxScheduledPerBlock": undefined; "MaximumWeight": undefined; }>; "MessageQueue": Enum<{ "MaxOnInitWeight": undefined; "MaxOnIdleWeight": undefined; }>; }>; /** * The old value before this call. */ "old_value"?: (Enum<{ "StakingElection": Enum<{ "SignedPhase": number; "MaxSignedSubmissions": number; "UnsignedPhase": number; "MinerPages": number; "MaxElectingVoters": number; "TargetSnapshotPerBlock": number; "MaxEraDuration": bigint; }>; "Scheduler": Enum<{ "MaxScheduledPerBlock": number; "MaximumWeight": Anonymize; }>; "MessageQueue": Enum<{ "MaxOnInitWeight"?: Anonymize; "MaxOnIdleWeight"?: Anonymize; }>; }>) | undefined; /** * The new value after this call. */ "new_value"?: (Enum<{ "StakingElection": Enum<{ "SignedPhase": number; "MaxSignedSubmissions": number; "UnsignedPhase": number; "MinerPages": number; "MaxElectingVoters": number; "TargetSnapshotPerBlock": number; "MaxEraDuration": bigint; }>; "Scheduler": Enum<{ "MaxScheduledPerBlock": number; "MaximumWeight": Anonymize; }>; "MessageQueue": Enum<{ "MaxOnInitWeight"?: Anonymize; "MaxOnIdleWeight"?: Anonymize; }>; }>) | undefined; }; }>; "MultiBlockMigrations": Enum<{ /** * A Runtime upgrade started. * * Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`. */ "UpgradeStarted": { /** * The number of migrations that this upgrade contains. * * This can be used to design a progress indicator in combination with counting the * `MigrationCompleted` and `MigrationSkipped` events. */ "migrations": number; }; /** * The current runtime upgrade completed. * * This implies that all of its migrations completed successfully as well. */ "UpgradeCompleted": undefined; /** * Runtime upgrade failed. * * This is very bad and will require governance intervention. */ "UpgradeFailed": undefined; /** * A migration was skipped since it was already executed in the past. */ "MigrationSkipped": Anonymize; /** * A migration progressed. */ "MigrationAdvanced": { /** * The index of the migration within the [`Config::Migrations`] list. */ "index": number; /** * The number of blocks that this migration took so far. */ "took": number; }; /** * A Migration completed. */ "MigrationCompleted": { /** * The index of the migration within the [`Config::Migrations`] list. */ "index": number; /** * The number of blocks that this migration took so far. */ "took": number; }; /** * A Migration failed. * * This implies that the whole upgrade failed and governance intervention is required. */ "MigrationFailed": { /** * The index of the migration within the [`Config::Migrations`] list. */ "index": number; /** * The number of blocks that this migration took so far. */ "took": number; }; /** * The set of historical migrations has been cleared. */ "HistoricCleared": { /** * Should be passed to `clear_historic` in a successive call. */ "next_cursor"?: Anonymize; }; }>; "Balances": Enum<{ /** * An account was created with some free balance. */ "Endowed": { "account": SS58String; "free_balance": bigint; }; /** * An account was removed whose balance was non-zero but below ExistentialDeposit, * resulting in an outright loss. */ "DustLost": Anonymize; /** * Transfer succeeded. */ "Transfer": { "from": SS58String; "to": SS58String; "amount": bigint; }; /** * A balance was set by root. */ "BalanceSet": { "who": SS58String; "free": bigint; }; /** * Some balance was reserved (moved from free to reserved). */ "Reserved": Anonymize; /** * Some balance was unreserved (moved from reserved to free). */ "Unreserved": Anonymize; /** * Some balance was moved from the reserve of the first account to the second account. * Final argument indicates the destination balance type. */ "ReserveRepatriated": { "from": SS58String; "to": SS58String; "amount": bigint; "destination_status": BalanceStatus; }; /** * Some amount was deposited (e.g. for transaction fees). */ "Deposit": Anonymize; /** * Some amount was withdrawn from the account (e.g. for transaction fees). */ "Withdraw": Anonymize; /** * Some amount was removed from the account (e.g. for misbehavior). */ "Slashed": Anonymize; /** * Some amount was minted into an account. */ "Minted": Anonymize; /** * Some credit was balanced and added to the TotalIssuance. */ "MintedCredit": Anonymize; /** * Some amount was burned from an account. */ "Burned": Anonymize; /** * Some debt has been dropped from the Total Issuance. */ "BurnedDebt": Anonymize; /** * Some amount was suspended from an account (it can be restored later). */ "Suspended": Anonymize; /** * Some amount was restored into an account. */ "Restored": Anonymize; /** * An account was upgraded. */ "Upgraded": Anonymize; /** * Total issuance was increased by `amount`, creating a credit to be balanced. */ "Issued": Anonymize; /** * Total issuance was decreased by `amount`, creating a debt to be balanced. */ "Rescinded": Anonymize; /** * Some balance was locked. */ "Locked": Anonymize; /** * Some balance was unlocked. */ "Unlocked": Anonymize; /** * Some balance was frozen. */ "Frozen": Anonymize; /** * Some balance was thawed. */ "Thawed": Anonymize; /** * The `TotalIssuance` was forcefully changed. */ "TotalIssuanceForced": { "old": bigint; "new": bigint; }; /** * Some balance was placed on hold. */ "Held": { "reason": Anonymize; "who": SS58String; "amount": bigint; }; /** * Held balance was burned from an account. */ "BurnedHeld": { "reason": Anonymize; "who": SS58String; "amount": bigint; }; /** * A transfer of `amount` on hold from `source` to `dest` was initiated. */ "TransferOnHold": { "reason": Anonymize; "source": SS58String; "dest": SS58String; "amount": bigint; }; /** * The `transferred` balance is placed on hold at the `dest` account. */ "TransferAndHold": { "reason": Anonymize; "source": SS58String; "dest": SS58String; "transferred": bigint; }; /** * Some balance was released from hold. */ "Released": { "reason": Anonymize; "who": SS58String; "amount": bigint; }; /** * An unexpected/defensive event was triggered. */ "Unexpected": Enum<{ "BalanceUpdated": undefined; "FailedToMutateAccount": undefined; }>; }>; "TransactionPayment": TransactionPaymentEvent; "AssetTxPayment": Enum<{ /** * 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": { "who": SS58String; "actual_fee": bigint; "tip": bigint; "asset_id": Anonymize; }; /** * A swap of the refund in native currency back to asset failed. */ "AssetRefundFailed": { "native_amount_kept": bigint; }; }>; "Vesting": Enum<{ /** * A vesting schedule has been created. */ "VestingCreated": { "account": SS58String; "schedule_index": number; }; /** * 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": { "account": SS58String; "unvested": bigint; }; /** * An \[account\] has become fully vested. */ "VestingCompleted": Anonymize; }>; "Claims": CommonClaimsEvent; "Dap": Enum<{ /** * Inflation dripped and distributed to budget recipients. */ "IssuanceMinted": { /** * Total amount minted in this drip. */ "total_minted": bigint; /** * Elapsed time (ms) since last drip. */ "elapsed_millis": bigint; }; /** * Budget allocation was updated via governance. */ "BudgetAllocationUpdated": { /** * The new budget allocation map. */ "allocations": Anonymize; }; /** * Funds were drained from the staging account into the DAP buffer. */ "StagingDrained": Anonymize; /** * An unexpected/defensive event was triggered. */ "Unexpected": Enum<{ "MintFailed": undefined; "ElapsedClamped": { "actual_elapsed": bigint; "ceiling": bigint; }; }>; }>; "CollatorSelection": Enum<{ /** * New Invulnerables were set. */ "NewInvulnerables": { "invulnerables": Anonymize; }; /** * A new Invulnerable was added. */ "InvulnerableAdded": Anonymize; /** * An Invulnerable was removed. */ "InvulnerableRemoved": Anonymize; /** * The number of desired candidates was set. */ "NewDesiredCandidates": { "desired_candidates": number; }; /** * The candidacy bond was set. */ "NewCandidacyBond": { "bond_amount": bigint; }; /** * A new candidate joined. */ "CandidateAdded": { "account_id": SS58String; "deposit": bigint; }; /** * Bond of a candidate updated. */ "CandidateBondUpdated": { "account_id": SS58String; "deposit": bigint; }; /** * A candidate was removed. */ "CandidateRemoved": Anonymize; /** * An account was replaced in the candidate list by another one. */ "CandidateReplaced": { "old": SS58String; "new": SS58String; "deposit": bigint; }; /** * An account was unable to be added to the Invulnerables because they did not have keys * registered. Other Invulnerables may have been set. */ "InvalidInvulnerableSkipped": Anonymize; }>; "Session": Enum<{ /** * New session has happened. Note that the argument is the session index, not the * block number as the type might suggest. */ "NewSession": Anonymize; /** * The `NewSession` event in the current block also implies a new validator set to be * queued. */ "NewQueued": undefined; /** * Validator has been disabled. */ "ValidatorDisabled": { "validator": SS58String; }; /** * Validator has been re-enabled. */ "ValidatorReenabled": { "validator": SS58String; }; }>; "XcmpQueue": Enum<{ /** * An HRMP message was sent to a sibling parachain. */ "XcmpMessageSent": { "message_hash": SizedHex<32>; }; }>; "PolkadotXcm": Enum<{ /** * Execution of an XCM message was attempted. */ "Attempted": { "outcome": Anonymize; }; /** * An XCM message was sent. */ "Sent": Anonymize; /** * An XCM message failed to send. */ "SendFailed": { "origin": Anonymize; "destination": Anonymize; "error": Enum<{ "NotApplicable": undefined; "Transport": undefined; "Unroutable": undefined; "DestinationUnsupported": undefined; "ExceedsMaxMessageSize": undefined; "MissingArgument": undefined; "Fees": undefined; }>; "message_id": SizedHex<32>; }; /** * An XCM message failed to process. */ "ProcessXcmError": { "origin": Anonymize; "error": Anonymize; "message_id": SizedHex<32>; }; /** * Query response received which does not match a registered query. This may be because a * matching query was never registered, it may be because it is a duplicate response, or * because the query timed out. */ "UnexpectedResponse": { "origin": Anonymize; "query_id": bigint; }; /** * Query response has been received and is ready for taking with `take_response`. There is * no registered notification call. */ "ResponseReady": { "query_id": bigint; "response": Anonymize; }; /** * Query response has been received and query is removed. The registered notification has * been dispatched and executed successfully. */ "Notified": { "query_id": bigint; "pallet_index": number; "call_index": number; }; /** * Query response has been received and query is removed. The registered notification * could not be dispatched because the dispatch weight is greater than the maximum weight * originally budgeted by this runtime for the query result. */ "NotifyOverweight": { "query_id": bigint; "pallet_index": number; "call_index": number; "actual_weight": Anonymize; "max_budgeted_weight": Anonymize; }; /** * Query response has been received and query is removed. There was a general error with * dispatching the notification call. */ "NotifyDispatchError": { "query_id": bigint; "pallet_index": number; "call_index": number; }; /** * Query response has been received and query is removed. The dispatch was unable to be * decoded into a `Call`; this might be due to dispatch function having a signature which * is not `(origin, QueryId, Response)`. */ "NotifyDecodeFailed": { "query_id": bigint; "pallet_index": number; "call_index": number; }; /** * Expected query response has been received but the origin location of the response does * not match that expected. The query remains registered for a later, valid, response to * be received and acted upon. */ "InvalidResponder": { "origin": Anonymize; "query_id": bigint; "expected_location"?: Anonymize; }; /** * 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": { "origin": Anonymize; "query_id": bigint; }; /** * Received query response has been read and removed. */ "ResponseTaken": { "query_id": bigint; }; /** * Some assets have been placed in an asset trap. */ "AssetsTrapped": { "hash": SizedHex<32>; "origin": Anonymize; "assets": XcmVersionedAssets; }; /** * An XCM version change notification message has been attempted to be sent. * * The cost of sending it (borne by the chain) is included. */ "VersionChangeNotified": { "destination": Anonymize; "result": number; "cost": Anonymize; "message_id": SizedHex<32>; }; /** * The supported version of a location has been changed. This might be through an * automatic notification or a manual intervention. */ "SupportedVersionChanged": Anonymize; /** * A given location which had a version change subscription was dropped owing to an error * sending the notification to it. */ "NotifyTargetSendFail": { "location": Anonymize; "query_id": bigint; "error": Anonymize; }; /** * A given location which had a version change subscription was dropped owing to an error * migrating the location to our new XCM format. */ "NotifyTargetMigrationFail": { "location": XcmVersionedLocation; "query_id": bigint; }; /** * Expected query response has been received but the expected querier location placed in * storage by this runtime previously cannot be decoded. The query remains registered. * * This is unexpected (since a location placed in storage in a previously executing * runtime should be readable prior to query timeout) and dangerous since the possibly * valid response will be dropped. Manual governance intervention is probably going to be * needed. */ "InvalidQuerierVersion": { "origin": Anonymize; "query_id": bigint; }; /** * Expected query response has been received but the querier location of the response does * not match the expected. The query remains registered for a later, valid, response to * be received and acted upon. */ "InvalidQuerier": { "origin": Anonymize; "query_id": bigint; "expected_querier": Anonymize; "maybe_actual_querier"?: Anonymize; }; /** * 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": { "destination": Anonymize; "cost": Anonymize; "message_id": SizedHex<32>; }; /** * We have requested that a remote chain send us XCM version change notifications. */ "VersionNotifyRequested": { "destination": Anonymize; "cost": Anonymize; "message_id": SizedHex<32>; }; /** * We have requested that a remote chain stops sending us XCM version change * notifications. */ "VersionNotifyUnrequested": { "destination": Anonymize; "cost": Anonymize; "message_id": SizedHex<32>; }; /** * Fees were paid from a location for an operation (often for using `SendXcm`). */ "FeesPaid": { "paying": Anonymize; "fees": Anonymize; }; /** * Some assets have been claimed from an asset trap */ "AssetsClaimed": { "hash": SizedHex<32>; "origin": Anonymize; "assets": XcmVersionedAssets; }; /** * A XCM version migration finished. */ "VersionMigrationFinished": { "version": number; }; /** * An `aliaser` location was authorized by `target` to alias it, authorization valid until * `expiry` block number. */ "AliasAuthorized": { "aliaser": Anonymize; "target": Anonymize; "expiry"?: Anonymize; }; /** * `target` removed alias authorization for `aliaser`. */ "AliasAuthorizationRemoved": { "aliaser": Anonymize; "target": Anonymize; }; /** * `target` removed all alias authorizations. */ "AliasesAuthorizationsRemoved": { "target": Anonymize; }; }>; "CumulusXcm": Enum<{ /** * Downward message is invalid XCM. * \[ id \] */ "InvalidFormat": SizedHex<32>; /** * Downward message is unsupported version of XCM. * \[ id \] */ "UnsupportedVersion": SizedHex<32>; /** * Downward message executed with the given outcome. * \[ id, outcome \] */ "ExecutedDownward": [SizedHex<32>, Anonymize]; }>; "ToKusamaXcmRouter": Enum<{ /** * Delivery fee factor has been decreased. */ "DeliveryFeeFactorDecreased": { /** * New value of the `DeliveryFeeFactor`. */ "new_value": bigint; }; /** * Delivery fee factor has been increased. */ "DeliveryFeeFactorIncreased": { /** * New value of the `DeliveryFeeFactor`. */ "new_value": bigint; }; }>; "MessageQueue": Enum<{ /** * Message discarded due to an error in the `MessageProcessor` (usually a format error). */ "ProcessingFailed": { /** * The `blake2_256` hash of the message. */ "id": SizedHex<32>; /** * The queue of the message. */ "origin": Anonymize; /** * The error that occurred. * * This error is pretty opaque. More fine-grained errors need to be emitted as events * by the `MessageProcessor`. */ "error": Enum<{ "BadFormat": undefined; "Corrupt": undefined; "Unsupported": undefined; "Overweight": Anonymize; "Yield": undefined; "StackLimitReached": undefined; }>; }; /** * Message is processed. */ "Processed": { /** * The `blake2_256` hash of the message. */ "id": SizedHex<32>; /** * The queue of the message. */ "origin": Anonymize; /** * How much weight was used to process the message. */ "weight_used": Anonymize; /** * Whether the message was processed. * * Note that this does not mean that the underlying `MessageProcessor` was internally * successful. It *solely* means that the MQ pallet will treat this as a success * condition and discard the message. Any internal error needs to be emitted as events * by the `MessageProcessor`. */ "success": boolean; }; /** * Message placed in overweight queue. */ "OverweightEnqueued": { /** * The `blake2_256` hash of the message. */ "id": SizedHex<32>; /** * The queue of the message. */ "origin": Anonymize; /** * The page of the message. */ "page_index": number; /** * The index of the message within the page. */ "message_index": number; }; /** * This page was reaped. */ "PageReaped": { /** * The queue of the page. */ "origin": Anonymize; /** * The index of the page. */ "index": number; }; }>; "SnowbridgeSystemFrontend": Enum<{ /** * An XCM was sent */ "MessageSent": Anonymize; /** * Set OperatingMode */ "ExportOperatingModeChanged": Anonymize; }>; "Utility": Enum<{ /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as * well as the error. */ "BatchInterrupted": { "index": number; "error": Anonymize; }; /** * Batch of dispatches completed fully with no error. */ "BatchCompleted": undefined; /** * Batch of dispatches completed but has errors. */ "BatchCompletedWithErrors": undefined; /** * A single item within a Batch of dispatches has completed with no error. */ "ItemCompleted": undefined; /** * A single item within a Batch of dispatches has completed with error. */ "ItemFailed": { "error": Anonymize; }; /** * A call was dispatched. */ "DispatchedAs": Anonymize; /** * Main call was dispatched. */ "IfElseMainSuccess": undefined; /** * The fallback call was dispatched. */ "IfElseFallbackCalled": { "main_error": Anonymize; }; }>; "Multisig": Enum<{ /** * A new multisig operation has begun. */ "NewMultisig": { "approving": SS58String; "multisig": SS58String; "call_hash": SizedHex<32>; }; /** * A multisig operation has been approved by someone. */ "MultisigApproval": { "approving": SS58String; "timepoint": Anonymize; "multisig": SS58String; "call_hash": SizedHex<32>; }; /** * A multisig operation has been executed. */ "MultisigExecuted": { "approving": SS58String; "timepoint": Anonymize; "multisig": SS58String; "call_hash": SizedHex<32>; "result": Anonymize; }; /** * A multisig operation has been cancelled. */ "MultisigCancelled": { "cancelling": SS58String; "timepoint": Anonymize; "multisig": SS58String; "call_hash": SizedHex<32>; }; /** * The deposit for a multisig operation has been updated/poked. */ "DepositPoked": { "who": SS58String; "call_hash": SizedHex<32>; "old_deposit": bigint; "new_deposit": bigint; }; }>; "Proxy": Enum<{ /** * A proxy was executed correctly, with the given. */ "ProxyExecuted": Anonymize; /** * A pure account has been created by new proxy with given * disambiguation index and proxy type. */ "PureCreated": { "pure": SS58String; "who": SS58String; "proxy_type": Anonymize; "disambiguation_index": number; "at": number; "extrinsic_index": number; }; /** * A pure proxy was killed by its spawner. */ "PureKilled": { "pure": SS58String; "spawner": SS58String; "proxy_type": Anonymize; "disambiguation_index": number; }; /** * An announcement was placed to make a call in the future. */ "Announced": { "real": SS58String; "proxy": SS58String; "call_hash": SizedHex<32>; }; /** * A proxy was added. */ "ProxyAdded": { "delegator": SS58String; "delegatee": SS58String; "proxy_type": Anonymize; "delay": number; }; /** * A proxy was removed. */ "ProxyRemoved": { "delegator": SS58String; "delegatee": SS58String; "proxy_type": Anonymize; "delay": number; }; /** * A deposit stored for proxies or announcements was poked / updated. */ "DepositPoked": { "who": SS58String; "kind": Enum<{ "Proxies": undefined; "Announcements": undefined; }>; "old_deposit": bigint; "new_deposit": bigint; }; }>; "Indices": Enum<{ /** * A account index was assigned. */ "IndexAssigned": { "who": SS58String; "index": number; }; /** * A account index has been freed up (unassigned). */ "IndexFreed": Anonymize; /** * A account index has been frozen to its current account ID. */ "IndexFrozen": { "who": SS58String; "index": number; }; /** * A deposit to reserve an index has been poked/reconsidered. */ "DepositPoked": { "who": SS58String; "index": number; "old_deposit": bigint; "new_deposit": bigint; }; }>; "Assets": Enum<{ /** * Some asset class was created. */ "Created": { "asset_id": number; "creator": SS58String; "owner": SS58String; }; /** * Some assets were issued. */ "Issued": { "asset_id": number; "owner": SS58String; "amount": bigint; }; /** * Some assets were transferred. */ "Transferred": { "asset_id": number; "from": SS58String; "to": SS58String; "amount": bigint; }; /** * Some assets were destroyed. */ "Burned": { "asset_id": number; "owner": SS58String; "balance": bigint; }; /** * The management team changed. */ "TeamChanged": { "asset_id": number; "issuer": SS58String; "admin": SS58String; "freezer": SS58String; }; /** * The owner changed. */ "OwnerChanged": { "asset_id": number; "owner": SS58String; }; /** * Some account `who` was frozen. */ "Frozen": Anonymize; /** * Some account `who` was thawed. */ "Thawed": Anonymize; /** * Some asset `asset_id` was frozen. */ "AssetFrozen": Anonymize; /** * Some asset `asset_id` was thawed. */ "AssetThawed": Anonymize; /** * Accounts were destroyed for given asset. */ "AccountsDestroyed": { "asset_id": number; "accounts_destroyed": number; "accounts_remaining": number; }; /** * Approvals were destroyed for given asset. */ "ApprovalsDestroyed": { "asset_id": number; "approvals_destroyed": number; "approvals_remaining": number; }; /** * An asset class is in the process of being destroyed. */ "DestructionStarted": Anonymize; /** * An asset class was destroyed. */ "Destroyed": Anonymize; /** * Some asset class was force-created. */ "ForceCreated": { "asset_id": number; "owner": SS58String; }; /** * New metadata has been set for an asset. */ "MetadataSet": { "asset_id": number; "name": Uint8Array; "symbol": Uint8Array; "decimals": number; "is_frozen": boolean; }; /** * Metadata has been cleared for an asset. */ "MetadataCleared": Anonymize; /** * (Additional) funds have been approved for transfer to a destination account. */ "ApprovedTransfer": { "asset_id": number; "source": SS58String; "delegate": SS58String; "amount": bigint; }; /** * An approval for account `delegate` was cancelled by `owner`. */ "ApprovalCancelled": { "asset_id": number; "owner": SS58String; "delegate": SS58String; }; /** * An `amount` was transferred in its entirety from `owner` to `destination` by * the approved `delegate`. */ "TransferredApproved": { "asset_id": number; "owner": SS58String; "delegate": SS58String; "destination": SS58String; "amount": bigint; }; /** * An asset has had its attributes changed by the `Force` origin. */ "AssetStatusChanged": Anonymize; /** * The min_balance of an asset has been updated by the asset owner. */ "AssetMinBalanceChanged": { "asset_id": number; "new_min_balance": bigint; }; /** * Some account `who` was created with a deposit from `depositor`. */ "Touched": { "asset_id": number; "who": SS58String; "depositor": SS58String; }; /** * Some account `who` was blocked. */ "Blocked": Anonymize; /** * Some assets were deposited (e.g. for transaction fees). */ "Deposited": { "asset_id": number; "who": SS58String; "amount": bigint; }; /** * Some assets were withdrawn from the account (e.g. for transaction fees). */ "Withdrawn": { "asset_id": number; "who": SS58String; "amount": bigint; }; /** * Reserve information was set or updated for `asset_id`. */ "ReservesUpdated": { "asset_id": number; "reserves": Anonymize; }; /** * Reserve information was removed for `asset_id`. */ "ReservesRemoved": Anonymize; /** * Some assets were issued as Credit (no owner yet). */ "IssuedCredit": Anonymize; /** * Some assets Credit was destroyed. */ "BurnedCredit": Anonymize; /** * Some assets were burned and a Debt was created. */ "IssuedDebt": Anonymize; /** * Some assets Debt was destroyed (and assets issued). */ "BurnedDebt": Anonymize; }>; "Uniques": Enum<{ /** * A `collection` was created. */ "Created": Anonymize; /** * A `collection` was force-created. */ "ForceCreated": Anonymize; /** * A `collection` was destroyed. */ "Destroyed": Anonymize; /** * An `item` was issued. */ "Issued": Anonymize; /** * An `item` was transferred. */ "Transferred": Anonymize; /** * An `item` was destroyed. */ "Burned": Anonymize; /** * Some `item` was frozen. */ "Frozen": Anonymize; /** * Some `item` was thawed. */ "Thawed": Anonymize; /** * Some `collection` was frozen. */ "CollectionFrozen": Anonymize; /** * Some `collection` was thawed. */ "CollectionThawed": Anonymize; /** * The owner changed. */ "OwnerChanged": Anonymize; /** * The management team changed. */ "TeamChanged": { "collection": number; "issuer": SS58String; "admin": SS58String; "freezer": SS58String; }; /** * An `item` of a `collection` has been approved by the `owner` for transfer by * a `delegate`. */ "ApprovedTransfer": Anonymize; /** * An approval for a `delegate` account to transfer the `item` of an item * `collection` was cancelled by its `owner`. */ "ApprovalCancelled": Anonymize; /** * A `collection` has had its attributes changed by the `Force` origin. */ "ItemStatusChanged": Anonymize; /** * New metadata has been set for a `collection`. */ "CollectionMetadataSet": Anonymize; /** * Metadata has been cleared for a `collection`. */ "CollectionMetadataCleared": Anonymize; /** * New metadata has been set for an item. */ "MetadataSet": Anonymize; /** * Metadata has been cleared for an item. */ "MetadataCleared": Anonymize; /** * Metadata has been cleared for an item. */ "Redeposited": Anonymize; /** * New attribute metadata has been set for a `collection` or `item`. */ "AttributeSet": Anonymize; /** * Attribute metadata has been cleared for a `collection` or `item`. */ "AttributeCleared": Anonymize; /** * Ownership acceptance has changed for an account. */ "OwnershipAcceptanceChanged": Anonymize; /** * Max supply has been set for a collection. */ "CollectionMaxSupplySet": Anonymize; /** * The price was set for the instance. */ "ItemPriceSet": Anonymize; /** * The price for the instance was removed. */ "ItemPriceRemoved": Anonymize; /** * An item was bought. */ "ItemBought": Anonymize; }>; "Nfts": Enum<{ /** * A `collection` was created. */ "Created": Anonymize; /** * A `collection` was force-created. */ "ForceCreated": Anonymize; /** * A `collection` was destroyed. */ "Destroyed": Anonymize; /** * An `item` was issued. */ "Issued": Anonymize; /** * An `item` was transferred. */ "Transferred": Anonymize; /** * An `item` was destroyed. */ "Burned": Anonymize; /** * An `item` became non-transferable. */ "ItemTransferLocked": Anonymize; /** * An `item` became transferable. */ "ItemTransferUnlocked": Anonymize; /** * `item` metadata or attributes were locked. */ "ItemPropertiesLocked": Anonymize; /** * Some `collection` was locked. */ "CollectionLocked": Anonymize; /** * The owner changed. */ "OwnerChanged": Anonymize; /** * The management team changed. */ "TeamChanged": { "collection": number; "issuer"?: Anonymize; "admin"?: Anonymize; "freezer"?: Anonymize; }; /** * An `item` of a `collection` has been approved by the `owner` for transfer by * a `delegate`. */ "TransferApproved": { "collection": number; "item": number; "owner": SS58String; "delegate": SS58String; "deadline"?: Anonymize; }; /** * An approval for a `delegate` account to transfer the `item` of an item * `collection` was cancelled by its `owner`. */ "ApprovalCancelled": Anonymize; /** * All approvals of an item got cancelled. */ "AllApprovalsCancelled": Anonymize; /** * A `collection` has had its config changed by the `Force` origin. */ "CollectionConfigChanged": Anonymize; /** * New metadata has been set for a `collection`. */ "CollectionMetadataSet": Anonymize; /** * Metadata has been cleared for a `collection`. */ "CollectionMetadataCleared": Anonymize; /** * New metadata has been set for an item. */ "ItemMetadataSet": Anonymize; /** * Metadata has been cleared for an item. */ "ItemMetadataCleared": Anonymize; /** * The deposit for a set of `item`s within a `collection` has been updated. */ "Redeposited": Anonymize; /** * New attribute metadata has been set for a `collection` or `item`. */ "AttributeSet": Anonymize; /** * Attribute metadata has been cleared for a `collection` or `item`. */ "AttributeCleared": Anonymize; /** * A new approval to modify item attributes was added. */ "ItemAttributesApprovalAdded": { "collection": number; "item": number; "delegate": SS58String; }; /** * A new approval to modify item attributes was removed. */ "ItemAttributesApprovalRemoved": { "collection": number; "item": number; "delegate": SS58String; }; /** * Ownership acceptance has changed for an account. */ "OwnershipAcceptanceChanged": Anonymize; /** * Max supply has been set for a collection. */ "CollectionMaxSupplySet": Anonymize; /** * Mint settings for a collection had changed. */ "CollectionMintSettingsUpdated": Anonymize; /** * Event gets emitted when the `NextCollectionId` gets incremented. */ "NextCollectionIdIncremented": { "next_id"?: Anonymize; }; /** * The price was set for the item. */ "ItemPriceSet": Anonymize; /** * The price for the item was removed. */ "ItemPriceRemoved": Anonymize; /** * An item was bought. */ "ItemBought": Anonymize; /** * A tip was sent. */ "TipSent": { "collection": number; "item": number; "sender": SS58String; "receiver": SS58String; "amount": bigint; }; /** * An `item` swap intent was created. */ "SwapCreated": { "offered_collection": number; "offered_item": number; "desired_collection": number; "desired_item"?: Anonymize; "price"?: Anonymize; "deadline": number; }; /** * The swap was cancelled. */ "SwapCancelled": { "offered_collection": number; "offered_item": number; "desired_collection": number; "desired_item"?: Anonymize; "price"?: Anonymize; "deadline": number; }; /** * The swap has been claimed. */ "SwapClaimed": { "sent_collection": number; "sent_item": number; "sent_item_owner": SS58String; "received_collection": number; "received_item": number; "received_item_owner": SS58String; "price"?: Anonymize; "deadline": number; }; /** * New attributes have been set for an `item` of the `collection`. */ "PreSignedAttributesSet": { "collection": number; "item": number; "namespace": Anonymize; }; /** * A new attribute in the `Pallet` namespace was set for the `collection` or an `item` * within that `collection`. */ "PalletAttributeSet": { "collection": number; "item"?: Anonymize; "attribute": Enum<{ "UsedToClaim": number; "TransferDisabled": undefined; }>; "value": Uint8Array; }; }>; "ForeignAssets": Enum<{ /** * Some asset class was created. */ "Created": { "asset_id": Anonymize; "creator": SS58String; "owner": SS58String; }; /** * Some assets were issued. */ "Issued": { "asset_id": Anonymize; "owner": SS58String; "amount": bigint; }; /** * Some assets were transferred. */ "Transferred": { "asset_id": Anonymize; "from": SS58String; "to": SS58String; "amount": bigint; }; /** * Some assets were destroyed. */ "Burned": { "asset_id": Anonymize; "owner": SS58String; "balance": bigint; }; /** * The management team changed. */ "TeamChanged": { "asset_id": Anonymize; "issuer": SS58String; "admin": SS58String; "freezer": SS58String; }; /** * The owner changed. */ "OwnerChanged": { "asset_id": Anonymize; "owner": SS58String; }; /** * Some account `who` was frozen. */ "Frozen": { "asset_id": Anonymize; "who": SS58String; }; /** * Some account `who` was thawed. */ "Thawed": { "asset_id": Anonymize; "who": SS58String; }; /** * Some asset `asset_id` was frozen. */ "AssetFrozen": Anonymize; /** * Some asset `asset_id` was thawed. */ "AssetThawed": Anonymize; /** * Accounts were destroyed for given asset. */ "AccountsDestroyed": { "asset_id": Anonymize; "accounts_destroyed": number; "accounts_remaining": number; }; /** * Approvals were destroyed for given asset. */ "ApprovalsDestroyed": { "asset_id": Anonymize; "approvals_destroyed": number; "approvals_remaining": number; }; /** * An asset class is in the process of being destroyed. */ "DestructionStarted": Anonymize; /** * An asset class was destroyed. */ "Destroyed": Anonymize; /** * Some asset class was force-created. */ "ForceCreated": { "asset_id": Anonymize; "owner": SS58String; }; /** * New metadata has been set for an asset. */ "MetadataSet": { "asset_id": Anonymize; "name": Uint8Array; "symbol": Uint8Array; "decimals": number; "is_frozen": boolean; }; /** * Metadata has been cleared for an asset. */ "MetadataCleared": Anonymize; /** * (Additional) funds have been approved for transfer to a destination account. */ "ApprovedTransfer": { "asset_id": Anonymize; "source": SS58String; "delegate": SS58String; "amount": bigint; }; /** * An approval for account `delegate` was cancelled by `owner`. */ "ApprovalCancelled": { "asset_id": Anonymize; "owner": SS58String; "delegate": SS58String; }; /** * An `amount` was transferred in its entirety from `owner` to `destination` by * the approved `delegate`. */ "TransferredApproved": { "asset_id": Anonymize; "owner": SS58String; "delegate": SS58String; "destination": SS58String; "amount": bigint; }; /** * An asset has had its attributes changed by the `Force` origin. */ "AssetStatusChanged": Anonymize; /** * The min_balance of an asset has been updated by the asset owner. */ "AssetMinBalanceChanged": { "asset_id": Anonymize; "new_min_balance": bigint; }; /** * Some account `who` was created with a deposit from `depositor`. */ "Touched": { "asset_id": Anonymize; "who": SS58String; "depositor": SS58String; }; /** * Some account `who` was blocked. */ "Blocked": { "asset_id": Anonymize; "who": SS58String; }; /** * Some assets were deposited (e.g. for transaction fees). */ "Deposited": { "asset_id": Anonymize; "who": SS58String; "amount": bigint; }; /** * Some assets were withdrawn from the account (e.g. for transaction fees). */ "Withdrawn": { "asset_id": Anonymize; "who": SS58String; "amount": bigint; }; /** * Reserve information was set or updated for `asset_id`. */ "ReservesUpdated": { "asset_id": Anonymize; "reserves": Anonymize; }; /** * Reserve information was removed for `asset_id`. */ "ReservesRemoved": Anonymize; /** * Some assets were issued as Credit (no owner yet). */ "IssuedCredit": { "asset_id": Anonymize; "amount": bigint; }; /** * Some assets Credit was destroyed. */ "BurnedCredit": { "asset_id": Anonymize; "amount": bigint; }; /** * Some assets were burned and a Debt was created. */ "IssuedDebt": { "asset_id": Anonymize; "amount": bigint; }; /** * Some assets Debt was destroyed (and assets issued). */ "BurnedDebt": { "asset_id": Anonymize; "amount": bigint; }; }>; "PoolAssets": Enum<{ /** * Some asset class was created. */ "Created": { "asset_id": number; "creator": SS58String; "owner": SS58String; }; /** * Some assets were issued. */ "Issued": { "asset_id": number; "owner": SS58String; "amount": bigint; }; /** * Some assets were transferred. */ "Transferred": { "asset_id": number; "from": SS58String; "to": SS58String; "amount": bigint; }; /** * Some assets were destroyed. */ "Burned": { "asset_id": number; "owner": SS58String; "balance": bigint; }; /** * The management team changed. */ "TeamChanged": { "asset_id": number; "issuer": SS58String; "admin": SS58String; "freezer": SS58String; }; /** * The owner changed. */ "OwnerChanged": { "asset_id": number; "owner": SS58String; }; /** * Some account `who` was frozen. */ "Frozen": Anonymize; /** * Some account `who` was thawed. */ "Thawed": Anonymize; /** * Some asset `asset_id` was frozen. */ "AssetFrozen": Anonymize; /** * Some asset `asset_id` was thawed. */ "AssetThawed": Anonymize; /** * Accounts were destroyed for given asset. */ "AccountsDestroyed": { "asset_id": number; "accounts_destroyed": number; "accounts_remaining": number; }; /** * Approvals were destroyed for given asset. */ "ApprovalsDestroyed": { "asset_id": number; "approvals_destroyed": number; "approvals_remaining": number; }; /** * An asset class is in the process of being destroyed. */ "DestructionStarted": Anonymize; /** * An asset class was destroyed. */ "Destroyed": Anonymize; /** * Some asset class was force-created. */ "ForceCreated": { "asset_id": number; "owner": SS58String; }; /** * New metadata has been set for an asset. */ "MetadataSet": { "asset_id": number; "name": Uint8Array; "symbol": Uint8Array; "decimals": number; "is_frozen": boolean; }; /** * Metadata has been cleared for an asset. */ "MetadataCleared": Anonymize; /** * (Additional) funds have been approved for transfer to a destination account. */ "ApprovedTransfer": { "asset_id": number; "source": SS58String; "delegate": SS58String; "amount": bigint; }; /** * An approval for account `delegate` was cancelled by `owner`. */ "ApprovalCancelled": { "asset_id": number; "owner": SS58String; "delegate": SS58String; }; /** * An `amount` was transferred in its entirety from `owner` to `destination` by * the approved `delegate`. */ "TransferredApproved": { "asset_id": number; "owner": SS58String; "delegate": SS58String; "destination": SS58String; "amount": bigint; }; /** * An asset has had its attributes changed by the `Force` origin. */ "AssetStatusChanged": Anonymize; /** * The min_balance of an asset has been updated by the asset owner. */ "AssetMinBalanceChanged": { "asset_id": number; "new_min_balance": bigint; }; /** * Some account `who` was created with a deposit from `depositor`. */ "Touched": { "asset_id": number; "who": SS58String; "depositor": SS58String; }; /** * Some account `who` was blocked. */ "Blocked": Anonymize; /** * Some assets were deposited (e.g. for transaction fees). */ "Deposited": { "asset_id": number; "who": SS58String; "amount": bigint; }; /** * Some assets were withdrawn from the account (e.g. for transaction fees). */ "Withdrawn": { "asset_id": number; "who": SS58String; "amount": bigint; }; /** * Reserve information was set or updated for `asset_id`. */ "ReservesUpdated": { "asset_id": number; "reserves": Anonymize; }; /** * Reserve information was removed for `asset_id`. */ "ReservesRemoved": Anonymize; /** * Some assets were issued as Credit (no owner yet). */ "IssuedCredit": Anonymize; /** * Some assets Credit was destroyed. */ "BurnedCredit": Anonymize; /** * Some assets were burned and a Debt was created. */ "IssuedDebt": Anonymize; /** * Some assets Debt was destroyed (and assets issued). */ "BurnedDebt": Anonymize; }>; "AssetConversion": Enum<{ /** * A successful call of the `CreatePool` extrinsic will create this event. */ "PoolCreated": { /** * The account that created the pool. */ "creator": SS58String; /** * The pool id associated with the pool. Note that the order of the assets may not be * the same as the order specified in the create pool extrinsic. */ "pool_id": Anonymize; /** * The account ID of the pool. */ "pool_account": SS58String; /** * The id of the liquidity tokens that will be minted when assets are added to this * pool. */ "lp_token": number; }; /** * A successful call of the `AddLiquidity` extrinsic will create this event. */ "LiquidityAdded": { /** * The account that the liquidity was taken from. */ "who": SS58String; /** * The account that the liquidity tokens were minted to. */ "mint_to": SS58String; /** * The pool id of the pool that the liquidity was added to. */ "pool_id": Anonymize; /** * The amount of the first asset that was added to the pool. */ "amount1_provided": bigint; /** * The amount of the second asset that was added to the pool. */ "amount2_provided": bigint; /** * The id of the lp token that was minted. */ "lp_token": number; /** * The amount of lp tokens that were minted of that id. */ "lp_token_minted": bigint; }; /** * A successful call of the `RemoveLiquidity` extrinsic will create this event. */ "LiquidityRemoved": { /** * The account that the liquidity tokens were burned from. */ "who": SS58String; /** * The account that the assets were transferred to. */ "withdraw_to": SS58String; /** * The pool id that the liquidity was removed from. */ "pool_id": Anonymize; /** * The amount of the first asset that was removed from the pool. */ "amount1": bigint; /** * The amount of the second asset that was removed from the pool. */ "amount2": bigint; /** * The id of the lp token that was burned. */ "lp_token": number; /** * The amount of lp tokens that were burned of that id. */ "lp_token_burned": bigint; /** * Liquidity withdrawal fee (%). */ "withdrawal_fee": number; }; /** * Assets have been converted from one to another. Both `SwapExactTokenForToken` * and `SwapTokenForExactToken` will generate this event. */ "SwapExecuted": { /** * Which account was the instigator of the swap. */ "who": SS58String; /** * The account that the assets were transferred to. */ "send_to": SS58String; /** * The amount of the first asset that was swapped. */ "amount_in": bigint; /** * The amount of the second asset that was received. */ "amount_out": bigint; /** * The route of asset IDs with amounts that the swap went through. * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) */ "path": Anonymize; }; /** * Assets have been converted from one to another. */ "SwapCreditExecuted": { /** * The amount of the first asset that was swapped. */ "amount_in": bigint; /** * The amount of the second asset that was received. */ "amount_out": bigint; /** * The route of asset IDs with amounts that the swap went through. * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out) */ "path": Anonymize; }; /** * Pool has been touched in order to fulfill operational requirements. */ "Touched": { /** * The ID of the pool. */ "pool_id": Anonymize; /** * The account initiating the touch. */ "who": SS58String; }; }>; "Treasury": Enum<{ /** * We have ended a spend period and will now allocate funds. */ "Spending": { "budget_remaining": bigint; }; /** * Some funds have been allocated. */ "Awarded": { "proposal_index": number; "award": bigint; "account": SS58String; }; /** * Some of our funds have been burnt. */ "Burnt": { "burnt_funds": bigint; }; /** * Spending has finished; this is the amount that rolls over until next spend. */ "Rollover": { "rollover_balance": bigint; }; /** * Some funds have been deposited. */ "Deposit": Anonymize; /** * A new spend proposal has been approved. */ "SpendApproved": { "proposal_index": number; "amount": bigint; "beneficiary": SS58String; }; /** * The inactive funds of the pallet have been updated. */ "UpdatedInactive": { "reactivated": bigint; "deactivated": bigint; }; /** * A new asset spend proposal has been approved. */ "AssetSpendApproved": { "index": number; "asset_kind": Anonymize; "amount": bigint; "beneficiary": Anonymize; "valid_from": number; "expire_at": number; }; /** * An approved spend was voided. */ "AssetSpendVoided": Anonymize; /** * A payment happened. */ "Paid": { "index": number; "payment_id": bigint; }; /** * A payment failed and can be retried. */ "PaymentFailed": { "index": number; "payment_id": bigint; }; /** * A spend was processed and removed from the storage. It might have been successfully * paid or it may have expired. */ "SpendProcessed": Anonymize; }>; "ConvictionVoting": Enum<{ /** * An account has delegated their vote to another account. \[who, target\] */ "Delegated": [SS58String, SS58String, number]; /** * An \[account\] has cancelled a previous delegation operation. */ "Undelegated": Anonymize; /** * An account has voted */ "Voted": { "who": SS58String; "vote": ConvictionVotingVoteAccountVote; "poll_index": number; }; /** * A vote has been removed */ "VoteRemoved": { "who": SS58String; "vote": ConvictionVotingVoteAccountVote; "poll_index": number; }; /** * The lockup period of a conviction vote expired, and the funds have been unlocked. */ "VoteUnlocked": { "who": SS58String; "class": number; }; }>; "Referenda": Enum<{ /** * A referendum has been submitted. */ "Submitted": { /** * Index of the referendum. */ "index": number; /** * The track (and by extension proposal dispatch origin) of this referendum. */ "track": number; /** * The proposal for the referendum. */ "proposal": PreimagesBounded; }; /** * The decision deposit has been placed. */ "DecisionDepositPlaced": { /** * Index of the referendum. */ "index": number; /** * The account who placed the deposit. */ "who": SS58String; /** * The amount placed by the account. */ "amount": bigint; }; /** * The decision deposit has been refunded. */ "DecisionDepositRefunded": { /** * Index of the referendum. */ "index": number; /** * The account who placed the deposit. */ "who": SS58String; /** * The amount placed by the account. */ "amount": bigint; }; /** * A deposit has been slashed. */ "DepositSlashed": Anonymize; /** * A referendum has moved into the deciding phase. */ "DecisionStarted": { /** * Index of the referendum. */ "index": number; /** * The track (and by extension proposal dispatch origin) of this referendum. */ "track": number; /** * The proposal for the referendum. */ "proposal": PreimagesBounded; /** * The current tally of votes in this referendum. */ "tally": Anonymize; }; "ConfirmStarted": Anonymize; "ConfirmAborted": Anonymize; /** * A referendum has ended its confirmation phase and is ready for approval. */ "Confirmed": { /** * Index of the referendum. */ "index": number; /** * The final tally of votes in this referendum. */ "tally": Anonymize; }; /** * A referendum has been approved and its proposal has been scheduled. */ "Approved": Anonymize; /** * A proposal has been rejected by referendum. */ "Rejected": { /** * Index of the referendum. */ "index": number; /** * The final tally of votes in this referendum. */ "tally": Anonymize; }; /** * A referendum has been timed out without being decided. */ "TimedOut": { /** * Index of the referendum. */ "index": number; /** * The final tally of votes in this referendum. */ "tally": Anonymize; }; /** * A referendum has been cancelled. */ "Cancelled": { /** * Index of the referendum. */ "index": number; /** * The final tally of votes in this referendum. */ "tally": Anonymize; }; /** * A referendum has been killed. */ "Killed": { /** * Index of the referendum. */ "index": number; /** * The final tally of votes in this referendum. */ "tally": Anonymize; }; /** * The submission deposit has been refunded. */ "SubmissionDepositRefunded": { /** * Index of the referendum. */ "index": number; /** * The account who placed the deposit. */ "who": SS58String; /** * The amount placed by the account. */ "amount": bigint; }; /** * Metadata for a referendum has been set. */ "MetadataSet": { /** * Index of the referendum. */ "index": number; /** * Preimage hash. */ "hash": SizedHex<32>; }; /** * Metadata for a referendum has been cleared. */ "MetadataCleared": { /** * Index of the referendum. */ "index": number; /** * Preimage hash. */ "hash": SizedHex<32>; }; }>; "Whitelist": Enum<{ "CallWhitelisted": Anonymize; "WhitelistedCallRemoved": Anonymize; "WhitelistedCallDispatched": { "call_hash": SizedHex<32>; "result": Anonymize; }; }>; "Bounties": Enum<{ /** * New bounty proposal. */ "BountyProposed": Anonymize; /** * A bounty proposal was rejected; funds were slashed. */ "BountyRejected": { "index": number; "bond": bigint; }; /** * A bounty proposal is funded and became active. */ "BountyBecameActive": Anonymize; /** * A bounty is awarded to a beneficiary. */ "BountyAwarded": { "index": number; "beneficiary": SS58String; }; /** * A bounty is claimed by beneficiary. */ "BountyClaimed": { "index": number; "payout": bigint; "beneficiary": SS58String; }; /** * A bounty is cancelled. */ "BountyCanceled": Anonymize; /** * A bounty expiry is extended. */ "BountyExtended": Anonymize; /** * A bounty is approved. */ "BountyApproved": Anonymize; /** * A bounty curator is proposed. */ "CuratorProposed": { "bounty_id": number; "curator": SS58String; }; /** * A bounty curator is unassigned. */ "CuratorUnassigned": Anonymize; /** * A bounty curator is accepted. */ "CuratorAccepted": { "bounty_id": number; "curator": SS58String; }; /** * A bounty deposit has been poked. */ "DepositPoked": { "bounty_id": number; "proposer": SS58String; "old_deposit": bigint; "new_deposit": bigint; }; }>; "ChildBounties": ChildBountiesEvent; "AssetRate": Enum<{ "AssetRateCreated": Anonymize; "AssetRateRemoved": Anonymize; "AssetRateUpdated": { "asset_kind": Anonymize; "old": bigint; "new": bigint; }; }>; "MultiAssetBounties": Enum<{ /** * A new bounty was created and funding has been initiated. */ "BountyCreated": Anonymize; /** * A new child-bounty was created and funding has been initiated. */ "ChildBountyCreated": Anonymize; /** * The curator accepted role and child-/bounty became active. */ "BountyBecameActive": { "index": number; "child_index"?: Anonymize; "curator": SS58String; }; /** * A child-/bounty was awarded to a beneficiary. */ "BountyAwarded": { "index": number; "child_index"?: Anonymize; "beneficiary": Anonymize; }; /** * Payout payment to the beneficiary has concluded successfully. */ "BountyPayoutProcessed": { "index": number; "child_index"?: Anonymize; "asset_kind": Anonymize; "value": bigint; "beneficiary": Anonymize; }; /** * Funding payment has concluded successfully. */ "BountyFundingProcessed": { "index": number; "child_index"?: Anonymize; }; /** * Refund payment has concluded successfully. */ "BountyRefundProcessed": { "index": number; "child_index"?: Anonymize; }; /** * A child-/bounty was cancelled. */ "BountyCanceled": { "index": number; "child_index"?: Anonymize; }; /** * A child-/bounty curator was unassigned. */ "CuratorUnassigned": { "index": number; "child_index"?: Anonymize; }; /** * A child-/bounty curator was proposed. */ "CuratorProposed": { "index": number; "child_index"?: Anonymize; "curator": SS58String; }; /** * A payment failed and can be retried. */ "PaymentFailed": { "index": number; "child_index"?: Anonymize; "payment_id": bigint; }; /** * A payment happened and can be checked. */ "Paid": { "index": number; "child_index"?: Anonymize; "payment_id": bigint; }; /** * A bounty's value was increased by its curator. */ "BountyValueIncreased": { "index": number; "old_value": bigint; "new_value": bigint; }; }>; "StateTrieMigration": Enum<{ /** * Given number of `(top, child)` keys were migrated respectively, with the given * `compute`. */ "Migrated": { "top": number; "child": number; "compute": Enum<{ "Signed": undefined; "Auto": undefined; }>; }; /** * Some account got slashed by the given amount. */ "Slashed": Anonymize; /** * The auto migration task finished. */ "AutoMigrationFinished": undefined; /** * Migration got halted due to an error or miss-configuration. */ "Halted": { "error": Anonymize; }; }>; "NominationPools": Enum<{ /** * A pool has been created. */ "Created": { "depositor": SS58String; "pool_id": number; }; /** * A member has became bonded in a pool. */ "Bonded": { "member": SS58String; "pool_id": number; "bonded": bigint; "joined": boolean; }; /** * A payout has been made to a member. */ "PaidOut": { "member": SS58String; "pool_id": number; "payout": bigint; }; /** * A member has unbonded from their pool. * * - `balance` is the corresponding balance of the number of points that has been * requested to be unbonded (the argument of the `unbond` transaction) from the bonded * pool. * - `points` is the number of points that are issued as a result of `balance` being * dissolved into the corresponding unbonding pool. * - `era` is the era in which the balance will be unbonded. * In the absence of slashing, these values will match. In the presence of slashing, the * number of points that are issued in the unbonding pool will be less than the amount * requested to be unbonded. */ "Unbonded": { "member": SS58String; "pool_id": number; "balance": bigint; "points": bigint; "era": number; }; /** * A member has withdrawn from their pool. * * The given number of `points` have been dissolved in return of `balance`. * * Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance * will be 1. */ "Withdrawn": { "member": SS58String; "pool_id": number; "balance": bigint; "points": bigint; }; /** * A pool has been destroyed. */ "Destroyed": Anonymize; /** * The state of a pool has changed */ "StateChanged": { "pool_id": number; "new_state": NominationPoolsPoolState; }; /** * A member has been removed from a pool. * * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked). * Any funds that are still delegated (i.e. dangling delegation) are released and are * represented by `released_balance`. */ "MemberRemoved": { "pool_id": number; "member": SS58String; "released_balance": bigint; }; /** * The roles of a pool have been updated to the given new roles. Note that the depositor * can never change. */ "RolesUpdated": { "root"?: Anonymize; "bouncer"?: Anonymize; "nominator"?: Anonymize; }; /** * The active balance of pool `pool_id` has been slashed to `balance`. */ "PoolSlashed": { "pool_id": number; "balance": bigint; }; /** * The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. */ "UnbondingPoolSlashed": { "pool_id": number; "era": number; "balance": bigint; }; /** * A pool's commission setting has been changed. */ "PoolCommissionUpdated": { "pool_id": number; "current"?: Anonymize; }; /** * A pool's maximum commission setting has been changed. */ "PoolMaxCommissionUpdated": Anonymize; /** * A pool's commission `change_rate` has been changed. */ "PoolCommissionChangeRateUpdated": Anonymize; /** * Pool commission claim permission has been updated. */ "PoolCommissionClaimPermissionUpdated": Anonymize; /** * Pool commission has been claimed. */ "PoolCommissionClaimed": { "pool_id": number; "commission": bigint; }; /** * Topped up deficit in frozen ED of the reward pool. */ "MinBalanceDeficitAdjusted": Anonymize; /** * Claimed excess frozen ED of af the reward pool. */ "MinBalanceExcessAdjusted": Anonymize; /** * A pool member's claim permission has been updated. */ "MemberClaimPermissionUpdated": { "member": SS58String; "permission": NominationPoolsClaimPermission; }; /** * A pool's metadata was updated. */ "MetadataUpdated": { "pool_id": number; "caller": SS58String; }; /** * A pool's nominating account (or the pool's root account) has nominated a validator set * on behalf of the pool. */ "PoolNominationMade": { "pool_id": number; "caller": SS58String; }; /** * The pool is chilled i.e. no longer nominating. */ "PoolNominatorChilled": { "pool_id": number; "caller": SS58String; }; /** * Global parameters regulating nomination pools have been updated. */ "GlobalParamsUpdated": { "min_join_bond": bigint; "min_create_bond": bigint; "max_pools"?: Anonymize; "max_members"?: Anonymize; "max_members_per_pool"?: Anonymize; "global_max_commission"?: Anonymize; }; }>; "VoterList": BagsListEvent; "DelegatedStaking": Enum<{ /** * Funds delegated by a delegator. */ "Delegated": { "agent": SS58String; "delegator": SS58String; "amount": bigint; }; /** * Funds released to a delegator. */ "Released": { "agent": SS58String; "delegator": SS58String; "amount": bigint; }; /** * Funds slashed from a delegator. */ "Slashed": { "agent": SS58String; "delegator": SS58String; "amount": bigint; }; /** * Unclaimed delegation funds migrated to delegator. */ "MigratedDelegation": { "agent": SS58String; "delegator": SS58String; "amount": bigint; }; }>; "StakingRcClient": Enum<{ /** * A said session report was received. */ "SessionReportReceived": { "end_index": number; "activation_timestamp"?: Anonymize; "validator_points_counts": number; "leftover": boolean; }; /** * A new offence was reported. */ "OffenceReceived": { "slash_session": number; "offences_count": number; }; /** * Fees were charged for a user operation (set_keys or purge_keys). * * The fee includes both XCM delivery fee and relay chain execution cost. */ "FeesPaid": { "who": SS58String; "fees": bigint; }; /** * Something occurred that should never happen under normal operation. * Logged as an event for fail-safe observability. */ "Unexpected": Enum<{ "SessionReportIntegrityFailed": undefined; "ValidatorSetIntegrityFailed": undefined; "SessionSkipped": undefined; "SessionAlreadyProcessed": undefined; "ValidatorSetSendFailed": undefined; "ValidatorSetDropped": undefined; }>; }>; "MultiBlockElection": Enum<{ /** * A phase transition happened. Only checks major changes in the variants, not minor inner * values. */ "PhaseTransitioned": { /** * the source phase */ "from": Anonymize; /** * The target phase */ "to": Anonymize; }; /** * Target snapshot creation failed. */ "UnexpectedTargetSnapshotFailed": undefined; /** * Voter snapshot creation failed. */ "UnexpectedVoterSnapshotFailed": undefined; /** * Phase transition could not proceed due to being out of weight. */ "UnexpectedPhaseTransitionOutOfWeight": { "from": Anonymize; "to": Anonymize; "required": Anonymize; "had": Anonymize; }; /** * Phase transition could not even begin becaseu of being out of weight. */ "UnexpectedPhaseTransitionHalt": { "required": Anonymize; "had": Anonymize; }; }>; "MultiBlockElectionVerifier": Enum<{ /** * A verification failed at the given page. * * NOTE: if the index is 0, then this could mean either the feasibility of the last page * was wrong, or the final checks of `finalize_verification` failed. */ "VerificationFailed": [number, Enum<{ "WrongWinnerCount": undefined; "SnapshotUnavailable": undefined; "InvalidVote": undefined; "InvalidVoter": undefined; "InvalidWinner": undefined; "InvalidScore": undefined; "InvalidRound": undefined; "ScoreTooLow": undefined; "FailedToBoundSupport": undefined; "NposElection": Enum<{ "SolutionWeightOverflow": undefined; "SolutionTargetOverflow": undefined; "SolutionInvalidIndex": undefined; "SolutionInvalidPageIndex": undefined; "ArithmeticError": undefined; "InvalidSupportEdge": undefined; "TooManyVoters": undefined; "BoundsExceeded": undefined; "DuplicateVoter": undefined; "DuplicateTarget": undefined; }>; "Incomplete": undefined; }>]; /** * The given page of a solution has been verified, with the given number of winners being * found in it. */ "Verified": Anonymize; /** * A solution with the given score has replaced our current best solution. */ "Queued": [Anonymize, (Anonymize) | undefined]; }>; "MultiBlockElectionSigned": Enum<{ /** * Upcoming submission has been registered for the given account, with the given score. */ "Registered": [number, SS58String, Anonymize]; /** * A page of solution solution with the given index has been stored for the given account. */ "Stored": [number, SS58String, number]; /** * The given account has been rewarded with the given amount. */ "Rewarded": [number, SS58String, bigint]; /** * The given account has been slashed with the given amount. */ "Slashed": [number, SS58String, bigint]; /** * The given solution, for the given round, was ejected. */ "Ejected": Anonymize; /** * The given account has been discarded. */ "Discarded": Anonymize; /** * The given account has bailed. */ "Bailed": Anonymize; }>; "Staking": Enum<{ /** * The era payout has been set. * * In non-minting mode, `validator_payout` is the staker reward budget * snapshotted from the general pot, and `remainder` is always zero. * In legacy minting mode, both fields reflect the `EraPayout` computation. */ "EraPaid": { "era_index": number; "validator_payout": bigint; "remainder": bigint; }; /** * The nominator has been rewarded by this amount to this destination. */ "Rewarded": { "stash": SS58String; "dest": StakingRewardDestination; "amount": bigint; }; /** * A staker (validator or nominator) has been slashed by the given amount. */ "Slashed": { "staker": SS58String; "amount": bigint; }; /** * An old slashing report from a prior era was discarded because it could * not be processed. */ "OldSlashingReportDiscarded": Anonymize; /** * An account has bonded this amount. \[stash, amount\] * * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably, * it will not be emitted for staking rewards when they are added to stake. */ "Bonded": { "stash": SS58String; "amount": bigint; }; /** * An account has unbonded this amount. */ "Unbonded": { "stash": SS58String; "amount": bigint; }; /** * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` * from the unlocking queue. */ "Withdrawn": { "stash": SS58String; "amount": bigint; }; /** * A subsequent event of `Withdrawn`, indicating that `stash` was fully removed from the * system. */ "StakerRemoved": Anonymize; /** * A nominator has been kicked from a validator. */ "Kicked": { "nominator": SS58String; "stash": SS58String; }; /** * An account has stopped participating as either a validator or nominator. */ "Chilled": Anonymize; /** * A Page of stakers rewards are getting paid. `next` is `None` if all pages are claimed. */ "PayoutStarted": { "era_index": number; "validator_stash": SS58String; "page": number; "next"?: Anonymize; }; /** * A validator has set their preferences. */ "ValidatorPrefsSet": { "stash": SS58String; "prefs": Anonymize; }; /** * Voters size limit reached. */ "SnapshotVotersSizeExceeded": { "size": number; }; /** * Targets size limit reached. */ "SnapshotTargetsSizeExceeded": { "size": number; }; "ForceEra": { "mode": StakingForcing; }; /** * Report of a controller batch deprecation. */ "ControllerBatchDeprecated": { "failures": number; }; /** * Staking balance migrated from locks to holds, with any balance that could not be held * is force withdrawn. */ "CurrencyMigrated": { "stash": SS58String; "force_withdraw": bigint; }; /** * A page from a multi-page election was fetched. A number of these are followed by * `StakersElected`. * * `Ok(count)` indicates the give number of stashes were added. * `Err(index)` indicates that the stashes after index were dropped. * `Err(0)` indicates that an error happened but no stashes were dropped nor added. * * The error indicates that a number of validators were dropped due to excess size, but * the overall election will continue. */ "PagedElectionProceeded": { "page": number; "result": ResultPayload; }; /** * An offence for the given validator, for the given percentage of their stake, at the * given era as been reported. */ "OffenceReported": { "offence_era": number; "validator": SS58String; "fraction": number; }; /** * An offence has been processed and the corresponding slash has been computed. */ "SlashComputed": { "offence_era": number; "slash_era": number; "offender": SS58String; "page": number; }; /** * An unapplied slash has been cancelled. */ "SlashCancelled": { "slash_era": number; "validator": SS58String; }; /** * Session change has been triggered. * * If planned_era is one era ahead of active_era, it implies new era is being planned and * election is ongoing. */ "SessionRotated": { "starting_session": number; "active_era": number; "planned_era": number; }; /** * Something occurred that should never happen under normal operation. * Logged as an event for fail-safe observability. */ "Unexpected": Enum<{ "EraDurationBoundExceeded": undefined; "UnknownValidatorActivation": undefined; "PagedElectionOutOfWeight": { "page": number; "required": Anonymize; "had": Anonymize; }; "MissingPayee": { "era": number; "stash": SS58String; }; "ValidatorIncentiveWeightMismatch": Anonymize; "ValidatorIncentiveTransferFailed": Anonymize; }>; /** * An offence was reported that was too old to be processed, and thus was dropped. */ "OffenceTooOld": { "offence_era": number; "validator": SS58String; "fraction": number; }; /** * An old era with the given index was pruned. */ "EraPruned": Anonymize; /** * The validator has been paid their self-stake incentive bonus. */ "ValidatorIncentivePaid": { "era": number; "validator_stash": SS58String; "dest": StakingRewardDestination; "amount": bigint; }; /** * Validator self-stake incentive configuration has been updated. */ "ValidatorIncentiveConfigSet": { "optimum_self_stake": bigint; "hard_cap_self_stake": bigint; "slope_factor": number; }; }>; "Revive": Enum<{ /** * A custom event emitted by the contract. */ "ContractEmitted": { /** * The contract that emitted the event. */ "contract": SizedHex<20>; /** * Data supplied by the contract. Metadata generated during contract compilation * is needed to decode it. */ "data": Uint8Array; /** * A list of topics used to index the event. * Number of topics is capped by [`limits::NUM_EVENT_TOPICS`]. */ "topics": Anonymize; }; /** * Contract deployed by deployer at the specified address. */ "Instantiated": { "deployer": SizedHex<20>; "contract": SizedHex<20>; }; /** * Emitted when an Ethereum transaction reverts. * * Ethereum transactions always complete successfully at the extrinsic level, * as even reverted calls must store their `ReceiptInfo`. * To distinguish reverted calls from successful ones, this event is emitted * for failed Ethereum transactions. */ "EthExtrinsicRevert": { "dispatch_error": Anonymize; }; }>; "AhOps": Enum<{ /** * Some lease reserve could not be unreserved and needs manual cleanup. */ "LeaseUnreserveRemaining": { "depositor": SS58String; "para_id": number; "remaining": bigint; }; /** * Some amount for a crowdloan reserve could not be unreserved and needs manual cleanup. */ "CrowdloanUnreserveRemaining": { "depositor": SS58String; "para_id": number; "remaining": bigint; }; /** * A sovereign parachain account has been migrated from its child to sibling * representation. */ "SovereignMigrated": { /** * The parachain ID that had its account migrated. */ "para_id": number; /** * The old account that was migrated out of. */ "from": SS58String; /** * The new account that was migrated into. */ "to": SS58String; /** * The derivation path that was used to translate the account. */ "derivation_path": Anonymize; }; /** * Failed to re-bond some migrated funds. */ "FailedToBond": Anonymize; }>; }>>; export type Ic9s8f85vjtncc = { "weight": Anonymize; "class": DispatchClass; "pays_fee": Anonymize; }; export type DispatchClass = Enum<{ "Normal": undefined; "Operational": undefined; "Mandatory": undefined; }>; export declare const DispatchClass: GetEnum; export type Icbccs0ug47ilf = { "account": SS58String; }; export type PreimageEvent = Enum<{ /** * A preimage has been noted. */ "Noted": Anonymize; /** * A preimage has been requested. */ "Requested": Anonymize; /** * A preimage has ben cleared. */ "Cleared": Anonymize; }>; export declare const PreimageEvent: GetEnum; export type I9m0re7mv6jlsq = ResultPayload>; export type Ic262ibdoec56a = { "account": SS58String; "amount": bigint; }; export type Id5fm4p8lj5qgi = { "who": SS58String; "amount": bigint; }; export type BalanceStatus = Enum<{ "Free": undefined; "Reserved": undefined; }>; export declare const BalanceStatus: GetEnum; export type I3qt1hgg4djhgb = { "amount": bigint; }; export type Ickdiocl9u813v = AnonymousEnum<{ "Preimage": PreimagePalletHoldReason; "Session": Enum<{ "Keys": undefined; }>; "PolkadotXcm": Enum<{ "AuthorizeAlias": undefined; }>; "MultiAssetBounties": Enum<{ "CuratorDeposit": undefined; }>; "StateTrieMigration": Enum<{ "SlashForMigrate": undefined; }>; "DelegatedStaking": Enum<{ "StakingDelegation": undefined; }>; "StakingRcClient": Enum<{ "Keys": undefined; }>; "MultiBlockElectionSigned": Enum<{ "SignedSubmission": undefined; }>; "Staking": Enum<{ "Staking": undefined; }>; "Revive": Enum<{ "CodeUploadDepositReserve": undefined; "StorageDepositReserve": undefined; "AddressMapping": undefined; }>; }>; export type PreimagePalletHoldReason = Enum<{ "Preimage": undefined; }>; export declare const PreimagePalletHoldReason: GetEnum; export type TransactionPaymentEvent = Enum<{ /** * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, * has been paid by `who`. */ "TransactionFeePaid": { "who": SS58String; "actual_fee": bigint; "tip": bigint; }; }>; export declare const TransactionPaymentEvent: GetEnum; export type CommonClaimsEvent = Enum<{ /** * Someone claimed some DOTs. */ "Claimed": { "who": SS58String; "ethereum_address": SizedHex<20>; "amount": bigint; }; }>; export declare const CommonClaimsEvent: GetEnum; export type I6v8sm60vvkmk7 = { "account_id": SS58String; }; export type I2hq50pu2kdjpo = { "session_index": number; }; export type Ieqhmksji3pmv5 = AnonymousEnum<{ "Complete": { "used": Anonymize; }; "Incomplete": { "used": Anonymize; "error": Anonymize; }; "Error": Anonymize; }>; export type Ieiju48dn66cuh = { "index": number; "error": Anonymize; }; export type If8u5kl4h8070m = { "origin": Anonymize; "destination": Anonymize; "message": Anonymize; "message_id": SizedHex<32>; }; export type Icacj50paggef8 = { "result": Anonymize; }; export type If4ebvclj2ugvi = { "asset_id": number; "who": SS58String; }; export type Ia5le7udkgbaq9 = { "asset_id": number; }; export type Id2vo4qi5agnp0 = { "asset_id": number; "amount": bigint; }; export type I9gqanbbbe917p = { "collection": number; "creator": SS58String; "owner": SS58String; }; export type Id1m1230297f7a = { "collection": number; "owner": SS58String; }; export type Ifvb1p5munhhv4 = { "collection": number; "item": number; "owner": SS58String; }; export type I46h83ilqeed3g = { "collection": number; "item": number; "from": SS58String; "to": SS58String; }; export type Icahse3uoi76n7 = { "collection": number; "new_owner": SS58String; }; export type I5fjkvcb5vr6nb = { "collection": number; "item": number; "owner": SS58String; "delegate": SS58String; }; export type I2gr1toekv86b9 = { "collection": number; "successful_items": Anonymize; }; export type I2v2ikqt2trp52 = { "who": SS58String; "maybe_collection"?: Anonymize; }; export type If3057hi1g5qlo = { "collection": number; "item": number; "price": bigint; "whitelisted_buyer"?: Anonymize; }; export type Iaii5qf41d5n3d = { "collection": number; "item": number; "price": bigint; "seller": SS58String; "buyer": SS58String; }; export type If21n82i0516em = FixedSizeArray<2, Anonymize>; export type I7egh93q89718t = Array<[Anonymize, bigint]>; export type Ifsk7cbmtit1jd = { "ayes": bigint; "nays": bigint; "support": bigint; }; export type ChildBountiesEvent = Enum<{ /** * A child-bounty is added. */ "Added": Anonymize; /** * A child-bounty is awarded to a beneficiary. */ "Awarded": { "index": number; "child_index": number; "beneficiary": SS58String; }; /** * A child-bounty is claimed by beneficiary. */ "Claimed": { "index": number; "child_index": number; "payout": bigint; "beneficiary": SS58String; }; /** * A child-bounty is cancelled. */ "Canceled": Anonymize; }>; export declare const ChildBountiesEvent: GetEnum; export type I60p8l86a8cm59 = { "index": number; "child_index": number; }; export type BagsListEvent = Enum<{ /** * Moved an account from one bag to another. */ "Rebagged": { "who": SS58String; "from": bigint; "to": bigint; }; /** * Updated the score of some account to the given amount. */ "ScoreUpdated": { "who": SS58String; "new_score": bigint; }; }>; export declare const BagsListEvent: GetEnum; export type StakingForcing = Enum<{ "NotForcing": undefined; "ForceNew": undefined; "ForceNone": undefined; "ForceAlways": undefined; }>; export declare const StakingForcing: GetEnum; export type Ialhmrpub9sefe = Array<[XcmVersionedLocation, Array]>; export type I55ku9c5gk50hb = AnonymousEnum<{ "Unimplemented": undefined; "VersionedConversionFailed": undefined; }>; export type I2timq2cfgd8gf = ResultPayload<{ "execution_result": Anonymize; "emitted_events": Anonymize; "forwarded_xcms": Anonymize; }, Anonymize>; export type I5vv5n03oo8gas = (Anonymize) | undefined; export type I200n1ov5tbcvr = FixedSizeArray<2, bigint>; export type ExtensionsCheckMortality = Enum<{ "Immortal": undefined; "Mortal1": number; "Mortal2": number; "Mortal3": number; "Mortal4": number; "Mortal5": number; "Mortal6": number; "Mortal7": number; "Mortal8": number; "Mortal9": number; "Mortal10": number; "Mortal11": number; "Mortal12": number; "Mortal13": number; "Mortal14": number; "Mortal15": number; "Mortal16": number; "Mortal17": number; "Mortal18": number; "Mortal19": number; "Mortal20": number; "Mortal21": number; "Mortal22": number; "Mortal23": number; "Mortal24": number; "Mortal25": number; "Mortal26": number; "Mortal27": number; "Mortal28": number; "Mortal29": number; "Mortal30": number; "Mortal31": number; "Mortal32": number; "Mortal33": number; "Mortal34": number; "Mortal35": number; "Mortal36": number; "Mortal37": number; "Mortal38": number; "Mortal39": number; "Mortal40": number; "Mortal41": number; "Mortal42": number; "Mortal43": number; "Mortal44": number; "Mortal45": number; "Mortal46": number; "Mortal47": number; "Mortal48": number; "Mortal49": number; "Mortal50": number; "Mortal51": number; "Mortal52": number; "Mortal53": number; "Mortal54": number; "Mortal55": number; "Mortal56": number; "Mortal57": number; "Mortal58": number; "Mortal59": number; "Mortal60": number; "Mortal61": number; "Mortal62": number; "Mortal63": number; "Mortal64": number; "Mortal65": number; "Mortal66": number; "Mortal67": number; "Mortal68": number; "Mortal69": number; "Mortal70": number; "Mortal71": number; "Mortal72": number; "Mortal73": number; "Mortal74": number; "Mortal75": number; "Mortal76": number; "Mortal77": number; "Mortal78": number; "Mortal79": number; "Mortal80": number; "Mortal81": number; "Mortal82": number; "Mortal83": number; "Mortal84": number; "Mortal85": number; "Mortal86": number; "Mortal87": number; "Mortal88": number; "Mortal89": number; "Mortal90": number; "Mortal91": number; "Mortal92": number; "Mortal93": number; "Mortal94": number; "Mortal95": number; "Mortal96": number; "Mortal97": number; "Mortal98": number; "Mortal99": number; "Mortal100": number; "Mortal101": number; "Mortal102": number; "Mortal103": number; "Mortal104": number; "Mortal105": number; "Mortal106": number; "Mortal107": number; "Mortal108": number; "Mortal109": number; "Mortal110": number; "Mortal111": number; "Mortal112": number; "Mortal113": number; "Mortal114": number; "Mortal115": number; "Mortal116": number; "Mortal117": number; "Mortal118": number; "Mortal119": number; "Mortal120": number; "Mortal121": number; "Mortal122": number; "Mortal123": number; "Mortal124": number; "Mortal125": number; "Mortal126": number; "Mortal127": number; "Mortal128": number; "Mortal129": number; "Mortal130": number; "Mortal131": number; "Mortal132": number; "Mortal133": number; "Mortal134": number; "Mortal135": number; "Mortal136": number; "Mortal137": number; "Mortal138": number; "Mortal139": number; "Mortal140": number; "Mortal141": number; "Mortal142": number; "Mortal143": number; "Mortal144": number; "Mortal145": number; "Mortal146": number; "Mortal147": number; "Mortal148": number; "Mortal149": number; "Mortal150": number; "Mortal151": number; "Mortal152": number; "Mortal153": number; "Mortal154": number; "Mortal155": number; "Mortal156": number; "Mortal157": number; "Mortal158": number; "Mortal159": number; "Mortal160": number; "Mortal161": number; "Mortal162": number; "Mortal163": number; "Mortal164": number; "Mortal165": number; "Mortal166": number; "Mortal167": number; "Mortal168": number; "Mortal169": number; "Mortal170": number; "Mortal171": number; "Mortal172": number; "Mortal173": number; "Mortal174": number; "Mortal175": number; "Mortal176": number; "Mortal177": number; "Mortal178": number; "Mortal179": number; "Mortal180": number; "Mortal181": number; "Mortal182": number; "Mortal183": number; "Mortal184": number; "Mortal185": number; "Mortal186": number; "Mortal187": number; "Mortal188": number; "Mortal189": number; "Mortal190": number; "Mortal191": number; "Mortal192": number; "Mortal193": number; "Mortal194": number; "Mortal195": number; "Mortal196": number; "Mortal197": number; "Mortal198": number; "Mortal199": number; "Mortal200": number; "Mortal201": number; "Mortal202": number; "Mortal203": number; "Mortal204": number; "Mortal205": number; "Mortal206": number; "Mortal207": number; "Mortal208": number; "Mortal209": number; "Mortal210": number; "Mortal211": number; "Mortal212": number; "Mortal213": number; "Mortal214": number; "Mortal215": number; "Mortal216": number; "Mortal217": number; "Mortal218": number; "Mortal219": number; "Mortal220": number; "Mortal221": number; "Mortal222": number; "Mortal223": number; "Mortal224": number; "Mortal225": number; "Mortal226": number; "Mortal227": number; "Mortal228": number; "Mortal229": number; "Mortal230": number; "Mortal231": number; "Mortal232": number; "Mortal233": number; "Mortal234": number; "Mortal235": number; "Mortal236": number; "Mortal237": number; "Mortal238": number; "Mortal239": number; "Mortal240": number; "Mortal241": number; "Mortal242": number; "Mortal243": number; "Mortal244": number; "Mortal245": number; "Mortal246": number; "Mortal247": number; "Mortal248": number; "Mortal249": number; "Mortal250": number; "Mortal251": number; "Mortal252": number; "Mortal253": number; "Mortal254": number; "Mortal255": number; }>; export declare const ExtensionsCheckMortality: GetEnum; export type I182pt4kr56mhn = { "tip": bigint; "asset_id"?: Anonymize; }; export type I87rnrnks7g0hm = AnonymousEnum<{ "Disabled": undefined; "Enabled": undefined; }>; export type I88k319klqj4fv = AnonymousEnum<{ "System": Anonymize; "ParachainSystem": Anonymize; "Timestamp": Anonymize; "ParachainInfo": undefined; "Balances": Anonymize; "CollatorSelection": Anonymize; "Session": Anonymize; "XcmpQueue": Anonymize; "PolkadotXcm": Anonymize; "CumulusXcm": undefined; "Utility": Enum<{ /** * 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": { "calls": Array; }; /** * Send a call through an indexed pseudonym of the sender. * * Filter from origin are passed along. The call will be dispatched with an origin which * use the same filter as the origin of this call. * * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. * because you expect `proxy` to have been used prior in the call stack and you do not want * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` * in the Multisig pallet instead. * * NOTE: Prior to version *12, this was called `as_limited_sub`. * * The dispatch origin for this call must be _Signed_. */ "as_derivative": { "index": number; "call": TxCallData; }; /** * 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. */ "batch_all": { "calls": Array; }; /** * Dispatches a function call with a provided origin. * * The dispatch origin for this call must be _Root_. * * ## Complexity * - O(1). */ "dispatch_as": { "as_origin": Enum<{ "system": Anonymize; "PolkadotXcm": Anonymize; "CumulusXcm": Anonymize; }>; "call": TxCallData; }; /** * 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. */ "force_batch": { "calls": Array; }; /** * Dispatch a function call with a specified weight. * * This function does not check the weight of the call, and instead allows the * Root origin to specify the weight of the call. * * The dispatch origin for this call must be _Root_. */ "with_weight": { "call": TxCallData; "weight": Anonymize; }; /** * Dispatch a fallback call in the event the main call fails to execute. * May be called from any origin except `None`. * * This function first attempts to dispatch the `main` call. * If the `main` call fails, the `fallback` is attemted. * if the fallback is successfully dispatched, the weights of both calls * are accumulated and an event containing the main call error is deposited. * * In the event of a fallback failure the whole call fails * with the weights returned. * * - `main`: The main call to be dispatched. This is the primary action to execute. * - `fallback`: The fallback call to be dispatched in case the `main` call fails. * * ## Dispatch Logic * - If the origin is `root`, both the main and fallback calls are executed without * applying any origin filters. * - If the origin is not `root`, the origin filter is applied to both the `main` and * `fallback` calls. * * ## Use Case * - Some use cases might involve submitting a `batch` type call in either main, fallback * or both. */ "if_else": { "main": TxCallData; "fallback": TxCallData; }; /** * Dispatches a function call with a provided origin. * * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call. * * The dispatch origin for this call must be _Root_. */ "dispatch_as_fallible": { "as_origin": Enum<{ "system": Anonymize; "PolkadotXcm": Anonymize; "CumulusXcm": Anonymize; }>; "call": TxCallData; }; }>; "Multisig": Enum<{ /** * 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. */ "as_multi_threshold_1": { "other_signatories": Anonymize; "call": TxCallData; }; /** * 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 the approval threshold is met (including the sender's approval), this will * immediately execute the call.** This is the only way to execute a multisig call - * `approve_as_multi` will never trigger execution. * * 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: For intermediate approvals (not the final approval), you should generally use * `approve_as_multi` instead, since it only requires a hash of the call and is more * efficient. * * 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`. */ "as_multi": { "threshold": number; "other_signatories": Anonymize; "maybe_timepoint"?: Anonymize; "call": TxCallData; "max_weight": Anonymize; }; /** * Register approval for a dispatch to be made from a deterministic composite account if * approved by a total of `threshold - 1` of `other_signatories`. * * **This function will NEVER execute the call, even if the approval threshold is * reached.** It only registers approval. To actually execute the call, `as_multi` must * be called with the full call data by any of the signatories. * * This function is more efficient than `as_multi` for intermediate approvals since it * only requires the call hash, not the full call data. * * 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: To execute the call after approvals are gathered, any signatory must call * `as_multi` with the full call data. This function cannot execute the call. * * ## 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`. */ "approve_as_multi": Anonymize; /** * 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. */ "cancel_as_multi": Anonymize; /** * Poke the deposit reserved for an existing multisig operation. * * The dispatch origin for this call must be _Signed_ and must be the original depositor of * the multisig operation. * * The transaction fee is waived if the deposit amount has changed. * * - `threshold`: The total number of approvals needed for this multisig. * - `other_signatories`: The accounts (other than the sender) who are part of the * multisig. * - `call_hash`: The hash of the call this deposit is reserved for. * * Emits `DepositPoked` if successful. */ "poke_deposit": Anonymize; }>; "Proxy": Enum<{ /** * 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": { "real": MultiAddress; "force_proxy_type"?: Anonymize; "call": TxCallData; }; /** * 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. */ "add_proxy": { "delegate": MultiAddress; "proxy_type": Anonymize; "delay": number; }; /** * Unregister a proxy account for the sender. * * The dispatch origin for this call must be _Signed_. * * Parameters: * - `proxy`: The account that the `caller` would like to remove as a proxy. * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ "remove_proxy": { "delegate": MultiAddress; "proxy_type": Anonymize; "delay": number; }; /** * Unregister all proxy accounts for the sender. * * The dispatch origin for this call must be _Signed_. * * WARNING: This may be called on accounts created by `create_pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ "remove_proxies": undefined; /** * 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. */ "create_pure": { "proxy_type": Anonymize; "delay": number; "index": number; }; /** * Removes a previously spawned pure proxy. * * WARNING: **All access to this account will be lost.** Any funds held in it will be * inaccessible. * * Requires a `Signed` origin, and the sender account must have been created by a call to * `create_pure` with corresponding parameters. * * - `spawner`: The account that originally called `create_pure` to create this account. * - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`. * - `proxy_type`: The proxy type originally passed to `create_pure`. * - `height`: The height of the chain when the call to `create_pure` was processed. * - `ext_index`: The extrinsic index in which the call to `create_pure` was processed. * * Fails with `NoPermission` in case the caller is not a previously created pure * account whose `create_pure` call has corresponding parameters. */ "kill_pure": { "spawner": MultiAddress; "proxy_type": Anonymize; "index": number; "height": number; "ext_index": number; }; /** * Publish the hash of a proxy-call that will be made in the future. * * This must be called some number of blocks before the corresponding `proxy` is attempted * if the delay associated with the proxy relationship is greater than zero. * * No more than `MaxPending` announcements may be made at any one time. * * This will take a deposit of `AnnouncementDepositFactor` as well as * `AnnouncementDepositBase` if there are no other pending announcements. * * The dispatch origin for this call must be _Signed_ and a proxy of `real`. * * Parameters: * - `real`: The account that the proxy will make a call on behalf of. * - `call_hash`: The hash of the call to be made by the `real` account. */ "announce": Anonymize; /** * 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. */ "remove_announcement": Anonymize; /** * 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. */ "reject_announcement": Anonymize; /** * 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. */ "proxy_announced": { "delegate": MultiAddress; "real": MultiAddress; "force_proxy_type"?: Anonymize; "call": TxCallData; }; /** * Poke / Adjust deposits made for proxies and announcements based on current values. * This can be used by accounts to possibly lower their locked amount. * * The dispatch origin for this call must be _Signed_. * * The transaction fee is waived if the deposit amount has changed. * * Emits `DepositPoked` if successful. */ "poke_deposit": undefined; }>; "BridgeRelayers": Enum<{ /** * Claim accumulated rewards. */ "claim_rewards": { "reward_kind": Anonymize; }; /** * Register relayer or update its registration. * * Registration allows relayer to get priority boost for its message delivery transactions. */ "register": { "valid_till": number; }; /** * `Deregister` relayer. * * After this call, message delivery transactions of the relayer won't get any priority * boost. */ "deregister": undefined; /** * Claim accumulated rewards and send them to the alternative beneficiary. */ "claim_rewards_to": { "reward_kind": Anonymize; "beneficiary": Enum<{ "LocalAccount": SS58String; "AssetHubLocation": XcmVersionedLocation; }>; }; }>; "BridgeKusamaGrandpa": Enum<{ /** * This call is deprecated and will be removed around May 2024. Use the * `submit_finality_proof_ex` instead. Semantically, this call is an equivalent of the * `submit_finality_proof_ex` call without current authority set id check. */ "submit_finality_proof": { "finality_target": Anonymize; "justification": Anonymize; }; /** * Bootstrap the bridge pallet with an initial header and authority set from which to sync. * * The initial configuration provided does not need to be the genesis header of the bridged * chain, it can be any arbitrary header. You can also provide the next scheduled set * change if it is already know. * * This function is only allowed to be called from a trusted origin and writes to storage * with practically no checks in terms of the validity of the data. It is important that * you ensure that valid data is being passed in. */ "initialize": { "init_data": { "header": Anonymize; "authority_list": Anonymize; "set_id": bigint; "operating_mode": Anonymize; }; }; /** * Change `PalletOwner`. * * May only be called either by root, or by `PalletOwner`. */ "set_owner": Anonymize; /** * Halt or resume all pallet operations. * * May only be called either by root, or by `PalletOwner`. */ "set_operating_mode": Anonymize; /** * Verify a target header is finalized according to the given finality proof. The proof * is assumed to be signed by GRANDPA authorities set with `current_set_id` id. * * It will use the underlying storage pallet to fetch information about the current * authorities and best finalized header in order to verify that the header is finalized. * * If successful in verification, it will write the target header to the underlying storage * pallet. * * The call fails if: * * - the pallet is halted; * * - the pallet knows better header than the `finality_target`; * * - the id of best GRANDPA authority set, known to the pallet is not equal to the * `current_set_id`; * * - verification is not optimized or invalid; * * - header contains forced authorities set change or change with non-zero delay. * * The `is_free_execution_expected` parameter is not really used inside the call. It is * used by the transaction extension, which should be registered at the runtime level. If * this parameter is `true`, the transaction will be treated as invalid, if the call won't * be executed for free. If transaction extension is not used by the runtime, this * parameter is not used at all. */ "submit_finality_proof_ex": { "finality_target": Anonymize; "justification": Anonymize; "current_set_id": bigint; "is_free_execution_expected": boolean; }; /** * Set current authorities set and best finalized bridged header to given values * (almost) without any checks. This call can fail only if: * * - the call origin is not a root or a pallet owner; * * - there are too many authorities in the new set. * * No other checks are made. Previously imported headers stay in the storage and * are still accessible after the call. */ "force_set_pallet_state": { "new_current_set_id": bigint; "new_authorities": Anonymize; "new_best_header": Anonymize; }; }>; "BridgeKusamaParachains": Enum<{ /** * Submit proof of one or several parachain heads. * * The proof is supposed to be proof of some `Heads` entries from the * `polkadot-runtime-parachains::paras` pallet instance, deployed at the bridged chain. * The proof is supposed to be crafted at the `relay_header_hash` that must already be * imported by corresponding GRANDPA pallet at this chain. * * The call fails if: * * - the pallet is halted; * * - the relay chain block `at_relay_block` is not imported by the associated bridge * GRANDPA pallet. * * The call may succeed, but some heads may not be updated e.g. because pallet knows * better head or it isn't tracked by the pallet. */ "submit_parachain_heads": { "at_relay_block": Anonymize; "parachains": Anonymize; "parachain_heads_proof": Anonymize; }; /** * Change `PalletOwner`. * * May only be called either by root, or by `PalletOwner`. */ "set_owner": Anonymize; /** * Halt or resume all pallet operations. * * May only be called either by root, or by `PalletOwner`. */ "set_operating_mode": Anonymize; /** * Submit proof of one or several parachain heads. * * The proof is supposed to be proof of some `Heads` entries from the * `polkadot-runtime-parachains::paras` pallet instance, deployed at the bridged chain. * The proof is supposed to be crafted at the `relay_header_hash` that must already be * imported by corresponding GRANDPA pallet at this chain. * * The call fails if: * * - the pallet is halted; * * - the relay chain block `at_relay_block` is not imported by the associated bridge * GRANDPA pallet. * * The call may succeed, but some heads may not be updated e.g. because pallet knows * better head or it isn't tracked by the pallet. * * The `is_free_execution_expected` parameter is not really used inside the call. It is * used by the transaction extension, which should be registered at the runtime level. If * this parameter is `true`, the transaction will be treated as invalid, if the call won't * be executed for free. If transaction extension is not used by the runtime, this * parameter is not used at all. */ "submit_parachain_heads_ex": { "at_relay_block": Anonymize; "parachains": Anonymize; "parachain_heads_proof": Anonymize; "is_free_execution_expected": boolean; }; }>; "BridgeKusamaMessages": Enum<{ /** * Change `PalletOwner`. * * May only be called either by root, or by `PalletOwner`. */ "set_owner": Anonymize; /** * Halt or resume all/some pallet operations. * * May only be called either by root, or by `PalletOwner`. */ "set_operating_mode": { "operating_mode": Enum<{ "Basic": Anonymize; "RejectingOutboundMessages": undefined; }>; }; /** * Receive messages proof from bridged chain. * * The weight of the call assumes that the transaction always brings outbound lane * state update. Because of that, the submitter (relayer) has no benefit of not including * this data in the transaction, so reward confirmations lags should be minimal. * * The call fails if: * * - the pallet is halted; * * - the call origin is not `Signed(_)`; * * - there are too many messages in the proof; * * - the proof verification procedure returns an error - e.g. because header used to craft * proof is not imported by the associated finality pallet; * * - the `dispatch_weight` argument is not sufficient to dispatch all bundled messages. * * The call may succeed, but some messages may not be delivered e.g. if they are not fit * into the unrewarded relayers vector. */ "receive_messages_proof": { "relayer_id_at_bridged_chain": SS58String; "proof": { "bridged_header_hash": SizedHex<32>; "storage_proof": Anonymize; "lane": SizedHex<4>; "nonces_start": bigint; "nonces_end": bigint; }; "messages_count": number; "dispatch_weight": Anonymize; }; /** * Receive messages delivery proof from bridged chain. */ "receive_messages_delivery_proof": { "proof": { "bridged_header_hash": SizedHex<32>; "storage_proof": Anonymize; "lane": SizedHex<4>; }; "relayers_state": { "unrewarded_relayer_entries": bigint; "messages_in_oldest_entry": bigint; "total_messages": bigint; "last_delivered_nonce": bigint; }; }; }>; "XcmOverBridgeHubKusama": Enum<{ /** * Open a bridge between two locations. * * The caller must be within the `T::OpenBridgeOrigin` filter (presumably: a sibling * parachain or a parent relay chain). The `bridge_destination_universal_location` must be * a destination within the consensus of the `T::BridgedNetwork` network. * * The `BridgeDeposit` amount is reserved on the caller account. This deposit * is unreserved after bridge is closed. * * The states after this call: bridge is `Opened`, outbound lane is `Opened`, inbound lane * is `Opened`. */ "open_bridge": { "bridge_destination_universal_location": Anonymize; }; /** * Try to close the bridge. * * Can only be called by the "owner" of this side of the bridge, meaning that the * inbound XCM channel with the local origin chain is working. * * Closed bridge is a bridge without any traces in the runtime storage. So this method * first tries to prune all queued messages at the outbound lane. When there are no * outbound messages left, outbound and inbound lanes are purged. After that, funds * are returned back to the owner of this side of the bridge. * * The number of messages that we may prune in a single call is limited by the * `may_prune_messages` argument. If there are more messages in the queue, the method * prunes exactly `may_prune_messages` and exits early. The caller may call it again * until outbound queue is depleted and get his funds back. * * The states after this call: everything is either `Closed`, or purged from the * runtime storage. */ "close_bridge": { "bridge_destination_universal_location": Anonymize; "may_prune_messages": bigint; }; }>; "EthereumInboundQueue": Enum<{ /** * Submit an inbound message originating from the Gateway contract on Ethereum */ "submit": Anonymize; /** * Halt or resume all pallet operations. May only be called by root. */ "set_operating_mode": Anonymize; }>; "EthereumOutboundQueue": Enum<{ /** * Halt or resume all pallet operations. May only be called by root. */ "set_operating_mode": Anonymize; }>; "EthereumBeaconClient": Enum<{ /** * Used for pallet initialization and light client resetting. Needs to be called by * the root origin. */ "force_checkpoint": { "update": { "header": Anonymize; "current_sync_committee": Anonymize; "current_sync_committee_branch": Anonymize; "validators_root": SizedHex<32>; "block_roots_root": SizedHex<32>; "block_roots_branch": Anonymize; }; }; /** * Submits a new finalized beacon header update. The update may contain the next * sync committee. */ "submit": { "update": { "attested_header": Anonymize; "sync_aggregate": { "sync_committee_bits": SizedHex<64>; "sync_committee_signature": SizedHex<96>; }; "signature_slot": bigint; "next_sync_committee_update"?: ({ "next_sync_committee": Anonymize; "next_sync_committee_branch": Anonymize; }) | undefined; "finalized_header": Anonymize; "finality_branch": Anonymize; "block_roots_root": SizedHex<32>; "block_roots_branch": Anonymize; }; }; /** * Halt or resume all pallet operations. May only be called by root. */ "set_operating_mode": Anonymize; }>; "EthereumSystem": Enum<{ /** * Sends command to the Gateway contract to upgrade itself with a new implementation * contract * * Fee required: No * * - `origin`: Must be `Root`. * - `impl_address`: The address of the implementation contract. * - `impl_code_hash`: The codehash of the implementation contract. * - `initializer`: Optionally call an initializer on the implementation contract. */ "upgrade": { "impl_address": SizedHex<20>; "impl_code_hash": SizedHex<32>; "initializer"?: (Anonymize) | undefined; }; /** * Sends a message to the Gateway contract to change its operating mode * * Fee required: No * * - `origin`: Must be `Location` */ "set_operating_mode": Anonymize; /** * Set pricing parameters on both sides of the bridge * * Fee required: No * * - `origin`: Must be root */ "set_pricing_parameters": { "params": { "exchange_rate": bigint; "rewards": { "local": bigint; "remote": Anonymize; }; "fee_per_gas": Anonymize; "multiplier": bigint; }; }; /** * Sends a message to the Gateway contract to update fee related parameters for * token transfers. * * Privileged. Can only be called by root. * * Fee required: No * * - `origin`: Must be root * - `create_asset_xcm`: The XCM execution cost for creating a new asset class on AssetHub, * in DOT * - `transfer_asset_xcm`: The XCM execution cost for performing a reserve transfer on * AssetHub, in DOT * - `register_token`: The Ether fee for registering a new token, to discourage spamming */ "set_token_transfer_fees": { "create_asset_xcm": bigint; "transfer_asset_xcm": bigint; "register_token": Anonymize; }; /** * Registers a Polkadot-native token as a wrapped ERC20 token on Ethereum. * Privileged. Can only be called by root. * * Fee required: No * * - `origin`: Must be root * - `location`: Location of the asset (relative to this chain) * - `metadata`: Metadata to include in the instantiated ERC20 contract on Ethereum */ "register_token": { "location": XcmVersionedLocation; "metadata": Anonymize; }; }>; "EthereumSystemV2": Enum<{ /** * Sends command to the Gateway contract to upgrade itself with a new implementation * contract * * Fee required: No * * - `origin`: Must be `Root`. * - `impl_address`: The address of the implementation contract. * - `impl_code_hash`: The codehash of the implementation contract. * - `initializer`: Optionally call an initializer on the implementation contract. */ "upgrade": { "impl_address": SizedHex<20>; "impl_code_hash": SizedHex<32>; "initializer": Anonymize; }; /** * Sends a message to the Gateway contract to change its operating mode * * Fee required: No * * - `origin`: Must be `GovernanceOrigin` */ "set_operating_mode": Anonymize; /** * Registers a Polkadot-native token as a wrapped ERC20 token on Ethereum. * * The system frontend pallet on AH proxies this call to BH. * * - `sender`: The original sender initiating the call on AH * - `asset_id`: Location of the asset (relative to this chain) * - `metadata`: Metadata to include in the instantiated ERC20 contract on Ethereum */ "register_token": { "sender": XcmVersionedLocation; "asset_id": XcmVersionedLocation; "metadata": Anonymize; "amount": bigint; }; "add_tip": { "sender": SS58String; "message_id": Anonymize; "amount": bigint; }; }>; "EthereumInboundQueueV2": Enum<{ /** * Submit an inbound message originating from the Gateway contract on Ethereum */ "submit": Anonymize; /** * Halt or resume all pallet operations. May only be called by root. */ "set_operating_mode": Anonymize; }>; "EthereumOutboundQueueV2": Enum<{ "submit_delivery_receipt": Anonymize; }>; "MessageQueue": Enum<{ /** * Remove a page which has no more messages remaining to be processed or is stale. */ "reap_page": { "message_origin": Anonymize; "page_index": number; }; /** * Execute an overweight message. * * Temporary processing errors will be propagated whereas permanent errors are treated * as success condition. * * - `origin`: Must be `Signed`. * - `message_origin`: The origin from which the message to be executed arrived. * - `page`: The page in the queue in which the message to be executed is sitting. * - `index`: The index into the queue of the message to be executed. * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution * of the message. * * Benchmark complexity considerations: O(index + weight_limit). */ "execute_overweight": { "message_origin": Anonymize; "page": number; "index": number; "weight_limit": Anonymize; }; }>; }>; export type Iekve0i6djpd9f = AnonymousEnum<{ /** * Make some on-chain remark. * * Can be executed by every `origin`. */ "remark": Anonymize; /** * Set the number of pages in the WebAssembly environment's heap. */ "set_heap_pages": Anonymize; /** * Set the new runtime code. */ "set_code": Anonymize; /** * 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! */ "set_code_without_checks": Anonymize; /** * Set some items of storage. */ "set_storage": Anonymize; /** * Kill some items from storage. */ "kill_storage": Anonymize; /** * 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. */ "kill_prefix": Anonymize; /** * Make some on-chain remark and emit event. */ "remark_with_event": Anonymize; /** * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied * later. * * This call requires Root origin. */ "authorize_upgrade": Anonymize; /** * 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. */ "authorize_upgrade_without_checks": Anonymize; /** * 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. */ "apply_authorized_upgrade": Anonymize; }>; export type Icr82ei60sfd2s = (Anonymize) | undefined; export type I987m31c7qlje6 = AnonymousEnum<{ "Any": undefined; "NonTransfer": undefined; "CancelProxy": undefined; "Collator": undefined; }>; export type I944pscs1e0r54 = AnonymousEnum<{ "PolkadotKusamaBridge": { "owner": Enum<{ "ThisChain": undefined; "BridgedChain": undefined; }>; "bridged_chain_id": SizedHex<4>; "lane_id": SizedHex<4>; }; "Snowbridge": undefined; }>; export type I1thtncjg26ghr = { "round": bigint; "commit": { "target_hash": SizedHex<32>; "target_number": number; "precommits": Array<{ "precommit": { "target_hash": SizedHex<32>; "target_number": number; }; "signature": SizedHex<64>; "id": SizedHex<32>; }>; }; "votes_ancestries": Anonymize; }; export type I3geksg000c171 = Array<[SizedHex<32>, bigint]>; export type Iaqek632j1l53f = { "new_owner"?: Anonymize; }; export type Id3fgg5dtq3ja9 = { "operating_mode": Anonymize; }; export type I4p5t2krb1gmvp = [number, SizedHex<32>]; export type Iqnbvitf7a7l3 = Array>; export type Ibldt7l7uie0q = AnonymousEnum<{ "V3": XcmV3Junctions; "V4": XcmV3Junctions; "V5": XcmV5Junctions; }>; export type I57noemte0sqgq = { "event": { "event_log": { "address": SizedHex<20>; "topics": Anonymize; "data": Uint8Array; "tx_index": bigint; }; "proof": { "receipt_proof": Anonymize; "execution_proof": { "header": Anonymize; "ancestry_proof"?: ({ "header_branch": Anonymize; "finalized_block_root": SizedHex<32>; }) | undefined; "execution_header": Enum<{ "Capella": { "parent_hash": SizedHex<32>; "fee_recipient": SizedHex<20>; "state_root": SizedHex<32>; "receipts_root": SizedHex<32>; "logs_bloom": Uint8Array; "prev_randao": SizedHex<32>; "block_number": bigint; "gas_limit": bigint; "gas_used": bigint; "timestamp": bigint; "extra_data": Uint8Array; "base_fee_per_gas": Anonymize; "block_hash": SizedHex<32>; "transactions_root": SizedHex<32>; "withdrawals_root": SizedHex<32>; }; "Deneb": { "parent_hash": SizedHex<32>; "fee_recipient": SizedHex<20>; "state_root": SizedHex<32>; "receipts_root": SizedHex<32>; "logs_bloom": Uint8Array; "prev_randao": SizedHex<32>; "block_number": bigint; "gas_limit": bigint; "gas_used": bigint; "timestamp": bigint; "extra_data": Uint8Array; "base_fee_per_gas": Anonymize; "block_hash": SizedHex<32>; "transactions_root": SizedHex<32>; "withdrawals_root": SizedHex<32>; "blob_gas_used": bigint; "excess_blob_gas": bigint; }; }>; "execution_branch": Anonymize; }; }; }; }; export type I8klie9ibvsf25 = { "slot": bigint; "proposer_index": bigint; "parent_root": SizedHex<32>; "state_root": SizedHex<32>; "body_root": SizedHex<32>; }; export type I7m98c0qcl8i5 = { "pubkeys": FixedSizeArray<512, SizedHex<48>>; "aggregate_pubkey": SizedHex<48>; }; export type I4hg6urdpcu924 = { "params": Uint8Array; "maximum_required_gas": bigint; }; export type I8rhs0m55i7olh = { "mode": Enum<{ "Normal": undefined; "RejectingOutboundMessages": undefined; }>; }; export type I5jeo5vq8j59p7 = AnonymousEnum<{ "Here": undefined; "Parent": undefined; "Sibling": number; "Snowbridge": SizedHex<32>; "SnowbridgeV2": SizedHex<32>; }>; export type Ic034j4hb28uuk = AnonymousEnum<{ "System": Anonymize; "Timestamp": Anonymize; "Balances": Enum<{ /** * 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. */ "transfer_allow_death": { "dest": SS58String; "value": bigint; }; /** * Exactly as `transfer_allow_death`, except the origin must be root and the source account * may be specified. */ "force_transfer": { "source": SS58String; "dest": SS58String; "value": bigint; }; /** * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not * kill the origin account. * * 99% of the time you want [`transfer_allow_death`] instead. * * [`transfer_allow_death`]: struct.Pallet.html#method.transfer */ "transfer_keep_alive": { "dest": SS58String; "value": bigint; }; /** * Transfer the entire transferable balance from the caller account. * * NOTE: This function only attempts to transfer _transferable_ balances. This means that * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be * transferred by this function. To ensure that this function results in a killed account, * you might need to prepare the account by removing any reference counters, storage * deposits, etc... * * The dispatch origin of this call must be Signed. * * - `dest`: The recipient of the transfer. * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all * of the funds the account has, causing the sender account to be killed (false), or * transfer everything except at least the existential deposit, which will guarantee to * keep the sender account alive (true). */ "transfer_all": { "dest": SS58String; "keep_alive": boolean; }; /** * Unreserve some balance from a user by force. * * Can only be called by ROOT. */ "force_unreserve": Anonymize; /** * 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). */ "upgrade_accounts": Anonymize; /** * Set the regular balance of a given account. * * The dispatch origin for this call is `root`. */ "force_set_balance": { "who": SS58String; "new_free": bigint; }; /** * Adjust the total issuance in a saturating way. * * Can only be called by root and always needs a positive `delta`. * * # Example */ "force_adjust_total_issuance": Anonymize; /** * 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": Anonymize; }>; "MultiTransactionPayment": Enum<{ /** * Set selected currency for given account. * * This allows to set a currency for an account in which all transaction fees will be paid. * Account balance cannot be zero. * * In case of sufficient asset, the chosen currency must be in the list of accepted currencies * In case of insufficient asset, the chosen currency must have a XYK pool with DOT * * When currency is set, fixed fee is withdrawn from the account to pay for the currency change * * EVM accounts are now allowed to change thier payment currency. * * Emits `CurrencySet` event when successful. */ "set_currency": { "currency": number; }; /** * Add a currency to the list of accepted currencies. * * Only member can perform this action. * * Currency must not be already accepted. Core asset id cannot be explicitly added. * * Emits `CurrencyAdded` event when successful. */ "add_currency": { "currency": number; "price": bigint; }; /** * Remove currency from the list of supported currencies * Only selected members can perform this action * * Core asset cannot be removed. * * Emits `CurrencyRemoved` when successful. */ "remove_currency": { "currency": number; }; /** * Reset currency of the specified account to HDX. * If the account is EVM account, the payment currency is reset to WETH. * Only selected members can perform this action. * * Emits `CurrencySet` when successful. */ "reset_payment_currency": Anonymize; /** * Dispatch a pre-signed EVM permit. * * Unsigned: the EVM account `from` pays for the dispatch via * `withdraw_fee` in its chosen currency. * * Signed: the signer (paymaster) pays both the Substrate extrinsic * fee and the EVM-side gas; `permit.from` is touched only by the * inner call's effects. Root is rejected. */ "dispatch_permit": { "from": SizedHex<20>; "to": SizedHex<20>; "value": Anonymize; "data": Uint8Array; "gas_limit": bigint; "deadline": Anonymize; "v": number; "r": SizedHex<32>; "s": SizedHex<32>; }; }>; "Treasury": Enum<{ /** * Propose and approve a spend of treasury funds. * * ## Dispatch Origin * * Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`. * * ### Details * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the * beneficiary. * * ### Parameters * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. * - `beneficiary`: The destination account for the transfer. * * ## Events * * Emits [`Event::SpendApproved`] if successful. */ "spend_local": { "amount": bigint; "beneficiary": SS58String; }; /** * Force a previously approved proposal to be removed from the approval queue. * * ## Dispatch Origin * * Must be [`Config::RejectOrigin`]. * * ## Details * * The original deposit will no longer be returned. * * ### Parameters * - `proposal_id`: The index of a proposal * * ### Complexity * - O(A) where `A` is the number of approvals * * ### Errors * - [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the * approval queue, i.e., the proposal has not been approved. This could also mean the * proposal does not exist altogether, thus there is no way it would have been approved * in the first place. */ "remove_approval": Anonymize; /** * Propose and approve a spend of treasury funds. * * ## Dispatch Origin * * Must be [`Config::SpendOrigin`] with the `Success` value being at least * `amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted * for assertion using the [`Config::BalanceConverter`]. * * ## Details * * Create an approved spend for transferring a specific `amount` of `asset_kind` to a * designated beneficiary. The spend must be claimed using the `payout` dispatchable within * the [`Config::PayoutPeriod`]. * * ### Parameters * - `asset_kind`: An indicator of the specific asset class to be spent. * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. * - `beneficiary`: The beneficiary of the spend. * - `valid_from`: The block number from which the spend can be claimed. It can refer to * the past if the resulting spend has not yet expired according to the * [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after * approval. * * ## Events * * Emits [`Event::AssetSpendApproved`] if successful. */ "spend": { "amount": bigint; "beneficiary": SS58String; "valid_from"?: Anonymize; }; /** * Claim a spend. * * ## Dispatch Origin * * Must be signed * * ## Details * * Spends must be claimed within some temporal bounds. A spend may be claimed within one * [`Config::PayoutPeriod`] from the `valid_from` block. * In case of a payout failure, the spend status must be updated with the `check_status` * dispatchable before retrying with the current function. * * ### Parameters * - `index`: The spend index. * * ## Events * * Emits [`Event::Paid`] if successful. */ "payout": Anonymize; /** * Check the status of the spend and remove it from the storage if processed. * * ## Dispatch Origin * * Must be signed. * * ## Details * * The status check is a prerequisite for retrying a failed payout. * If a spend has either succeeded or expired, it is removed from the storage by this * function. In such instances, transaction fees are refunded. * * ### Parameters * - `index`: The spend index. * * ## Events * * Emits [`Event::PaymentFailed`] if the spend payout has failed. * Emits [`Event::SpendProcessed`] if the spend payout has succeed. */ "check_status": Anonymize; /** * Void previously approved spend. * * ## Dispatch Origin * * Must be [`Config::RejectOrigin`]. * * ## Details * * A spend void is only possible if the payout has not been attempted yet. * * ### Parameters * - `index`: The spend index. * * ## Events * * Emits [`Event::AssetSpendVoided`] if successful. */ "void_spend": Anonymize; }>; "Utility": Enum<{ /** * 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": { "calls": Array; }; /** * Send a call through an indexed pseudonym of the sender. * * Filter from origin are passed along. The call will be dispatched with an origin which * use the same filter as the origin of this call. * * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. * because you expect `proxy` to have been used prior in the call stack and you do not want * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` * in the Multisig pallet instead. * * NOTE: Prior to version *12, this was called `as_limited_sub`. * * The dispatch origin for this call must be _Signed_. */ "as_derivative": { "index": number; "call": TxCallData; }; /** * 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. */ "batch_all": { "calls": Array; }; /** * Dispatches a function call with a provided origin. * * The dispatch origin for this call must be _Root_. * * ## Complexity * - O(1). */ "dispatch_as": { "as_origin": Anonymize; "call": TxCallData; }; /** * 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. */ "force_batch": { "calls": Array; }; /** * Dispatch a function call with a specified weight. * * This function does not check the weight of the call, and instead allows the * Root origin to specify the weight of the call. * * The dispatch origin for this call must be _Root_. */ "with_weight": { "call": TxCallData; "weight": Anonymize; }; /** * Dispatch a fallback call in the event the main call fails to execute. * May be called from any origin except `None`. * * This function first attempts to dispatch the `main` call. * If the `main` call fails, the `fallback` is attemted. * if the fallback is successfully dispatched, the weights of both calls * are accumulated and an event containing the main call error is deposited. * * In the event of a fallback failure the whole call fails * with the weights returned. * * - `main`: The main call to be dispatched. This is the primary action to execute. * - `fallback`: The fallback call to be dispatched in case the `main` call fails. * * ## Dispatch Logic * - If the origin is `root`, both the main and fallback calls are executed without * applying any origin filters. * - If the origin is not `root`, the origin filter is applied to both the `main` and * `fallback` calls. * * ## Use Case * - Some use cases might involve submitting a `batch` type call in either main, fallback * or both. */ "if_else": { "main": TxCallData; "fallback": TxCallData; }; /** * Dispatches a function call with a provided origin. * * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call. * * The dispatch origin for this call must be _Root_. */ "dispatch_as_fallible": { "as_origin": Anonymize; "call": TxCallData; }; }>; "Preimage": Anonymize; "Identity": Enum<{ /** * Add a registrar to the system. * * The dispatch origin for this call must be `T::RegistrarOrigin`. * * - `account`: the account of the registrar. * * Emits `RegistrarAdded` if successful. */ "add_registrar": Anonymize; /** * Set an account's identity information and reserve the appropriate deposit. * * If the account already has identity information, the deposit is taken as part payment * for the new deposit. * * The dispatch origin for this call must be _Signed_. * * - `info`: The identity information. * * Emits `IdentitySet` if successful. */ "set_identity": { "info": { "additional": Array>; "display": IdentityData; "legal": IdentityData; "web": IdentityData; "riot": IdentityData; "email": IdentityData; "pgp_fingerprint"?: (SizedHex<20>) | undefined; "image": IdentityData; "twitter": IdentityData; }; }; /** * Set the sub-accounts of the sender. * * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned * and an amount `SubAccountDeposit` will be reserved for each item in `subs`. * * The dispatch origin for this call must be _Signed_ and the sender must have a registered * identity. * * - `subs`: The identity's (new) sub-accounts. */ "set_subs": { "subs": Array<[SS58String, IdentityData]>; }; /** * Clear an account's identity info and all sub-accounts and return all deposits. * * Payment: All reserved balances on the account are returned. * * The dispatch origin for this call must be _Signed_ and the sender must have a registered * identity. * * Emits `IdentityCleared` if successful. */ "clear_identity": undefined; /** * Request a judgement from a registrar. * * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement * given. * * The dispatch origin for this call must be _Signed_ and the sender must have a * registered identity. * * - `reg_index`: The index of the registrar whose judgement is requested. * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as: * * ```nocompile * Registrars::::get().get(reg_index).unwrap().fee * ``` * * Emits `JudgementRequested` if successful. */ "request_judgement": { "reg_index": number; "max_fee": bigint; }; /** * Cancel a previous request. * * Payment: A previously reserved deposit is returned on success. * * The dispatch origin for this call must be _Signed_ and the sender must have a * registered identity. * * - `reg_index`: The index of the registrar whose judgement is no longer requested. * * Emits `JudgementUnrequested` if successful. */ "cancel_request": { "reg_index": number; }; /** * Set the fee required for a judgement to be requested from a registrar. * * The dispatch origin for this call must be _Signed_ and the sender must be the account * of the registrar whose index is `index`. * * - `index`: the index of the registrar whose fee is to be set. * - `fee`: the new fee. */ "set_fee": { "index": number; "fee": bigint; }; /** * Change the account associated with a registrar. * * The dispatch origin for this call must be _Signed_ and the sender must be the account * of the registrar whose index is `index`. * * - `index`: the index of the registrar whose fee is to be set. * - `new`: the new account ID. */ "set_account_id": { "index": number; "new": SS58String; }; /** * Set the field information for a registrar. * * The dispatch origin for this call must be _Signed_ and the sender must be the account * of the registrar whose index is `index`. * * - `index`: the index of the registrar whose fee is to be set. * - `fields`: the fields that the registrar concerns themselves with. */ "set_fields": { "index": number; "fields": bigint; }; /** * Provide a judgement for an account's identity. * * The dispatch origin for this call must be _Signed_ and the sender must be the account * of the registrar whose index is `reg_index`. * * - `reg_index`: the index of the registrar whose judgement is being made. * - `target`: the account whose identity the judgement is upon. This must be an account * with a registered identity. * - `judgement`: the judgement of the registrar of index `reg_index` about `target`. * - `identity`: The hash of the [`IdentityInformationProvider`] for that the judgement is * provided. * * Note: Judgements do not apply to a username. * * Emits `JudgementGiven` if successful. */ "provide_judgement": { "reg_index": number; "target": SS58String; "judgement": IdentityJudgement; "identity": SizedHex<32>; }; /** * Remove an account's identity and sub-account information and slash the deposits. * * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by * `Slash`. Verification request deposits are not returned; they should be cancelled * manually using `cancel_request`. * * The dispatch origin for this call must match `T::ForceOrigin`. * * - `target`: the account whose identity the judgement is upon. This must be an account * with a registered identity. * * Emits `IdentityKilled` if successful. */ "kill_identity": Anonymize; /** * Add the given account to the sender's subs. * * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated * to the sender. * * The dispatch origin for this call must be _Signed_ and the sender must have a registered * sub identity of `sub`. */ "add_sub": { "sub": SS58String; "data": IdentityData; }; /** * Alter the associated name of the given sub-account. * * The dispatch origin for this call must be _Signed_ and the sender must have a registered * sub identity of `sub`. */ "rename_sub": { "sub": SS58String; "data": IdentityData; }; /** * Remove the given account from the sender's subs. * * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated * to the sender. * * The dispatch origin for this call must be _Signed_ and the sender must have a registered * sub identity of `sub`. */ "remove_sub": { "sub": SS58String; }; /** * Remove the sender as a sub-account. * * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated * to the sender (*not* the original depositor). * * The dispatch origin for this call must be _Signed_ and the sender must have a registered * super-identity. * * NOTE: This should not normally be used, but is provided in the case that the non- * controller of an account is maliciously registered as a sub-account. */ "quit_sub": undefined; /** * Add an `AccountId` with permission to grant usernames with a given `suffix` appended. * * The authority can grant up to `allocation` usernames. To top up the allocation or * change the account used to grant usernames, this call can be used with the updated * parameters to overwrite the existing configuration. */ "add_username_authority": { "authority": SS58String; "suffix": Uint8Array; "allocation": number; }; /** * Remove `authority` from the username authorities. */ "remove_username_authority": { "suffix": Uint8Array; "authority": SS58String; }; /** * Set the username for `who`. Must be called by a username authority. * * If `use_allocation` is set, the authority must have a username allocation available to * spend. Otherwise, the authority will need to put up a deposit for registering the * username. * * Users can either pre-sign their usernames or * accept them later. * * Usernames must: * - Only contain lowercase ASCII characters or digits. * - When combined with the suffix of the issuing authority be _less than_ the * `MaxUsernameLength`. */ "set_username_for": { "who": SS58String; "username": Uint8Array; "signature"?: (MultiSignature) | undefined; "use_allocation": boolean; }; /** * Accept a given username that an `authority` granted. The call must include the full * username, as in `username.suffix`. */ "accept_username": { "username": Uint8Array; }; /** * Remove an expired username approval. The username was approved by an authority but never * accepted by the user and must now be beyond its expiration. The call must include the * full username, as in `username.suffix`. */ "remove_expired_approval": { "username": Uint8Array; }; /** * Set a given username as the primary. The username should include the suffix. */ "set_primary_username": { "username": Uint8Array; }; /** * Start the process of removing a username by placing it in the unbinding usernames map. * Once the grace period has passed, the username can be deleted by calling * [remove_username](crate::Call::remove_username). */ "unbind_username": { "username": Uint8Array; }; /** * Permanently delete a username which has been unbinding for longer than the grace period. * Caller is refunded the fee if the username expired and the removal was successful. */ "remove_username": { "username": Uint8Array; }; /** * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username * and slashes any deposit associated with it. */ "kill_username": { "username": Uint8Array; }; }>; "Democracy": Enum<{ /** * Propose a sensitive action to be taken. * * The dispatch origin of this call must be _Signed_ and the sender must * have funds to cover the deposit. * * - `proposal_hash`: The hash of the proposal preimage. * - `value`: The amount of deposit (must be at least `MinimumDeposit`). * * Emits `Proposed`. */ "propose": { "proposal": PreimagesBounded; "value": bigint; }; /** * Signals agreement with a particular proposal. * * The dispatch origin of this call must be _Signed_ and the sender * must have funds to cover the deposit, equal to the original deposit. * * - `proposal`: The index of the proposal to second. */ "second": { "proposal": number; }; /** * Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; * otherwise it is a vote to keep the status quo. * * The dispatch origin of this call must be _Signed_. * * - `ref_index`: The index of the referendum to vote for. * - `vote`: The vote configuration. */ "vote": { "ref_index": number; "vote": Enum<{ "Standard": Anonymize; "Split": Anonymize; }>; }; /** * Schedule an emergency cancellation of a referendum. Cannot happen twice to the same * referendum. * * The dispatch origin of this call must be `CancellationOrigin`. * * -`ref_index`: The index of the referendum to cancel. * * Weight: `O(1)`. */ "emergency_cancel": { "ref_index": number; }; /** * Schedule a referendum to be tabled once it is legal to schedule an external * referendum. * * The dispatch origin of this call must be `ExternalOrigin`. * * - `proposal_hash`: The preimage hash of the proposal. */ "external_propose": { "proposal": PreimagesBounded; }; /** * Schedule a majority-carries referendum to be tabled next once it is legal to schedule * an external referendum. * * The dispatch of this call must be `ExternalMajorityOrigin`. * * - `proposal_hash`: The preimage hash of the proposal. * * Unlike `external_propose`, blacklisting has no effect on this and it may replace a * pre-scheduled `external_propose` call. * * Weight: `O(1)` */ "external_propose_majority": { "proposal": PreimagesBounded; }; /** * Schedule a negative-turnout-bias referendum to be tabled next once it is legal to * schedule an external referendum. * * The dispatch of this call must be `ExternalDefaultOrigin`. * * - `proposal_hash`: The preimage hash of the proposal. * * Unlike `external_propose`, blacklisting has no effect on this and it may replace a * pre-scheduled `external_propose` call. * * Weight: `O(1)` */ "external_propose_default": { "proposal": PreimagesBounded; }; /** * Schedule the currently externally-proposed majority-carries referendum to be tabled * immediately. If there is no externally-proposed referendum currently, or if there is one * but it is not a majority-carries referendum then it fails. * * The dispatch of this call must be `FastTrackOrigin`. * * - `proposal_hash`: The hash of the current external proposal. * - `voting_period`: The period that is allowed for voting on this proposal. Increased to * Must be always greater than zero. * For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`. * - `delay`: The number of block after voting has ended in approval and this should be * enacted. This doesn't have a minimum amount. * * Emits `Started`. * * Weight: `O(1)` */ "fast_track": { "proposal_hash": SizedHex<32>; "voting_period": number; "delay": number; }; /** * Veto and blacklist the external proposal hash. * * The dispatch origin of this call must be `VetoOrigin`. * * - `proposal_hash`: The preimage hash of the proposal to veto and blacklist. * * Emits `Vetoed`. * * Weight: `O(V + log(V))` where V is number of `existing vetoers` */ "veto_external": Anonymize; /** * Remove a referendum. * * The dispatch origin of this call must be _Root_. * * - `ref_index`: The index of the referendum to cancel. * * # Weight: `O(1)`. */ "cancel_referendum": { "ref_index": number; }; /** * Delegate the voting power (with some given conviction) of the sending account. * * The balance delegated is locked for as long as it's delegated, and thereafter for the * time appropriate for the conviction's lock period. * * The dispatch origin of this call must be _Signed_, and the signing account must either: * - be delegating already; or * - have no voting activity (if there is, then it will need to be removed/consolidated * through `reap_vote` or `unvote`). * * - `to`: The account whose voting the `target` account's voting power will follow. * - `conviction`: The conviction that will be attached to the delegated votes. When the * account is undelegated, the funds will be locked for the corresponding period. * - `balance`: The amount of the account's balance to be used in delegating. This must not * be more than the account's current balance. * * Emits `Delegated`. * * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ "delegate": { "to": SS58String; "conviction": VotingConviction; "balance": bigint; }; /** * Undelegate the voting power of the sending account. * * Tokens may be unlocked following once an amount of time consistent with the lock period * of the conviction with which the delegation was issued. * * The dispatch origin of this call must be _Signed_ and the signing account must be * currently delegating. * * Emits `Undelegated`. * * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ "undelegate": undefined; /** * Clears all public proposals. * * The dispatch origin of this call must be _Root_. * * Weight: `O(1)`. */ "clear_public_proposals": undefined; /** * Unlock tokens that have an expired lock. * * The dispatch origin of this call must be _Signed_. * * - `target`: The account to remove the lock on. * * Weight: `O(R)` with R number of vote of target. */ "unlock": Anonymize; /** * Remove a vote for a referendum. * * If: * - the referendum was cancelled, or * - the referendum is ongoing, or * - the referendum has ended such that * - the vote of the account was in opposition to the result; or * - there was no conviction to the account's vote; or * - the account made a split vote * ...then the vote is removed cleanly and a following call to `unlock` may result in more * funds being available. * * If, however, the referendum has ended and: * - it finished corresponding to the vote of the account, and * - the account made a standard vote with conviction, and * - the lock period of the conviction is not over * ...then the lock will be aggregated into the overall account's lock, which may involve * *overlocking* (where the two locks are combined into a single lock that is the maximum * of both the amount locked and the time is it locked for). * * The dispatch origin of this call must be _Signed_, and the signer must have a vote * registered for referendum `index`. * * - `index`: The index of referendum of the vote to be removed. * * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. * Weight is calculated for the maximum number of vote. */ "remove_vote": Anonymize; /** * Remove a vote for a referendum. * * If the `target` is equal to the signer, then this function is exactly equivalent to * `remove_vote`. If not equal to the signer, then the vote must have expired, * either because the referendum was cancelled, because the voter lost the referendum or * because the conviction period is over. * * The dispatch origin of this call must be _Signed_. * * - `target`: The account of the vote to be removed; this account must have voted for * referendum `index`. * - `index`: The index of referendum of the vote to be removed. * * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. * Weight is calculated for the maximum number of vote. */ "remove_other_vote": { "target": SS58String; "index": number; }; /** * Permanently place a proposal into the blacklist. This prevents it from ever being * proposed again. * * If called on a queued public or external proposal, then this will result in it being * removed. If the `ref_index` supplied is an active referendum with the proposal hash, * then it will be cancelled. * * The dispatch origin of this call must be `BlacklistOrigin`. * * - `proposal_hash`: The proposal hash to blacklist permanently. * - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be * cancelled. * * Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a * reasonable value). */ "blacklist": { "proposal_hash": SizedHex<32>; "maybe_ref_index"?: Anonymize; }; /** * Remove a proposal. * * The dispatch origin of this call must be `CancelProposalOrigin`. * * - `prop_index`: The index of the proposal to cancel. * * Weight: `O(p)` where `p = PublicProps::::decode_len()` */ "cancel_proposal": { "prop_index": number; }; /** * Set or clear a metadata of a proposal or a referendum. * * Parameters: * - `origin`: Must correspond to the `MetadataOwner`. * - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove` * threshold. * - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst` * threshold. * - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority` * threshold. * - `Signed` by a creator for a public proposal. * - `Signed` to clear a metadata for a finished referendum. * - `Root` to set a metadata for an ongoing referendum. * - `owner`: an identifier of a metadata owner. * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata. */ "set_metadata": { "owner": Enum<{ "External": undefined; "Proposal": number; "Referendum": number; }>; "maybe_hash"?: Anonymize; }; /** * Allow to force remove a vote for a referendum. * * Same as `remove_other_vote`, except the scope is overriden by forced flag. * The dispatch origin of this call must be `VoteRemovalOrigin`. * * Only allowed if the referendum is finished. * * The dispatch origin of this call must be _Signed_. * * - `target`: The account of the vote to be removed; this account must have voted for * referendum `index`. * - `index`: The index of referendum of the vote to be removed. * * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. * Weight is calculated for the maximum number of vote. */ "force_remove_vote": { "target": SS58String; "index": number; }; }>; "TechnicalCommittee": Enum<{ /** * Set the collective's membership. * * - `new_members`: The new member list. Be nice to the chain and provide it sorted. * - `prime`: The prime member whose vote sets the default. * - `old_count`: The upper bound for the previous number of members in storage. Used for * weight estimation. * * The dispatch of this call must be `SetMembersOrigin`. * * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but * the weight estimations rely on it to estimate dispatchable weight. * * # WARNING: * * The `pallet-collective` can also be managed by logic outside of the pallet through the * implementation of the trait [`ChangeMembers`]. * Any call to `set_members` must be careful that the member set doesn't get out of sync * with other logic managing the member set. * * ## Complexity: * - `O(MP + N)` where: * - `M` old-members-count (code- and governance-bounded) * - `N` new-members-count (code- and governance-bounded) * - `P` proposals-count (code-bounded) */ "set_members": { "new_members": Anonymize; "prime"?: Anonymize; "old_count": number; }; /** * Dispatch a proposal from a member using the `Member` origin. * * Origin must be a member of the collective. * * ## Complexity: * - `O(B + M + P)` where: * - `B` is `proposal` size in bytes (length-fee-bounded) * - `M` members-count (code-bounded) * - `P` complexity of dispatching `proposal` */ "execute": { "proposal": TxCallData; "length_bound": number; }; /** * Add a new proposal to either be voted on or executed directly. * * Requires the sender to be member. * * `threshold` determines whether `proposal` is executed directly (`threshold < 2`) * or put up for voting. * * ## Complexity * - `O(B + M + P1)` or `O(B + M + P2)` where: * - `B` is `proposal` size in bytes (length-fee-bounded) * - `M` is members-count (code- and governance-bounded) * - branching is influenced by `threshold` where: * - `P1` is proposal execution complexity (`threshold < 2`) * - `P2` is proposals-count (code-bounded) (`threshold >= 2`) */ "propose": { "threshold": number; "proposal": TxCallData; "length_bound": number; }; /** * Add an aye or nay vote for the sender to the given proposal. * * Requires the sender to be a member. * * Transaction fees will be waived if the member is voting on any particular proposal * for the first time and the call is successful. Subsequent vote changes will charge a * fee. * ## Complexity * - `O(M)` where `M` is members-count (code- and governance-bounded) */ "vote": { "proposal": SizedHex<32>; "index": number; "approve": boolean; }; /** * Disapprove a proposal, close, and remove it from the system, regardless of its current * state. * * Must be called by the Root origin. * * Parameters: * * `proposal_hash`: The hash of the proposal that should be disapproved. * * ## Complexity * O(P) where P is the number of max proposals */ "disapprove_proposal": Anonymize; /** * Close a vote that is either approved, disapproved or whose voting period has ended. * * May be called by any signed account in order to finish voting and close the proposal. * * If called before the end of the voting period it will only close the vote if it is * has enough votes to be approved or disapproved. * * If called after the end of the voting period abstentions are counted as rejections * unless there is a prime member set and the prime member cast an approval. * * If the close operation completes successfully with disapproval, the transaction fee will * be waived. Otherwise execution of the approved operation will be charged to the caller. * * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed * proposal. * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via * `storage::read` so it is `size_of::() == 4` larger than the pure length. * * ## Complexity * - `O(B + M + P1 + P2)` where: * - `B` is `proposal` size in bytes (length-fee-bounded) * - `M` is members-count (code- and governance-bounded) * - `P1` is the complexity of `proposal` preimage. * - `P2` is proposal-count (code-bounded) */ "close": { "proposal_hash": SizedHex<32>; "index": number; "proposal_weight_bound": Anonymize; "length_bound": number; }; /** * Disapprove the proposal and burn the cost held for storing this proposal. * * Parameters: * - `origin`: must be the `KillOrigin`. * - `proposal_hash`: The hash of the proposal that should be killed. * * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal. */ "kill": Anonymize; /** * Release the cost held for storing a proposal once the given proposal is completed. * * If there is no associated cost for the given proposal, this call will have no effect. * * Parameters: * - `origin`: must be `Signed` or `Root`. * - `proposal_hash`: The hash of the proposal. * * Emits `ProposalCostReleased` if any cost held for a given proposal. */ "release_proposal_cost": Anonymize; }>; "Proxy": Enum<{ /** * 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": { "real": SS58String; "force_proxy_type"?: Anonymize; "call": TxCallData; }; /** * 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. */ "add_proxy": { "delegate": SS58String; "proxy_type": Anonymize; "delay": number; }; /** * Unregister a proxy account for the sender. * * The dispatch origin for this call must be _Signed_. * * Parameters: * - `proxy`: The account that the `caller` would like to remove as a proxy. * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ "remove_proxy": { "delegate": SS58String; "proxy_type": Anonymize; "delay": number; }; /** * Unregister all proxy accounts for the sender. * * The dispatch origin for this call must be _Signed_. * * WARNING: This may be called on accounts created by `pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ "remove_proxies": undefined; /** * 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. */ "create_pure": { "proxy_type": Anonymize; "delay": number; "index": number; }; /** * Removes a previously spawned pure proxy. * * WARNING: **All access to this account will be lost.** Any funds held in it will be * inaccessible. * * Requires a `Signed` origin, and the sender account must have been created by a call to * `pure` with corresponding parameters. * * - `spawner`: The account that originally called `pure` to create this account. * - `index`: The disambiguation index originally passed to `create_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. */ "kill_pure": { "spawner": SS58String; "proxy_type": Anonymize; "index": number; "height": number; "ext_index": number; }; /** * Publish the hash of a proxy-call that will be made in the future. * * This must be called some number of blocks before the corresponding `proxy` is attempted * if the delay associated with the proxy relationship is greater than zero. * * No more than `MaxPending` announcements may be made at any one time. * * This will take a deposit of `AnnouncementDepositFactor` as well as * `AnnouncementDepositBase` if there are no other pending announcements. * * The dispatch origin for this call must be _Signed_ and a proxy of `real`. * * Parameters: * - `real`: The account that the proxy will make a call on behalf of. * - `call_hash`: The hash of the call to be made by the `real` account. */ "announce": { "real": SS58String; "call_hash": SizedHex<32>; }; /** * 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. */ "remove_announcement": { "real": SS58String; "call_hash": SizedHex<32>; }; /** * 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. */ "reject_announcement": { "delegate": SS58String; "call_hash": SizedHex<32>; }; /** * 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. */ "proxy_announced": { "delegate": SS58String; "real": SS58String; "force_proxy_type"?: Anonymize; "call": TxCallData; }; /** * Poke / Adjust deposits made for proxies and announcements based on current values. * This can be used by accounts to possibly lower their locked amount. * * The dispatch origin for this call must be _Signed_. * * The transaction fee is waived if the deposit amount has changed. * * Emits `DepositPoked` if successful. */ "poke_deposit": undefined; }>; "Multisig": Enum<{ /** * 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. */ "as_multi_threshold_1": { "other_signatories": Anonymize; "call": TxCallData; }; /** * 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`. */ "as_multi": { "threshold": number; "other_signatories": Anonymize; "maybe_timepoint"?: Anonymize; "call": TxCallData; "max_weight": Anonymize; }; /** * 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`. */ "approve_as_multi": Anonymize; /** * 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. */ "cancel_as_multi": Anonymize; /** * Poke the deposit reserved for an existing multisig operation. * * The dispatch origin for this call must be _Signed_ and must be the original depositor of * the multisig operation. * * The transaction fee is waived if the deposit amount has changed. * * - `threshold`: The total number of approvals needed for this multisig. * - `other_signatories`: The accounts (other than the sender) who are part of the * multisig. * - `call_hash`: The hash of the call this deposit is reserved for. * * Emits `DepositPoked` if successful. */ "poke_deposit": Anonymize; }>; "Uniques": Enum<{ /** * 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": { "collection": bigint; "admin": SS58String; }; /** * 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)` */ "force_create": { "collection": bigint; "owner": SS58String; "free_holding": boolean; }; /** * Destroy a collection of fungible items. * * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the * owner of the `collection`. * * - `collection`: The identifier of the collection to be destroyed. * - `witness`: Information on the items minted in the collection. This must be * correct. * * Emits `Destroyed` event when successful. * * Weight: `O(n + m)` where: * - `n = witness.items` * - `m = witness.item_metadatas` * - `a = witness.attributes` */ "destroy": { "collection": bigint; "witness": Anonymize; }; /** * 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": { "collection": bigint; "item": bigint; "owner": SS58String; }; /** * 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": { "collection": bigint; "item": bigint; "check_owner"?: Anonymize; }; /** * 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": { "collection": bigint; "item": bigint; "dest": SS58String; }; /** * 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": { "collection": bigint; "items": Array; }; /** * Disallow further unprivileged transfer of an item. * * Origin must be Signed and the sender should be the Freezer of the `collection`. * * - `collection`: The collection of the item to be frozen. * - `item`: The item of the item to be frozen. * * Emits `Frozen`. * * Weight: `O(1)` */ "freeze": { "collection": bigint; "item": bigint; }; /** * 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": { "collection": bigint; "item": bigint; }; /** * 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)` */ "freeze_collection": { "collection": bigint; }; /** * 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)` */ "thaw_collection": { "collection": bigint; }; /** * 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)` */ "transfer_ownership": { "collection": bigint; "new_owner": SS58String; }; /** * 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)` */ "set_team": { "collection": bigint; "issuer": SS58String; "admin": SS58String; "freezer": SS58String; }; /** * 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)` */ "approve_transfer": { "collection": bigint; "item": bigint; "delegate": SS58String; }; /** * 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)` */ "cancel_approval": { "collection": bigint; "item": bigint; "maybe_check_delegate"?: Anonymize; }; /** * 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)` */ "force_item_status": { "collection": bigint; "owner": SS58String; "issuer": SS58String; "admin": SS58String; "freezer": SS58String; "free_holding": boolean; "is_frozen": boolean; }; /** * Set an attribute for a collection or item. * * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the * `collection`. * * If the origin is Signed, then funds of signer are reserved according to the formula: * `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into * account any already reserved funds. * * - `collection`: The identifier of the collection whose item's metadata to set. * - `maybe_item`: The identifier of the item whose metadata to set. * - `key`: The key of the attribute. * - `value`: The value to which to set the attribute. * * Emits `AttributeSet`. * * Weight: `O(1)` */ "set_attribute": { "collection": bigint; "maybe_item"?: Anonymize; "key": Uint8Array; "value": Uint8Array; }; /** * 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)` */ "clear_attribute": { "collection": bigint; "maybe_item"?: Anonymize; "key": Uint8Array; }; /** * 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)` */ "set_metadata": { "collection": bigint; "item": bigint; "data": Uint8Array; "is_frozen": boolean; }; /** * Clear the metadata for an item. * * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the * `item`. * * Any deposit is freed for the collection's owner. * * - `collection`: The identifier of the collection whose item's metadata to clear. * - `item`: The identifier of the item whose metadata to clear. * * Emits `MetadataCleared`. * * Weight: `O(1)` */ "clear_metadata": { "collection": bigint; "item": bigint; }; /** * 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)` */ "set_collection_metadata": { "collection": bigint; "data": Uint8Array; "is_frozen": boolean; }; /** * Clear the metadata for a collection. * * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of * the `collection`. * * Any deposit is freed for the collection's owner. * * - `collection`: The identifier of the collection whose metadata to clear. * * Emits `CollectionMetadataCleared`. * * Weight: `O(1)` */ "clear_collection_metadata": { "collection": bigint; }; /** * 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`. */ "set_accept_ownership": { "maybe_collection"?: Anonymize; }; /** * 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. */ "set_collection_max_supply": { "collection": bigint; "max_supply": number; }; /** * Set (or reset) the price for an item. * * Origin must be Signed and must be the owner of the asset `item`. * * - `collection`: The collection of the item. * - `item`: The item to set the price for. * - `price`: The price for the item. Pass `None`, to reset the price. * - `buyer`: Restricts the buy operation to a specific account. * * Emits `ItemPriceSet` on success if the price is not `None`. * Emits `ItemPriceRemoved` on success if the price is `None`. */ "set_price": { "collection": bigint; "item": bigint; "price"?: Anonymize; "whitelisted_buyer"?: Anonymize; }; /** * 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. */ "buy_item": { "collection": bigint; "item": bigint; "bid_price": bigint; }; }>; "StateTrieMigration": Anonymize; "ConvictionVoting": Enum<{ /** * Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal; * otherwise it is a vote to keep the status quo. * * The dispatch origin of this call must be _Signed_. * * - `poll_index`: The index of the poll to vote for. * - `vote`: The vote configuration. * * Weight: `O(R)` where R is the number of polls the voter has voted on. */ "vote": Anonymize; /** * Delegate the voting power (with some given conviction) of the sending account for a * particular class of polls. * * The balance delegated is locked for as long as it's delegated, and thereafter for the * time appropriate for the conviction's lock period. * * The dispatch origin of this call must be _Signed_, and the signing account must either: * - be delegating already; or * - have no voting activity (if there is, then it will need to be removed through * `remove_vote`). * * - `to`: The account whose voting the `target` account's voting power will follow. * - `class`: The class of polls to delegate. To delegate multiple classes, multiple calls * to this function are required. * - `conviction`: The conviction that will be attached to the delegated votes. When the * account is undelegated, the funds will be locked for the corresponding period. * - `balance`: The amount of the account's balance to be used in delegating. This must not * be more than the account's current balance. * * Emits `Delegated`. * * Weight: `O(R)` where R is the number of polls the voter delegating to has * voted on. Weight is initially charged as if maximum votes, but is refunded later. */ "delegate": { "class": number; "to": SS58String; "conviction": VotingConviction; "balance": bigint; }; /** * Undelegate the voting power of the sending account for a particular class of polls. * * Tokens may be unlocked following once an amount of time consistent with the lock period * of the conviction with which the delegation was issued has passed. * * The dispatch origin of this call must be _Signed_ and the signing account must be * currently delegating. * * - `class`: The class of polls to remove the delegation from. * * Emits `Undelegated`. * * Weight: `O(R)` where R is the number of polls the voter delegating to has * voted on. Weight is initially charged as if maximum votes, but is refunded later. */ "undelegate": Anonymize; /** * Remove the lock caused by prior voting/delegating which has expired within a particular * class. * * The dispatch origin of this call must be _Signed_. * * - `class`: The class of polls to unlock. * - `target`: The account to remove the lock on. * * Weight: `O(R)` with R number of vote of target. */ "unlock": { "class": number; "target": SS58String; }; /** * Remove a vote for a poll. * * If: * - the poll was cancelled, or * - the poll is ongoing, or * - the poll has ended such that * - the vote of the account was in opposition to the result; or * - there was no conviction to the account's vote; or * - the account made a split vote * ...then the vote is removed cleanly and a following call to `unlock` may result in more * funds being available. * * If, however, the poll has ended and: * - it finished corresponding to the vote of the account, and * - the account made a standard vote with conviction, and * - the lock period of the conviction is not over * ...then the lock will be aggregated into the overall account's lock, which may involve * *overlocking* (where the two locks are combined into a single lock that is the maximum * of both the amount locked and the time is it locked for). * * The dispatch origin of this call must be _Signed_, and the signer must have a vote * registered for poll `index`. * * - `index`: The index of poll of the vote to be removed. * - `class`: Optional parameter, if given it indicates the class of the poll. For polls * which have finished or are cancelled, this must be `Some`. * * Weight: `O(R + log R)` where R is the number of polls that `target` has voted on. * Weight is calculated for the maximum number of vote. */ "remove_vote": Anonymize; /** * Remove a vote for a poll. * * If the `target` is equal to the signer, then this function is exactly equivalent to * `remove_vote`. If not equal to the signer, then the vote must have expired, * either because the poll was cancelled, because the voter lost the poll or * because the conviction period is over. * * The dispatch origin of this call must be _Signed_. * * - `target`: The account of the vote to be removed; this account must have voted for poll * `index`. * - `index`: The index of poll of the vote to be removed. * - `class`: The class of the poll. * * Weight: `O(R + log R)` where R is the number of polls that `target` has voted on. * Weight is calculated for the maximum number of vote. */ "remove_other_vote": { "target": SS58String; "class": number; "index": number; }; /** * Allow to force remove a vote for a referendum. * * The dispatch origin of this call must be `VoteRemovalOrigin`. * * Only allowed if the referendum is finished. * * The dispatch origin of this call must be _Signed_. * * - `target`: The account of the vote to be removed; this account must have voted for * referendum `index`. * - `index`: The index of referendum of the vote to be removed. * * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. * Weight is calculated for the maximum number of vote. */ "force_remove_vote": { "target": SS58String; "class": number; "index": number; }; }>; "Referenda": Enum<{ /** * Propose a referendum on a privileged action. * * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds * available. * - `proposal_origin`: The origin from which the proposal should be executed. * - `proposal`: The proposal. * - `enactment_moment`: The moment that the proposal should be enacted. * * Emits `Submitted`. */ "submit": { "proposal_origin": Anonymize; "proposal": PreimagesBounded; "enactment_moment": TraitsScheduleDispatchTime; }; /** * Post the Decision Deposit for a referendum. * * - `origin`: must be `Signed` and the account must have funds available for the * referendum's track's Decision Deposit. * - `index`: The index of the submitted referendum whose Decision Deposit is yet to be * posted. * * Emits `DecisionDepositPlaced`. */ "place_decision_deposit": Anonymize; /** * Refund the Decision Deposit for a closed referendum back to the depositor. * * - `origin`: must be `Signed` or `Root`. * - `index`: The index of a closed referendum whose Decision Deposit has not yet been * refunded. * * Emits `DecisionDepositRefunded`. */ "refund_decision_deposit": Anonymize; /** * Cancel an ongoing referendum. * * - `origin`: must be the `CancelOrigin`. * - `index`: The index of the referendum to be cancelled. * * Emits `Cancelled`. */ "cancel": Anonymize; /** * Cancel an ongoing referendum and slash the deposits. * * - `origin`: must be the `KillOrigin`. * - `index`: The index of the referendum to be cancelled. * * Emits `Killed` and `DepositSlashed`. */ "kill": Anonymize; /** * Advance a referendum onto its next logical state. Only used internally. * * - `origin`: must be `Root`. * - `index`: the referendum to be advanced. */ "nudge_referendum": Anonymize; /** * Advance a track onto its next logical state. Only used internally. * * - `origin`: must be `Root`. * - `track`: the track to be advanced. * * Action item for when there is now one fewer referendum in the deciding phase and the * `DecidingCount` is not yet updated. This means that we should either: * - begin deciding another referendum (and leave `DecidingCount` alone); or * - decrement `DecidingCount`. */ "one_fewer_deciding": Anonymize; /** * Refund the Submission Deposit for a closed referendum back to the depositor. * * - `origin`: must be `Signed` or `Root`. * - `index`: The index of a closed referendum whose Submission Deposit has not yet been * refunded. * * Emits `SubmissionDepositRefunded`. */ "refund_submission_deposit": Anonymize; /** * Set or clear metadata of a referendum. * * Parameters: * - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a * metadata of a finished referendum. * - `index`: The index of a referendum to set or clear metadata for. * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata. */ "set_metadata": Anonymize; }>; "Whitelist": Enum<{ "whitelist_call": Anonymize; "remove_whitelisted_call": Anonymize; "dispatch_whitelisted_call": Anonymize; "dispatch_whitelisted_call_with_preimage": Anonymize; }>; "Dispatcher": Enum<{ "dispatch_as_treasury": Anonymize; "dispatch_as_aave_manager": Anonymize; /** * Sets the Aave manager account to be used as origin for dispatching calls. * * This doesn't actually changes any ACL in the pool. * * This is intented to be mainly used in testnet environments, where the manager account * can be different. */ "note_aave_manager": Anonymize; /** * Dispatch a call with extra gas. * * This allows executing calls with additional weight (gas) limit. * The extra gas is not refunded, even if not used. */ "dispatch_with_extra_gas": { "call": TxCallData; "extra_gas": bigint; }; /** * Execute a single EVM call. * This extrinsic will fail if the EVM call returns any other ExitReason than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`. * Look the [hydradx_runtime::evm::runner::WrapRunner] implementation for details. * * Parameters: * - `origin`: Signed origin. * - `call`: presumably `pallet_evm::Call::call` as boxed `RuntimeCall`. * * Emits `EvmCallFailed` event when failed. */ "dispatch_evm_call": Anonymize; /** * Dispatch a call as the emergency admin account. * * This is a fast path for the Technical Committee to react to emergencies * (e.g., pausing exploited markets) without waiting for a full referendum. * The inner call is dispatched as a Signed origin from the configured * emergency admin account. * * Parameters: * - `origin`: Must satisfy `EmergencyAdminOrigin` (TC majority or Root). * - `call`: The runtime call to dispatch as the emergency admin. * * Emits `EmergencyAdminCallDispatched` with the call hash and dispatch result. */ "dispatch_as_emergency_admin": Anonymize; "dispatch_with_fee_payer": Anonymize; }>; "AssetRegistry": Enum<{ /** * Register a new asset. * * New asset is given `NextAssetId` - sequential asset id * * Asset's id is optional and it can't be used by another asset if it's provided. * Provided `asset_id` must be from within reserved range. * If `asset_id` is `None`, new asset is given id for sequential ids. * * Asset's name is optional and it can't be used by another asset if it's provided. * Adds mapping between `name` and assigned `asset_id` so asset id can be retrieved by name too (Note: this approach is used in AMM implementation (xyk)) * * Emits 'Registered` event when successful. */ "register": { "asset_id"?: Anonymize; "name"?: Anonymize; "asset_type": Anonymize; "existential_deposit"?: Anonymize; "symbol"?: Anonymize; "decimals"?: Anonymize; "location"?: Anonymize; "xcm_rate_limit"?: Anonymize; "is_sufficient": boolean; }; /** * Update registered asset. * * All parameteres are optional and value is not updated if param is `None`. * * `decimals` - can be update by `UpdateOrigin` only if it wasn't set yet. Only * `RegistryOrigin` can update `decimals` if it was previously set. * * `location` - can be updated only by `RegistryOrigin`. * * Emits `Updated` event when successful. */ "update": { "asset_id": number; "name"?: Anonymize; "asset_type"?: (Anonymize) | undefined; "existential_deposit"?: Anonymize; "xcm_rate_limit"?: Anonymize; "is_sufficient"?: (boolean) | undefined; "symbol"?: Anonymize; "decimals"?: Anonymize; "location"?: Anonymize; }; "register_external": Anonymize; "ban_asset": Anonymize; "unban_asset": Anonymize; }>; "Claims": Enum<{ /** * Claim xHDX by providing signed message with Ethereum address. */ "claim": { "ethereum_signature": SizedHex<65>; }; }>; "GenesisHistory": undefined; "Omnipool": Enum<{ /** * Add new token to omnipool in quantity `amount` at price `initial_price` * * Initial liquidity must be transferred to pool's account for this new token manually prior to calling `add_token`. * * Initial liquidity is pool's account balance of the token. * * Position NFT token is minted for `position_owner`. * * Parameters: * - `asset`: The identifier of the new asset added to the pool. Must be registered in Asset registry * - `initial_price`: Initial price * - `position_owner`: account id for which share are distributed in form on NFT * - `weight_cap`: asset weight cap * * Emits `TokenAdded` event when successful. * */ "add_token": { "asset": number; "initial_price": bigint; "weight_cap": number; "position_owner": SS58String; }; /** * Add liquidity of asset `asset` in quantity `amount` to Omnipool * * `add_liquidity` adds specified asset amount to Omnipool and in exchange gives the origin * corresponding shares amount in form of NFT at current price. * * Asset's tradable state must contain ADD_LIQUIDITY flag, otherwise `NotAllowed` error is returned. * * NFT is minted using NTFHandler which implements non-fungibles traits from frame_support. * * Asset weight cap must be respected, otherwise `AssetWeightExceeded` error is returned. * Asset weight is ratio between new HubAsset reserve and total reserve of Hub asset in Omnipool. * * Add liquidity fails if price difference between spot price and oracle price is higher than allowed by `PriceBarrier`. * * Parameters: * - `asset`: The identifier of the new asset added to the pool. Must be already in the pool * - `amount`: Amount of asset added to omnipool * * Emits `LiquidityAdded` event when successful. * */ "add_liquidity": { "asset": number; "amount": bigint; }; /** * Add liquidity of asset `asset` in quantity `amount` to Omnipool. * * Limit protection is applied. * * `add_liquidity` adds specified asset amount to Omnipool and in exchange gives the origin * corresponding shares amount in form of NFT at current price. * * Asset's tradable state must contain ADD_LIQUIDITY flag, otherwise `NotAllowed` error is returned. * * NFT is minted using NTFHandler which implements non-fungibles traits from frame_support. * * Asset weight cap must be respected, otherwise `AssetWeightExceeded` error is returned. * Asset weight is ratio between new HubAsset reserve and total reserve of Hub asset in Omnipool. * * Add liquidity fails if price difference between spot price and oracle price is higher than allowed by `PriceBarrier`. * * Parameters: * - `asset`: The identifier of the new asset added to the pool. Must be already in the pool * - `amount`: Amount of asset added to omnipool * - `min_shares_limit`: The min amount of delta share asset the user should receive in the position * * Emits `LiquidityAdded` event when successful. * */ "add_liquidity_with_limit": { "asset": number; "amount": bigint; "min_shares_limit": bigint; }; /** * Add all available liquidity of asset `asset` to Omnipool. * * Deposits the caller's entire free balance of `asset`. Equivalent to calling * `do_add_liquidity` with `amount = free_balance(asset)`. * * Asset's tradable state must contain ADD_LIQUIDITY flag, otherwise `NotAllowed` error is returned. * * NFT is minted using NTFHandler which implements non-fungibles traits from frame_support. * * Asset weight cap must be respected, otherwise `AssetWeightExceeded` error is returned. * Asset weight is ratio between new HubAsset reserve and total reserve of Hub asset in Omnipool. * * Fails if price difference between spot price and oracle price is higher than allowed by `PriceBarrier`. * * Parameters: * - `asset`: The identifier of the asset to add. Must already be in the pool. * - `min_shares_limit`: The minimum amount of shares the caller expects to receive in the position. * * Emits `LiquidityAdded` event when successful. * */ "add_all_liquidity": { "asset": number; "min_shares_limit": bigint; }; /** * Remove liquidity of asset `asset` in quantity `amount` from Omnipool * * `remove_liquidity` removes specified shares amount from given PositionId (NFT instance). * * Asset's tradable state must contain REMOVE_LIQUIDITY flag, otherwise `NotAllowed` error is returned. * * if all shares from given position are removed, position is destroyed and NFT is burned. * * Remove liquidity fails if price difference between spot price and oracle price is higher than allowed by `PriceBarrier`. * * Dynamic withdrawal fee is applied if withdrawal is not safe. It is calculated using spot price and external price oracle. * Withdrawal is considered safe when trading is disabled. * * Parameters: * - `position_id`: The identifier of position which liquidity is removed from. * - `amount`: Amount of shares removed from omnipool * * Emits `LiquidityRemoved` event when successful. * */ "remove_liquidity": Anonymize; /** * Remove liquidity of asset `asset` in quantity `amount` from Omnipool * * Limit protection is applied. * * `remove_liquidity` removes specified shares amount from given PositionId (NFT instance). * * Asset's tradable state must contain REMOVE_LIQUIDITY flag, otherwise `NotAllowed` error is returned. * * if all shares from given position are removed, position is destroyed and NFT is burned. * * Remove liquidity fails if price difference between spot price and oracle price is higher than allowed by `PriceBarrier`. * * Dynamic withdrawal fee is applied if withdrawal is not safe. It is calculated using spot price and external price oracle. * Withdrawal is considered safe when trading is disabled. * * Parameters: * - `position_id`: The identifier of position which liquidity is removed from. * - `amount`: Amount of shares removed from omnipool * - `min_limit`: The min amount of asset to be removed for the user * * Emits `LiquidityRemoved` event when successful. * */ "remove_liquidity_with_limit": { "position_id": bigint; "amount": bigint; "min_limit": bigint; }; /** * Remove all liquidity from position * * Limit protection is applied. * * `remove_all_liquidity` removes all shares amount from given PositionId (NFT instance). * * Asset's tradable state must contain REMOVE_LIQUIDITY flag, otherwise `NotAllowed` error is returned. * * if all shares from given position are removed, position is destroyed and NFT is burned. * * Remove all liquidity fails if price difference between spot price and oracle price is higher than allowed by `PriceBarrier`. * * Dynamic withdrawal fee is applied if withdrawal is not safe. It is calculated using spot price and external price oracle. * Withdrawal is considered safe when trading is disabled. * * Parameters: * - `position_id`: The identifier of position which liquidity is entirely removed from. * * Emits `LiquidityRemoved` event when successful. * */ "remove_all_liquidity": { "position_id": bigint; "min_limit": bigint; }; /** * Sacrifice LP position in favor of pool. * * A position is destroyed and liquidity owned by LP becomes pool owned liquidity. * * Only owner of position can perform this action. * * Emits `PositionDestroyed`. */ "sacrifice_position": Anonymize; /** * Execute a swap of `asset_in` for `asset_out`. * * Price is determined by the Omnipool. * * Hub asset is traded separately. * * Asset's tradable states must contain SELL flag for asset_in and BUY flag for asset_out, otherwise `NotAllowed` error is returned. * * Parameters: * - `asset_in`: ID of asset sold to the pool * - `asset_out`: ID of asset bought from the pool * - `amount`: Amount of asset sold * - `min_buy_amount`: Minimum amount required to receive * * Emits `SellExecuted` event when successful. Deprecated. * Emits `pallet_broadcast::Swapped` event when successful. * */ "sell": { "asset_in": number; "asset_out": number; "amount": bigint; "min_buy_amount": bigint; }; /** * Execute a swap of `asset_out` for `asset_in`. * * Price is determined by the Omnipool. * * Hub asset is traded separately. * * Asset's tradable states must contain SELL flag for asset_in and BUY flag for asset_out, otherwise `NotAllowed` error is returned. * * Parameters: * - `asset_in`: ID of asset sold to the pool * - `asset_out`: ID of asset bought from the pool * - `amount`: Amount of asset sold * - `max_sell_amount`: Maximum amount to be sold. * * Emits `BuyExecuted` event when successful. Deprecated. * Emits `pallet_broadcast::Swapped` event when successful. * */ "buy": { "asset_out": number; "asset_in": number; "amount": bigint; "max_sell_amount": bigint; }; /** * Update asset's tradable state. * * Parameters: * - `asset_id`: asset id * - `state`: new state * * Emits `TradableStateUpdated` event when successful. * */ "set_asset_tradable_state": { "asset_id": number; "state": number; }; /** * Refund given amount of asset to a recipient. * * A refund is needed when a token is refused to be added to Omnipool, and initial liquidity of the asset has been already transferred to pool's account. * * Transfer can be executed only if asset is not in Omnipool and pool's balance has sufficient amount. * * Only `AuthorityOrigin` can perform this operation. * * Emits `AssetRefunded` */ "refund_refused_asset": { "asset_id": number; "amount": bigint; "recipient": SS58String; }; /** * Update asset's weight cap * * Parameters: * - `asset_id`: asset id * - `cap`: new weight cap * * Emits `AssetWeightCapUpdated` event when successful. * */ "set_asset_weight_cap": { "asset_id": number; "cap": number; }; /** * Removes protocol liquidity. * * Protocol liquidity is liquidity from sacrificed positions. In order to remove protocol liquidity, * we need the know the price of the position at the time of sacrifice. Hence this specific call. * * Only `AuthorityOrigin` can perform this call. * * Note that sacrifice position will be deprecated in future. There is no longer a need for that. * * It works the same way as remove liquidity call, but position is temporary reconstructed. * */ "withdraw_protocol_liquidity": { "asset_id": number; "amount": bigint; "price": Anonymize; "dest": SS58String; }; /** * Removes token from Omnipool. * * Asset's tradability must be FROZEN, otherwise `AssetNotFrozen` error is returned. * * Remaining shares must belong to protocol, otherwise `SharesRemaining` error is returned. * * Protocol's liquidity is transferred to the beneficiary account and hub asset amount is burned. * * Only `AuthorityOrigin` can perform this call. * * Emits `TokenRemoved` event when successful. */ "remove_token": { "asset_id": number; "beneficiary": SS58String; }; /** * Set or clear slip fee configuration. * * When set to `Some(config)`, slip fees are enabled with the given parameters. * When set to `None`, slip fees are disabled. * * Can only be called by `UpdateTradabilityOrigin`. * * Emits `SlipFeeSet` event. */ "set_slip_fee": { "slip_fee"?: Anonymize; }; }>; "TransactionPause": Enum<{ "pause_transaction": { "pallet_name": Uint8Array; "function_name": Uint8Array; }; "unpause_transaction": { "pallet_name": Uint8Array; "function_name": Uint8Array; }; }>; "Duster": Enum<{ /** * Dust specified account. * IF account balance is < min. existential deposit of given currency, and account is allowed to * be dusted, the remaining balance is transferred to treasury account. * * In case of AToken, we perform an erc20 dust, which does a wihtdraw all to the treasury account * Note that in this case, the treasury will just receive the underlying token, not the atoken variant. * * The transaction fee is returned back in case of successful dusting. * * Treasury account can never be dusted. * * Emits `Dusted` event when successful. */ "dust_account": { "account": SS58String; "currency_id": number; }; /** * Add account to list of whitelist accounts. Account which are excluded from dusting. * If such account should be dusted - `AccountWhitelisted` error is returned. * Only root can perform this action. * * Emits `Added` event when successful. * */ "whitelist_account": Anonymize; /** * Remove account from list of whitelist accounts. That means account can be dusted again. * * Emits `Removed` event when successful. * */ "remove_from_whitelist": Anonymize; }>; "OmnipoolWarehouseLM": undefined; "OmnipoolLiquidityMining": Enum<{ /** * Create a new liquidity mining program with provided parameters. * * `owner` account has to have at least `total_rewards` balance. These funds will be * transferred from `owner` to farm account. * * The dispatch origin for this call must be `T::CreateOrigin`. * !!!WARN: `T::CreateOrigin` has power over funds of `owner`'s account and it should be * configured to trusted origin e.g Sudo or Governance. * * Parameters: * - `origin`: account allowed to create new liquidity mining program(root, governance). * - `total_rewards`: total rewards planned to distribute. These rewards will be * distributed between all yield farms in the global farm. * - `planned_yielding_periods`: planned number of periods to distribute `total_rewards`. * WARN: THIS IS NOT HARD DEADLINE. Not all rewards have to be distributed in * `planned_yielding_periods`. Rewards are distributed based on the situation in the yield * farms and can be distributed in a longer, though never in a shorter, time frame. * - `blocks_per_period`: number of blocks in a single period. Min. number of blocks per * period is 1. * - `reward_currency`: payoff currency of rewards. * - `owner`: liq. mining farm owner. This account will be able to manage created * liquidity mining program. * - `yield_per_period`: percentage return on `reward_currency` of all farms. * - `min_deposit`: minimum amount of LP shares to be deposited into the liquidity mining by each user. * - `lrna_price_adjustment`: price adjustment between `[LRNA]` and `reward_currency`. * * Emits `GlobalFarmCreated` when successful. * */ "create_global_farm": { "total_rewards": bigint; "planned_yielding_periods": number; "blocks_per_period": number; "reward_currency": number; "owner": SS58String; "yield_per_period": bigint; "min_deposit": bigint; "lrna_price_adjustment": bigint; }; /** * Terminate existing liq. mining program. * * Only farm owner can perform this action. * * WARN: To successfully terminate a global farm, farm have to be empty * (all yield farms in the global farm must be terminated). * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: id of global farm to be terminated. * * Emits `GlobalFarmTerminated` event when successful. * */ "terminate_global_farm": Anonymize; /** * Create yield farm for given `asset_id` in the omnipool. * * Only farm owner can perform this action. * * Asset with `asset_id` has to be registered in the omnipool. * At most one `active` yield farm can exist in one global farm for the same `asset_id`. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: global farm id to which a yield farm will be added. * - `asset_id`: id of a asset in the omnipool. Yield farm will be created * for this asset and user will be able to lock LP shares into this yield farm immediately. * - `multiplier`: yield farm's multiplier. * - `loyalty_curve`: curve to calculate loyalty multiplier to distribute rewards to users * with time incentive. `None` means no loyalty multiplier. * * Emits `YieldFarmCreated` event when successful. * */ "create_yield_farm": { "global_farm_id": number; "asset_id": number; "multiplier": bigint; "loyalty_curve"?: Anonymize; }; /** * Update yield farm's multiplier. * * Only farm owner can perform this action. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: global farm id in which yield farm will be updated. * - `asset_id`: id of the asset identifying yield farm in the global farm. * - `multiplier`: new yield farm's multiplier. * * Emits `YieldFarmUpdated` event when successful. * */ "update_yield_farm": { "global_farm_id": number; "asset_id": number; "multiplier": bigint; }; /** * Stop liquidity miming for specific yield farm. * * This function claims rewards from `GlobalFarm` last time and stop yield farm * incentivization from a `GlobalFarm`. Users will be able to only withdraw * shares(with claiming) after calling this function. * `deposit_shares()` is not allowed on stopped yield farm. * * Only farm owner can perform this action. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: farm id in which yield farm will be canceled. * - `asset_id`: id of the asset identifying yield farm in the global farm. * * Emits `YieldFarmStopped` event when successful. * */ "stop_yield_farm": { "global_farm_id": number; "asset_id": number; }; /** * Resume incentivization of the asset represented by yield farm. * * This function resume incentivization of the asset from the `GlobalFarm` and * restore full functionality or the yield farm. Users will be able to deposit, * claim and withdraw again. * * WARN: Yield farm(and users) is NOT rewarded for time it was stopped. * * Only farm owner can perform this action. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: global farm id in which yield farm will be resumed. * - `yield_farm_id`: id of the yield farm to be resumed. * - `asset_id`: id of the asset identifying yield farm in the global farm. * - `multiplier`: yield farm multiplier. * * Emits `YieldFarmResumed` event when successful. * */ "resume_yield_farm": { "global_farm_id": number; "yield_farm_id": number; "asset_id": number; "multiplier": bigint; }; /** * Terminate yield farm. * * This function marks a yield farm as ready to be removed from storage when it's empty. Users will * be able to only withdraw shares(without claiming rewards from yield farm). Unpaid rewards * will be transferred back to global farm and it will be used to distribute to other yield farms. * * Yield farm must be stopped before it can be terminated. * * Only global farm's owner can perform this action. Yield farm stays in the storage until it's * empty(all farm entries are withdrawn). Last withdrawn from yield farm trigger removing from * the storage. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: global farm id in which yield farm should be terminated. * - `yield_farm_id`: id of yield farm to be terminated. * - `asset_id`: id of the asset identifying yield farm. * * Emits `YieldFarmTerminated` event when successful. * */ "terminate_yield_farm": { "global_farm_id": number; "yield_farm_id": number; "asset_id": number; }; /** * Deposit omnipool position(LP shares) to a liquidity mining. * * This function transfers omnipool position from `origin` to pallet's account and mint NFT for * `origin` account. Minted NFT represents deposit in the liquidity mining. User can * deposit omnipool position as a whole(all the LP shares in the position). * * Parameters: * - `origin`: owner of the omnipool position to deposit into the liquidity mining. * - `global_farm_id`: id of global farm to which user wants to deposit LP shares. * - `yield_farm_id`: id of yield farm to deposit to. * - `position_id`: id of the omnipool position to be deposited into the liquidity mining. * * Emits `SharesDeposited` event when successful. * */ "deposit_shares": { "global_farm_id": number; "yield_farm_id": number; "position_id": bigint; }; /** * Redeposit LP shares in the already locked omnipool position. * * This function create yield farm entry for existing deposit. Amount of redeposited LP * shares is same as amount shares which are already deposited in the deposit. * * This function DOESN'T create new deposit(NFT). * * Parameters: * - `origin`: owner of the deposit to redeposit. * - `global_farm_id`: id of the global farm to which user wants to redeposit LP shares. * - `yield_farm_id`: id of the yield farm to redeposit to. * - `deposit_id`: identifier of the deposit to redeposit. * * Emits `SharesRedeposited` event when successful. * */ "redeposit_shares": { "global_farm_id": number; "yield_farm_id": number; "deposit_id": bigint; }; /** * Claim rewards from liquidity mining program for deposit represented by the `deposit_id`. * * This function calculate user rewards from liquidity mining and transfer rewards to `origin` * account. Claiming multiple time the same period is not allowed. * * Parameters: * - `origin`: owner of deposit. * - `deposit_id`: id of the deposit to claim rewards for. * - `yield_farm_id`: id of the yield farm to claim rewards from. * * Emits `RewardClaimed` event when successful. * */ "claim_rewards": Anonymize; /** * This function claim rewards and withdraw LP shares from yield farm. Omnipool position * is transferred to origin only if this is last withdraw in the deposit and deposit is * destroyed. This function claim rewards only if yield farm is not terminated and user * didn't already claim rewards in current period. * * Unclaimable rewards represents rewards which user won't be able to claim because of * exiting early and these rewards will be transferred back to global farm for future * redistribution. * * Parameters: * - `origin`: owner of deposit. * - `deposit_id`: id of the deposit to claim rewards for. * - `yield_farm_id`: id of the yield farm to claim rewards from. * * Emits: * * `RewardClaimed` event if claimed rewards is > 0 * * `SharesWithdrawn` event when successful * * `DepositDestroyed` event when this was last withdraw from the deposit and deposit was * destroyed. * */ "withdraw_shares": Anonymize; /** * This extrinsic updates global farm's main parameters. * * The dispatch origin for this call must be `T::CreateOrigin`. * !!!WARN: `T::CreateOrigin` has power over funds of `owner`'s account and it should be * configured to trusted origin e.g Sudo or Governance. * * Parameters: * - `origin`: account allowed to create new liquidity mining program(root, governance). * - `global_farm_id`: id of the global farm to update. * - `planned_yielding_periods`: planned number of periods to distribute `total_rewards`. * - `yield_per_period`: percentage return on `reward_currency` of all farms. * - `min_deposit`: minimum amount of LP shares to be deposited into the liquidity mining by each user. * * Emits `GlobalFarmUpdated` event when successful. */ "update_global_farm": { "global_farm_id": number; "planned_yielding_periods": number; "yield_per_period": bigint; "min_deposit": bigint; }; /** * This function allows user to join multiple farms with a single omnipool position. * * Parameters: * - `origin`: owner of the omnipool position to deposit into the liquidity mining. * - `farm_entries`: list of farms to join. * - `position_id`: id of the omnipool position to be deposited into the liquidity mining. * * Emits `SharesDeposited` event for the first farm entry * Emits `SharesRedeposited` event for each farm entry after the first one */ "join_farms": { "farm_entries": Anonymize; "position_id": bigint; }; /** * This function allows user to add liquidity then use that shares to join multiple farms. * * Parameters: * - `origin`: owner of the omnipool position to deposit into the liquidity mining. * - `farm_entries`: list of farms to join. * - `asset`: id of the asset to be deposited into the liquidity mining. * - `amount`: amount of the asset to be deposited into the liquidity mining. * - `min_shares_limit`: The min amount of delta share asset the user should receive in the position * * Emits `SharesDeposited` event for the first farm entry * Emits `SharesRedeposited` event for each farm entry after the first one */ "add_liquidity_and_join_farms": { "farm_entries": Anonymize; "asset": number; "amount": bigint; "min_shares_limit"?: Anonymize; }; /** * Exit from all specified yield farms * * This function will attempt to withdraw shares and claim rewards (if available) from all * specified yield farms for a given deposit. * * Parameters: * - `origin`: account owner of deposit(nft). * - `deposit_id`: id of the deposit to claim rewards for. * - `yield_farm_ids`: id(s) of yield farm(s) to exit from. * * Emits: * * `RewardClaimed` for each successful claim * * `SharesWithdrawn` for each successful withdrawal * * `DepositDestroyed` if the deposit is fully withdrawn * */ "exit_farms": { "deposit_id": bigint; "yield_farm_ids": Anonymize; }; /** * This function allows user to add liquidity to stableswap pool, * then adding the stable shares as liquidity to omnipool * then use that omnipool shares to join multiple farms. * * If farm entries are not specified (empty vectoo), then the liquidities are still added to the pools * * Parameters: * - `origin`: owner of the omnipool position to deposit into the liquidity mining. * - `stable_pool_id`: id of the stableswap pool to add liquidity to. * - `stable_asset_amounts`: amount of each asset to be deposited into the stableswap pool. * - `farm_entries`: list of farms to join. * - `min_shares_limit`: optional minimum Omnipool shares to receive (slippage protection). * Applies to Omnipool step only. None defaults to no protection. * * Emits `LiquidityAdded` events from both pool * Emits `SharesDeposited` event for the first farm entry * Emits `SharesRedeposited` event for each farm entry after the first one * */ "add_liquidity_stableswap_omnipool_and_join_farms": { "stable_pool_id": number; "stable_asset_amounts": Anonymize; "farm_entries"?: (Anonymize) | undefined; "min_shares_limit"?: Anonymize; }; /** * Remove liquidity from stableswap and omnipool, optionally exiting associated yield farms. * * This extrinsic reverses the operation performed by `add_liquidity_stableswap_omnipool_and_join_farms`, * with optional farm exit to match the optional farm join in the add function. * * It performs the following steps in order: * 1. [OPTIONAL] If deposit_id is provided: Exits from ALL yield farms associated with the deposit (claiming rewards) * 2. Removes liquidity from the omnipool to retrieve stableswap shares (protected by omnipool_min_limit) * 3. Removes liquidity from the stableswap pool to retrieve underlying assets (protected by stableswap_min_amounts_out) * * The stabelswap liquidity asset removal strategy is determined by the `min_amounts_out` parameter length: * - If 1 asset is specified: Uses `remove_liquidity_one_asset` (trading fee applies) * - If multiple assets: Uses `remove_liquidity` (proportional, no trading fee) * * Parameters: * - `origin`: Owner of the omnipool position * - `position_id`: The omnipool position NFT ID to remove liquidity from * - `omnipool_min_limit`: The min amount of asset to be removed from omnipool (slippage protection) * - `stableswap_min_amounts_out`: Asset IDs and minimum amounts minimum amounts of each asset to receive from omnipool. * - `deposit_id`: Optional liquidity mining deposit NFT ID. If provided, exits all farms first. * * Emits events: * - If deposit_id provided: `RewardClaimed`, `SharesWithdrawn`, `DepositDestroyed` * - Always: Omnipool's `LiquidityRemoved`, Stableswap's `LiquidityRemoved` * */ "remove_liquidity_stableswap_omnipool_and_exit_farms": { "position_id": bigint; "omnipool_min_limit": bigint; "stableswap_min_amounts_out": Anonymize; "deposit_id"?: Anonymize; }; }>; "OTC": Enum<{ /** * Create a new OTC order * * Parameters: * - `asset_in`: Asset which is being bought * - `asset_out`: Asset which is being sold * - `amount_in`: Amount that the order is seeking to buy * - `amount_out`: Amount that the order is selling * - `partially_fillable`: Flag indicating whether users can fill the order partially * * Validations: * - asset_in must be registered * - amount_in must be higher than the existential deposit of asset_in multiplied by * ExistentialDepositMultiplier * - amount_out must be higher than the existential deposit of asset_out multiplied by * ExistentialDepositMultiplier * * Events: * - `Placed` event when successful. */ "place_order": { "asset_in": number; "asset_out": number; "amount_in": bigint; "amount_out": bigint; "partially_fillable": boolean; }; /** * Fill an OTC order (partially) * * Parameters: * - `order_id`: ID of the order * - `amount_in`: Amount with which the order is being filled * * Validations: * - order must be partially_fillable * - after the partial_fill, the remaining order.amount_in must be higher than the existential deposit * of asset_in multiplied by ExistentialDepositMultiplier * - after the partial_fill, the remaining order.amount_out must be higher than the existential deposit * of asset_out multiplied by ExistentialDepositMultiplier * * Events: * `PartiallyFilled` event when successful. Deprecated. * `pallet_broadcast::Swapped` event when successful. */ "partial_fill_order": { "order_id": number; "amount_in": bigint; }; /** * Fill an OTC order (completely) * * Parameters: * - `order_id`: ID of the order * * Events: * `Filled` event when successful. Deprecated. * `pallet_broadcast::Swapped` event when successful. */ "fill_order": { "order_id": number; }; /** * Cancel an open OTC order * * Parameters: * - `order_id`: ID of the order * - `asset`: Asset which is being filled * - `amount`: Amount which is being filled * * Validations: * - caller is order owner * * Emits `Cancelled` event when successful. */ "cancel_order": { "order_id": number; }; }>; "CircuitBreaker": Enum<{ /** * Set trade volume limit for an asset. * * Parameters: * - `origin`: The dispatch origin for this call. Must be `UpdateLimitsOrigin` * - `asset_id`: The identifier of an asset * - `trade_volume_limit`: New trade volume limit represented as a percentage * * Emits `TradeVolumeLimitChanged` event when successful. * */ "set_trade_volume_limit": { "asset_id": number; "trade_volume_limit": Anonymize; }; /** * Set add liquidity limit for an asset. * * Parameters: * - `origin`: The dispatch origin for this call. Must be `UpdateLimitsOrigin` * - `asset_id`: The identifier of an asset * - `liquidity_limit`: Optional add liquidity limit represented as a percentage * * Emits `AddLiquidityLimitChanged` event when successful. * */ "set_add_liquidity_limit": { "asset_id": number; "liquidity_limit"?: Anonymize; }; /** * Set remove liquidity limit for an asset. * * Parameters: * - `origin`: The dispatch origin for this call. Must be `UpdateLimitsOrigin` * - `asset_id`: The identifier of an asset * - `liquidity_limit`: Optional remove liquidity limit represented as a percentage * * Emits `RemoveLiquidityLimitChanged` event when successful. * */ "set_remove_liquidity_limit": { "asset_id": number; "liquidity_limit"?: Anonymize; }; /** * Lockdown an asset for minting * * Can be called only by an authority origin * * Parameters: * - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin` * - `asset_id`: The identifier of an asset * - `until`: The block number until which the asset is locked * * /// Emits `AssetLockdowned` event when successful. */ "lockdown_asset": { "asset_id": number; "until": number; }; /** * Remove asset lockdown regardless of the state. * * Can be called only by an authority origin * * Parameters: * * - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin` * - `asset_id`: The identifier of an asset * * Emits `AssetLockdownRemoved` event when successful. */ "force_lift_lockdown": Anonymize; /** * Release deposit of an asset. * * It releases all the pallet reserved balance of the asset for the given account * * Can be called by any origin, but only if the asset is not in active lockdown. * * The caller does not pay for this call if successful. * * Parameters: * - `origin`: The dispatch origin for this call. Can be signed or root. * - `who`: The account that is saving the deposit. * - `asset_id`: The identifier of the asset. * * Emits `DepositReleased` event when successful. */ "release_deposit": Anonymize; /** * Set the global withdraw limit (reference currency units) * Can be called only by authority origin. */ "set_global_withdraw_limit_params": { "parameters": { "limit": bigint; "window": bigint; }; }; /** * Reset the global lockdown and accumulator to zero at current block. * Can be called only by authority origin. */ "reset_withdraw_lockdown": undefined; "add_egress_accounts": Anonymize; "remove_egress_accounts": Anonymize; "set_global_withdraw_lockdown": { "until": bigint; }; "set_asset_category": { "asset_id": number; "category"?: (Enum<{ "External": undefined; "Local": undefined; }>) | undefined; }; }>; "Router": Enum<{ /** * Executes a sell with a series of trades specified in the route. * The price for each trade is determined by the corresponding AMM. * * - `origin`: The executor of the trade * - `asset_in`: The identifier of the asset to sell * - `asset_out`: The identifier of the asset to receive * - `amount_in`: The amount of `asset_in` to sell * - `min_amount_out`: The minimum amount of `asset_out` to receive. * - `route`: Series of [`Trade`] to be executed. A [`Trade`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed. * If not specified, than the on-chain route is used. * If no on-chain is present, then omnipool route is used as default * * Emits `RouteExecuted` when successful. */ "sell": Anonymize; /** * Executes a buy with a series of trades specified in the route. * The price for each trade is determined by the corresponding AMM. * * - `origin`: The executor of the trade * - `asset_in`: The identifier of the asset to be swapped to buy `asset_out` * - `asset_out`: The identifier of the asset to buy * - `amount_out`: The amount of `asset_out` to buy * - `max_amount_in`: The max amount of `asset_in` to spend on the buy. * - `route`: Series of [`Trade`] to be executed. A [`Trade`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed. * If not specified, than the on-chain route is used. * If no on-chain is present, then omnipool route is used as default * * Emits `RouteExecuted` when successful. */ "buy": Anonymize; /** * Sets the on-chain route for a given asset pair. * * The new route is validated by being executed in a dry-run mode * * If there is no route explicitly set for an asset pair, then we use the omnipool route as default. * * When a new route is set, we compare it to the existing (or default) route. * The comparison happens by calculating sell amount_outs for the routes, but also for the inversed routes. * * The route is stored in an ordered manner, based on the oder of the ids in the asset pair. * * If the route is set successfully, then the fee is payed back. * * - `origin`: The origin of the route setter * - `asset_pair`: The identifier of the asset-pair for which the route is set * - `new_route`: Series of [`Trade`] to be executed. A [`Trade`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed. * * Emits `RouteUpdated` when successful. * * Fails with `RouteUpdateIsNotSuccessful` error when failed to set the route * */ "set_route": { "asset_pair": Anonymize; "new_route": Anonymize; }; /** * Force inserts the on-chain route for a given asset pair, so there is no any validation for the route * * Can only be called by T::ForceInsertOrigin * * The route is stored in an ordered manner, based on the oder of the ids in the asset pair. * * If the route is set successfully, then the fee is payed back. * * - `origin`: The origin of the route setter * - `asset_pair`: The identifier of the asset-pair for which the route is set * - `new_route`: Series of [`Trade`] to be executed. A [`Trade`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed. * * Emits `RouteUpdated` when successful. * */ "force_insert_route": { "asset_pair": Anonymize; "new_route": Anonymize; }; /** * Executes a sell with a series of trades specified in the route. * It sells all reducible user balance of `asset_in` * The price for each trade is determined by the corresponding AMM. * * - `origin`: The executor of the trade * - `asset_in`: The identifier of the asset to sell * - `asset_out`: The identifier of the asset to receive * - `min_amount_out`: The minimum amount of `asset_out` to receive. * - `route`: Series of [`Trade`] to be executed. A [`Trade`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed. * If not specified, than the on-chain route is used. * If no on-chain is present, then omnipool route is used as default * * Emits `RouteExecuted` when successful. * */ "sell_all": { "asset_in": number; "asset_out": number; "min_amount_out": bigint; "route": Anonymize; }; }>; "DynamicFees": Enum<{ /** * Set fee configuration for an asset * * This function allows setting either fixed or dynamic fee configuration for a specific asset. * * # Arguments * * `origin` - Authority origin required * * `asset_id` - The asset ID to configure * * `config` - Fee configuration (Fixed or Dynamic) */ "set_asset_fee": { "asset_id": number; "config": Enum<{ "Fixed": { "asset_fee": number; "protocol_fee": number; }; "Dynamic": { "asset_fee_params": { "min_fee": number; "max_fee": number; "decay": bigint; "amplification": bigint; }; "protocol_fee_params": { "min_fee": number; "max_fee": number; "decay": bigint; "amplification": bigint; }; }; }>; }; /** * Remove fee configuration for an asset (will use default parameters) * * This function removes any custom fee configuration for the specified asset. * After removal, the asset will use the default dynamic fee parameters configured in the runtime. * * # Arguments * * `origin` - Authority origin required * * `asset_id` - The asset ID to remove configuration for */ "remove_asset_fee": Anonymize; }>; "Staking": Enum<{ /** * Staking pallet initialization. This call will reserved `pot`'s balance to prevent * account dusting and start collecting fees from trades as rewards. * * `pot`’s account has to have a balance which will be reserved to prevent account dusting. * * Emits `StakingInitialized` event when successful. * */ "initialize_staking": undefined; /** * Stake `amount` into a new staking position. * * `stake` locks specified `amount` into staking and creates new NFT representing staking * position. * Users can stake `NativeAssetId` balance which is not vested or already staked. * * Staking pallet must be initialized otherwise extrinsic will fail with error. * * Parameters: * - `amount`: Amount of native asset to be staked. `amount` can't be vested or already * staked * * Emits `PositionCreated` event when successful. * */ "stake": Anonymize; /** * Extrinsic to increase staked amount of existing staking position by specified `amount`. * * `increase_stake` increases staked amount of position specified by `postion_id` by the * `amount` specified by the user. * Staking position must exist and `origin` has to be the owner of the position. * Users can stake tokens which are not vested or already staked. * Position's params e.g points are updated to offset stake increase and rewards * accumulated until this point are paid and locked to the user. * * Parameters: * - `position_id`: The identifier of the position which stake will be increased. * - `amount`: Amount of native asset to be added to staked amount. `amount` can't be vested or * already staked * * Emits `StakeAdded` event when successful. * */ "increase_stake": Anonymize; /** * Claim rewards accumulated for specific staking position. * * Function calculates amount of rewards to pay for specified staking position based on * the amount of points position accumulated. Function also unlocks all the rewards locked * from `increase_stake` based on the amount of the points. * * This action is penalized by removing all the points and returning allocated unpaid rewards * for redistribution. * * Parameters: * - `position_id`: The identifier of the position to claim rewards for. * * Emits `RewardsClaimed` event when successful. * */ "claim": Anonymize; /** * Function pays rewards, unlocks all the staked assets and destroys staking position * specified by `position_id`. * * Function calculates and pays latest rewards, unlocks all the locked rewards and staked * tokens for staking position and burns NFT representing staking position. * Unpaid allocated rewards are returned to the Staking for redistribution. * * Parameters: * - `position_id`: The identifier of the position to be destroyed. * * Emits `RewardsClaimed` and `Unstaked` events when successful. * */ "unstake": Anonymize; }>; "Stableswap": Enum<{ /** * Create a stable pool with given list of assets. * * All assets must be correctly registered in `T::AssetRegistry`. * Note that this does not seed the pool with liquidity. Use `add_assets_liquidity` to provide * initial liquidity. * * Parameters: * - `origin`: Must be T::AuthorityOrigin * - `share_asset`: Preregistered share asset identifier * - `assets`: List of Asset ids * - `amplification`: Pool amplification * - `fee`: fee to be applied on trade and liquidity operations * * Emits `PoolCreated` event if successful. */ "create_pool": { "share_asset": number; "assets": Anonymize; "amplification": number; "fee": number; }; /** * Update pool's fee. * * if pool does not exist, `PoolNotFound` is returned. * * Parameters: * - `origin`: Must be T::AuthorityOrigin * - `pool_id`: pool to update * - `fee`: new pool fee * * Emits `FeeUpdated` event if successful. */ "update_pool_fee": { "pool_id": number; "fee": number; }; /** * Update pool's amplification. * * Parameters: * - `origin`: Must be T::AuthorityOrigin * - `pool_id`: pool to update * - `final_amplification`: new desired pool amplification * - `start_block`: block number when the amplification starts to move towards final_amplication * - `end_block`: block number when the amplification reaches final_amplification * * Emits `AmplificationUpdated` event if successful. */ "update_amplification": { "pool_id": number; "final_amplification": number; "start_block": number; "end_block": number; }; /** * Add liquidity to selected pool given exact amount of shares to receive. * * Similar to `add_liquidity` but LP specifies exact amount of shares to receive. * * This functionality is used mainly by on-chain routing when a swap between Omnipool asset and stable asset is performed. * * Parameters: * - `origin`: liquidity provider * - `pool_id`: Pool Id * - `shares`: amount of shares to receive * - `asset_id`: asset id of an asset to provide as liquidity * - `max_asset_amount`: slippage limit. Max amount of asset. * * Emits `LiquidityAdded` event when successful. * Emits `pallet_broadcast::Swapped` event when successful. */ "add_liquidity_shares": { "pool_id": number; "shares": bigint; "asset_id": number; "max_asset_amount": bigint; }; /** * Remove liquidity from selected pool. * * Withdraws liquidity of selected asset from a pool. * * Share amount is burned and LP receives corresponding amount of chosen asset. * * Withdraw fee is applied to the asset amount. * * Parameters: * - `origin`: liquidity provider * - `pool_id`: Pool Id * - `asset_id`: id of asset to receive * - 'share_amount': amount of shares to withdraw * - 'min_amount_out': minimum amount to receive * * Emits `LiquidityRemoved` event when successful. * Emits `pallet_broadcast::Swapped` event when successful. */ "remove_liquidity_one_asset": { "pool_id": number; "asset_id": number; "share_amount": bigint; "min_amount_out": bigint; }; /** * Remove liquidity from selected pool by specifying exact amount of asset to receive. * * Similar to `remove_liquidity_one_asset` but LP specifies exact amount of asset to receive instead of share amount. * * Parameters: * - `origin`: liquidity provider * - `pool_id`: Pool Id * - `asset_id`: id of asset to receive * - 'amount': amount of asset to receive * - 'max_share_amount': Slippage limit. Max amount of shares to burn. * * Emits `LiquidityRemoved` event when successful. * Emits `pallet_broadcast::Swapped` event when successful. */ "withdraw_asset_amount": { "pool_id": number; "asset_id": number; "amount": bigint; "max_share_amount": bigint; }; /** * Execute a swap of `asset_in` for `asset_out`. * * Parameters: * - `origin`: origin of the caller * - `pool_id`: Id of a pool * - `asset_in`: ID of asset sold to the pool * - `asset_out`: ID of asset bought from the pool * - `amount_in`: Amount of asset to be sold to the pool * - `min_buy_amount`: Minimum amount required to receive * * Emits `SellExecuted` event when successful. Deprecated. * Emits `pallet_broadcast::Swapped` event when successful. * */ "sell": { "pool_id": number; "asset_in": number; "asset_out": number; "amount_in": bigint; "min_buy_amount": bigint; }; /** * Execute a swap of `asset_out` for `asset_in`. * * Parameters: * - `origin`: * - `pool_id`: Id of a pool * - `asset_out`: ID of asset bought from the pool * - `asset_in`: ID of asset sold to the pool * - `amount_out`: Amount of asset to receive from the pool * - `max_sell_amount`: Maximum amount allowed to be sold * * Emits `BuyExecuted` event when successful. Deprecated. * Emits `pallet_broadcast::Swapped` event when successful. * */ "buy": { "pool_id": number; "asset_out": number; "asset_in": number; "amount_out": bigint; "max_sell_amount": bigint; }; /** * Update the tradable state of a specific asset in a pool. * * This function allows updating the tradability state of an asset within a pool. The tradability state determines whether the asset can be used for specific operations such as adding liquidity, removing liquidity, buying, or selling. * * Parameters: * - `origin`: Must be `T::UpdateTradabilityOrigin`. * - `pool_id`: The ID of the pool containing the asset. * - `asset_id`: The ID of the asset whose tradability state is to be updated. * - `state`: The new tradability state of the asset. * * Emits `TradableStateUpdated` event when successful. * * # Errors * - `PoolNotFound`: If the specified pool does not exist. * - `AssetNotInPool`: If the specified asset is not part of the pool. * */ "set_asset_tradable_state": { "pool_id": number; "asset_id": number; "state": number; }; /** * Remove liquidity from a selected pool uniformly. * * This function allows a liquidity provider to withdraw liquidity from a pool. * The provider specifies the amount of shares to burn and the minimum amounts of each asset to receive. * * Parameters: * - `origin`: The liquidity provider. * - `pool_id`: The ID of the pool from which to remove liquidity. * - `share_amount`: The amount of shares to burn. * - `min_amounts_out`: A bounded vector specifying the minimum amounts of each asset to receive. * * Emits `LiquidityRemoved` event when successful. * Emits `pallet_broadcast::Swapped` event when successful. * * # Errors * - `InvalidAssetAmount`: If the `share_amount` is zero. * - `InsufficientShares`: If the provider does not have enough shares. * - `PoolNotFound`: If the specified pool does not exist. * - `UnknownDecimals`: If the asset decimals cannot be retrieved. * - `IncorrectAssets`: If the provided `min_amounts_out` does not match the pool assets. * - `NotAllowed`: If the asset is not allowed for the operation. * - `SlippageLimit`: If the amount received is less than the specified minimum amount. * - `InsufficientLiquidityRemaining`: If the remaining liquidity in the pool is below the minimum required. * * # Invariants * - Ensures that the pool's reserves are updated correctly after liquidity removal. * - Ensures that the pool's invariant is maintained. */ "remove_liquidity": { "pool_id": number; "share_amount": bigint; "min_amounts_out": Anonymize; }; /** * Create a stable pool with a given list of assets and pegs. * * This function allows the creation of a new stable pool with specified assets, amplification, fee, and peg sources. The pool is identified by a share asset. * * Peg target price is determined by retrieving the target peg from the oracle - it is the price of the asset from the peg sourcedenominated in the other pool assets. * * Parameters: * - `origin`: Must be `T::AuthorityOrigin`. * - `share_asset`: Preregistered share asset identifier. * - `assets`: List of asset IDs to be included in the pool. * - `amplification`: Pool amplification parameter. * - `fee`: Fee to be applied on trade and liquidity operations. * - `peg_source`: Bounded vector specifying the source of the peg for each asset. * - `max_peg_update`: Maximum allowed peg update per block. * * Emits `PoolCreated` event if successful. * Emits `AmplificationChanging` event if successful. * * # Errors * - `IncorrectAssets`: If the assets are the same or less than 2 assets are provided. * - `MaxAssetsExceeded`: If the maximum number of assets is exceeded. * - `PoolExists`: If a pool with the given assets already exists. * - `ShareAssetInPoolAssets`: If the share asset is among the pool assets. * - `AssetNotRegistered`: If one or more assets are not registered in the AssetRegistry. * - `InvalidAmplification`: If the amplification parameter is invalid. * - `IncorrectInitialPegs`: If the initial pegs are incorrect. * - `MissingTargetPegOracle`: If the target peg oracle entry is missing. * - `IncorrectAssetDecimals`: If the assets have different decimals. * */ "create_pool_with_pegs": { "share_asset": number; "assets": Anonymize; "amplification": number; "fee": number; "peg_source": Array>; "max_peg_update": number; }; /** * Add liquidity to selected pool. * * First call of `add_assets_liquidity` must provide "initial liquidity" of all assets. * * If there is liquidity already in the pool, LP can provide liquidity of any number of pool assets. * * LP must have sufficient amount of each asset. * * Origin is given corresponding amount of shares. * * Parameters: * - `origin`: liquidity provider * - `pool_id`: Pool Id * - `assets`: asset id and liquidity amount provided * - `min_shares`: minimum amount of shares to receive * * Emits `LiquidityAdded` event when successful. * Emits `pallet_broadcast::Swapped` event when successful. */ "add_assets_liquidity": { "pool_id": number; "assets": Anonymize; "min_shares": bigint; }; /** * Update the peg source for a specific asset in a pool. * * This function allows updating the peg source for an asset within a pool. * The pool must exist and have pegs configured. The asset must be part of the pool. * The current price is always preserved when updating the peg source. * * Parameters: * - `origin`: Must be `T::AuthorityOrigin`. * - `pool_id`: The ID of the pool containing the asset. * - `asset_id`: The ID of the asset whose peg source is to be updated. * - `peg_source`: The new peg source for the asset. * * Emits `PoolPegSourceUpdated` event when successful. * * # Errors * - `PoolNotFound`: If the specified pool does not exist. * - `NoPegSource`: If the pool does not have pegs configured. * - `AssetNotInPool`: If the specified asset is not part of the pool. * */ "update_asset_peg_source": { "pool_id": number; "asset_id": number; "peg_source": Anonymize; }; /** * Update the maximum peg update percentage for a pool. * * This function allows updating the maximum percentage by which peg values * can change in a pool with pegs configured. * * Parameters: * - `origin`: Must be `T::AuthorityOrigin`. * - `pool_id`: The ID of the pool to update. * - `max_peg_update`: The new maximum peg update percentage. * * Emits `PoolMaxPegUpdateUpdated` event when successful. * * # Errors * - `PoolNotFound`: If the specified pool does not exist. * - `NoPegSource`: If the pool does not have pegs configured. * */ "update_pool_max_peg_update": { "pool_id": number; "max_peg_update": number; }; }>; "Bonds": Enum<{ /** * Issue new fungible bonds. * New asset id is registered and assigned to the bonds. * The number of bonds issued is 1:1 to the `amount` of the underlying asset. * The bond asset is registered with the empty string for the asset name, * and with the same existential deposit as of the underlying asset. * Bonds can be redeemed for the underlying asset once mature. * The underlying asset is debited from `T::IssuerAccount`, and the bonds are credited to * the same account. * When issuing new bonds with the underlying asset and maturity that matches existing bonds, * new amount of these existing bonds is issued, instead of registering new bonds. * It's possible to issue new bonds for bonds that are already mature. * * Parameters: * - `origin`: must be `T::IssueOrigin`. * - `asset_id`: underlying asset id * - `amount`: the amount of the underlying asset * - `maturity`: Unix time in milliseconds, when the bonds will be mature. * * Emits `BondTokenCreated` event when successful and new bonds were registered. * Emits `BondsIssued` event when successful. * */ "issue": { "asset_id": number; "amount": bigint; "maturity": bigint; }; /** * Redeem bonds for the underlying asset. * The amount of the underlying asset the `origin` receives is 1:1 to the `amount` of the bonds. * Anyone who holds the bonds is able to redeem them. * Bonds can be both partially or fully redeemed. * * Parameters: * - `origin`: account id * - `asset_id`: bond asset id * - `amount`: the amount of the bonds to redeem for the underlying asset * * Emits `BondsRedeemed` event when successful. * */ "redeem": { "bond_id": number; "amount": bigint; }; }>; "OtcSettlements": Enum<{ /** * Close an existing OTC arbitrage opportunity. * * Executes a trade between an OTC order and some route. * If the OTC order is partially fillable, the extrinsic fails if the existing arbitrage * opportunity is not closed or reduced after the trade. * If the OTC order is not partially fillable, fails if there is no profit after the trade. * * `Origin` calling this extrinsic is not paying or receiving anything. * * The profit made by closing the arbitrage is transferred to `FeeReceiver`. * * Parameters: * - `origin`: Signed or unsigned origin. Unsigned origin doesn't pay the TX fee, * but can be submitted only by a collator. * - `otc_id`: ID of the OTC order with existing arbitrage opportunity. * - `amount`: Amount necessary to close the arb. * - `route`: The route we trade against. Required for the fee calculation. * * Emits `Executed` event when successful. * */ "settle_otc_order": { "otc_id": number; "amount": bigint; "route": Anonymize; }; }>; "LBP": Enum<{ /** * Create a new liquidity bootstrapping pool for given asset pair. * * For any asset pair, only one pool can exist at a time. * * The dispatch origin for this call must be `T::CreatePoolOrigin`. * The pool is created with initial liquidity provided by the `pool_owner` who must have * sufficient funds free. * * The pool starts uninitialized and update_pool call should be called once created to set the start block. * * This function should be dispatched from governing entity `T::CreatePoolOrigin` * * Parameters: * - `pool_owner`: the future owner of the new pool. * - `asset_a`: { asset_id, amount } Asset ID and initial liquidity amount. * - `asset_b`: { asset_id, amount } Asset ID and initial liquidity amount. * - `initial_weight`: Initial weight of the asset_a. 1_000_000 corresponding to 1% and 100_000_000 to 100% * this should be higher than final weight * - `final_weight`: Final weight of the asset_a. 1_000_000 corresponding to 1% and 100_000_000 to 100% * this should be lower than initial weight * - `weight_curve`: The weight function used to update the LBP weights. Currently, * there is only one weight function implemented, the linear function. * - `fee`: The trading fee charged on every trade distributed to `fee_collector`. * - `fee_collector`: The account to which trading fees will be transferred. * - `repay_target`: The amount of tokens to repay to separate fee_collector account. Until this amount is * reached, fee will be increased to 20% and taken from the pool * * Emits `PoolCreated` event when successful. * * BEWARE: We are taking the fee from the accumulated asset. If the accumulated asset is sold to the pool, * the fee cost is transferred to the pool. If its bought from the pool the buyer bears the cost. * This increases the price of the sold asset on every trade. Make sure to only run this with * previously illiquid assets. */ "create_pool": { "pool_owner": SS58String; "asset_a": number; "asset_a_amount": bigint; "asset_b": number; "asset_b_amount": bigint; "initial_weight": number; "final_weight": number; "weight_curve": Enum<{ "Linear": undefined; }>; "fee": Anonymize; "fee_collector": SS58String; "repay_target": bigint; }; /** * Update pool data of a pool. * * The dispatch origin for this call must be signed by the pool owner. * * The pool can be updated only if the sale has not already started. * * At least one of the following optional parameters has to be specified. * * Parameters: * - `pool_id`: The identifier of the pool to be updated. * - `start`: The new starting time of the sale. This parameter is optional. * - `end`: The new ending time of the sale. This parameter is optional. * - `initial_weight`: The new initial weight. This parameter is optional. * - `final_weight`: The new final weight. This parameter is optional. * - `fee`: The new trading fee charged on every trade. This parameter is optional. * - `fee_collector`: The new receiver of trading fees. This parameter is optional. * * Emits `PoolUpdated` event when successful. */ "update_pool_data": { "pool_id": SS58String; "pool_owner"?: Anonymize; "start"?: Anonymize; "end"?: Anonymize; "initial_weight"?: Anonymize; "final_weight"?: Anonymize; "fee"?: Anonymize; "fee_collector"?: Anonymize; "repay_target"?: Anonymize; }; /** * Add liquidity to a pool. * * Assets to add has to match the pool assets. At least one amount has to be non-zero. * * The dispatch origin for this call must be signed by the pool owner. * * Parameters: * - `pool_id`: The identifier of the pool * - `amount_a`: The identifier of the asset and the amount to add. * - `amount_b`: The identifier of the second asset and the amount to add. * * Emits `LiquidityAdded` event when successful. */ "add_liquidity": { "amount_a": Anonymize; "amount_b": Anonymize; }; /** * Transfer all the liquidity from a pool back to the pool owner and destroy the pool. * The pool data are also removed from the storage. * * The pool can't be destroyed during the sale. * * The dispatch origin for this call must be signed by the pool owner. * * Parameters: * - `amount_a`: The identifier of the asset and the amount to add. * * Emits 'LiquidityRemoved' when successful. */ "remove_liquidity": { "pool_id": SS58String; }; /** * Trade `asset_in` for `asset_out`. * * Executes a swap of `asset_in` for `asset_out`. Price is determined by the pool and is * affected by the amount and proportion of the pool assets and the weights. * * Trading `fee` is distributed to the `fee_collector`. * * Parameters: * - `asset_in`: The identifier of the asset being transferred from the account to the pool. * - `asset_out`: The identifier of the asset being transferred from the pool to the account. * - `amount`: The amount of `asset_in` * - `max_limit`: minimum amount of `asset_out` / amount of asset_out to be obtained from the pool in exchange for `asset_in`. * * Emits `SellExecuted` when successful. Deprecated. * Emits `pallet_broadcast::Swapped` when successful. */ "sell": { "asset_in": number; "asset_out": number; "amount": bigint; "max_limit": bigint; }; /** * Trade `asset_in` for `asset_out`. * * Executes a swap of `asset_in` for `asset_out`. Price is determined by the pool and is * affected by the amount and the proportion of the pool assets and the weights. * * Trading `fee` is distributed to the `fee_collector`. * * Parameters: * - `asset_in`: The identifier of the asset being transferred from the account to the pool. * - `asset_out`: The identifier of the asset being transferred from the pool to the account. * - `amount`: The amount of `asset_out`. * - `max_limit`: maximum amount of `asset_in` to be sold in exchange for `asset_out`. * * Emits `BuyExecuted` when successful. Deprecated. * Emits `pallet_broadcast::Swapped` when successful. */ "buy": { "asset_in": number; "asset_out": number; "amount": bigint; "max_limit": bigint; }; }>; "XYK": Enum<{ /** * Create new pool for given asset pair. * * Registers new pool for given asset pair (`asset a` and `asset b`) in asset registry. * Asset registry creates new id or returns previously created one if such pool existed before. * * Pool is created with initial liquidity provided by `origin`. * Shares are issued with specified initial price and represents proportion of asset in the pool. * * Emits `PoolCreated` event when successful. */ "create_pool": { "asset_a": number; "amount_a": bigint; "asset_b": number; "amount_b": bigint; }; /** * Add liquidity to previously created asset pair pool. * * Shares are issued with current price. * * Emits `LiquidityAdded` event when successful. */ "add_liquidity": { "asset_a": number; "asset_b": number; "amount_a": bigint; "amount_b_max_limit": bigint; }; "add_liquidity_with_limits": { "asset_a": number; "asset_b": number; "amount_a": bigint; "amount_b_max_limit": bigint; "min_shares": bigint; }; /** * Remove liquidity from specific liquidity pool in the form of burning shares. * * If liquidity in the pool reaches 0, it is destroyed. * * Emits 'LiquidityRemoved' when successful. * Emits 'PoolDestroyed' when pool is destroyed. */ "remove_liquidity": { "asset_a": number; "asset_b": number; "share_amount": bigint; }; "remove_liquidity_with_limits": { "asset_a": number; "asset_b": number; "share_amount": bigint; "min_amount_a": bigint; "min_amount_b": bigint; }; /** * Trade asset in for asset out. * * Executes a swap of `asset_in` for `asset_out`. Price is determined by the liquidity pool. * * `max_limit` - minimum amount of `asset_out` / amount of asset_out to be obtained from the pool in exchange for `asset_in`. * * Emits `SellExecuted` when successful. Deprecated. * Emits `pallet_broadcast::Swapped` when successful. */ "sell": { "asset_in": number; "asset_out": number; "amount": bigint; "max_limit": bigint; "discount": boolean; }; /** * Trade asset in for asset out. * * Executes a swap of `asset_in` for `asset_out`. Price is determined by the liquidity pool. * * `max_limit` - maximum amount of `asset_in` to be sold in exchange for `asset_out`. * Emits `BuyExecuted` when successful. Deprecated. * Emits `pallet_broadcast::Swapped` when successful. */ "buy": { "asset_in": number; "asset_out": number; "amount": bigint; "max_limit": bigint; "discount": boolean; }; }>; "Referrals": Enum<{ /** * Register new referral code. * * `origin` pays the registration fee. * `code` is assigned to the given `account`. * * Length of the `code` must be at least `T::MinCodeLength`. * Maximum length is limited to `T::CodeLength`. * `code` must contain only alfa-numeric characters and all characters will be converted to upper case. * * Parameters: * - `code`: Code to register. Must follow the restrictions. * * Emits `CodeRegistered` event when successful. */ "register_code": Anonymize; /** * Link a code to an account. * * `Code` must be valid registered code. Otherwise `InvalidCode` is returned. * * Signer account is linked to the referral account of the code. * * Parameters: * - `code`: Code to use to link the signer account to. * * Emits `CodeLinked` event when successful. */ "link_code": Anonymize; /** * Convert accrued asset amount to reward currency. * * Parameters: * - `asset_id`: Id of an asset to convert to RewardAsset. * * Emits `Converted` event when successful. */ "convert": Anonymize; /** * Claim accumulated rewards * * IF there is any asset in the reward pot, all is converted to RewardCurrency first. * * Reward amount is calculated based on the shares of the signer account. * * if the signer account is referrer account, total accumulated rewards is updated as well as referrer level if reached. * * Emits `Claimed` event when successful. */ "claim_rewards": undefined; /** * Set asset reward percentages * * Parameters: * - `asset_id`: asset id * - `level`: level * - `rewards`: reward fee percentages * * Emits `AssetRewardsUpdated` event when successful. */ "set_reward_percentage": { "asset_id": number; "level": Enum<{ "None": undefined; "Tier0": undefined; "Tier1": undefined; "Tier2": undefined; "Tier3": undefined; "Tier4": undefined; }>; "rewards": { "referrer": number; "trader": number; }; }; }>; "Liquidation": Enum<{ /** * Liquidates an existing money market position. * Can be both signed and unsigned. * * Performs a flash loan to get funds to pay for the debt. * Received collateral is swapped and the profit is transferred to `FeeReceiver`. * * Permissionless and caller-supplied `route` are intentional. This call exists * only to keep the money market solvent: the goal is that the position is * liquidated, not that the protocol captures the surplus. A caller can pick a * `route` that prices the collateral so that little or no profit reaches * `FeeReceiver` — that is acceptable. It is not an exploit: anyone can already * liquidate the same position by calling Aave's `liquidationCall` directly and * keep the entire bonus themselves. So reports framing the open origin or the * attacker-chosen route as a fund-redirection vulnerability are out of scope by * design; the only invariant that matters here is that unhealthy positions can * always be closed. * * Parameters: * - `origin`: Signed origin. * - `collateral_asset`: Asset ID used as collateral in the MM position. * - `debt_asset`: Asset ID used as debt in the MM position. * - `user`: EVM address of the MM position that we want to liquidate. * - `debt_to_cover`: Amount of debt we want to liquidate. * - `route`: The route we trade against. Required for the fee calculation. * * Emits `Liquidated` event when successful. * */ "liquidate": { "collateral_asset": number; "debt_asset": number; "user": SizedHex<20>; "debt_to_cover": bigint; "route": Anonymize; }; /** * Set the borrowing market contract address. */ "set_borrowing_contract": Anonymize; /** * Liquidates an existing money market position, addressing the market's pool explicitly. * * Behaves exactly like `liquidate`; the extra `pool` parameter is a consistency * assertion, not a router: it must equal the pool contract the liquidation path * resolves on its own (the gigahdx pool for GIGAHDX-collateral positions, the * borrowing contract otherwise), or the call fails with `PoolAddressMismatch`. * This lets a multi-money-market worker state which market a decision was made * against and guarantees the liquidation can never execute against a different one. * * Unlike `liquidate`, this call is not publicly dispatchable: the origin must be * none, and `ValidateUnsigned` rejects externally received transactions, so only * a collator's own liquidation worker can submit it. The public permissionless * path remains `liquidate`. * * Parameters: * - `origin`: Must be none (unsigned transaction). * - `pool`: EVM address of the money-market pool this liquidation targets. * - `collateral_asset`: Asset ID used as collateral in the MM position. * - `debt_asset`: Asset ID used as debt in the MM position. * - `user`: EVM address of the MM position that we want to liquidate. * - `debt_to_cover`: Amount of debt we want to liquidate. * - `route`: The route we trade against. Required for the fee calculation. * - `unsigned_priority`: Optional priority added on top of `BASE_UNSIGNED_LIQUIDATION_PRIORITY` for * unsigned liquidation extrinsics. * * Emits `Liquidated` event when successful. * */ "liquidate_with_pool": { "pool": SizedHex<20>; "collateral_asset": number; "debt_asset": number; "user": SizedHex<20>; "debt_to_cover": bigint; "route": Anonymize; "unsigned_priority"?: Anonymize; }; }>; "HSM": Enum<{ /** * Add a new collateral asset * * This function adds a new asset as an approved collateral for Hollar. Only callable by * the governance (root origin). * * Parameters: * - `origin`: Must be Root * - `asset_id`: Asset ID to be added as collateral * - `pool_id`: StableSwap pool ID where this asset and Hollar are paired * - `purchase_fee`: Fee applied when buying Hollar with this asset (added to purchase price) * - `max_buy_price_coefficient`: Maximum buy price coefficient for HSM to buy back Hollar * - `buy_back_fee`: Fee applied when buying back Hollar (subtracted from buy price) * - `buyback_rate`: Parameter that controls how quickly HSM can buy Hollar with this asset * - `max_in_holding`: Optional maximum amount of collateral HSM can hold * * Emits: * - `CollateralAdded` when the collateral is successfully added * * Errors: * - `AssetAlreadyApproved` if the asset is already registered as a collateral * - `PoolAlreadyHasCollateral` if another asset from the same pool is already approved * - `HollarNotInPool` if Hollar is not found in the specified pool * - `AssetNotInPool` if the collateral asset is not found in the specified pool * - Other errors from underlying calls */ "add_collateral_asset": { "asset_id": number; "pool_id": number; "purchase_fee": number; "max_buy_price_coefficient": bigint; "buy_back_fee": number; "buyback_rate": number; "max_in_holding"?: Anonymize; }; /** * Remove a collateral asset * * Removes an asset from the approved collaterals list. Only callable by the governance (root origin). * The collateral must have a zero balance in the HSM account before it can be removed. * * Parameters: * - `origin`: Must be Root * - `asset_id`: Asset ID to remove from collaterals * * Emits: * - `CollateralRemoved` when the collateral is successfully removed * * Errors: * - `AssetNotApproved` if the asset is not a registered collateral * - `CollateralNotEmpty` if the HSM account still holds some of this asset */ "remove_collateral_asset": Anonymize; /** * Update collateral asset parameters * * Updates the parameters for an existing collateral asset. Only callable by the governance (root origin). * Each parameter is optional and only provided parameters will be updated. * * Parameters: * - `origin`: Must be Root * - `asset_id`: Asset ID to update * - `purchase_fee`: New purchase fee (optional) * - `max_buy_price_coefficient`: New max buy price coefficient (optional) * - `buy_back_fee`: New buy back fee (optional) * - `buyback_rate`: New buyback rate parameter (optional) * - `max_in_holding`: New maximum holding amount (optional) * * Emits: * - `CollateralUpdated` when the collateral is successfully updated * * Errors: * - `AssetNotApproved` if the asset is not a registered collateral */ "update_collateral_asset": { "asset_id": number; "purchase_fee"?: Anonymize; "max_buy_price_coefficient"?: Anonymize; "buy_back_fee"?: Anonymize; "buyback_rate"?: Anonymize; "max_in_holding"?: (Anonymize) | undefined; }; /** * Sell asset to HSM * * This function allows users to: * 1. Sell Hollar back to HSM in exchange for collateral assets * 2. Sell collateral assets to HSM in exchange for newly minted Hollar * * The valid pairs must include Hollar as one side and an approved collateral as the other side. * * Parameters: * - `origin`: Account selling the asset * - `asset_in`: Asset ID being sold * - `asset_out`: Asset ID being bought * - `amount_in`: Amount of asset_in to sell * - `slippage_limit`: Minimum amount out for slippage protection * * Emits: * - `Swapped3` when the sell is successful * * Errors: * - `InvalidAssetPair` if the pair is not Hollar and an approved collateral * - `AssetNotApproved` if the collateral asset isn't registered * - `SlippageLimitExceeded` if the amount received is less than the slippage limit * - `MaxBuyBackExceeded` if the sell would exceed the maximum buy back rate * - `MaxBuyPriceExceeded` if the sell would exceed the maximum buy price * - `InsufficientCollateralBalance` if HSM doesn't have enough collateral * - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract * - Other errors from underlying calls */ "sell": { "asset_in": number; "asset_out": number; "amount_in": bigint; "slippage_limit": bigint; }; /** * Buy asset from HSM * * This function allows users to: * 1. Buy Hollar from HSM using collateral assets * 2. Buy collateral assets from HSM using Hollar * * The valid pairs must include Hollar as one side and an approved collateral as the other side. * * Parameters: * - `origin`: Account buying the asset * - `asset_in`: Asset ID being sold by the user * - `asset_out`: Asset ID being bought by the user * - `amount_out`: Amount of asset_out to buy * - `slippage_limit`: Maximum amount in for slippage protection * * Emits: * - `Swapped3` when the buy is successful * * Errors: * - `InvalidAssetPair` if the pair is not Hollar and an approved collateral * - `AssetNotApproved` if the collateral asset isn't registered * - `SlippageLimitExceeded` if the amount input exceeds the slippage limit * - `MaxHoldingExceeded` if the buy would cause HSM to exceed its maximum holding * - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract * - Other errors from underlying calls */ "buy": { "asset_in": number; "asset_out": number; "amount_out": bigint; "slippage_limit": bigint; }; /** * Execute arbitrage opportunity between HSM and collateral stable pool using flash loans * * This call is designed to be triggered automatically by offchain workers. It executes * arbitrage by taking a flash loan from the GHO contract and performing trades to profit * from price imbalances between HSM and the StableSwap pool. * * The arbitrage execution flow: * 1. Takes a flash loan of Hollar from the GHO contract * 2. Executes trades between HSM and StableSwap pool based on arbitrage direction: * - For HollarIn (buy direction): Sell Hollar to HSM for collateral, then sell collateral back for Hollar in pool * - For HollarOut (sell direction): Sell Hollar for collateral in pool, then buy Hollar back from HSM * 3. Repays the flash loan * 4. Any remaining profit (in collateral) is transferred to the ArbitrageProfitReceiver * * This helps maintain the peg of Hollar by profiting from and correcting price imbalances. * The call is unsigned and should only be executed by offchain workers. * * Parameters: * - `origin`: Must be None (unsigned) * - `collateral_asset_id`: The ID of the collateral asset to use for arbitrage * - `arbitrage`: Optional arbitrage parameters (direction and amount). If None, the function * will automatically find and calculate the optimal arbitrage opportunity. * * Emits: * - `ArbitrageExecuted` when the arbitrage is successful * * Errors: * - `FlashMinterNotSet` if the flash minter contract address has not been configured * - `AssetNotApproved` if the asset is not a registered collateral * - `NoArbitrageOpportunity` if there's no profitable arbitrage opportunity * - `MaxBuyPriceExceeded` if the arbitrage would exceed the maximum buy price * - `MaxBuyBackExceeded` if the arbitrage would exceed the buyback limit * - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract * - Other errors from underlying calls */ "execute_arbitrage": { "collateral_asset_id": number; "arbitrage"?: (Enum<{ "HollarOut": bigint; "HollarIn": bigint; }>) | undefined; }; /** * Set the flash minter contract address * * Configures the EVM address of the flash loan contract that will be used for arbitrage * operations. This contract must support the ERC-3156 flash loan standard and be trusted * to handle flash loans of Hollar tokens. * * Parameters: * - `origin`: Must be authorized (governance/root) * - `flash_minter_addr`: The EVM address of the flash minter contract * * Emits: * - `FlashMinterSet` when the address is successfully configured * * Errors: * - Authorization errors if origin is not authorized */ "set_flash_minter": { "flash_minter_addr": SizedHex<20>; }; }>; "Signet": Enum<{ /** * Set or update the signet configuration. * * Can be called multiple times to update the configuration. * * Parameters: * - `origin`: Must satisfy `UpdateOrigin`. * - `signature_deposit`: Deposit amount for signature requests. * - `max_chain_id_length`: Maximum chain ID length. * - `max_evm_data_length`: Maximum EVM transaction data length. * - `chain_id`: The CAIP-2 chain identifier. */ "set_config": { "signature_deposit": bigint; "max_chain_id_length": number; "max_evm_data_length": number; "chain_id": Uint8Array; }; /** * Withdraw funds from the pallet account. * * Parameters: * - `origin`: Must satisfy `UpdateOrigin`. * - `recipient`: Account to receive the withdrawn funds. * - `amount`: Amount to withdraw. */ "withdraw_funds": { "recipient": SS58String; "amount": bigint; }; /** * Request a signature for a payload */ "sign": { "payload": SizedHex<32>; "key_version": number; "path": Uint8Array; "algo": Uint8Array; "dest": Uint8Array; "params": Uint8Array; }; /** * Request a signature for a serialized transaction */ "sign_bidirectional": { "serialized_transaction": Uint8Array; "caip2_id": Uint8Array; "key_version": number; "path": Uint8Array; "algo": Uint8Array; "dest": Uint8Array; "params": Uint8Array; "output_deserialization_schema": Uint8Array; "respond_serialization_schema": Uint8Array; }; /** * Respond to signature requests (batch support) */ "respond": { "request_ids": Anonymize; "signatures": Array>; }; /** * Report signature generation errors (batch support) */ "respond_error": { "errors": Array<{ "request_id": SizedHex<32>; "error_message": Uint8Array; }>; }; /** * Provide a read response with signature */ "respond_bidirectional": { "request_id": SizedHex<32>; "serialized_output": Uint8Array; "signature": Anonymize; }; /** * Pause the signet so that no new signing requests can be made. * * Parameters: * - `origin`: Must satisfy `UpdateOrigin`. */ "pause": undefined; /** * Unpause the signet so that signing requests are allowed again. * * Parameters: * - `origin`: Must satisfy `UpdateOrigin`. */ "unpause": undefined; }>; "EthDispenser": Enum<{ /** * Request ETH from the external faucet for a given EVM address. * * Parameters: * - `to`: Target EVM address to receive ETH. * - `amount`: Amount of ETH (in wei) to request. * - `request_id`: Client-supplied request ID; must match derived ID. * - `tx`: Parameters for the EVM transaction submitted to the faucet. */ "request_fund": { "to": SizedHex<20>; "amount": bigint; "request_id": SizedHex<32>; "tx": { "value": bigint; "gas_limit": bigint; "max_fee_per_gas": bigint; "max_priority_fee_per_gas": bigint; "nonce": bigint; "chain_id": bigint; }; }; /** * Set or update the dispenser configuration. * * On first call, the pallet starts unpaused. On subsequent calls, * `paused` state is preserved. * * Parameters: * - `origin`: Must satisfy `UpdateOrigin`. * - `faucet_address`: EVM address of the external gas faucet contract. * - `min_faucet_threshold`: Minimum remaining ETH (wei) after a request. * - `min_request`: Minimum request amount. * - `max_dispense`: Maximum request amount. * - `dispenser_fee`: Flat fee in `FeeAsset` per request. * - `faucet_balance_wei`: Tracked faucet ETH balance (in wei). */ "set_config": { "faucet_address": SizedHex<20>; "min_faucet_threshold": bigint; "min_request": bigint; "max_dispense": bigint; "dispenser_fee": bigint; "faucet_balance_wei": bigint; }; /** * Pause the dispenser so that no new funding requests can be made. * * Parameters: * - `origin`: Must satisfy `UpdateOrigin`. */ "pause": undefined; /** * Unpause the dispenser so that funding requests are allowed again. * * Parameters: * - `origin`: Must satisfy `UpdateOrigin` */ "unpause": undefined; }>; "GigaHdx": Enum<{ /** * Lock HDX in the caller's account, mint stHDX, and supply it to the money market. * * The pallet locks `amount` HDX in the caller's account under `Config::LockId` * (so it remains voteable via `LockableCurrency` semantics), mints stHDX at the * current exchange rate, and supplies the stHDX to the money market. The money * market mints GIGAHDX (aToken) to the caller's EVM-mapped address. * * `Stakes[caller].gigahdx` records the **actual** aToken amount returned by the * money market (may differ from the requested mint amount by rounding). * * Fails with `BelowMinStake` if `amount < Config::MinStake`, with * `BlockedByExternalLock` if `Config::ExternalClaims::on(caller) > 0` * (the caller holds a non-allowed lock — strict policy rejects * stake admission entirely), with `InsufficientFreeBalance` if * `free_balance − own_gigahdx_commitment < amount`, with * `StHdxMintFailed` if stHDX minting fails, or with * `MoneyMarketSupplyFailed` if the AAVE `Pool.supply` call reverts. * * Parameters: * - `amount`: HDX amount to stake. Must be at least `Config::MinStake`. * * Emits `Staked` event when successful. * */ "giga_stake": Anonymize; /** * Unstake the caller's GIGAHDX and open a pending-unstake position. * * Burns `gigahdx_amount` of the caller's GIGAHDX through the money market, which * returns stHDX to the caller; the pallet then burns that stHDX. The HDX value * (current rate × `gigahdx_amount`) is moved into a single pending-unstake * position with a cooldown of `Config::CooldownPeriod`. Any portion of the payout * that exceeds the user's active stake principal is paid as yield from the * gigapot account. * * At most one pending position per account — the caller must `unlock` an existing * position before calling again, otherwise `PendingUnstakeAlreadyExists` is * returned. * * Implementation detail (must match `LockableAToken.sol`): the lock-manager * precompile (`0x0806`) reads `Stakes[who].gigahdx` and treats it as the user's * locked GIGAHDX. The aToken contract rejects burns where * `amount > balance - locked`, so the pallet **pre-decrements `gigahdx` by * `gigahdx_amount` before the money-market call**. The dispatchable runs in a * storage layer so any failure rolls back the pre-decrement atomically. * * Fails with `NoStake` if the caller has no active stake, `ZeroAmount` if * `gigahdx_amount == 0`, `InsufficientStake` if `gigahdx_amount` exceeds the * caller's `Stakes.gigahdx`, or `MoneyMarketWithdrawFailed` if the AAVE * `Pool.withdraw` call reverts. * * Parameters: * - `gigahdx_amount`: GIGAHDX (aToken) amount to unstake. Must be greater than * zero and not exceed the caller's `Stakes.gigahdx`. * * Emits `Unstaked` event when successful. * */ "giga_unstake": { "gigahdx_amount": bigint; }; /** * Set the AAVE V3 Pool contract address used by the money-market adapter. * * Refuses to swap the pool while gigahdx (aToken / stHDX) is still in * circulation — a swap mid-flight would route subsequent `giga_unstake` * calls to a pool that doesn't hold the user's atokens, reverting the * burn and leaving HDX permanently locked. Returns `OutstandingStake` * when total stHDX supply is non-zero. * * Note: it is not enough to check `TotalLocked == 0` (the sum of * `Stakes.hdx`). When an unstake payout exceeds the user's active * stake, the active stake is drained but `Stakes.gigahdx` (and the * corresponding aToken balance) can stay non-zero — those tokens * remain bound to the current pool. * * Parameters: * - `origin`: Must be `T::AuthorityOrigin`. * - `contract`: H160 address of the new AAVE V3 Pool contract. * * Emits `PoolContractUpdated` event when successful. * */ "set_pool_contract": Anonymize; /** * Release a single pending-unstake position whose cooldown has elapsed. * * Fails with `PendingUnstakeNotFound` if no position with `position_id` * exists, or `CooldownNotElapsed` if the targeted position is still cooling. * * Parameters: * - `position_id`: id of the position to release (as recorded in the * `Unstaked` event for the originating unstake). * * Emits `Unlocked` event when successful. * */ "unlock": { "position_id": number; }; /** * Cancel a single pending-unstake position, folding its `amount` HDX * back into the active stake at the current exchange rate. * * The pending HDX is already locked in the caller's account; this * extrinsic relabels it as active stake and mints fresh aTokens at * today's rate. The number of aTokens minted may differ from the * amount burned at unstake time if the exchange rate moved. * * Cooldown is not a gate — cancellation is valid throughout the * pending window, until the caller invokes `unlock`. * * Fails with `PendingUnstakeNotFound` if `position_id` is not present. * * Parameters: * - `position_id`: id of the position to cancel. * * Emits `UnstakeCancelled` event when successful. * */ "cancel_unstake": { "position_id": number; }; /** * Migrate the caller's legacy NFT staking position into gigahdx. * * Atomically: destroys the legacy position via `LegacyStaking:: * force_unstake` (paying out 100% of rewards — no sigmoid slash, no * unclaimable-period penalty), then re-stakes the freed HDX under * the same admission gate as `giga_stake`. Refuses partial migration * — the legacy position is consumed whole or not at all. * * Admission runs *after* `force_unstake` so the legacy lock is no * longer counted against `ExternalClaims`. * * Fails with `BelowMinStake` if the legacy position unlocks less * than `Config::MinStake`, with `BlockedByExternalLock` if the * caller still carries another non-overlap-whitelisted lock, with * `InsufficientFreeBalance` if the post-unstake balance can't cover * the new gigahdx claim, or with whatever error `force_unstake` * raises (e.g. ongoing referendum vote, no legacy position). * * Emits `MigratedFromLegacy` event when successful. */ "migrate": undefined; /** * Realize the caller's accrued yield into their locked stake principal. * * Moves the HDX value the caller's GIGAHDX has gained since it was last * reconciled (`rate × gigahdx − Stakes[who].hdx`) from the gigapot into * the caller's account, folds it into `Stakes[who].hdx`, and refreshes * the lock. GIGAHDX balance and the exchange rate are unchanged. A * caller with no accrued yield (or no stake) is a successful no-op. * * Emits `YieldRealized` event when there was yield to realize. * */ "realize_yield": undefined; }>; "GigaHdxRewards": Enum<{ /** * Convert the caller's accumulated HDX rewards into GIGAHDX by staking * them on the caller's behalf. * * The full `PendingRewards[who]` sum is taken atomically. The HDX is * transferred from the allocated-rewards pot to the caller's free * balance, then `pallet_gigahdx::do_stake` is called to mint GIGAHDX * into the caller's stake position. * * Parameters: * - `origin`: signed by the user claiming. * * Emits `RewardsClaimed` event when successful. */ "claim_rewards": undefined; }>; "Tokens": Enum<{ /** * Transfer some liquid free balance to another account. * * `transfer` will set the `FreeBalance` of the sender and receiver. * It will decrease the total issuance of the system by the * `TransferFee`. 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. * * - `dest`: The recipient of the transfer. * - `currency_id`: currency type. * - `amount`: free balance amount to transfer. */ "transfer": Anonymize; /** * Transfer all remaining balance to the given 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 for this call must be `Signed` by the * transactor. * * - `dest`: The recipient of the transfer. * - `currency_id`: currency type. * - `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). */ "transfer_all": { "dest": SS58String; "currency_id": number; "keep_alive": boolean; }; /** * Same as the [`transfer`] call, but with a check that the transfer * will not kill the origin account. * * 99% of the time you want [`transfer`] instead. * * The dispatch origin for this call must be `Signed` by the * transactor. * * - `dest`: The recipient of the transfer. * - `currency_id`: currency type. * - `amount`: free balance amount to transfer. */ "transfer_keep_alive": Anonymize; /** * Exactly as `transfer`, except the origin must be root and the source * account may be specified. * * The dispatch origin for this call must be _Root_. * * - `source`: The sender of the transfer. * - `dest`: The recipient of the transfer. * - `currency_id`: currency type. * - `amount`: free balance amount to transfer. */ "force_transfer": { "source": SS58String; "dest": SS58String; "currency_id": number; "amount": bigint; }; /** * Set the balances of a given account. * * This will alter `FreeBalance` and `ReservedBalance` in storage. it * will also decrease the total issuance of the system * (`TotalIssuance`). If the new free or reserved balance is below the * existential deposit, it will reap the `AccountInfo`. * * The dispatch origin for this call is `root`. */ "set_balance": { "who": SS58String; "currency_id": number; "new_free": bigint; "new_reserved": bigint; }; }>; "Currencies": Enum<{ /** * Transfer some balance to another account under `currency_id`. * * The dispatch origin for this call must be `Signed` by the * transactor. */ "transfer": Anonymize; /** * Transfer some native currency to another account. * * The dispatch origin for this call must be `Signed` by the * transactor. */ "transfer_native_currency": { "dest": SS58String; "amount": bigint; }; /** * update amount of account `who` under `currency_id`. * * The dispatch origin of this call must be _Root_. */ "update_balance": { "who": SS58String; "currency_id": number; "amount": bigint; }; }>; "Vesting": Enum<{ "claim": undefined; "vested_transfer": { "dest": SS58String; "schedule": Anonymize; }; "update_vesting_schedules": { "who": SS58String; "vesting_schedules": Array>; }; "claim_for": { "dest": SS58String; }; }>; "EVM": Enum<{ /** * Withdraw balance from EVM into currency/balances pallet. */ "withdraw": { "address": SizedHex<20>; "value": bigint; }; /** * Issue an EVM call operation. This is similar to a message call transaction in Ethereum. */ "call": { "source": SizedHex<20>; "target": SizedHex<20>; "input": Uint8Array; "value": Anonymize; "gas_limit": bigint; "max_fee_per_gas": Anonymize; "max_priority_fee_per_gas"?: Anonymize; "nonce"?: Anonymize; "access_list": Anonymize; "authorization_list": Anonymize; }; /** * Issue an EVM create operation. This is similar to a contract creation transaction in * Ethereum. */ "create": { "source": SizedHex<20>; "init": Uint8Array; "value": Anonymize; "gas_limit": bigint; "max_fee_per_gas": Anonymize; "max_priority_fee_per_gas"?: Anonymize; "nonce"?: Anonymize; "access_list": Anonymize; "authorization_list": Anonymize; }; /** * Issue an EVM create2 operation. */ "create2": { "source": SizedHex<20>; "init": Uint8Array; "salt": SizedHex<32>; "value": Anonymize; "gas_limit": bigint; "max_fee_per_gas": Anonymize; "max_priority_fee_per_gas"?: Anonymize; "nonce"?: Anonymize; "access_list": Anonymize; "authorization_list": Anonymize; }; }>; "Ethereum": Enum<{ /** * Transact an Ethereum transaction. */ "transact": { "transaction": Enum<{ "Legacy": { "nonce": Anonymize; "gas_price": Anonymize; "gas_limit": Anonymize; "action": Anonymize; "value": Anonymize; "input": Uint8Array; "signature": { "v": bigint; "r": SizedHex<32>; "s": SizedHex<32>; }; }; "EIP2930": { "chain_id": bigint; "nonce": Anonymize; "gas_price": Anonymize; "gas_limit": Anonymize; "action": Anonymize; "value": Anonymize; "input": Uint8Array; "access_list": Anonymize; "signature": Anonymize; }; "EIP1559": { "chain_id": bigint; "nonce": Anonymize; "max_priority_fee_per_gas": Anonymize; "max_fee_per_gas": Anonymize; "gas_limit": Anonymize; "action": Anonymize; "value": Anonymize; "input": Uint8Array; "access_list": Anonymize; "signature": Anonymize; }; "EIP7702": { "chain_id": bigint; "nonce": Anonymize; "max_priority_fee_per_gas": Anonymize; "max_fee_per_gas": Anonymize; "gas_limit": Anonymize; "destination": Anonymize; "value": Anonymize; "data": Uint8Array; "access_list": Anonymize; "authorization_list": Anonymize; "signature": Anonymize; }; }>; }; }>; "EVMAccounts": Enum<{ /** * Binds a Substrate address to EVM address. * After binding, the EVM is able to convert an EVM address to the original Substrate address. * Without binding, the EVM converts an EVM address to a truncated Substrate address, which doesn't correspond * to the origin address. * * Binding an address is not necessary for interacting with the EVM. * Increases `sufficients` for the account. * * Parameters: * - `origin`: Substrate account binding an address * * Emits `EvmAccountBound` event when successful. */ "bind_evm_address": undefined; /** * Adds an EVM address to the list of addresses that are allowed to deploy smart contracts. * * Parameters: * - `origin`: Substrate account whitelisting an address. Must be `ControllerOrigin`. * - `address`: EVM address that is whitelisted * * Emits `DeployerAdded` event when successful. */ "add_contract_deployer": { "address": SizedHex<20>; }; /** * Removes an EVM address from the list of addresses that are allowed to deploy smart contracts. * * Parameters: * - `origin`: Substrate account removing the EVM address from the whitelist. Must be `ControllerOrigin`. * - `address`: EVM address that is removed from the whitelist * * Emits `DeployerRemoved` event when successful. */ "remove_contract_deployer": { "address": SizedHex<20>; }; /** * Removes the account's EVM address from the list of addresses that are allowed to deploy smart contracts. * Based on the best practices, this extrinsic can be called by any whitelisted account to renounce their own permission. * * Parameters: * - `origin`: Substrate account removing their EVM address from the whitelist. * * Emits `DeployerRemoved` event when successful. */ "renounce_contract_deployer": undefined; /** * Adds address of the contract to the list of approved contracts to manage balances. * * Effectively giving it allowance to for any balances and tokens. * * Parameters: * - `origin`: Must be `ControllerOrigin`. * - `address`: Contract address that will be approved * * Emits `ContractApproved` event when successful. */ "approve_contract": { "address": SizedHex<20>; }; /** * Removes address of the contract from the list of approved contracts to manage balances. * * Parameters: * - `origin`: Must be `ControllerOrigin`. * - `address`: Contract address that will be disapproved * * Emits `ContractDisapproved` event when successful. */ "disapprove_contract": { "address": SizedHex<20>; }; /** * Proves ownership of an account and binds it to the EVM address. * This is useful for accounts that want to submit some substrate transaction, but only * received some ERC20 balance and `System` pallet doesn't register them as a substrate account. * * Parameters: * - `origin`: Unsigned origin. * - `account`: Account proving ownership of the address. * - `asset_id`: Asset ID to be set as fee currency for the account. * - `signature`: Signed message by the account that proves ownership of the account. * * Emits `AccountClaimed` event when successful. */ "claim_account": { "account": SS58String; "asset_id": number; "signature": MultiSignature; }; /** * Sets the NTT minter for an asset. The minter is the only EVM address allowed to * mint/burn the asset via the MultiCurrency precompile. * * Parameters: * - `origin`: Must be `ControllerOrigin`. * - `asset_id`: Asset whose minter is set. * - `minter`: EVM address of the NTT spoke manager. * * Emits `NttMinterSet` event when successful. */ "set_ntt_minter": { "asset_id": number; "minter": SizedHex<20>; }; /** * Clears the NTT minter for an asset, stopping all mint/burn via the precompile. * Acts as an emergency stop, therefore it is gated by the faster `NttEmergencyOrigin`. * * Parameters: * - `origin`: Must be `NttEmergencyOrigin`. * - `asset_id`: Asset whose minter is cleared. * * Emits `NttMinterCleared` event when successful. */ "clear_ntt_minter": Anonymize; }>; "XYKLiquidityMining": Enum<{ /** * Create new liquidity mining program with provided parameters. * * `owner` account has to have at least `total_rewards` balance. This fund will be * transferred from `owner` to farm account. * In case of `reward_currency` is insufficient asset, farm's `owner` has to pay existential * deposit for global farm account and for liquidity mining `pot` account. * * The dispatch origin for this call must be `T::CreateOrigin`. * !!!WARN: `T::CreateOrigin` has power over funds of `owner`'s account and it should be * configured to trusted origin e.g Sudo or Governance. * * Parameters: * - `origin`: global farm's owner. * - `total_rewards`: total rewards planned to distribute. This rewards will be * distributed between all yield farms in the global farm. * - `planned_yielding_periods`: planned number of periods to distribute `total_rewards`. * WARN: THIS IS NOT HARD DEADLINE. Not all rewards have to be distributed in * `planned_yielding_periods`. Rewards are distributed based on the situation in the yield * farms and can be distributed in a longer time frame but never in the shorter time frame. * - `blocks_per_period`: number of blocks in a single period. Min. number of blocks per * period is 1. * - `incentivized_asset`: asset to be incentivized in XYK pools. All yield farms added into * liq. mining program have to have `incentivized_asset` in their pair. * - `reward_currency`: payoff currency of rewards. * - `owner`: liq. mining program owner. * - `yield_per_period`: percentage return on `reward_currency` of all farms p.a. * - `min_deposit`: minimum amount which can be deposited to the farm * - `price_adjustment`: * Emits `GlobalFarmCreated` event when successful. */ "create_global_farm": { "total_rewards": bigint; "planned_yielding_periods": number; "blocks_per_period": number; "incentivized_asset": number; "reward_currency": number; "owner": SS58String; "yield_per_period": bigint; "min_deposit": bigint; "price_adjustment": bigint; }; /** * Update global farm's prices adjustment. * * Only farm's owner can perform this action. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: id of the global farm to update * - `price_adjustment`: new value for price adjustment * * Emits `GlobalFarmUpdated` event when successful. */ "update_global_farm": { "global_farm_id": number; "price_adjustment": bigint; }; /** * Terminate existing liq. mining program. * * Only farm owner can perform this action. * * WARN: To successfully terminate a farm, farm have to be empty(all yield farms in he global farm must be terminated). * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: id of global farm to be terminated. * * Emits `GlobalFarmTerminated` event when successful. */ "terminate_global_farm": Anonymize; /** * Add yield farm for given `asset_pair` XYK pool. * * Only farm owner can perform this action. * * Only XYKs with `asset_pair` with `incentivized_asset` can be added into the farm. XYK * pool for `asset_pair` has to exist to successfully create yield farm. * Yield farm for same `asset_pair` can exist only once in the global farm. * * Parameters: * - `origin`: global farm's owner. * - `farm_id`: global farm id to which a yield farm will be added. * - `asset_pair`: asset pair identifying yield farm. Liq. mining will be allowed for this * `asset_pair` and one of the assets in the pair must be `incentivized_asset`. * - `multiplier`: yield farm multiplier. * - `loyalty_curve`: curve to calculate loyalty multiplier to distribute rewards to users * with time incentive. `None` means no loyalty multiplier. * * Emits `YieldFarmCreated` event when successful. */ "create_yield_farm": { "global_farm_id": number; "asset_pair": Anonymize; "multiplier": bigint; "loyalty_curve"?: Anonymize; }; /** * Update yield farm multiplier. * * Only farm owner can perform this action. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: global farm id in which yield farm will be updated. * - `asset_pair`: asset pair identifying yield farm in global farm. * - `multiplier`: new yield farm multiplier. * * Emits `YieldFarmUpdated` event when successful. */ "update_yield_farm": { "global_farm_id": number; "asset_pair": Anonymize; "multiplier": bigint; }; /** * Stop liq. miming for specific yield farm. * * This function claims rewards from `GlobalFarm` last time and stops yield farm * incentivization from a `GlobalFarm`. Users will be able to only withdraw * shares(with claiming) after calling this function. * `deposit_shares()` and `claim_rewards()` are not allowed on canceled yield farm. * * Only farm owner can perform this action. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: farm id in which yield farm will be canceled. * - `asset_pair`: asset pair identifying yield farm in the farm. * * Emits `YieldFarmStopped` event when successful. */ "stop_yield_farm": { "global_farm_id": number; "asset_pair": Anonymize; }; /** * Resume yield farm for stopped yield farm. * * This function resume incentivization from `GlobalFarm` and restore full functionality * for yield farm. Users will be able to deposit, claim and withdraw again. * * WARN: Yield farm is NOT rewarded for time it was stopped. * * Only farm owner can perform this action. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: global farm id in which yield farm will be resumed. * - `yield_farm_id`: id of yield farm to be resumed. * - `asset_pair`: asset pair identifying yield farm in global farm. * - `multiplier`: yield farm multiplier in the farm. * * Emits `YieldFarmResumed` event when successful. */ "resume_yield_farm": { "global_farm_id": number; "yield_farm_id": number; "asset_pair": Anonymize; "multiplier": bigint; }; /** * Remove yield farm * * This function marks a yield farm as ready to be removed from storage when it's empty. Users will * be able to only withdraw shares(without claiming rewards from yield farm). Unpaid rewards * will be transferred back to global farm and will be used to distribute to other yield farms. * * Yield farm must be stopped before calling this function. * * Only global farm's owner can perform this action. Yield farm stays in the storage until it's * empty(all farm entries are withdrawn). Last withdrawn from yield farm trigger removing from * the storage. * * Parameters: * - `origin`: global farm's owner. * - `global_farm_id`: farm id from which yield farm should be terminated. * - `yield_farm_id`: id of yield farm to be terminated. * - `asset_pair`: asset pair identifying yield farm in the global farm. * * Emits `YieldFarmTerminated` event when successful. */ "terminate_yield_farm": { "global_farm_id": number; "yield_farm_id": number; "asset_pair": Anonymize; }; /** * Deposit LP shares to a liq. mining. * * This function transfers LP shares from `origin` to pallet's account and mint nft for * `origin` account. Minted nft represents deposit in the liq. mining. * * Parameters: * - `origin`: account depositing LP shares. This account has to have at least * `shares_amount` of LP shares. * - `global_farm_id`: id of global farm to which user wants to deposit LP shares. * - `yield_farm_id`: id of yield farm to deposit to. * - `asset_pair`: asset pair identifying LP shares user wants to deposit. * - `shares_amount`: amount of LP shares user wants to deposit. * * Emits `SharesDeposited` event when successful. */ "deposit_shares": { "global_farm_id": number; "yield_farm_id": number; "asset_pair": Anonymize; "shares_amount": bigint; }; /** * Join multiple farms with a given share amount * * The share is deposited to the first farm of the specified fams, * and then redeposit the shares to the remaining farms * * Parameters: * - `origin`: account depositing LP shares. This account has to have at least * - `farm_entries`: list of global farm id and yield farm id pairs to join * - `asset_pair`: asset pair identifying LP shares user wants to deposit. * - `shares_amount`: amount of LP shares user wants to deposit. * * Emits `SharesDeposited` event for the first farm entry * Emits `SharesRedeposited` event for each farm entry after the first one */ "join_farms": { "farm_entries": Anonymize; "asset_pair": Anonymize; "shares_amount": bigint; }; /** * Add liquidity to XYK pool and join multiple farms with a given share amount * * The share is deposited to the first farm of the specified entries, * and then redeposit the shares to the remaining farms * * Parameters: * - `origin`: account depositing LP shares. This account has to have at least * - `asset_a`: asset id of the first asset in the pair * - `asset_b`: asset id of the second asset in the pair * - `amount_a`: amount of the first asset to deposit * - `amount_b_max_limit`: maximum amount of the second asset to deposit * - `farm_entries`: list of global farm id and yield farm id pairs to join * * Emits `SharesDeposited` event for the first farm entry * Emits `SharesRedeposited` event for each farm entry after the first one */ "add_liquidity_and_join_farms": { "asset_a": number; "asset_b": number; "amount_a": bigint; "amount_b_max_limit": bigint; "farm_entries": Anonymize; }; /** * Redeposit already locked LP shares to another yield farm. * * This function create yield farm entry for existing deposit. LP shares are not transferred * and amount of LP shares is based on existing deposit. * * This function DOESN'T create new deposit. * * Parameters: * - `origin`: account depositing LP shares. This account have to have at least * - `global_farm_id`: global farm identifier. * - `yield_farm_id`: yield farm identifier redepositing to. * - `asset_pair`: asset pair identifying LP shares user want to deposit. * - `deposit_id`: identifier of the deposit. * * Emits `SharesRedeposited` event when successful. */ "redeposit_shares": { "global_farm_id": number; "yield_farm_id": number; "asset_pair": Anonymize; "deposit_id": bigint; }; /** * Claim rewards from liq. mining for deposit represented by `nft_id`. * * This function calculate user rewards from liq. mining and transfer rewards to `origin` * account. Claiming in the same period is allowed only once. * * Parameters: * - `origin`: account owner of deposit(nft). * - `deposit_id`: nft id representing deposit in the yield farm. * - `yield_farm_id`: yield farm identifier to claim rewards from. * * Emits `RewardClaimed` event when successful. */ "claim_rewards": Anonymize; /** * Withdraw LP shares from liq. mining with reward claiming if possible. * * List of possible cases of transfers of LP shares and claimed rewards: * * * yield farm is active(yield farm is not stopped) - claim and transfer rewards(if it * wasn't claimed in this period) and transfer LP shares. * * liq. mining is stopped - claim and transfer rewards(if it * wasn't claimed in this period) and transfer LP shares. * * yield farm was terminated - only LP shares will be transferred. * * farm was terminated - only LP shares will be transferred. * * User's unclaimable rewards will be transferred back to global farm's account. * * Parameters: * - `origin`: account owner of deposit(nft). * - `deposit_id`: nft id representing deposit in the yield farm. * - `yield_farm_id`: yield farm identifier to dithdraw shares from. * - `asset_pair`: asset pair identifying yield farm in global farm. * * Emits: * * `RewardClaimed` if claim happen * * `SharesWithdrawn` event when successful */ "withdraw_shares": { "deposit_id": bigint; "yield_farm_id": number; "asset_pair": Anonymize; }; /** * Exit from all specified yield farms * * This function will attempt to withdraw shares and claim rewards (if available) from all * specified yield farms for a given deposit. * * Parameters: * - `origin`: account owner of deposit(nft). * - `deposit_id`: nft id representing deposit in the yield farm. * - `asset_pair`: asset pair identifying yield farm(s) in global farm(s). * - `farm_entries`: id(s) of yield farm(s) to exit from. * * Emits: * * `RewardClaimed` for each successful claim * * `SharesWithdrawn` for each successful withdrawal * * `DepositDestroyed` if the deposit is fully withdrawn * */ "exit_farms": { "deposit_id": bigint; "asset_pair": Anonymize; "farm_entries": Anonymize; }; }>; "XYKWarehouseLM": undefined; "RelayChainInfo": undefined; "DCA": Enum<{ /** * Creates a new DCA (Dollar-Cost Averaging) schedule and plans the next execution * for the specified block. * * Only `Order::Sell` schedules can be created. Buy orders are rejected with * `NoLongerSupported`; buy schedules already stored keep executing until they complete * or are terminated. * * If the block is not specified, the execution is planned for the next block. * If the given block is full, the execution will be planned in the subsequent block. * * Once the schedule is created, the specified `total_amount` will be reserved for DCA. * The reservation currency will be the `amount_in` currency of the order. * * Trades are executed as long as there is budget remaining * from the initial `total_amount` allocation, unless `total_amount` is 0, then trades * are executed until schedule is terminated. * * If a trade fails due to slippage limit or price stability errors, it will be retried. * If the number of retries reaches the maximum allowed, * the schedule will be terminated permanently. * In the case of a successful trade, the retry counter is reset. * * Parameters: * - `origin`: schedule owner * - `schedule`: schedule details * - `start_execution_block`: first possible execution block for the schedule * * Emits `Scheduled` and `ExecutionPlanned` event when successful. * */ "schedule": { "schedule": { "owner": SS58String; "period": number; "total_amount": bigint; "max_retries"?: Anonymize; "stability_threshold"?: Anonymize; "slippage"?: Anonymize; "order": Enum<{ "Sell": Anonymize; "Buy": Anonymize; }>; }; "start_execution_block"?: Anonymize; }; /** * Terminates a DCA schedule and remove it completely from the chain. * * This can be called by both schedule owner or the configured `T::TerminateOrigin` * * Parameters: * - `origin`: schedule owner * - `schedule_id`: schedule id * - `next_execution_block`: block number where the schedule is planned. * * Emits `Terminated` event when successful. * */ "terminate": { "schedule_id": number; "next_execution_block"?: Anonymize; }; /** * Unlocks DCA reserves of provided asset for the caller if they have no active schedules. * * This is a utility function to help users recover their reserved funds in case * a DCA schedule was terminated but left some reserved amounts. * * This can only be called when the user has no active DCA schedules. * * Parameters: * - `origin`: The account to unlock reserves for (must be signed) * - `asset_id`: The asset ID for which reserves should be unlocked. * * Emits `ReserveUnlocked` event when successful. * */ "unlock_reserves": Anonymize; }>; "Scheduler": Enum<{ /** * Anonymously schedule a task. */ "schedule": { "when": number; "maybe_periodic"?: Anonymize; "priority": number; "call": TxCallData; }; /** * Cancel an anonymously scheduled task. */ "cancel": Anonymize; /** * Schedule a named task. */ "schedule_named": { "id": SizedHex<32>; "when": number; "maybe_periodic"?: Anonymize; "priority": number; "call": TxCallData; }; /** * Cancel a named scheduled task. */ "cancel_named": Anonymize; /** * Anonymously schedule a task after a delay. */ "schedule_after": { "after": number; "maybe_periodic"?: Anonymize; "priority": number; "call": TxCallData; }; /** * Schedule a named task after a delay. */ "schedule_named_after": { "id": SizedHex<32>; "after": number; "maybe_periodic"?: Anonymize; "priority": number; "call": TxCallData; }; /** * Set a retry configuration for a task so that, in case its scheduled run fails, it will * be retried after `period` blocks, for a total amount of `retries` retries or until it * succeeds. * * Tasks which need to be scheduled for a retry are still subject to weight metering and * agenda space, same as a regular task. If a periodic task fails, it will be scheduled * normally while the task is retrying. * * Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic * clones of the original task. Their retry configuration will be derived from the * original task's configuration, but will have a lower value for `remaining` than the * original `total_retries`. */ "set_retry": Anonymize; /** * Set a retry configuration for a named task so that, in case its scheduled run fails, it * will be retried after `period` blocks, for a total amount of `retries` retries or until * it succeeds. * * Tasks which need to be scheduled for a retry are still subject to weight metering and * agenda space, same as a regular task. If a periodic task fails, it will be scheduled * normally while the task is retrying. * * Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic * clones of the original task. Their retry configuration will be derived from the * original task's configuration, but will have a lower value for `remaining` than the * original `total_retries`. */ "set_retry_named": Anonymize; /** * Removes the retry configuration of a task. */ "cancel_retry": Anonymize; /** * Cancel the retry configuration of a named task. */ "cancel_retry_named": Anonymize; }>; "ParachainSystem": Enum<{ /** * 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. */ "set_validation_data": { "data": { "validation_data": Anonymize; "relay_chain_state": Anonymize; "downward_messages": Anonymize; "horizontal_messages": Array<[number, Array>]>; "relay_parent_descendants": Anonymize; "collator_peer_id"?: Anonymize; }; }; "sudo_send_upward_message": Anonymize; }>; "ParachainInfo": undefined; "PolkadotXcm": Anonymize; "CumulusXcm": undefined; "MessageQueue": Anonymize; "MultiBlockMigrations": Anonymize; "OrmlXcm": Enum<{ /** * Send an XCM message as parachain sovereign. */ "send_as_sovereign": Anonymize; }>; "XTokens": Enum<{ /** * Transfer native currencies. * * `dest_weight_limit` is the weight for XCM execution on the dest * chain, and it would be charged from the transferred assets. If set * below requirements, the execution may fail and assets wouldn't be * received. * * It's a no-op if any error on local XCM execution or message sending. * Note sending assets out per se doesn't guarantee they would be * received. Receiving depends on if the XCM message could be delivered * by the network, and if the receiving chain would handle * messages correctly. */ "transfer": { "currency_id": number; "amount": bigint; "dest": XcmVersionedLocation; "dest_weight_limit": XcmV3WeightLimit; }; /** * Transfer `Asset`. * * `dest_weight_limit` is the weight for XCM execution on the dest * chain, and it would be charged from the transferred assets. If set * below requirements, the execution may fail and assets wouldn't be * received. * * It's a no-op if any error on local XCM execution or message sending. * Note sending assets out per se doesn't guarantee they would be * received. Receiving depends on if the XCM message could be delivered * by the network, and if the receiving chain would handle * messages correctly. */ "transfer_multiasset": { "asset": XcmVersionedAsset; "dest": XcmVersionedLocation; "dest_weight_limit": XcmV3WeightLimit; }; /** * Transfer native currencies specifying the fee and amount as * separate. * * `dest_weight_limit` is the weight for XCM execution on the dest * chain, and it would be charged from the transferred assets. If set * below requirements, the execution may fail and assets wouldn't be * received. * * `fee` is the amount to be spent to pay for execution in destination * chain. Both fee and amount will be subtracted form the callers * balance. * * If `fee` is not high enough to cover for the execution costs in the * destination chain, then the assets will be trapped in the * destination chain * * It's a no-op if any error on local XCM execution or message sending. * Note sending assets out per se doesn't guarantee they would be * received. Receiving depends on if the XCM message could be delivered * by the network, and if the receiving chain would handle * messages correctly. */ "transfer_with_fee": { "currency_id": number; "amount": bigint; "fee": bigint; "dest": XcmVersionedLocation; "dest_weight_limit": XcmV3WeightLimit; }; /** * Transfer `Asset` specifying the fee and amount as separate. * * `dest_weight_limit` is the weight for XCM execution on the dest * chain, and it would be charged from the transferred assets. If set * below requirements, the execution may fail and assets wouldn't be * received. * * `fee` is the Asset to be spent to pay for execution in * destination chain. Both fee and amount will be subtracted form the * callers balance For now we only accept fee and asset having the same * `Location` id. * * If `fee` is not high enough to cover for the execution costs in the * destination chain, then the assets will be trapped in the * destination chain * * It's a no-op if any error on local XCM execution or message sending. * Note sending assets out per se doesn't guarantee they would be * received. Receiving depends on if the XCM message could be delivered * by the network, and if the receiving chain would handle * messages correctly. */ "transfer_multiasset_with_fee": { "asset": XcmVersionedAsset; "fee": XcmVersionedAsset; "dest": XcmVersionedLocation; "dest_weight_limit": XcmV3WeightLimit; }; /** * Transfer several currencies specifying the item to be used as fee * * `dest_weight_limit` is the weight for XCM execution on the dest * chain, and it would be charged from the transferred assets. If set * below requirements, the execution may fail and assets wouldn't be * received. * * `fee_item` is index of the currencies tuple that we want to use for * payment * * It's a no-op if any error on local XCM execution or message sending. * Note sending assets out per se doesn't guarantee they would be * received. Receiving depends on if the XCM message could be delivered * by the network, and if the receiving chain would handle * messages correctly. */ "transfer_multicurrencies": { "currencies": Array>; "fee_item": number; "dest": XcmVersionedLocation; "dest_weight_limit": XcmV3WeightLimit; }; /** * Transfer several `Asset` specifying the item to be used as fee * * `dest_weight_limit` is the weight for XCM execution on the dest * chain, and it would be charged from the transferred assets. If set * below requirements, the execution may fail and assets wouldn't be * received. * * `fee_item` is index of the Assets that we want to use for * payment * * It's a no-op if any error on local XCM execution or message sending. * Note sending assets out per se doesn't guarantee they would be * received. Receiving depends on if the XCM message could be delivered * by the network, and if the receiving chain would handle * messages correctly. */ "transfer_multiassets": { "assets": XcmVersionedAssets; "fee_item": number; "dest": XcmVersionedLocation; "dest_weight_limit": XcmV3WeightLimit; }; }>; "CollatorSelection": Anonymize; "Session": Anonymize; "EmaOracle": Enum<{ /** * Add an oracle to the whitelist so it is tracked by the pallet. * * Parameters: * - `origin`: `AuthorityOrigin` * - `source`: data source identifier * - `assets`: the asset pair to track * * Emits `AddedToWhitelist` event when successful. */ "add_oracle": { "source": SizedHex<8>; "assets": Anonymize; }; /** * Remove an oracle from the whitelist and delete all its stored entries. * * Parameters: * - `origin`: `AuthorityOrigin` * - `source`: data source identifier * - `assets`: the asset pair to stop tracking * * Emits `RemovedFromWhitelist` event when successful. */ "remove_oracle": { "source": SizedHex<8>; "assets": Anonymize; }; /** * Update an oracle entry for BIFROST_SOURCE. Thin wrapper around `set_external_oracle`. * * Parameters: * - `origin`: signed origin — must be authorized for the specific `(BIFROST_SOURCE, pair)` * - `asset_a`: XCM location of the first asset * - `asset_b`: XCM location of the second asset * - `price`: price as `(numerator, denominator)` * * Emits `OracleUpdated` event on the next `on_finalize`. */ "update_bifrost_oracle": { "asset_a": XcmVersionedLocation; "asset_b": XcmVersionedLocation; "price": Anonymize; }; /** * Submit an oracle price update for an external source. * * The call is feeless on success (`Pays::No`). * * Parameters: * - `origin`: signed origin — must be authorized for the specific `(source, pair)` via * `add_authorized_account` * - `source`: external source identifier (must be registered via `register_external_source`) * - `asset_a`: XCM location of the first asset * - `asset_b`: XCM location of the second asset * - `price`: price as `(numerator, denominator)` — both must be non-zero * * Emits `OracleUpdated` event on the next `on_finalize`. */ "set_external_oracle": { "source": SizedHex<8>; "asset_a": XcmVersionedLocation; "asset_b": XcmVersionedLocation; "price": Anonymize; }; /** * Update an external oracle entry using local `AssetId`s directly. * * Cheaper variant of `set_external_oracle` for callers that already know the local * AssetIds — skips the `VersionedLocation` → `AssetId` conversion and the * `AssetRegistry::LocationAssets` storage read. Authorization shares the same * `AuthorizedAccounts` storage as the location variant. * * Parameters: * - `origin`: signed origin — must be authorized for the specific `(source, pair)` via * `add_authorized_account` * - `source`: external source identifier (must be registered via `register_external_source`) * - `asset_a`: local AssetId of the first asset * - `asset_b`: local AssetId of the second asset * - `price`: price as `(numerator, denominator)` — both must be non-zero * * The call is feeless on success (`Pays::No`). * * Emits `OracleUpdated` event on the next `on_finalize`. */ "set_external_oracle_by_ids": { "source": SizedHex<8>; "asset_a": number; "asset_b": number; "price": Anonymize; }; /** * Register a new external oracle source. * * Parameters: * - `origin`: `AuthorityOrigin` * - `source`: 8-byte source identifier to register * * Emits `ExternalSourceRegistered` event when successful. */ "register_external_source": { "source": SizedHex<8>; }; /** * Remove an external oracle source, its per-pair authorizations, and ALL oracle data it * ever wrote (both committed `Oracles` rows and any in-flight `Accumulator` entries). * * Parameters: * - `origin`: `AuthorityOrigin` * - `source`: source identifier to remove * * Emits `ExternalSourceRemoved` event when successful. */ "remove_external_source": { "source": SizedHex<8>; }; /** * Authorize `account` to submit oracle updates for a specific `(source, pair)`. * * Authorization is scoped per-pair so a compromised account can only update the * pairs it was explicitly granted, limiting DDoS blast radius. * * Parameters: * - `origin`: `AuthorityOrigin` * - `source`: external source identifier (must already be registered) * - `assets`: the asset pair to authorize — stored in ordered form * - `account`: the account to authorize * * Emits `AuthorizedAccountAdded` event when successful. */ "add_authorized_account": { "source": SizedHex<8>; "assets": Anonymize; "account": SS58String; }; /** * Revoke oracle-update authorization for `account` on a specific `(source, pair)`. * * Parameters: * - `origin`: `AuthorityOrigin` * - `source`: external source identifier (must already be registered) * - `assets`: the asset pair to revoke — matched in ordered form * - `account`: the account to revoke * * Emits `AuthorizedAccountRemoved` event when successful. */ "remove_authorized_account": { "source": SizedHex<8>; "assets": Anonymize; "account": SS58String; }; }>; "Broadcast": undefined; "FeeProcessor": Enum<{ /** * Manual conversion trigger. Permissionless. */ "convert": Anonymize; }>; }>; export type I4h8nkgupb7obf = AnonymousEnum<{ "system": Anonymize; "TechnicalCommittee": Enum<{ "Members": Anonymize; "Member": SS58String; "_Phantom": undefined; }>; "Origins": Enum<{ "WhitelistedCaller": undefined; "ReferendumCanceller": undefined; "ReferendumKiller": undefined; "GeneralAdmin": undefined; "OmnipoolAdmin": undefined; "Treasurer": undefined; "Spender": undefined; "Tipper": undefined; "EconomicParameters": undefined; }>; "Ethereum": Enum<{ "EthereumTransaction": SizedHex<20>; }>; "PolkadotXcm": Anonymize; "CumulusXcm": Anonymize; }>; export type IdentityData = Enum<{ "None": undefined; "Raw0": undefined; "Raw1": number; "Raw2": SizedHex<2>; "Raw3": SizedHex<3>; "Raw4": SizedHex<4>; "Raw5": SizedHex<5>; "Raw6": SizedHex<6>; "Raw7": SizedHex<7>; "Raw8": SizedHex<8>; "Raw9": SizedHex<9>; "Raw10": SizedHex<10>; "Raw11": SizedHex<11>; "Raw12": SizedHex<12>; "Raw13": SizedHex<13>; "Raw14": SizedHex<14>; "Raw15": SizedHex<15>; "Raw16": SizedHex<16>; "Raw17": SizedHex<17>; "Raw18": SizedHex<18>; "Raw19": SizedHex<19>; "Raw20": SizedHex<20>; "Raw21": SizedHex<21>; "Raw22": SizedHex<22>; "Raw23": SizedHex<23>; "Raw24": SizedHex<24>; "Raw25": SizedHex<25>; "Raw26": SizedHex<26>; "Raw27": SizedHex<27>; "Raw28": SizedHex<28>; "Raw29": SizedHex<29>; "Raw30": SizedHex<30>; "Raw31": SizedHex<31>; "Raw32": SizedHex<32>; "BlakeTwo256": SizedHex<32>; "Sha256": SizedHex<32>; "Keccak256": SizedHex<32>; "ShaThree256": SizedHex<32>; }>; export declare const IdentityData: GetEnum; export type IdentityJudgement = Enum<{ "Unknown": undefined; "FeePaid": bigint; "Reasonable": undefined; "KnownGood": undefined; "OutOfDate": undefined; "LowQuality": undefined; "Erroneous": undefined; }>; export declare const IdentityJudgement: GetEnum; export type I14p0q0qs0fqbj = { "target": SS58String; }; export type MultiSignature = Enum<{ "Ed25519": SizedHex<64>; "Sr25519": SizedHex<64>; "Ecdsa": SizedHex<65>; }>; export declare const MultiSignature: GetEnum; export type I2ev73t79f46tb = { "proposal_hash": SizedHex<32>; }; export type Idnl0r1a4nmeek = (Anonymize) | undefined; export type Ie9g2psuhuu510 = AnonymousEnum<{ "Any": undefined; "CancelProxy": undefined; "Governance": undefined; "Transfer": undefined; "Liquidity": undefined; "LiquidityMining": undefined; }>; export type I1a79630ms0oum = { "call": TxCallData; }; export type I95262dsbtfh4d = AnonymousEnum<{ "Token": undefined; "XYK": undefined; "StableSwap": undefined; "Bond": undefined; "External": undefined; "Erc20": undefined; }>; export type Icqdi7b9m95ug3 = { "position_id": bigint; "amount": bigint; }; export type I6vhvcln14dp4d = { "position_id": bigint; }; export type I9q8qmop6bko5m = { "global_farm_id": number; }; export type Ieot4d4ofvtguv = ({ "initial_reward_percentage": bigint; "scale_coef": number; }) | undefined; export type I2k37dcoppgins = { "deposit_id": bigint; "yield_farm_id": number; }; export type I95g6i7ilua7lq = Array>; export type Id7i7r9a29m8o2 = Array>; export type Ifc3gfgolmaqf7 = { "asset_in": number; "asset_out": number; "amount_in": bigint; "min_amount_out": bigint; "route": Anonymize; }; export type I14tu3k4kt0e26 = Array<{ "pool": Enum<{ "XYK": undefined; "LBP": undefined; "Stableswap": number; "Omnipool": undefined; "Aave": undefined; "HSM": undefined; }>; "asset_in": number; "asset_out": number; }>; export type I651losl68jmo5 = { "asset_in": number; "asset_out": number; "amount_out": bigint; "max_amount_in": bigint; "route": Anonymize; }; export type I4kv0johj9i346 = { "asset_in": number; "asset_out": number; }; export type Icltggien44f6a = AnonymousEnum<{ "Value": Anonymize; "Oracle": [SizedHex<8>, Enum<{ "LastBlock": undefined; "Short": undefined; "TenMinutes": undefined; "Hour": undefined; "Day": undefined; "Week": undefined; }>, number]; "MMOracle": SizedHex<20>; }>; export type I4ojmnsk1dchql = [number, bigint]; export type Ics51ctc9oasbt = { "contract": SizedHex<20>; }; export type Idqumuc2rsgufd = { "big_r": { "x": SizedHex<32>; "y": SizedHex<32>; }; "s": SizedHex<32>; "recovery_id": number; }; export type Ibbvcet1pv1l61 = { "dest": SS58String; "currency_id": number; "amount": bigint; }; export type I6k9mlgqa572np = { "start": number; "period": number; "period_count": number; "per_period": bigint; }; export type Ic4rgfgksgmm3e = (Anonymize) | undefined; export type I1bsfec060j604 = Array<[SizedHex<20>, Anonymize]>; export type Idg0qi60379vnh = Array<{ "chain_id": bigint; "address": SizedHex<20>; "nonce": Anonymize; "signature": Anonymize; }>; export type I9veufneid0sta = { "odd_y_parity": boolean; "r": SizedHex<32>; "s": SizedHex<32>; }; export type I2do93a3gr3ege = AnonymousEnum<{ "Call": SizedHex<20>; "Create": undefined; }>; export type Ieap15h2pjii9u = Array<{ "address": SizedHex<20>; "storage_keys": Anonymize; }>; export type XcmVersionedAsset = Enum<{ "V3": Anonymize; "V4": Anonymize; "V5": Anonymize; }>; export declare const XcmVersionedAsset: GetEnum; export {};