/** * This is the doc comment for pallet `Preimage`'s calls. * * `Preimage`'s storages: {@link: module:pangolin/preimage/storages} * * @module pangolin/preimage/calls */ import { Dispatch } from "../../../index"; import { ethers, BytesLike } from "ethers"; import { Metadata } from "@polkadot/types"; export declare const getPreimage: (dispatch: Dispatch, metadata: Metadata) => { /** * 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. * * @param {unknown} _bytes Vec * @instance */ notePreimage: (signer: ethers.Signer, _bytes: unknown) => Promise; /** * Similar to {@link: pangolin/preimage/calls/notePreimage}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ notePreimageH: (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} */ buildNotePreimageCall: (_bytes: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildNotePreimageCall, but with scale encoded args. * * @returns {CallAsParam} */ buildNotePreimageCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * 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`. * * @param {unknown} _hash [U8; 32] * @instance */ unnotePreimage: (signer: ethers.Signer, _hash: unknown) => Promise; /** * Similar to {@link: pangolin/preimage/calls/unnotePreimage}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ unnotePreimageH: (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} */ buildUnnotePreimageCall: (_hash: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildUnnotePreimageCall, but with scale encoded args. * * @returns {CallAsParam} */ buildUnnotePreimageCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * 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. * * @param {unknown} _hash [U8; 32] * @instance */ requestPreimage: (signer: ethers.Signer, _hash: unknown) => Promise; /** * Similar to {@link: pangolin/preimage/calls/requestPreimage}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ requestPreimageH: (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} */ buildRequestPreimageCall: (_hash: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildRequestPreimageCall, but with scale encoded args. * * @returns {CallAsParam} */ buildRequestPreimageCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Clear a previously made request for a preimage. * * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. * * @param {unknown} _hash [U8; 32] * @instance */ unrequestPreimage: (signer: ethers.Signer, _hash: unknown) => Promise; /** * Similar to {@link: pangolin/preimage/calls/unrequestPreimage}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ unrequestPreimageH: (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} */ buildUnrequestPreimageCall: (_hash: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildUnrequestPreimageCall, but with scale encoded args. * * @returns {CallAsParam} */ buildUnrequestPreimageCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; };