/** * This is the doc comment for pallet `EVM`'s calls. * * `EVM`'s storages: {@link: module:pangolin/evm/storages} * * @module pangolin/evm/calls */ import { Dispatch } from "../../../index"; import { ethers, BytesLike } from "ethers"; import { Metadata } from "@polkadot/types"; export declare const getEVM: (dispatch: Dispatch, metadata: Metadata) => { /** * Withdraw balance from EVM into currency/balances pallet. * * @param {unknown} _address [U8; 20] * @param {unknown} _value U128 * @instance */ withdraw: (signer: ethers.Signer, _address: unknown, _value: unknown) => Promise; /** * Similar to {@link: pangolin/evm/calls/withdraw}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ withdrawH: (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} */ buildWithdrawCall: (_address: unknown, _value: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildWithdrawCall, but with scale encoded args. * * @returns {CallAsParam} */ buildWithdrawCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Issue an EVM call operation. This is similar to a message call transaction in Ethereum. * * @param {unknown} _source [U8; 20] * @param {unknown} _target [U8; 20] * @param {unknown} _input Vec * @param {unknown} _value [U64; 4] * @param {unknown} _gas_limit U64 * @param {unknown} _max_fee_per_gas [U64; 4] * @param {unknown} _max_priority_fee_per_gas Enum<{0/None: , 1/Some: [U64; 4]}> * @param {unknown} _nonce Enum<{0/None: , 1/Some: [U64; 4]}> * @param {unknown} _access_list Vec<([U8; 20], Vec<[U8; 32]>)> * @instance */ call: (signer: ethers.Signer, _source: unknown, _target: unknown, _input: unknown, _value: unknown, _gas_limit: unknown, _max_fee_per_gas: unknown, _max_priority_fee_per_gas: unknown, _nonce: unknown, _access_list: unknown) => Promise; /** * Similar to {@link: pangolin/evm/calls/call}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ callH: (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} */ buildCallCall: (_source: unknown, _target: unknown, _input: unknown, _value: unknown, _gas_limit: unknown, _max_fee_per_gas: unknown, _max_priority_fee_per_gas: unknown, _nonce: unknown, _access_list: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildCallCall, but with scale encoded args. * * @returns {CallAsParam} */ buildCallCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Issue an EVM create operation. This is similar to a contract creation transaction in * Ethereum. * * @param {unknown} _source [U8; 20] * @param {unknown} _init Vec * @param {unknown} _value [U64; 4] * @param {unknown} _gas_limit U64 * @param {unknown} _max_fee_per_gas [U64; 4] * @param {unknown} _max_priority_fee_per_gas Enum<{0/None: , 1/Some: [U64; 4]}> * @param {unknown} _nonce Enum<{0/None: , 1/Some: [U64; 4]}> * @param {unknown} _access_list Vec<([U8; 20], Vec<[U8; 32]>)> * @instance */ create: (signer: ethers.Signer, _source: unknown, _init: unknown, _value: unknown, _gas_limit: unknown, _max_fee_per_gas: unknown, _max_priority_fee_per_gas: unknown, _nonce: unknown, _access_list: unknown) => Promise; /** * Similar to {@link: pangolin/evm/calls/create}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ createH: (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} */ buildCreateCall: (_source: unknown, _init: unknown, _value: unknown, _gas_limit: unknown, _max_fee_per_gas: unknown, _max_priority_fee_per_gas: unknown, _nonce: unknown, _access_list: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildCreateCall, but with scale encoded args. * * @returns {CallAsParam} */ buildCreateCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Issue an EVM create2 operation. * * @param {unknown} _source [U8; 20] * @param {unknown} _init Vec * @param {unknown} _salt [U8; 32] * @param {unknown} _value [U64; 4] * @param {unknown} _gas_limit U64 * @param {unknown} _max_fee_per_gas [U64; 4] * @param {unknown} _max_priority_fee_per_gas Enum<{0/None: , 1/Some: [U64; 4]}> * @param {unknown} _nonce Enum<{0/None: , 1/Some: [U64; 4]}> * @param {unknown} _access_list Vec<([U8; 20], Vec<[U8; 32]>)> * @instance */ create2: (signer: ethers.Signer, _source: unknown, _init: unknown, _salt: unknown, _value: unknown, _gas_limit: unknown, _max_fee_per_gas: unknown, _max_priority_fee_per_gas: unknown, _nonce: unknown, _access_list: unknown) => Promise; /** * Similar to {@link: pangolin/evm/calls/create2}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ create2H: (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} */ buildCreate2Call: (_source: unknown, _init: unknown, _salt: unknown, _value: unknown, _gas_limit: unknown, _max_fee_per_gas: unknown, _max_priority_fee_per_gas: unknown, _nonce: unknown, _access_list: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildCreate2Call, but with scale encoded args. * * @returns {CallAsParam} */ buildCreate2CallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; };