Skip to content

Commit 277cd6d

Browse files
committed
deployed to sepolia
1 parent 68bd95f commit 277cd6d

9 files changed

+89
-178
lines changed

deployments/arbitrumGoerli.json

-9
This file was deleted.

deployments/goerli.json

-9
This file was deleted.

deployments/polygonMumbai.json

-9
This file was deleted.

deployments/rinkeby.json

-9
This file was deleted.

deployments/sepolia.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"network": "sepolia",
3+
"version": "68bd95f",
4+
"factory": "0x831Ad619022ED27f8d384Dd2367007eeC27e0f93",
5+
"token": "0x79b684cCC70A387ed7F3e131214591e244FA07aA",
6+
"template": "0x3d5DD2988cFe8FcE1BeA2911bc5E38E1c3Bd63bd",
7+
"txHash": "0xf0071affaec8993ba178dfca3f1e049c0e3dd22f9d690b45ef43ab41639a49bb",
8+
"blockNumber": "5815979"
9+
}

hardhat.config.ts

+8-16
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ task('accounts', 'Prints the list of accounts', async (_args, hre) => {
1919
}
2020
});
2121

22-
if (!process.env.PRIVATE_KEY) {
23-
console.error('invalid env variable: PRIVATE_KEY');
22+
if (!process.env.PRIVATE_KEY && !process.env.MNEMONIC) {
23+
console.error('invalid env variable: PRIVATE_KEY or MNEMONIC');
2424
process.exit(1);
2525
}
2626

27-
const accounts = [process.env.PRIVATE_KEY!];
27+
const accounts = process.env.MNEMONIC
28+
? { mnemonic: process.env.MNEMONIC }
29+
: [process.env.PRIVATE_KEY!];
2830

2931
// You need to export an object to set up your config
3032
// Go to https://hardhat.org/config/ to learn more
@@ -44,10 +46,6 @@ const config: HardhatUserConfig = {
4446
],
4547
},
4648
networks: {
47-
goerli: {
48-
url: `https://goerli.infura.io/v3/${process.env.INFURA_ID}`,
49-
accounts,
50-
},
5149
optimism: {
5250
url: 'https://mainnet.optimism.io',
5351
accounts,
@@ -60,16 +58,12 @@ const config: HardhatUserConfig = {
6058
url: 'https://rpc-mainnet.maticvigil.com',
6159
accounts,
6260
},
63-
polygonMumbai: {
64-
url: 'https://rpc-mumbai.maticvigil.com',
65-
accounts,
66-
},
6761
arbitrumOne: {
6862
url: 'https://arb1.arbitrum.io/rpc',
6963
accounts,
7064
},
71-
arbitrumGoerli: {
72-
url: 'https://goerli-rollup.arbitrum.io/rpc',
65+
sepolia: {
66+
url: 'https://1rpc.io/sepolia',
7367
accounts,
7468
},
7569
},
@@ -79,13 +73,11 @@ const config: HardhatUserConfig = {
7973
},
8074
etherscan: {
8175
apiKey: {
82-
goerli: process.env.ETHERSCAN_API_KEY!,
8376
optimisticEthereum: process.env.OPTIMISTIC_ETHERSCAN_API_KEY!,
8477
polygon: process.env.POLYGONSCAN_API_KEY!,
85-
polygonMumbai: process.env.POLYGONSCAN_API_KEY!,
8678
gnosis: process.env.GNOSISSCAN_API_KEY!,
8779
arbitrumOne: process.env.ARBISCAN_API_KEY!,
88-
arbitrumGoerli: process.env.ARBISCAN_API_KEY!,
80+
sepolia: process.env.ETHERSCAN_API_KEY!,
8981
},
9082
},
9183
typechain: {

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
"prepare": "husky install"
2323
},
2424
"devDependencies": {
25-
"@nomiclabs/hardhat-ethers": "^2.2.2",
26-
"@nomiclabs/hardhat-etherscan": "^3.1.5",
27-
"@nomiclabs/hardhat-waffle": "^2.0.3",
25+
"@nomiclabs/hardhat-ethers": "^2.2.3",
26+
"@nomiclabs/hardhat-etherscan": "^3.1.8",
27+
"@nomiclabs/hardhat-waffle": "^2.0.6",
2828
"@openzeppelin/contracts": "^4.8.1",
2929
"@typechain/ethers-v5": "^10.2.0",
3030
"@typechain/hardhat": "^6.1.5",
31-
"@types/chai": "^4.3.4",
32-
"@types/graceful-fs": "^4.1.6",
33-
"@types/mocha": "^10.0.1",
31+
"@types/chai": "^4.3.14",
32+
"@types/graceful-fs": "^4.1.9",
33+
"@types/mocha": "^10.0.6",
3434
"@types/node": "^18.11.18",
35-
"@types/prompt-sync": "^4.2.0",
35+
"@types/prompt-sync": "^4.2.3",
3636
"@typescript-eslint/eslint-plugin": "^5.50.0",
3737
"@typescript-eslint/parser": "^5.50.0",
3838
"axios": "^1.2.6",
@@ -46,7 +46,7 @@
4646
"eslint-plugin-prettier": "^4.2.1",
4747
"eslint-plugin-promise": "^6.1.1",
4848
"eslint-plugin-simple-import-sort": "^10.0.0",
49-
"ethereum-waffle": "^4.0.9",
49+
"ethereum-waffle": "^4.0.10",
5050
"ethers": "^5.7.2",
5151
"hardhat": "^2.12.6",
5252
"hardhat-gas-reporter": "^1.0.9",
@@ -60,7 +60,7 @@
6060
"solhint": "^3.3.8",
6161
"solhint-plugin-prettier": "^0.0.5",
6262
"solidity-coverage": "^0.8.2",
63-
"ts-node": "^10.8.2",
63+
"ts-node": "^10.9.2",
6464
"typechain": "^8.1.1",
6565
"typescript": "^4.9.5"
6666
},

scripts/utils/index.ts

+10-14
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,22 @@ import { BigNumber } from 'ethers';
33
import { ethers } from 'hardhat';
44

55
export const NETWORK_NAME: Record<number, string> = {
6-
5: 'Goerli Testnet',
76
10: 'Optimism',
87
100: 'Gnosis Chain',
98
137: 'Polygon Mainnet',
109
42161: 'Arbitrum One',
11-
421613: 'Arbitrum Goerli Testnet',
12-
80001: 'Polygon Mumbai Testnet',
10+
11155111: 'Sepolia Testnet',
11+
17000: 'Holesky Testnet',
1312
31337: 'Hardhat Chain',
1413
};
1514

1615
export const NETWORK_CURRENCY: Record<number, string> = {
17-
5: 'GoerliETH',
1816
10: 'ETH',
1917
100: 'xDAI',
2018
137: 'MATIC',
2119
42161: 'ETH',
22-
421613: 'GoerliETH',
23-
80001: 'MATIC',
20+
11155111: 'SEPETH',
21+
17000: 'HOLETH',
2422
31337: 'HardhatETH',
2523
};
2624

@@ -33,25 +31,23 @@ export type DeploymentInfo = {
3331
};
3432

3533
export const TREASURY_ADDRESS: Record<string, string> = {
36-
5: '0xC9F2D9adfa6C24ce0D5a999F2BA3c6b06E36F75E',
37-
10: '0xC9F2D9adfa6C24ce0D5a999F2BA3c6b06E36F75E', // todo: replace with gnosis safe when introducing fees
34+
10: '0x19a8eb80c1483CEAA1278B16C5D5eF0104F85905', // dan13.eth
3835
100: '0xcDba6263aC0a162848380A1eD117B48D973EABFC', // gnosis safe
3936
137: '0xcDba6263aC0a162848380A1eD117B48D973EABFC', // gnosis safe
40-
42161: '0xC9F2D9adfa6C24ce0D5a999F2BA3c6b06E36F75E', // todo: replace with gnosis safe when introducing fees
41-
421613: '0xC9F2D9adfa6C24ce0D5a999F2BA3c6b06E36F75E',
42-
80001: '0xC9F2D9adfa6C24ce0D5a999F2BA3c6b06E36F75E',
37+
42161: '0x19a8eb80c1483CEAA1278B16C5D5eF0104F85905', // dan13.eth
38+
17000: '0x19a8eb80c1483CEAA1278B16C5D5eF0104F85905', // dan13.eth
39+
11155111: '0x19a8eb80c1483CEAA1278B16C5D5eF0104F85905', // dan13.eth
4340
31337: '0xffffffffffffffffffffffffffffffffffffffff',
4441
};
4542

4643
export const PAYMENT_TOKEN: Record<string, string> = {
47-
5: '0x7f8F6E42C169B294A384F5667c303fd8Eedb3CF3', // custom USDC
4844
10: '0x7f5c764cbc14f9669b88837ca1490cca17c31607', // USDC
4945
100: '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83', // USDC
5046
137: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', // USDC
5147
42161: '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', // USDC
52-
421613: '0x67F4C72a50f8Df6487720261E188F2abE83F57D7', // custom USDC
53-
80001: '0xD60e36945160281eB456A962408295B1FC257796', // custom USDC
5448
31337: '0xffffffffffffffffffffffffffffffffffffffff',
49+
11155111: '0x57B9f2c192BBfa5CAbc79A683435990FEa665861', // TOKEN
50+
17000: '0x59730da9b5f93fe1e1fd7d62f94b787ecc7feef1', // TOKEN
5551
};
5652

5753
// export const DEFAULT_UPGRADE_FEE = 10000000; // 10 USDC with 6 decimals

0 commit comments

Comments
 (0)