/** * This is the doc comment for pallet `System`'s calls. * * `System`'s storages: {@link: module:crab/system/storages} * * @module crab/system/calls */ import { Dispatch } from "../../../index"; import { ethers, BytesLike } from "ethers"; import { Metadata } from "@polkadot/types"; export declare const getSystem: (dispatch: Dispatch, metadata: Metadata) => { /** * Make some on-chain remark. * * ## Complexity * - `O(1)` * * @param {unknown} _remark Vec * @instance */ remark: (signer: ethers.Signer, _remark: unknown) => Promise; /** * Similar to {@link: crab/system/calls/remark}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ remarkH: (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} */ buildRemarkCall: (_remark: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildRemarkCall, but with scale encoded args. * * @returns {CallAsParam} */ buildRemarkCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Set the number of pages in the WebAssembly environment's heap. * * @param {unknown} _pages U64 * @instance */ setHeapPages: (signer: ethers.Signer, _pages: unknown) => Promise; /** * Similar to {@link: crab/system/calls/setHeapPages}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ setHeapPagesH: (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} */ buildSetHeapPagesCall: (_pages: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSetHeapPagesCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSetHeapPagesCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Set the new runtime code. * * ## Complexity * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code` * * @param {unknown} _code Vec * @instance */ setCode: (signer: ethers.Signer, _code: unknown) => Promise; /** * Similar to {@link: crab/system/calls/setCode}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ setCodeH: (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} */ buildSetCodeCall: (_code: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSetCodeCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSetCodeCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Set the new runtime code without doing any checks of the given `code`. * * ## Complexity * - `O(C)` where `C` length of `code` * * @param {unknown} _code Vec * @instance */ setCodeWithoutChecks: (signer: ethers.Signer, _code: unknown) => Promise; /** * Similar to {@link: crab/system/calls/setCodeWithoutChecks}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ setCodeWithoutChecksH: (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} */ buildSetCodeWithoutChecksCall: (_code: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSetCodeWithoutChecksCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSetCodeWithoutChecksCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Set some items of storage. * * @param {unknown} _items Vec<(Vec, Vec)> * @instance */ setStorage: (signer: ethers.Signer, _items: unknown) => Promise; /** * Similar to {@link: crab/system/calls/setStorage}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ setStorageH: (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} */ buildSetStorageCall: (_items: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSetStorageCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSetStorageCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Kill some items from storage. * * @param {unknown} _keys Vec> * @instance */ killStorage: (signer: ethers.Signer, _keys: unknown) => Promise; /** * Similar to {@link: crab/system/calls/killStorage}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ killStorageH: (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} */ buildKillStorageCall: (_keys: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildKillStorageCall, but with scale encoded args. * * @returns {CallAsParam} */ buildKillStorageCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * 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. * * @param {unknown} _prefix Vec * @param {unknown} _subkeys U32 * @instance */ killPrefix: (signer: ethers.Signer, _prefix: unknown, _subkeys: unknown) => Promise; /** * Similar to {@link: crab/system/calls/killPrefix}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ killPrefixH: (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} */ buildKillPrefixCall: (_prefix: unknown, _subkeys: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildKillPrefixCall, but with scale encoded args. * * @returns {CallAsParam} */ buildKillPrefixCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Make some on-chain remark and emit event. * * @param {unknown} _remark Vec * @instance */ remarkWithEvent: (signer: ethers.Signer, _remark: unknown) => Promise; /** * Similar to {@link: crab/system/calls/remarkWithEvent}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ remarkWithEventH: (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} */ buildRemarkWithEventCall: (_remark: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildRemarkWithEventCall, but with scale encoded args. * * @returns {CallAsParam} */ buildRemarkWithEventCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; };