import { IFunctionContext, IBind, ISecrets } from "@blockflow-labs/utils";
/**
* @dev Function::approve(address _spender, uint256 _value)
* @param context trigger object with contains {functionParams: {_spender ,_value }, transaction, block}
* @param bind init function for database wrapper methods
*/
export const approveHandler = async (
context: IFunctionContext,
bind: IBind,
secrets: ISecrets,
) => {
// Implement your function handler logic for approve here
const { functionParams, transaction, block } = context;
const { _spender, _value } = functionParams;
};