import { playgroundHelper } from "../helpers/helpers"; import { stablecoinVaultPolicies } from "./policies"; // Upsert all policies from the array for (const policy of stablecoinVaultPolicies) { await playgroundHelper.account.callFunction({ contractId: playgroundHelper.vaultContractId, methodName: "propose_execution", args: { policy_id: "upsert_policy", function_args: { target_policy_id: policy.id, policy: policy, }, }, }); console.log(`Policy "${policy.id}" upserted successfully`); } console.log("All stablecoin vault policies have been upserted successfully!");