UNPKG

@moonbeam-network/api-augment

Version:
1,279 lines (1,274 loc) 193 kB
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ // import type lookup before we augment - in some environments // this is required to allow for ambient/previous definitions import "@polkadot/api-base/types/submittable"; import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from "@polkadot/api-base/types"; import type { Data } from "@polkadot/types"; import type { Bytes, Compact, Null, Option, Struct, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types"; import type { AccountId20, Call, H160, H256, Perbill, Percent } from "@polkadot/types/interfaces/runtime"; import type { AccountEthereumSignature, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, MoonbeamRuntimeAssetConfigAssetRegistrarMetadata, MoonbeamRuntimeOriginCaller, MoonbeamRuntimeProxyType, MoonbeamRuntimeRuntimeParamsRuntimeParameters, MoonbeamRuntimeXcmConfigAssetType, MoonbeamRuntimeXcmConfigTransactors, NimbusPrimitivesNimbusCryptoPublic, PalletBalancesAdjustmentDirection, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletMultisigTimepoint, PalletParachainStakingInflationDistributionConfig, PalletXcmTransactorCurrencyPayment, PalletXcmTransactorHrmpOperation, PalletXcmTransactorTransactWeights, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmPrimitivesEthereumXcmEthereumXcmTransaction, XcmV3OriginKind, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from "@polkadot/types/lookup"; export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>; export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>; declare module "@polkadot/api-base/types/submittable" { interface AugmentedSubmittables<ApiType extends ApiTypes> { assetManager: { /** * Change the xcm type mapping for a given assetId * We also change this if the previous units per second where pointing at the old * assetType **/ changeExistingAssetType: AugmentedSubmittable< ( assetId: u128 | AnyNumber | Uint8Array, newAssetType: MoonbeamRuntimeXcmConfigAssetType | { Xcm: any } | string | Uint8Array, numAssetsWeightHint: u32 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [u128, MoonbeamRuntimeXcmConfigAssetType, u32] >; /** * Destroy a given foreign assetId * The weight in this case is the one returned by the trait * plus the db writes and reads from removing all the associated * data **/ destroyForeignAsset: AugmentedSubmittable< ( assetId: u128 | AnyNumber | Uint8Array, numAssetsWeightHint: u32 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [u128, u32] >; /** * Register new asset with the asset manager **/ registerForeignAsset: AugmentedSubmittable< ( asset: MoonbeamRuntimeXcmConfigAssetType | { Xcm: any } | string | Uint8Array, metadata: | MoonbeamRuntimeAssetConfigAssetRegistrarMetadata | { name?: any; symbol?: any; decimals?: any; isFrozen?: any } | string | Uint8Array, minAmount: u128 | AnyNumber | Uint8Array, isSufficient: bool | boolean | Uint8Array ) => SubmittableExtrinsic<ApiType>, [ MoonbeamRuntimeXcmConfigAssetType, MoonbeamRuntimeAssetConfigAssetRegistrarMetadata, u128, bool ] >; /** * Remove a given assetId -> assetType association **/ removeExistingAssetType: AugmentedSubmittable< ( assetId: u128 | AnyNumber | Uint8Array, numAssetsWeightHint: u32 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [u128, u32] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction<ApiType>; }; assets: { /** * Approve an amount of asset for transfer by a delegated third-party account. * * Origin must be Signed. * * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account * for the purpose of holding the approval. If some non-zero amount of assets is already * approved from signing account to `delegate`, then it is topped up or unreserved to * meet the right value. * * NOTE: The signing account does not need to own `amount` of assets at the point of * making this call. * * - `id`: The identifier of the asset. * - `delegate`: The account to delegate permission to transfer asset. * - `amount`: The amount of asset that may be transferred by `delegate`. If there is * already an approval in place, then this acts additively. * * Emits `ApprovedTransfer` on success. * * Weight: `O(1)` **/ approveTransfer: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, delegate: AccountId20 | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, Compact<u128>] >; /** * Disallow further unprivileged transfers of an asset `id` to and from an account `who`. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the account's asset. * - `who`: The account to be unblocked. * * Emits `Blocked`. * * Weight: `O(1)` **/ block: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, who: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20] >; /** * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`. * * Origin must be Signed and the sender should be the Manager of the asset `id`. * * Bails with `NoAccount` if the `who` is already dead. * * - `id`: The identifier of the asset to have some amount burned. * - `who`: The account to be debited from. * - `amount`: The maximum amount by which `who`'s balance should be reduced. * * Emits `Burned` with the actual amount burned. If this takes the balance to below the * minimum for the asset, then the amount burned is increased to take it to zero. * * Weight: `O(1)` * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`. **/ burn: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, who: AccountId20 | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, Compact<u128>] >; /** * Cancel all of some asset approved for delegated transfer by a third-party account. * * Origin must be Signed and there must be an approval in place between signer and * `delegate`. * * Unreserves any deposit previously reserved by `approve_transfer` for the approval. * * - `id`: The identifier of the asset. * - `delegate`: The account delegated permission to transfer asset. * * Emits `ApprovalCancelled` on success. * * Weight: `O(1)` **/ cancelApproval: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, delegate: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20] >; /** * Clear the metadata for an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * Any deposit is freed for the asset owner. * * - `id`: The identifier of the asset to clear. * * Emits `MetadataCleared`. * * Weight: `O(1)` **/ clearMetadata: AugmentedSubmittable< (id: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>] >; /** * Issue a new class of fungible assets from a public origin. * * This new asset class has no assets initially and its owner is the origin. * * The origin must conform to the configured `CreateOrigin` and have sufficient funds free. * * Funds of sender are reserved by `AssetDeposit`. * * Parameters: * - `id`: The identifier of the new asset. This must not be currently in use to identify * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. * - `admin`: The admin of this class of assets. The admin is the initial address of each * member of the asset class's admin team. * - `min_balance`: The minimum balance of this new asset that any single account must * have. If an account's balance is reduced below this, then it collapses to zero. * * Emits `Created` event when successful. * * Weight: `O(1)` **/ create: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, admin: AccountId20 | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, u128] >; /** * Destroy all accounts associated with a given asset. * * `destroy_accounts` should only be called after `start_destroy` has been called, and the * asset is in a `Destroying` state. * * Due to weight restrictions, this function may need to be called multiple times to fully * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * Each call emits the `Event::DestroyedAccounts` event. **/ destroyAccounts: AugmentedSubmittable< (id: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>] >; /** * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit). * * `destroy_approvals` should only be called after `start_destroy` has been called, and the * asset is in a `Destroying` state. * * Due to weight restrictions, this function may need to be called multiple times to fully * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * Each call emits the `Event::DestroyedApprovals` event. **/ destroyApprovals: AugmentedSubmittable< (id: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>] >; /** * Complete destroying asset and unreserve currency. * * `finish_destroy` should only be called after `start_destroy` has been called, and the * asset is in a `Destroying` state. All accounts or approvals should be destroyed before * hand. * * - `id`: The identifier of the asset to be destroyed. This must identify an existing * asset. * * Each successful call emits the `Event::Destroyed` event. **/ finishDestroy: AugmentedSubmittable< (id: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>] >; /** * Alter the attributes of a given asset. * * Origin must be `ForceOrigin`. * * - `id`: The identifier of the asset. * - `owner`: The new Owner of this asset. * - `issuer`: The new Issuer of this asset. * - `admin`: The new Admin of this asset. * - `freezer`: The new Freezer of this asset. * - `min_balance`: The minimum balance of this new asset that any single account must * have. If an account's balance is reduced below this, then it collapses to zero. * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient * value to account for the state bloat associated with its balance storage. If set to * `true`, then non-zero balances may be stored without a `consumer` reference (and thus * an ED in the Balances pallet or whatever else is used to control user-account state * growth). * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin * instructions. * * Emits `AssetStatusChanged` with the identity of the asset. * * Weight: `O(1)` **/ forceAssetStatus: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, owner: AccountId20 | string | Uint8Array, issuer: AccountId20 | string | Uint8Array, admin: AccountId20 | string | Uint8Array, freezer: AccountId20 | string | Uint8Array, minBalance: Compact<u128> | AnyNumber | Uint8Array, isSufficient: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array ) => SubmittableExtrinsic<ApiType>, [ Compact<u128>, AccountId20, AccountId20, AccountId20, AccountId20, Compact<u128>, bool, bool ] >; /** * Cancel all of some asset approved for delegated transfer by a third-party account. * * Origin must be either ForceOrigin or Signed origin with the signer being the Admin * account of the asset `id`. * * Unreserves any deposit previously reserved by `approve_transfer` for the approval. * * - `id`: The identifier of the asset. * - `delegate`: The account delegated permission to transfer asset. * * Emits `ApprovalCancelled` on success. * * Weight: `O(1)` **/ forceCancelApproval: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, owner: AccountId20 | string | Uint8Array, delegate: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, AccountId20] >; /** * Clear the metadata for an asset. * * Origin must be ForceOrigin. * * Any deposit is returned. * * - `id`: The identifier of the asset to clear. * * Emits `MetadataCleared`. * * Weight: `O(1)` **/ forceClearMetadata: AugmentedSubmittable< (id: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>] >; /** * Issue a new class of fungible assets from a privileged origin. * * This new asset class has no assets initially. * * The origin must conform to `ForceOrigin`. * * Unlike `create`, no funds are reserved. * * - `id`: The identifier of the new asset. This must not be currently in use to identify * an existing asset. If [`NextAssetId`] is set, then this must be equal to it. * - `owner`: The owner of this class of assets. The owner has full superuser permissions * over this asset, but may later change and configure the permissions using * `transfer_ownership` and `set_team`. * - `min_balance`: The minimum balance of this new asset that any single account must * have. If an account's balance is reduced below this, then it collapses to zero. * * Emits `ForceCreated` event when successful. * * Weight: `O(1)` **/ forceCreate: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, owner: AccountId20 | string | Uint8Array, isSufficient: bool | boolean | Uint8Array, minBalance: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, bool, Compact<u128>] >; /** * Force the metadata for an asset to some value. * * Origin must be ForceOrigin. * * Any deposit is left alone. * * - `id`: The identifier of the asset to update. * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. * - `decimals`: The number of decimals this asset uses to represent one unit. * * Emits `MetadataSet`. * * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively. **/ forceSetMetadata: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array, isFrozen: bool | boolean | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Bytes, Bytes, u8, bool] >; /** * Move some assets from one account to another. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to have some amount transferred. * - `source`: The account to be debited. * - `dest`: The account to be credited. * - `amount`: The amount by which the `source`'s balance of assets should be reduced and * `dest`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the `source` balance above zero but * below the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of * `dest`. **/ forceTransfer: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, source: AccountId20 | string | Uint8Array, dest: AccountId20 | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, AccountId20, Compact<u128>] >; /** * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who` * must already exist as an entry in `Account`s of the asset. If you want to freeze an * account that does not have an entry, use `touch_other` first. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `who`: The account to be frozen. * * Emits `Frozen`. * * Weight: `O(1)` **/ freeze: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, who: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20] >; /** * Disallow further unprivileged transfers for the asset class. * * Origin must be Signed and the sender should be the Freezer of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * * Emits `Frozen`. * * Weight: `O(1)` **/ freezeAsset: AugmentedSubmittable< (id: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>] >; /** * Mint assets of a particular class. * * The origin must be Signed and the sender must be the Issuer of the asset `id`. * * - `id`: The identifier of the asset to have some amount minted. * - `beneficiary`: The account to be credited with the minted assets. * - `amount`: The amount of the asset to be minted. * * Emits `Issued` event when successful. * * Weight: `O(1)` * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`. **/ mint: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, beneficiary: AccountId20 | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, Compact<u128>] >; /** * Return the deposit (if any) of an asset account or a consumer reference (if any) of an * account. * * The origin must be Signed. * * - `id`: The identifier of the asset for which the caller would like the deposit * refunded. * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund. * * Emits `Refunded` event when successful. **/ refund: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool] >; /** * Return the deposit (if any) of a target asset account. Useful if you are the depositor. * * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In * order to burn a non-zero balance of the asset, the caller must be the account and should * use `refund`. * * - `id`: The identifier of the asset for the account holding a deposit. * - `who`: The account to refund. * * Emits `Refunded` event when successful. **/ refundOther: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, who: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20] >; /** * Set the metadata for an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * Funds of sender are reserved according to the formula: * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into * account any already reserved funds. * * - `id`: The identifier of the asset to update. * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`. * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`. * - `decimals`: The number of decimals this asset uses to represent one unit. * * Emits `MetadataSet`. * * Weight: `O(1)` **/ setMetadata: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Bytes, Bytes, u8] >; /** * Sets the minimum balance of an asset. * * Only works if there aren't any accounts that are holding the asset or if * the new value of `min_balance` is less than the old one. * * Origin must be Signed and the sender has to be the Owner of the * asset `id`. * * - `id`: The identifier of the asset. * - `min_balance`: The new value of `min_balance`. * * Emits `AssetMinBalanceChanged` event when successful. **/ setMinBalance: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u128] >; /** * Change the Issuer, Admin and Freezer of an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `issuer`: The new Issuer of this asset. * - `admin`: The new Admin of this asset. * - `freezer`: The new Freezer of this asset. * * Emits `TeamChanged`. * * Weight: `O(1)` **/ setTeam: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, issuer: AccountId20 | string | Uint8Array, admin: AccountId20 | string | Uint8Array, freezer: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, AccountId20, AccountId20] >; /** * 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. **/ startDestroy: AugmentedSubmittable< (id: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>] >; /** * Allow unprivileged transfers to and from an account again. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to be frozen. * - `who`: The account to be unfrozen. * * Emits `Thawed`. * * Weight: `O(1)` **/ thaw: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, who: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20] >; /** * Allow unprivileged transfers for the asset again. * * Origin must be Signed and the sender should be the Admin of the asset `id`. * * - `id`: The identifier of the asset to be thawed. * * Emits `Thawed`. * * Weight: `O(1)` **/ thawAsset: AugmentedSubmittable< (id: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>] >; /** * Create an asset account for non-provider assets. * * A deposit will be taken from the signer account. * * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit * to be taken. * - `id`: The identifier of the asset for the account to be created. * * Emits `Touched` event when successful. **/ touch: AugmentedSubmittable< (id: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>] >; /** * Create an asset account for `who`. * * A deposit will be taken from the signer account. * * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account * must have sufficient funds for a deposit to be taken. * - `id`: The identifier of the asset for the account to be created. * - `who`: The account to be created. * * Emits `Touched` event when successful. **/ touchOther: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, who: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20] >; /** * Move some assets from the sender account to another. * * Origin must be Signed. * * - `id`: The identifier of the asset to have some amount transferred. * - `target`: The account to be credited. * - `amount`: The amount by which the sender's balance of assets should be reduced and * `target`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the sender balance above zero but below * the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of * `target`. **/ transfer: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, target: AccountId20 | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, Compact<u128>] >; /** * 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). **/ transferAll: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, dest: AccountId20 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, bool] >; /** * Transfer some asset balance from a previously delegated account to some third-party * account. * * Origin must be Signed and there must be an approval in place by the `owner` to the * signer. * * If the entire amount approved for transfer is transferred, then any deposit previously * reserved by `approve_transfer` is unreserved. * * - `id`: The identifier of the asset. * - `owner`: The account which previously approved for a transfer of at least `amount` and * from which the asset balance will be withdrawn. * - `destination`: The account to which the asset balance of `amount` will be transferred. * - `amount`: The amount of assets to transfer. * * Emits `TransferredApproved` on success. * * Weight: `O(1)` **/ transferApproved: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, owner: AccountId20 | string | Uint8Array, destination: AccountId20 | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, AccountId20, Compact<u128>] >; /** * Move some assets from the sender account to another, keeping the sender account alive. * * Origin must be Signed. * * - `id`: The identifier of the asset to have some amount transferred. * - `target`: The account to be credited. * - `amount`: The amount by which the sender's balance of assets should be reduced and * `target`'s balance increased. The amount actually transferred may be slightly greater in * the case that the transfer would otherwise take the sender balance above zero but below * the minimum balance. Must be greater than zero. * * Emits `Transferred` with the actual amount transferred. If this takes the source balance * to below the minimum for the asset, then the amount transferred is increased to take it * to zero. * * Weight: `O(1)` * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of * `target`. **/ transferKeepAlive: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, target: AccountId20 | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20, Compact<u128>] >; /** * Change the Owner of an asset. * * Origin must be Signed and the sender should be the Owner of the asset `id`. * * - `id`: The identifier of the asset. * - `owner`: The new Owner of this asset. * * Emits `OwnerChanged`. * * Weight: `O(1)` **/ transferOwnership: AugmentedSubmittable< ( id: Compact<u128> | AnyNumber | Uint8Array, owner: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId20] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction<ApiType>; }; authorFilter: { /** * Update the eligible count. Intended to be called by governance. **/ setEligible: AugmentedSubmittable< (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction<ApiType>; }; authorInherent: { /** * This inherent is a workaround to run code after the "real" inherents have executed, * but before transactions are executed. **/ kickOffAuthorshipValidation: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction<ApiType>; }; authorMapping: { /** * Register your NimbusId onchain so blocks you author are associated with your account. * * Users who have been (or will soon be) elected active collators in staking, * should submit this extrinsic to have their blocks accepted and earn rewards. **/ addAssociation: AugmentedSubmittable< ( nimbusId: NimbusPrimitivesNimbusCryptoPublic | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [NimbusPrimitivesNimbusCryptoPublic] >; /** * Clear your Mapping. * * This is useful when you are no longer an author and would like to re-claim your security * deposit. **/ clearAssociation: AugmentedSubmittable< ( nimbusId: NimbusPrimitivesNimbusCryptoPublic | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [NimbusPrimitivesNimbusCryptoPublic] >; /** * Remove your Mapping. * * This is useful when you are no longer an author and would like to re-claim your security * deposit. **/ removeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>; /** * Set association and session keys at once. * * This is useful for key rotation to update Nimbus and VRF keys in one call. * No new security deposit is required. Will replace `update_association` which is kept * now for backwards compatibility reasons. **/ setKeys: AugmentedSubmittable< (keys: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes] >; /** * Change your Mapping. * * This is useful for normal key rotation or for when switching from one physical collator * machine to another. No new security deposit is required. * This sets keys to new_nimbus_id.into() by default. **/ updateAssociation: AugmentedSubmittable< ( oldNimbusId: NimbusPrimitivesNimbusCryptoPublic | string | Uint8Array, newNimbusId: NimbusPrimitivesNimbusCryptoPublic | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [NimbusPrimitivesNimbusCryptoPublic, NimbusPrimitivesNimbusCryptoPublic] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction<ApiType>; }; balances: { /** * Burn the specified liquid free balance from the origin account. * * If the origin's account ends up below the existential deposit as a result * of the burn and `keep_alive` is false, the account will be reaped. * * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible, * this `burn` operation will reduce total issuance by the amount _burned_. **/ burn: AugmentedSubmittable< ( value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool] >; /** * Adjust the total issuance in a saturating way. * * Can only be called by root and always needs a positive `delta`. * * # Example **/ forceAdjustTotalIssuance: AugmentedSubmittable< ( direction: | PalletBalancesAdjustmentDirection | "Increase" | "Decrease" | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>] >; /** * Set the regular balance of a given account. * * The dispatch origin for this call is `root`. **/ forceSetBalance: AugmentedSubmittable< ( who: AccountId20 | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [AccountId20, Compact<u128>] >; /** * Exactly as `transfer_allow_death`, except the origin must be root and the source account * may be specified. **/ forceTransfer: AugmentedSubmittable< ( source: AccountId20 | string | Uint8Array, dest: AccountId20 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [AccountId20, AccountId20, Compact<u128>] >; /** * Unreserve some balance from a user by force. * * Can only be called by ROOT. **/ forceUnreserve: AugmentedSubmittable< ( who: AccountId20 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [AccountId20, u128] >; /** * Transfer the entire transferable balance from the caller account. * * NOTE: This function only attempts to transfer _transferable_ balances. This means that * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be * transferred by this function. To ensure that this function results in a killed account, * you might need to prepare the account by removing any reference counters, storage * deposits, etc... * * The dispatch origin of this call must be Signed. * * - `dest`: The recipient of the transfer. * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all * of the funds the account has, causing the sender account to be killed (false), or * transfer everything except at least the existential deposit, which will guarantee to * keep the sender account alive (true). **/ transferAll: AugmentedSubmittable< ( dest: AccountId20 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array ) => SubmittableExtrinsic<ApiType>, [AccountId20, bool] >; /** * Transfer some liquid free balance to another account. * * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. * If the sender's account is below the existential deposit as a result * of the transfer, the account will be reaped. * * The dispatch origin for this call must be `Signed` by the transactor. **/ transferAllowDeath: AugmentedSubmittable< ( dest: AccountId20 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [AccountId20, Compact<u128>] >; /** * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not * kill the origin account. * * 99% of the time you want [`transfer_allow_death`] instead. * * [`transfer_allow_death`]: struct.Pallet.html#method.transfer **/ transferKeepAlive: AugmentedSubmittable< ( dest: AccountId20 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [AccountId20, Compact<u128>] >; /** * Upgrade a specified account. * * - `origin`: Must be `Signed`. * - `who`: The account to be upgraded. * * This will waive the transaction fee if at least all but 10% of the accounts needed to * be upgraded. (We let some not have to be upgraded just in order to allow for the * possibility of churn). **/ upgradeAccounts: AugmentedSubmittable< ( who: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[] ) => SubmittableExtrinsic<ApiType>, [Vec<AccountId20>] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction<ApiType>; }; convictionVoting: { /** * 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: AugmentedSubmittable< ( clazz: u16 | AnyNumber | Uint8Array, to: AccountId20 | string | Uint8Array, conviction: | PalletConvictionVotingConviction | "None" | "Locked1x" | "Locked2x" | "Locked3x" | "Locked4x" | "Locked5x" | "Locked6x" | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [u16, AccountId20, PalletConvictionVotingConviction, u128] >; /** * 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. **/ removeOtherVote: AugmentedSubmittable< ( target: AccountId20 | string | Uint8Array, clazz: u16 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [AccountId20, u16, u32] >; /** * 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. **/ removeVote: AugmentedSubmittable< ( clazz: Option<u16> | null | Uint8Array | u16 | AnyNumber, index: u32 | AnyNumber | Uint8Array ) => SubmittableExtrinsic<ApiType>, [Option<u16>, u32] >; /** * 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: AugmentedSubmittable< (clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16] >; /** * 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: AugmentedSubmittable< ( clazz: u16 | AnyNumber | Uint8Array, target: AccountId20 | string | Uint8Array ) => SubmittableExtrinsic<ApiType>, [u16, AccountId20]