/** * This is the doc comment for pallet `AccountMigration`'s calls. * * `AccountMigration`'s storages: {@link: module:pangolin/accountMigration/storages} * * @module pangolin/accountMigration/calls */ import { Dispatch } from "../../../index"; import { ethers, BytesLike } from "ethers"; import { Metadata } from "@polkadot/types"; export declare const getAccountMigration: (dispatch: Dispatch, metadata: Metadata) => { /** * Migrate all the account data under the `from` to `to`. * * @param {unknown} _from [U8; 32] * @param {unknown} _to [U8; 20] * @param {unknown} _signature [U8; 64] * @instance */ migrate: (signer: ethers.Signer, _from: unknown, _to: unknown, _signature: unknown) => Promise; /** * Similar to {@link: pangolin/accountMigration/calls/migrate}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ migrateH: (signer: ethers.Signer, argsBytes: BytesLike) => Promise; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * * @returns {CallAsParam} */ buildMigrateCall: (_from: unknown, _to: unknown, _signature: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildMigrateCall, but with scale encoded args. * * @returns {CallAsParam} */ buildMigrateCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Similar to `migrate` but for multisig accounts. * * The `_signature` should be provided by `who`. * * @param {unknown} _submitter [U8; 32] * @param {unknown} _others Vec<[U8; 32]> * @param {unknown} _threshold U16 * @param {unknown} _to [U8; 20] * @param {unknown} _signature [U8; 64] * @param {unknown} _new_multisig_params Enum<{0/None: , 1/Some: {address: [U8; 20], members: Vec<[U8; 20]>, threshold: U16}}> * @instance */ migrateMultisig: (signer: ethers.Signer, _submitter: unknown, _others: unknown, _threshold: unknown, _to: unknown, _signature: unknown, _new_multisig_params: unknown) => Promise; /** * Similar to {@link: pangolin/accountMigration/calls/migrateMultisig}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ migrateMultisigH: (signer: ethers.Signer, argsBytes: BytesLike) => Promise; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * * @returns {CallAsParam} */ buildMigrateMultisigCall: (_submitter: unknown, _others: unknown, _threshold: unknown, _to: unknown, _signature: unknown, _new_multisig_params: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildMigrateMultisigCall, but with scale encoded args. * * @returns {CallAsParam} */ buildMigrateMultisigCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * To complete the pending multisig migration. * * The `_signature` should be provided by `submitter`. * * @param {unknown} _multisig [U8; 32] * @param {unknown} _submitter [U8; 32] * @param {unknown} _signature [U8; 64] * @instance */ completeMultisigMigration: (signer: ethers.Signer, _multisig: unknown, _submitter: unknown, _signature: unknown) => Promise; /** * Similar to {@link: pangolin/accountMigration/calls/completeMultisigMigration}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ completeMultisigMigrationH: (signer: ethers.Signer, argsBytes: BytesLike) => Promise; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * * @returns {CallAsParam} */ buildCompleteMultisigMigrationCall: (_multisig: unknown, _submitter: unknown, _signature: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildCompleteMultisigMigrationCall, but with scale encoded args. * * @returns {CallAsParam} */ buildCompleteMultisigMigrationCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; };