@melonproject/protocol
Version:
Technology Regulated and Operated Investment Funds
22 lines (21 loc) • 828 B
TypeScript
import { QuantityInterface, Address } from '@melonproject/token-math';
import { WithAddressQueryExecute } from '../../../../utils/solidity/withContractAddressQuery';
interface ApproveArgs {
howMuch: QuantityInterface;
spender: Address;
}
declare type ApproveResult = boolean;
/**
* Approves the `spender` to spend `howMuch` of a specified token
* (as a `quantity`)
*
* @param environment The environment to execute this transaction on.
* It should contain an `environment.wallet` containing the subjects address
*
* @param params.howMuch The token quantity that is allowed to spend
* @param params.spender The address of the approved spender
*
* @returns A boolean indicating if the transaction went through
*/
declare const approve: WithAddressQueryExecute<ApproveArgs, ApproveResult>;
export { approve };