/** * This is the doc comment for pallet `XcmpQueue`'s calls. * * `XcmpQueue`'s storages: {@link: module:pangolin/xcmpQueue/storages} * * @module pangolin/xcmpQueue/calls */ import { Dispatch } from "../../../index"; import { ethers, BytesLike } from "ethers"; import { Metadata } from "@polkadot/types"; export declare const getXcmpQueue: (dispatch: Dispatch, metadata: Metadata) => { /** * Services a single overweight XCM. * * - `origin`: Must pass `ExecuteOverweightOrigin`. * - `index`: The index of the overweight XCM to service * - `weight_limit`: The amount of weight that XCM execution may take. * * Errors: * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map. * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format. * - `WeightOverLimit`: XCM execution may use greater `weight_limit`. * * Events: * - `OverweightServiced`: On success. * * @param {unknown} _index U64 * @param {unknown} _weight_limit {ref_time: Compact, proof_size: Compact} * @instance */ serviceOverweight: (signer: ethers.Signer, _index: unknown, _weight_limit: unknown) => Promise; /** * Similar to {@link: pangolin/xcmpQueue/calls/serviceOverweight}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ serviceOverweightH: (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} */ buildServiceOverweightCall: (_index: unknown, _weight_limit: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildServiceOverweightCall, but with scale encoded args. * * @returns {CallAsParam} */ buildServiceOverweightCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. * * - `origin`: Must pass `ControllerOrigin`. * * @instance */ suspendXcmExecution: (signer: ethers.Signer) => Promise; /** * Similar to {@link: pangolin/xcmpQueue/calls/suspendXcmExecution}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ suspendXcmExecutionH: (signer: ethers.Signer) => Promise; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * * @returns {CallAsParam} */ buildSuspendXcmExecutionCall: () => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSuspendXcmExecutionCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSuspendXcmExecutionCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Resumes all XCM executions for the XCMP queue. * * Note that this function doesn't change the status of the in/out bound channels. * * - `origin`: Must pass `ControllerOrigin`. * * @instance */ resumeXcmExecution: (signer: ethers.Signer) => Promise; /** * Similar to {@link: pangolin/xcmpQueue/calls/resumeXcmExecution}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ resumeXcmExecutionH: (signer: ethers.Signer) => Promise; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * * @returns {CallAsParam} */ buildResumeXcmExecutionCall: () => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildResumeXcmExecutionCall, but with scale encoded args. * * @returns {CallAsParam} */ buildResumeXcmExecutionCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Overwrites the number of pages of messages which must be in the queue for the other side to be told to * suspend their sending. * * - `origin`: Must pass `Root`. * - `new`: Desired value for `QueueConfigData.suspend_value` * * @param {unknown} _new U32 * @instance */ updateSuspendThreshold: (signer: ethers.Signer, _new: unknown) => Promise; /** * Similar to {@link: pangolin/xcmpQueue/calls/updateSuspendThreshold}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ updateSuspendThresholdH: (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} */ buildUpdateSuspendThresholdCall: (_new: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildUpdateSuspendThresholdCall, but with scale encoded args. * * @returns {CallAsParam} */ buildUpdateSuspendThresholdCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Overwrites the number of pages of messages which must be in the queue after which we drop any further * messages from the channel. * * - `origin`: Must pass `Root`. * - `new`: Desired value for `QueueConfigData.drop_threshold` * * @param {unknown} _new U32 * @instance */ updateDropThreshold: (signer: ethers.Signer, _new: unknown) => Promise; /** * Similar to {@link: pangolin/xcmpQueue/calls/updateDropThreshold}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ updateDropThresholdH: (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} */ buildUpdateDropThresholdCall: (_new: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildUpdateDropThresholdCall, but with scale encoded args. * * @returns {CallAsParam} */ buildUpdateDropThresholdCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Overwrites the number of pages of messages which the queue must be reduced to before it signals that * message sending may recommence after it has been suspended. * * - `origin`: Must pass `Root`. * - `new`: Desired value for `QueueConfigData.resume_threshold` * * @param {unknown} _new U32 * @instance */ updateResumeThreshold: (signer: ethers.Signer, _new: unknown) => Promise; /** * Similar to {@link: pangolin/xcmpQueue/calls/updateResumeThreshold}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ updateResumeThresholdH: (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} */ buildUpdateResumeThresholdCall: (_new: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildUpdateResumeThresholdCall, but with scale encoded args. * * @returns {CallAsParam} */ buildUpdateResumeThresholdCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Overwrites the amount of remaining weight under which we stop processing messages. * * - `origin`: Must pass `Root`. * - `new`: Desired value for `QueueConfigData.threshold_weight` * * @param {unknown} _new {ref_time: Compact, proof_size: Compact} * @instance */ updateThresholdWeight: (signer: ethers.Signer, _new: unknown) => Promise; /** * Similar to {@link: pangolin/xcmpQueue/calls/updateThresholdWeight}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ updateThresholdWeightH: (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} */ buildUpdateThresholdWeightCall: (_new: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildUpdateThresholdWeightCall, but with scale encoded args. * * @returns {CallAsParam} */ buildUpdateThresholdWeightCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Overwrites the speed to which the available weight approaches the maximum weight. * A lower number results in a faster progression. A value of 1 makes the entire weight available initially. * * - `origin`: Must pass `Root`. * - `new`: Desired value for `QueueConfigData.weight_restrict_decay`. * * @param {unknown} _new {ref_time: Compact, proof_size: Compact} * @instance */ updateWeightRestrictDecay: (signer: ethers.Signer, _new: unknown) => Promise; /** * Similar to {@link: pangolin/xcmpQueue/calls/updateWeightRestrictDecay}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ updateWeightRestrictDecayH: (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} */ buildUpdateWeightRestrictDecayCall: (_new: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildUpdateWeightRestrictDecayCall, but with scale encoded args. * * @returns {CallAsParam} */ buildUpdateWeightRestrictDecayCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Overwrite the maximum amount of weight any individual message may consume. * Messages above this weight go into the overweight queue and may only be serviced explicitly. * * - `origin`: Must pass `Root`. * - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`. * * @param {unknown} _new {ref_time: Compact, proof_size: Compact} * @instance */ updateXcmpMaxIndividualWeight: (signer: ethers.Signer, _new: unknown) => Promise; /** * Similar to {@link: pangolin/xcmpQueue/calls/updateXcmpMaxIndividualWeight}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ updateXcmpMaxIndividualWeightH: (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} */ buildUpdateXcmpMaxIndividualWeightCall: (_new: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildUpdateXcmpMaxIndividualWeightCall, but with scale encoded args. * * @returns {CallAsParam} */ buildUpdateXcmpMaxIndividualWeightCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; };