/** * This is the doc comment for pallet `TechnicalMembership`'s calls. * * `TechnicalMembership`'s storages: {@link: module:pangolin/technicalMembership/storages} * * @module pangolin/technicalMembership/calls */ import { Dispatch } from "../../../index"; import { ethers, BytesLike } from "ethers"; import { Metadata } from "@polkadot/types"; export declare const getTechnicalMembership: (dispatch: Dispatch, metadata: Metadata) => { /** * Add a member `who` to the set. * * May only be called from `T::AddOrigin`. * * @param {unknown} _who [U8; 20] * @instance */ addMember: (signer: ethers.Signer, _who: unknown) => Promise; /** * Similar to {@link: pangolin/technicalMembership/calls/addMember}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ addMemberH: (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} */ buildAddMemberCall: (_who: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildAddMemberCall, but with scale encoded args. * * @returns {CallAsParam} */ buildAddMemberCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Remove a member `who` from the set. * * May only be called from `T::RemoveOrigin`. * * @param {unknown} _who [U8; 20] * @instance */ removeMember: (signer: ethers.Signer, _who: unknown) => Promise; /** * Similar to {@link: pangolin/technicalMembership/calls/removeMember}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ removeMemberH: (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} */ buildRemoveMemberCall: (_who: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildRemoveMemberCall, but with scale encoded args. * * @returns {CallAsParam} */ buildRemoveMemberCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Swap out one member `remove` for another `add`. * * May only be called from `T::SwapOrigin`. * * Prime membership is *not* passed from `remove` to `add`, if extant. * * @param {unknown} _remove [U8; 20] * @param {unknown} _add [U8; 20] * @instance */ swapMember: (signer: ethers.Signer, _remove: unknown, _add: unknown) => Promise; /** * Similar to {@link: pangolin/technicalMembership/calls/swapMember}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ swapMemberH: (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} */ buildSwapMemberCall: (_remove: unknown, _add: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSwapMemberCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSwapMemberCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Change the membership to a new set, disregarding the existing membership. Be nice and * pass `members` pre-sorted. * * May only be called from `T::ResetOrigin`. * * @param {unknown} _members Vec<[U8; 20]> * @instance */ resetMembers: (signer: ethers.Signer, _members: unknown) => Promise; /** * Similar to {@link: pangolin/technicalMembership/calls/resetMembers}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ resetMembersH: (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} */ buildResetMembersCall: (_members: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildResetMembersCall, but with scale encoded args. * * @returns {CallAsParam} */ buildResetMembersCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Swap out the sending member for some other key `new`. * * May only be called from `Signed` origin of a current member. * * Prime membership is passed from the origin account to `new`, if extant. * * @param {unknown} _new [U8; 20] * @instance */ changeKey: (signer: ethers.Signer, _new: unknown) => Promise; /** * Similar to {@link: pangolin/technicalMembership/calls/changeKey}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ changeKeyH: (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} */ buildChangeKeyCall: (_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 buildChangeKeyCall, but with scale encoded args. * * @returns {CallAsParam} */ buildChangeKeyCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Set the prime member. Must be a current member. * * May only be called from `T::PrimeOrigin`. * * @param {unknown} _who [U8; 20] * @instance */ setPrime: (signer: ethers.Signer, _who: unknown) => Promise; /** * Similar to {@link: pangolin/technicalMembership/calls/setPrime}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ setPrimeH: (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} */ buildSetPrimeCall: (_who: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSetPrimeCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSetPrimeCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; /** * Remove the prime member if it exists. * * May only be called from `T::PrimeOrigin`. * * @instance */ clearPrime: (signer: ethers.Signer) => Promise; /** * Similar to {@link: pangolin/technicalMembership/calls/clearPrime}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ clearPrimeH: (signer: ethers.Signer) => Promise; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * * @returns {CallAsParam} */ buildClearPrimeCall: () => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildClearPrimeCall, but with scale encoded args. * * @returns {CallAsParam} */ buildClearPrimeCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; };