import { MultiSigWallet } from '../contracts'; import { ContractTransaction } from 'ethers'; export declare class MultiSig { multiSig: MultiSigWallet; constructor(multiSigAddress: string, privKey: string, rpcURL: string); /** * A function to submit transaction on MULTISIG contract for later votings & execution. * @notice only registered owner on MULTISIG contract & who has already voted the given transactionId can execute this function * @param {string} value - KLAY amount to send in wei (if no value to send pass 0). * @param {string} destination - the contract on which given rawTx to be executed (once got enough votes). * @param {string} data - the encoded rawTx data which is required to be submitted. * @return {Promise} - ContractTransaction object. */ submitTransaction(destination: string, value: string, data: string): Promise; /** * A function to vote & execute the transaction (if it has received enough votes). * @notice only registered owner on MULTISIG contract can execute this function * @param {string} transactionId - the id of the transaction you want to vote and execute. * @return {Promise} - ContractTransaction object. */ confirmAndExecuteTransaction(transactionId: string): Promise; /** * A function to revoke vote from given transaction id. * @notice only registered owner on MULTISIG contract & who has already voted the given transactionId can execute this function * @param {string} transactionId - the id of the transaction needs to be executed. * @return {Promise} - ContractTransaction object. */ revokeConfirmation(transactionId: string): Promise; /** * A function execute the given transaction id (if it has already received enough votes). * @notice only registered owner on MULTISIG contract can execute this function * @param {string} transactionId - the id of the transaction needs to be executed. * @return {Promise} - ContractTransaction object. */ executeTransaction(transactionId: string): Promise; /** * A function to check if given transactionId has got enought votes or not * @param {string} transactionId - the id of the transaction needs to be checked. * @return {Promise} - flag indicating if transaction got enough votes or not (true/false). */ isConfirmed(transactionId: string): Promise; /** * A getter function to return Multisig contract's instance * @return {MultiSigWallet} - MULTISIG Wallet contract's instance. */ getMultiSig(): MultiSigWallet; }