Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/brinery #196

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
80a7312
add zipswap base infrastructure
amatureApe Jan 19, 2022
7592db4
add zipswap eth-op strategy
MisterMard Jun 2, 2022
1615216
Remove dysfunctional cronos contracts
MisterMard Jun 24, 2022
097ab98
Post-rebase fix for zipswap base strategy
MisterMard Jun 24, 2022
3115580
add optimism univ3 strategies
MisterMard Jun 27, 2022
922b13d
non-upgradeable controller v7 for optimism
MisterMard Jun 27, 2022
481ba92
add univ3 eth-btc
MisterMard Jul 24, 2022
b2f3e08
update performance fees
MisterMard Jul 24, 2022
9929aef
add strategy-base-v2 for optimism
MisterMard Jul 30, 2022
61bc225
add velodrome strategies
MisterMard Jul 30, 2022
1d141f0
kickstarting project migration to typescript
MisterMard Jul 30, 2022
ec9efca
add velodrome tests
MisterMard Jul 30, 2022
25e28e7
fix vyper configs
MisterMard Jul 30, 2022
49e8466
fix: better swap route for velo token
MisterMard Jul 31, 2022
9e6ba7e
add more velo strategies
MisterMard Jul 31, 2022
1576b7c
update problematic obsolete hardhat-deploy dependency
MisterMard Aug 1, 2022
8e0a340
add velo op-l2dao strategy
MisterMard Aug 10, 2022
1405b70
add optimism beethovenx strategies
MisterMard Aug 14, 2022
3a3ba92
fix: force univ3 to use compatible compiler version
MisterMard Aug 18, 2022
926505c
add optimism pickle token contract
MisterMard Aug 18, 2022
a1f6f00
add velo usdc-alusd strategy
MisterMard Aug 18, 2022
34a6dac
one step closer to type safety
MisterMard Aug 19, 2022
579887a
remove unneeded dependency chai-as-promised
MisterMard Aug 19, 2022
e7ed03e
add beetx eth-ib strategy
MisterMard Aug 23, 2022
273f80f
add optimism minichef and rewarder
MisterMard Aug 23, 2022
da98814
refactoring tests
MisterMard Aug 23, 2022
08c6419
add unit tests for optimism minichef
MisterMard Aug 23, 2022
cc1f1dd
update optimism contracts to solidity v0.8
MisterMard Aug 28, 2022
841e09f
fix: separate optimism interfaces into their own directory
MisterMard Aug 31, 2022
4011adc
add optimism stargate eth and usdc strategies
MisterMard Aug 31, 2022
7ebaeed
add optimism beetx eth-reth strategy
MisterMard Aug 31, 2022
4fa29be
update new velodrome router address
MisterMard Sep 1, 2022
0e33aa4
add more velo strategies
MisterMard Sep 2, 2022
eaaeeb2
init: port contracts from protocol-2 repo
MisterMard Sep 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 0 additions & 126 deletions hardhat.config.js

This file was deleted.

152 changes: 152 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-vyper";
import "hardhat-deploy";
import "hardhat-contract-sizer";
import { removeConsoleLog } from "hardhat-preprocessor";
import { HardhatUserConfig } from "hardhat/config";
import * as dotenv from "dotenv";
dotenv.config();

const defaultCompilerSettings = {
optimizer: {
enabled: true,
runs: 200,
},
};

const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: {
compilers: [
{
version: "0.6.7",
settings: defaultCompilerSettings,
},
{
version: "0.6.12",
settings: defaultCompilerSettings,
},
{
version: "0.8.16",
settings: defaultCompilerSettings,
},

],
},
networks: {
hardhat: {
forking: {
url: `https://opt-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_KEY_OPTIMISM}`,
// blockNumber: 16149920,
},
accounts: {
mnemonic: process.env.MNEMONIC,
},
// accounts: [{privateKey:process.env.PRIVATE_KEY, balance: "1000000000000000000000"}],
// mining: {
// auto: false,
// interval: [4000, 6000],
// },
hardfork: "london",
gasPrice: "auto",
gas: 6500000,
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY_MAINNET}`,
// url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY_MAINNET}`,
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 1,
},
matic: {
url: `https://polygon-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_KEY_MATIC}`,
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 137,
},
arbitrumOne: {
url: `https://arb-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_KEY_ARBITRUM}`,
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 42161,
},
metis: {
url: `https://andromeda.metis.io/?owner=1088`,
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 1088,
},
moonbeam: {
url: `https://rpc.api.moonbeam.network`,
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 1284,
},
moonriver: {
url: `https://rpc.api.moonriver.moonbeam.network`,
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 1285,
},
opera: {
url: `https://rpc.ftm.tools/`,
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 250,
},
aurora: {
url: `https://mainnet.aurora.dev/`,
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 1313161554,
},
optimisticEthereum: {
url: `https://opt-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_KEY_OPTIMISM}`,
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 10,
},
gnosis: {
url: "https://xdai-archive.blockscout.com",
accounts: [process.env.PRIVATE_KEY ?? ""],
chainId: 100,
},
},
contractSizer: {
alphaSort: true,
runOnCompile: false,
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_APIKEY ?? "",
aurora: process.env.AURORASCAN_APIKEY ?? "",
xdai: process.env.BLOCKSCOUT_APIKEY_GNOSIS ?? "",
optimisticEthereum: process.env.ETHERSCAN_APIKEY_OPTIMISM ?? "",
arbitrumOne: process.env.ETHERSCAN_APIKEY_ARBISCAN ?? "",
opera: process.env.ETHERSCAN_APIKEY_FANTOM ?? "",
},
},
paths: {
sources: "./src",
tests: "./src/tests/strategies",
cache: "./cache",
artifacts: "./artifacts",
},
namedAccounts: {
deployer: {
default: 0,
},
},
gasReporter: {
enabled: true,
coinmarketcap: process.env.COINMARKETCAP,
currency: "USD",
gasPrice: 32,
},
preprocess: {
eachLine: removeConsoleLog(
(hre) =>
hre.network.name !== "hardhat" && hre.network.name !== "localhost"
),
},
mocha: {
timeout: 20000000,
},
vyper: {
compilers: [{ version: "0.2.4" }, { version: "0.2.7" }],
},
};

export default config;
Loading