/** * This is the doc comment for pallet `ParachainSystem`'s calls. * * `ParachainSystem`'s storages: {@link: module:crab/parachainSystem/storages} * * @module crab/parachainSystem/calls */ import { Dispatch } from "../../../index"; import { ethers, BytesLike } from "ethers"; import { Metadata } from "@polkadot/types"; export declare const getParachainSystem: (dispatch: Dispatch, metadata: Metadata) => { /** * Set the current validation data. * * This should be invoked exactly once per block. It will panic at the finalization * phase if the call was not invoked. * * The dispatch origin for this call must be `Inherent` * * As a side effect, this function upgrades the current validation function * if the appropriate time has come. * * @param {unknown} _data {validation_data: {parent_head: Vec, relay_parent_number: U32, relay_parent_storage_root: [U8; 32], max_pov_size: U32}, relay_chain_state: {trie_nodes: Vec>}, downward_messages: Vec<{sent_at: U32, msg: Vec}>, horizontal_messages: Vec<(U32, Vec<{sent_at: U32, data: Vec}>)>} * @instance */ setValidationData: (signer: ethers.Signer, _data: unknown) => Promise; /** * Similar to {@link: crab/parachainSystem/calls/setValidationData}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ setValidationDataH: (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} */ buildSetValidationDataCall: (_data: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSetValidationDataCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSetValidationDataCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * * @param {unknown} _message Vec * @instance */ sudoSendUpwardMessage: (signer: ethers.Signer, _message: unknown) => Promise; /** * Similar to {@link: crab/parachainSystem/calls/sudoSendUpwardMessage}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ sudoSendUpwardMessageH: (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} */ buildSudoSendUpwardMessageCall: (_message: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSudoSendUpwardMessageCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSudoSendUpwardMessageCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied * later. * * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec * version and name should be verified on upgrade. Since the authorization only has a hash, * it cannot actually perform the verification. * * This call requires Root origin. * * @param {unknown} _code_hash [U8; 32] * @param {unknown} _check_version Bool * @instance */ authorizeUpgrade: (signer: ethers.Signer, _code_hash: unknown, _check_version: unknown) => Promise; /** * Similar to {@link: crab/parachainSystem/calls/authorizeUpgrade}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ authorizeUpgradeH: (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} */ buildAuthorizeUpgradeCall: (_code_hash: unknown, _check_version: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildAuthorizeUpgradeCall, but with scale encoded args. * * @returns {CallAsParam} */ buildAuthorizeUpgradeCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. * * If the authorization required a version check, this call will ensure the spec name * remains unchanged and that the spec version has increased. * * Note that this function will not apply the new `code`, but only attempt to schedule the * upgrade with the Relay Chain. * * All origins are allowed. * * @param {unknown} _code Vec * @instance */ enactAuthorizedUpgrade: (signer: ethers.Signer, _code: unknown) => Promise; /** * Similar to {@link: crab/parachainSystem/calls/enactAuthorizedUpgrade}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ enactAuthorizedUpgradeH: (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} */ buildEnactAuthorizedUpgradeCall: (_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 buildEnactAuthorizedUpgradeCall, but with scale encoded args. * * @returns {CallAsParam} */ buildEnactAuthorizedUpgradeCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; };