@mstable/protocol
Version:
mStable Contracts
18 lines (17 loc) • 799 B
TypeScript
import { CLIArgumentType } from "hardhat/src/types/index";
import { Contract } from "ethers";
/**
* Hardhat task CLI argument types
*/
export declare const params: {
address: CLIArgumentType<string>;
addressArray: CLIArgumentType<string[]>;
};
/**
* Send a transaction (with given args) and return the result, with logging
* @param contract Ethers contract with signer
* @param func Function name to call
* @param description Description of call (optional)
* @param args Arguments for call
*/
export declare const sendTx: <TContract extends Contract, TFunc extends keyof TContract["functions"]>(contract: TContract, func: TFunc, description?: string, ...args: Parameters<TContract["functions"][TFunc]>) => Promise<ReturnType<TContract["functions"][TFunc]>>;