@tristeroresearch/mach-sdk
Version:
A TypeScript SDK for integrating with Mach's API.
13 lines • 536 B
TypeScript
import { Address } from 'viem';
/**
* A helper function to approve token spending for the contract
* @param tokenAddress - The address of the token to approve
* @param spenderAddress - The address of the contract to approve
* @param amount - The amount to approve (in wei)
* @returns The encoded approval data
*/
export declare const encodeApprovalData: (tokenAddress: Address, spenderAddress: Address, amount: bigint) => {
to: `0x${string}`;
data: `0x${string}`;
};
//# sourceMappingURL=encodeApprovalData.helper.d.ts.map