Skip to content

Commit 069f4cc

Browse files
committed
Mainnet deployment
1 parent bd6ed24 commit 069f4cc

File tree

3 files changed

+227
-1
lines changed

3 files changed

+227
-1
lines changed

.openzeppelin/mainnet.json

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
{
2+
"manifestVersion": "3.1",
3+
"impls": {
4+
"ce4272339ef9d2fd9053afea697bed1b1b8c47edaa1726c8e8734df05d3ec518": {
5+
"address": "0x67AAc030b59d266e754b0b24af9cc77EC2534a37",
6+
"txHash": "0xd8d0c0d0f3ccfd140febdcfdeee59dd26dbc88d20ff9b83224f844d1010e5586",
7+
"layout": {
8+
"storage": [
9+
{
10+
"contract": "Initializable",
11+
"label": "_initialized",
12+
"type": "t_bool",
13+
"src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:25"
14+
},
15+
{
16+
"contract": "Initializable",
17+
"label": "_initializing",
18+
"type": "t_bool",
19+
"src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:30"
20+
},
21+
{
22+
"contract": "ContextUpgradeable",
23+
"label": "__gap",
24+
"type": "t_array(t_uint256)50_storage",
25+
"src": "@openzeppelin\\contracts-upgradeable\\utils\\ContextUpgradeable.sol:31"
26+
},
27+
{
28+
"contract": "OwnableUpgradeable",
29+
"label": "_owner",
30+
"type": "t_address",
31+
"src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:20"
32+
},
33+
{
34+
"contract": "OwnableUpgradeable",
35+
"label": "__gap",
36+
"type": "t_array(t_uint256)49_storage",
37+
"src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:74"
38+
},
39+
{
40+
"contract": "ERC20Upgradeable",
41+
"label": "_balances",
42+
"type": "t_mapping(t_address,t_uint256)",
43+
"src": "contracts\\oz\\ERC20Upgradeable.sol:39"
44+
},
45+
{
46+
"contract": "ERC20Upgradeable",
47+
"label": "_allowances",
48+
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))",
49+
"src": "contracts\\oz\\ERC20Upgradeable.sol:41"
50+
},
51+
{
52+
"contract": "ERC20Upgradeable",
53+
"label": "_totalSupply",
54+
"type": "t_uint256",
55+
"src": "contracts\\oz\\ERC20Upgradeable.sol:43"
56+
},
57+
{
58+
"contract": "ERC20Upgradeable",
59+
"label": "_name",
60+
"type": "t_string_storage",
61+
"src": "contracts\\oz\\ERC20Upgradeable.sol:45"
62+
},
63+
{
64+
"contract": "ERC20Upgradeable",
65+
"label": "_symbol",
66+
"type": "t_string_storage",
67+
"src": "contracts\\oz\\ERC20Upgradeable.sol:46"
68+
},
69+
{
70+
"contract": "ERC20Upgradeable",
71+
"label": "__gap",
72+
"type": "t_array(t_uint256)45_storage",
73+
"src": "contracts\\oz\\ERC20Upgradeable.sol:377"
74+
},
75+
{
76+
"contract": "PausableUpgradeable",
77+
"label": "_paused",
78+
"type": "t_bool",
79+
"src": "@openzeppelin\\contracts-upgradeable\\security\\PausableUpgradeable.sol:28"
80+
},
81+
{
82+
"contract": "PausableUpgradeable",
83+
"label": "__gap",
84+
"type": "t_array(t_uint256)49_storage",
85+
"src": "@openzeppelin\\contracts-upgradeable\\security\\PausableUpgradeable.sol:96"
86+
},
87+
{
88+
"contract": "ERC20PausableUpgradeable",
89+
"label": "__gap",
90+
"type": "t_array(t_uint256)50_storage",
91+
"src": "contracts\\oz\\ERC20PausableUpgradeable.sol:46"
92+
},
93+
{
94+
"contract": "ERC20SnapshotUpgradeable",
95+
"label": "_accountBalanceSnapshots",
96+
"type": "t_mapping(t_address,t_struct(Snapshots)2784_storage)",
97+
"src": "contracts\\oz\\ERC20SnapshotUpgradeable.sol:55"
98+
},
99+
{
100+
"contract": "ERC20SnapshotUpgradeable",
101+
"label": "_totalSupplySnapshots",
102+
"type": "t_struct(Snapshots)2784_storage",
103+
"src": "contracts\\oz\\ERC20SnapshotUpgradeable.sol:56"
104+
},
105+
{
106+
"contract": "ERC20SnapshotUpgradeable",
107+
"label": "_currentSnapshotId",
108+
"type": "t_struct(Counter)748_storage",
109+
"src": "contracts\\oz\\ERC20SnapshotUpgradeable.sol:59"
110+
},
111+
{
112+
"contract": "ERC20SnapshotUpgradeable",
113+
"label": "__gap",
114+
"type": "t_array(t_uint256)46_storage",
115+
"src": "contracts\\oz\\ERC20SnapshotUpgradeable.sol:214"
116+
},
117+
{
118+
"contract": "ZeroDAOToken",
119+
"label": "authorizedToSnapshot",
120+
"type": "t_mapping(t_address,t_bool)",
121+
"src": "contracts\\ZeroDAOToken.sol:22"
122+
}
123+
],
124+
"types": {
125+
"t_mapping(t_address,t_bool)": {
126+
"label": "mapping(address => bool)"
127+
},
128+
"t_address": {
129+
"label": "address"
130+
},
131+
"t_bool": {
132+
"label": "bool"
133+
},
134+
"t_mapping(t_address,t_struct(Snapshots)2784_storage)": {
135+
"label": "mapping(address => struct ERC20SnapshotUpgradeable.Snapshots)"
136+
},
137+
"t_struct(Snapshots)2784_storage": {
138+
"label": "struct ERC20SnapshotUpgradeable.Snapshots",
139+
"members": [
140+
{
141+
"label": "ids",
142+
"type": "t_array(t_uint256)dyn_storage"
143+
},
144+
{
145+
"label": "values",
146+
"type": "t_array(t_uint256)dyn_storage"
147+
}
148+
]
149+
},
150+
"t_array(t_uint256)dyn_storage": {
151+
"label": "uint256[]"
152+
},
153+
"t_uint256": {
154+
"label": "uint256"
155+
},
156+
"t_struct(Counter)748_storage": {
157+
"label": "struct CountersUpgradeable.Counter",
158+
"members": [
159+
{
160+
"label": "_value",
161+
"type": "t_uint256"
162+
}
163+
]
164+
},
165+
"t_array(t_uint256)46_storage": {
166+
"label": "uint256[46]"
167+
},
168+
"t_array(t_uint256)50_storage": {
169+
"label": "uint256[50]"
170+
},
171+
"t_array(t_uint256)49_storage": {
172+
"label": "uint256[49]"
173+
},
174+
"t_mapping(t_address,t_uint256)": {
175+
"label": "mapping(address => uint256)"
176+
},
177+
"t_mapping(t_address,t_mapping(t_address,t_uint256))": {
178+
"label": "mapping(address => mapping(address => uint256))"
179+
},
180+
"t_string_storage": {
181+
"label": "string"
182+
},
183+
"t_array(t_uint256)45_storage": {
184+
"label": "uint256[45]"
185+
}
186+
}
187+
}
188+
}
189+
},
190+
"admin": {
191+
"address": "0xAaCa00D1000AD76960FD5f0A8B6d15587bFC1ab4",
192+
"txHash": "0x0bb469d15010f1208a646619fb7f7aac9dc1fa2a5cdf4f2194f157382ccf2bda"
193+
}
194+
}

deployments/mainnet.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"token": [
3+
{
4+
"tag": "wilder-prod",
5+
"address": "0x2a3bFF78B79A009976EeA096a51A948a3dC00e34",
6+
"version": "ce4272339ef9d2fd9053afea697bed1b1b8c47edaa1726c8e8734df05d3ec518",
7+
"date": "2021-05-07T19:16:47.677Z",
8+
"args": {
9+
"name": "Wilder",
10+
"symbol": "WILD"
11+
},
12+
"isUpgradable": true,
13+
"admin": "0xAaCa00D1000AD76960FD5f0A8B6d15587bFC1ab4",
14+
"implementation": "0x67AAc030b59d266e754b0b24af9cc77EC2534a37"
15+
}
16+
]
17+
}

hardhat.config.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@ task("accounts", "Prints the list of accounts", async (args, hre) => {
2121

2222
const config: HardhatUserConfig = {
2323
solidity: {
24-
compilers: [{ version: "0.8.3", settings: {} }],
24+
compilers: [
25+
{
26+
version: "0.8.3",
27+
settings: {
28+
optimizer: {
29+
enabled: true,
30+
runs: 200,
31+
},
32+
},
33+
},
34+
],
2535
},
2636
paths: {
2737
sources: "./contracts",
@@ -38,6 +48,11 @@ const config: HardhatUserConfig = {
3848
blockNumber: 11845661,
3949
},
4050
},
51+
mainnet: {
52+
accounts: { mnemonic: process.env.MAINNET_MNEMONIC || "" },
53+
url: `https://mainnet.infura.io/v3/0e6434f252a949719227b5d68caa2657`,
54+
gasPrice: 75000000000,
55+
},
4156
kovan: {
4257
accounts: { mnemonic: process.env.TESTNET_MNEMONIC || "" },
4358
url: `https://kovan.infura.io/v3/0e6434f252a949719227b5d68caa2657`,

0 commit comments

Comments
 (0)