Skip to content

Commit

Permalink
fixup! fix: updated addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
chechu committed Dec 2, 2024
1 parent d39d16b commit 40e25e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 135 deletions.
126 changes: 0 additions & 126 deletions multisig/simulations/basesepolia/vip-002/abi/acm.json

This file was deleted.

12 changes: 3 additions & 9 deletions multisig/simulations/basesepolia/vip-002/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@ import { mine } from "@nomicfoundation/hardhat-network-helpers";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { expect } from "chai";
import { Contract } from "ethers";
import { parseEther, parseUnits } from "ethers/lib/utils";
import { parseEther } from "ethers/lib/utils";
import { ethers } from "hardhat";
import { NETWORK_ADDRESSES } from "src/networkAddresses";
import { initMainnetUser } from "src/utils";
import { checkXVSVault } from "src/vip-framework/checks/checkXVSVault";
import { forking, pretendExecutingVip } from "src/vip-framework/index";

import vip002, { ACM, XVS_STORE } from "../../../proposals/basesepolia/vip-002";
import ACM_ABI from "./abi/acm.json";
import vip002, { XVS_STORE } from "../../../proposals/basesepolia/vip-002";
import XVS_ABI from "./abi/xvs.json";
import XVS_STORE_ABI from "./abi/xvsstore.json";
import XVS_VAULT_ABI from "./abi/xvsvault.json";

const { basesepolia } = NETWORK_ADDRESSES;

const XVS_BRIDGE = "0xE431E82d8fFfd81E7c082BeC7Fe2C306f5c988aD";
const XVS_BRIDGE = "0xD5Cd1fD17B724a391C1bce55Eb9d88E3205eED60";

forking(18691727, async () => {
let xvsVault: Contract;
Expand All @@ -34,17 +33,12 @@ forking(18691727, async () => {
describe("Post tx checks", () => {
describe("Generic checks", async () => {
before(async () => {
const acm: Contract = await ethers.getContractAt(ACM_ABI, ACM);
const xvs: Contract = await ethers.getContractAt(XVS_ABI, basesepolia.XVS);
xvsMinter = await initMainnetUser(XVS_BRIDGE, ethers.utils.parseEther("1"));
const admin = await initMainnetUser(basesepolia.GUARDIAN, ethers.utils.parseEther("1"));
const xvsHolder = await initMainnetUser(basesepolia.GENERIC_TEST_USER_ACCOUNT, ethers.utils.parseEther("1"));
await xvsVault.connect(admin).setRewardAmountPerBlockOrSecond(basesepolia.XVS, "61805555555555555");
await xvsVault.connect(admin).resume();
// Giving call permissions to call the functions as xvs bridge vip is not executed now.
await acm.connect(admin).giveCallPermission(basesepolia.XVS, "mint(address,uint256)", XVS_BRIDGE);
await acm.connect(admin).giveCallPermission(basesepolia.XVS, "setMintCap(address,uint256)", admin.address);
await xvs.connect(admin).setMintCap(XVS_BRIDGE, parseUnits("100", 18));
await xvs.connect(xvsMinter).mint(xvsHolder.address, parseEther("10"));

await xvs.connect(xvsHolder).transfer(XVS_STORE, ethers.utils.parseEther("1"));
Expand Down

0 comments on commit 40e25e3

Please sign in to comment.