Skip to content

Commit

Permalink
add verify scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Michael-Pratt committed Oct 26, 2023
1 parent 4be7ce5 commit ffcaebe
Show file tree
Hide file tree
Showing 15 changed files with 115 additions and 8 deletions.
10 changes: 10 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ const config: HardhatUserConfig = {
chainId: 421613,
accounts: [`${process.env.PRIVATE_KEY}`],
},
"arbitrum-mainnet": {
url: "https://rpc.arb1.arbitrum.gateway.fm",
chainId: 42161,
accounts: [`${process.env.PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: {
arbitrumOne: `${process.env.ARBISCAN_API_KEY}`,
},
},
};

Expand Down
16 changes: 8 additions & 8 deletions scripts/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const networks = {
tokens: [
{
name: "ETH",
address: undefined,
address: "0x23EEF5f7A8b37b2310e9aC9611E35fa999143810",
chainLinkPriceFeed: "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612",
maxCumulativeDeltaDiff: defaultMaxCumulativeDeltaDiff,
rewardsPerSecond: 37037037037037037n,
Expand All @@ -162,7 +162,7 @@ export const networks = {
},
{
name: "BTC",
address: undefined,
address: "0x1885aAD80817a0baF196dEb62b08695E64936332",
chainLinkPriceFeed: "0x6ce185860a4963106506C203335A2910413708e9",
maxCumulativeDeltaDiff: defaultMaxCumulativeDeltaDiff,
rewardsPerSecond: 61728395061728395n,
Expand All @@ -176,7 +176,7 @@ export const networks = {
},
{
name: "SOL",
address: undefined,
address: "0x1281b9dAFA2b11C43e1E41bb4aDCdd3bdBc2b2a6",
chainLinkPriceFeed: "0x24ceA4b8ce57cdA5058b924B9B9987992450590c",
maxCumulativeDeltaDiff: defaultMaxCumulativeDeltaDiff,
rewardsPerSecond: 4629629629629629n,
Expand All @@ -190,7 +190,7 @@ export const networks = {
},
{
name: "ARB",
address: undefined,
address: "0x96A0D2D2D4378bCb35013f964d95224fE4FEd8FE",
chainLinkPriceFeed: "0xb2A824043730FE05F3DA2efaFa1CBbe83fa548D6",
maxCumulativeDeltaDiff: defaultMaxCumulativeDeltaDiff,
rewardsPerSecond: 2469135802469135n,
Expand All @@ -204,7 +204,7 @@ export const networks = {
},
{
name: "OP",
address: undefined,
address: "0xA67cB8b1880E2573907f5f52121e8C49B141bD66",
chainLinkPriceFeed: "0x205aaD468a11fd5D34fA7211bC6Bad5b3deB9b98",
maxCumulativeDeltaDiff: defaultMaxCumulativeDeltaDiff,
rewardsPerSecond: 2469135802469135n,
Expand All @@ -218,7 +218,7 @@ export const networks = {
},
{
name: "MATIC",
address: undefined,
address: "0xA7c1181043e489E720Fb72e33168298675EDCdF8",
chainLinkPriceFeed: "0x52099D4523531f678Dfc568a7B1e5038aadcE1d6",
maxCumulativeDeltaDiff: defaultMaxCumulativeDeltaDiff,
rewardsPerSecond: 2469135802469135n,
Expand All @@ -232,7 +232,7 @@ export const networks = {
},
{
name: "AVAX",
address: undefined,
address: "0xB42E185016C53B38C2c61409F1D6DA3CcFB02C9f",
chainLinkPriceFeed: "0x8bf61728eeDCE2F32c456454d87B5d6eD6150208",
maxCumulativeDeltaDiff: defaultMaxCumulativeDeltaDiff,
rewardsPerSecond: 2469135802469135n,
Expand All @@ -246,7 +246,7 @@ export const networks = {
},
{
name: "LINK",
address: undefined,
address: "0xEE4b6FC76B9F44420D646BFCf8a1F5c4c399B54F",
chainLinkPriceFeed: "0x86E53CF1B870786351Da77A57575e79CB55812CB",
maxCumulativeDeltaDiff: defaultMaxCumulativeDeltaDiff,
rewardsPerSecond: 2469135802469135n,
Expand Down
5 changes: 5 additions & 0 deletions scripts/verify/verifyEFC.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import "dotenv/config";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [100, 100, 100, `${document.deployments.RewardFarm}`, `${document.deployments.FeeDistributor}`];
1 change: 1 addition & 0 deletions scripts/verify/verifyERC20.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = [`Equation Market - ETH`, "ETH"];
5 changes: 5 additions & 0 deletions scripts/verify/verifyExecutorAssistant.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import "dotenv/config";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [`${document.deployments.PositionRouter}`];
15 changes: 15 additions & 0 deletions scripts/verify/verifyFeeDistributor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import "dotenv/config";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [
`${document.deployments.EFC}`,
`${document.deployments.EQU}`,
`0x82aF49447D8a07e3bd95BD0d56f35241523fBab1`,
`${document.deployments.veEQU}`,
`${document.usd}`,
`${document.deployments.Router}`,
`0x1F98431c8aD98523631AE4a59f267346ea31F984`,
`0xC36442b4a4522E871399CD717aBDD847Ab11FE88`,
7,
];
10 changes: 10 additions & 0 deletions scripts/verify/verifyLiquidator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import "dotenv/config";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [
`${document.deployments.Router}`,
`${document.deployments.PoolFactory}`,
`${document.usd}`,
`${document.deployments.EFC}`,
];
10 changes: 10 additions & 0 deletions scripts/verify/verifyMixedExecutor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import "dotenv/config";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [
`${document.deployments.Liquidator}`,
`${document.deployments.PositionRouter}`,
`${document.deployments.PriceFeed}`,
`${document.deployments.OrderBook}`,
];
6 changes: 6 additions & 0 deletions scripts/verify/verifyOrderBook.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import "dotenv/config";
import {ethers} from "hardhat";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [`${document.usd}`, `${document.deployments.Router}`, ethers.utils.parseUnits("0.0003", "ether")];
12 changes: 12 additions & 0 deletions scripts/verify/verifyPoolFactory.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import "dotenv/config";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [
`${document.usd}`,
`${document.deployments.EFC}`,
`${document.deployments.Router}`,
`${document.deployments.PriceFeed}`,
`${document.deployments.FeeDistributor}`,
`${document.deployments.RewardFarm}`,
];
6 changes: 6 additions & 0 deletions scripts/verify/verifyPositionRouter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import "dotenv/config";
import {ethers} from "hardhat";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [`${document.usd}`, `${document.deployments.Router}`, ethers.utils.parseUnits("0.00021", "ether")];
1 change: 1 addition & 0 deletions scripts/verify/verifyPriceFeed.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = [`0x3f3f5dF88dC9F13eac63DF89EC16ef6e7E25DdE7`, 0];
5 changes: 5 additions & 0 deletions scripts/verify/verifyRewardCollector.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import "dotenv/config";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [`${document.deployments.Router}`, `${document.deployments.EQU}`, `${document.deployments.EFC}`];
12 changes: 12 additions & 0 deletions scripts/verify/verifyRewardFarm.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import "dotenv/config";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [
`${document.deployments.PoolFactory}`,
`${document.deployments.Router}`,
`${document.deployments.EFC}`,
`${document.deployments.EQU}`,
Math.floor(new Date("2023-10-28T00:00:00.000Z").getTime() / 1000),
110_000_000n,
];
9 changes: 9 additions & 0 deletions scripts/verify/verifyRouter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import "dotenv/config";

const document = require(`../../deployments/${process.env.CHAIN_ID}.json`);

module.exports = [
`${document.deployments.EFC}`,
`${document.deployments.RewardFarm}`,
`${document.deployments.FeeDistributor}`,
];

0 comments on commit ffcaebe

Please sign in to comment.