From 31eedf2bd70877eb52a16dd4be770ba49ba87911 Mon Sep 17 00:00:00 2001 From: Kirill Kuvshinov Date: Fri, 15 Sep 2023 09:59:14 +0300 Subject: [PATCH] chore: update VIP number for funds VIP --- .../vip-170-testnet}/abi/comptroller.json | 0 .../vip-170-testnet}/abi/erc20.json | 0 .../vip-170-testnet}/abi/poolRegistry.json | 0 .../vip-170-testnet}/abi/protocolShareReserve.json | 0 .../vip-170-testnet}/abi/riskFund.json | 0 .../vip-170-testnet}/abi/shortfall.json | 0 .../vip-170-testnet}/abi/vToken.json | 0 .../vip-170-testnet}/simulations.ts | 4 ++-- .../{vip-160/vip-160 => vip-170/vip-170}/abi/comptroller.json | 0 .../{vip-160/vip-160 => vip-170/vip-170}/abi/erc20.json | 0 .../vip-160 => vip-170/vip-170}/abi/poolRegistry.json | 0 .../vip-160 => vip-170/vip-170}/abi/protocolShareReserve.json | 0 .../{vip-160/vip-160 => vip-170/vip-170}/abi/riskFund.json | 0 .../{vip-160/vip-160 => vip-170/vip-170}/abi/shortfall.json | 0 .../{vip-160/vip-160 => vip-170/vip-170}/abi/vToken.json | 0 .../{vip-160/vip-160 => vip-170/vip-170}/simulation.ts | 4 ++-- .../vip-160-testnet.ts => vip-170/vip-170-testnet.ts} | 2 +- vips/{vip-160/vip-160.ts => vip-170/vip-170.ts} | 2 +- 18 files changed, 6 insertions(+), 6 deletions(-) rename simulations/{vip-160/vip-160-testnet => vip-170/vip-170-testnet}/abi/comptroller.json (100%) rename simulations/{vip-160/vip-160-testnet => vip-170/vip-170-testnet}/abi/erc20.json (100%) rename simulations/{vip-160/vip-160-testnet => vip-170/vip-170-testnet}/abi/poolRegistry.json (100%) rename simulations/{vip-160/vip-160-testnet => vip-170/vip-170-testnet}/abi/protocolShareReserve.json (100%) rename simulations/{vip-160/vip-160-testnet => vip-170/vip-170-testnet}/abi/riskFund.json (100%) rename simulations/{vip-160/vip-160-testnet => vip-170/vip-170-testnet}/abi/shortfall.json (100%) rename simulations/{vip-160/vip-160-testnet => vip-170/vip-170-testnet}/abi/vToken.json (100%) rename simulations/{vip-160/vip-160-testnet => vip-170/vip-170-testnet}/simulations.ts (98%) rename simulations/{vip-160/vip-160 => vip-170/vip-170}/abi/comptroller.json (100%) rename simulations/{vip-160/vip-160 => vip-170/vip-170}/abi/erc20.json (100%) rename simulations/{vip-160/vip-160 => vip-170/vip-170}/abi/poolRegistry.json (100%) rename simulations/{vip-160/vip-160 => vip-170/vip-170}/abi/protocolShareReserve.json (100%) rename simulations/{vip-160/vip-160 => vip-170/vip-170}/abi/riskFund.json (100%) rename simulations/{vip-160/vip-160 => vip-170/vip-170}/abi/shortfall.json (100%) rename simulations/{vip-160/vip-160 => vip-170/vip-170}/abi/vToken.json (100%) rename simulations/{vip-160/vip-160 => vip-170/vip-170}/simulation.ts (98%) rename vips/{vip-160/vip-160-testnet.ts => vip-170/vip-170-testnet.ts} (99%) rename vips/{vip-160/vip-160.ts => vip-170/vip-170.ts} (99%) diff --git a/simulations/vip-160/vip-160-testnet/abi/comptroller.json b/simulations/vip-170/vip-170-testnet/abi/comptroller.json similarity index 100% rename from simulations/vip-160/vip-160-testnet/abi/comptroller.json rename to simulations/vip-170/vip-170-testnet/abi/comptroller.json diff --git a/simulations/vip-160/vip-160-testnet/abi/erc20.json b/simulations/vip-170/vip-170-testnet/abi/erc20.json similarity index 100% rename from simulations/vip-160/vip-160-testnet/abi/erc20.json rename to simulations/vip-170/vip-170-testnet/abi/erc20.json diff --git a/simulations/vip-160/vip-160-testnet/abi/poolRegistry.json b/simulations/vip-170/vip-170-testnet/abi/poolRegistry.json similarity index 100% rename from simulations/vip-160/vip-160-testnet/abi/poolRegistry.json rename to simulations/vip-170/vip-170-testnet/abi/poolRegistry.json diff --git a/simulations/vip-160/vip-160-testnet/abi/protocolShareReserve.json b/simulations/vip-170/vip-170-testnet/abi/protocolShareReserve.json similarity index 100% rename from simulations/vip-160/vip-160-testnet/abi/protocolShareReserve.json rename to simulations/vip-170/vip-170-testnet/abi/protocolShareReserve.json diff --git a/simulations/vip-160/vip-160-testnet/abi/riskFund.json b/simulations/vip-170/vip-170-testnet/abi/riskFund.json similarity index 100% rename from simulations/vip-160/vip-160-testnet/abi/riskFund.json rename to simulations/vip-170/vip-170-testnet/abi/riskFund.json diff --git a/simulations/vip-160/vip-160-testnet/abi/shortfall.json b/simulations/vip-170/vip-170-testnet/abi/shortfall.json similarity index 100% rename from simulations/vip-160/vip-160-testnet/abi/shortfall.json rename to simulations/vip-170/vip-170-testnet/abi/shortfall.json diff --git a/simulations/vip-160/vip-160-testnet/abi/vToken.json b/simulations/vip-170/vip-170-testnet/abi/vToken.json similarity index 100% rename from simulations/vip-160/vip-160-testnet/abi/vToken.json rename to simulations/vip-170/vip-170-testnet/abi/vToken.json diff --git a/simulations/vip-160/vip-160-testnet/simulations.ts b/simulations/vip-170/vip-170-testnet/simulations.ts similarity index 98% rename from simulations/vip-160/vip-160-testnet/simulations.ts rename to simulations/vip-170/vip-170-testnet/simulations.ts index 24b979751..fba5c5934 100644 --- a/simulations/vip-160/vip-160-testnet/simulations.ts +++ b/simulations/vip-170/vip-170-testnet/simulations.ts @@ -6,7 +6,7 @@ import { ethers } from "hardhat"; import { expectEvents } from "../../../src/utils"; import { forking, testVip } from "../../../src/vip-framework"; -import { vip160Testnet } from "../../../vips/vip-160/vip-160-testnet"; +import { vip170Testnet } from "../../../vips/vip-170/vip-170-testnet"; import COMPTROLLER_ABI from "./abi/comptroller.json"; import ERC20_ABI from "./abi/erc20.json"; import POOL_REGISTRY_ABI from "./abi/poolRegistry.json"; @@ -81,7 +81,7 @@ forking(33268000, () => { }); }); - testVip("Risk fund, shortfall, PSR, stage 1", vip160Testnet(), { + testVip("Risk fund, shortfall, PSR, stage 1", vip170Testnet(), { callbackAfterExecution: async (txResponse: TransactionResponse) => { await expectEvents( txResponse, diff --git a/simulations/vip-160/vip-160/abi/comptroller.json b/simulations/vip-170/vip-170/abi/comptroller.json similarity index 100% rename from simulations/vip-160/vip-160/abi/comptroller.json rename to simulations/vip-170/vip-170/abi/comptroller.json diff --git a/simulations/vip-160/vip-160/abi/erc20.json b/simulations/vip-170/vip-170/abi/erc20.json similarity index 100% rename from simulations/vip-160/vip-160/abi/erc20.json rename to simulations/vip-170/vip-170/abi/erc20.json diff --git a/simulations/vip-160/vip-160/abi/poolRegistry.json b/simulations/vip-170/vip-170/abi/poolRegistry.json similarity index 100% rename from simulations/vip-160/vip-160/abi/poolRegistry.json rename to simulations/vip-170/vip-170/abi/poolRegistry.json diff --git a/simulations/vip-160/vip-160/abi/protocolShareReserve.json b/simulations/vip-170/vip-170/abi/protocolShareReserve.json similarity index 100% rename from simulations/vip-160/vip-160/abi/protocolShareReserve.json rename to simulations/vip-170/vip-170/abi/protocolShareReserve.json diff --git a/simulations/vip-160/vip-160/abi/riskFund.json b/simulations/vip-170/vip-170/abi/riskFund.json similarity index 100% rename from simulations/vip-160/vip-160/abi/riskFund.json rename to simulations/vip-170/vip-170/abi/riskFund.json diff --git a/simulations/vip-160/vip-160/abi/shortfall.json b/simulations/vip-170/vip-170/abi/shortfall.json similarity index 100% rename from simulations/vip-160/vip-160/abi/shortfall.json rename to simulations/vip-170/vip-170/abi/shortfall.json diff --git a/simulations/vip-160/vip-160/abi/vToken.json b/simulations/vip-170/vip-170/abi/vToken.json similarity index 100% rename from simulations/vip-160/vip-160/abi/vToken.json rename to simulations/vip-170/vip-170/abi/vToken.json diff --git a/simulations/vip-160/vip-160/simulation.ts b/simulations/vip-170/vip-170/simulation.ts similarity index 98% rename from simulations/vip-160/vip-160/simulation.ts rename to simulations/vip-170/vip-170/simulation.ts index 8f53bf047..3e35a9a30 100644 --- a/simulations/vip-160/vip-160/simulation.ts +++ b/simulations/vip-170/vip-170/simulation.ts @@ -6,7 +6,7 @@ import { ethers } from "hardhat"; import { expectEvents } from "../../../src/utils"; import { forking, testVip } from "../../../src/vip-framework"; -import { vip160 } from "../../../vips/vip-160/vip-160"; +import { vip170 } from "../../../vips/vip-170/vip-170"; import COMPTROLLER_ABI from "./abi/comptroller.json"; import ERC20_ABI from "./abi/erc20.json"; import POOL_REGISTRY_ABI from "./abi/poolRegistry.json"; @@ -75,7 +75,7 @@ forking(31671700, () => { }); }); - testVip("Risk fund, shortfall, PSR, stage 1", vip160(), { + testVip("Risk fund, shortfall, PSR, stage 1", vip170(), { callbackAfterExecution: async (txResponse: TransactionResponse) => { await expectEvents( txResponse, diff --git a/vips/vip-160/vip-160-testnet.ts b/vips/vip-170/vip-170-testnet.ts similarity index 99% rename from vips/vip-160/vip-160-testnet.ts rename to vips/vip-170/vip-170-testnet.ts index 0a19bf85f..1b2d93a92 100644 --- a/vips/vip-160/vip-160-testnet.ts +++ b/vips/vip-170/vip-170-testnet.ts @@ -92,7 +92,7 @@ const configureAccessControls = () => [ grant(SHORTFALL, "resumeAuctions()", PAUSE_GUARDIAN), ]; -export const vip160Testnet = () => { +export const vip170Testnet = () => { const meta = { version: "v2", title: "Configure shortfall, PSR, risk fund", diff --git a/vips/vip-160/vip-160.ts b/vips/vip-170/vip-170.ts similarity index 99% rename from vips/vip-160/vip-160.ts rename to vips/vip-170/vip-170.ts index b078a73c1..09712a909 100644 --- a/vips/vip-160/vip-160.ts +++ b/vips/vip-170/vip-170.ts @@ -90,7 +90,7 @@ const configureAccessControls = () => [ grant(SHORTFALL, "resumeAuctions()", PAUSE_GUARDIAN), ]; -export const vip160 = () => { +export const vip170 = () => { const meta = { version: "v2", title: "Configure shortfall, PSR, risk fund",