import { playgroundHelper } from "../helpers/helpers"; import { evm_constant } from "./constant"; await playgroundHelper.account.callFunction({ contractId: playgroundHelper.vaultContractId, methodName: "propose_execution", args: { policy_id: "upsert_policy", function_args: { target_policy_id: "transfer_sepolia_usdc", policy: { id: "transfer_sepolia_usdc", description: "Policy for transferring usdc", required_role: "owner", required_vote_count: 1, policy_status: "Active", policy_type: "ChainSigTransaction", activation_time: "0", policy_details: { ChainSigTransaction: { derivation_path: "1", chain_environment: "EVM", restrictions: [ { method: "transfer", contract_id: evm_constant.SEPOLIA_USDC_ADDRESS, schema: [ { path: "$.to", type: "String", }, { path: "$.value", type: "BigInt", }, ], interface: btoa(JSON.stringify(evm_constant.erc20Abi)), }, ], }, }, }, }, deadline_hours: 1, }, });