Skip to content

Commit 677d162

Browse files
committed
add deployer with enhancedStepsReserve
1 parent 1d8ef4d commit 677d162

File tree

6 files changed

+198
-108
lines changed

6 files changed

+198
-108
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ jspm_packages
3939
# Optional REPL history
4040
.node_repl_history
4141

42+
<<<<<<< HEAD
4243
# OS file
4344
.DS_Store
4445

4546
report
47+
=======
48+
.env
49+
>>>>>>> 9f9b604... add deployer with enhancedStepsReserve

buidler.config.js

Lines changed: 61 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
usePlugin("@nomiclabs/buidler-truffle5");
2-
usePlugin("@nomiclabs/buidler-web3");
1+
usePlugin('@nomiclabs/buidler-truffle5')
2+
usePlugin('@nomiclabs/buidler-web3')
3+
4+
require('dotenv').config()
5+
6+
const INFURA_API_KEY = process.env.INFURA_API_KEY
7+
const PRIVATE_KEY = process.env.PRIVATE_KEY
38

49
module.exports = {
5-
defaultNetwork: "buidlerevm",
10+
defaultNetwork: 'buidlerevm',
611

712
networks: {
813
develop: {
9-
url: "http://127.0.0.1:8545",
14+
url: 'http://127.0.0.1:8545',
1015
gas: 6000000,
1116
timeout: 20000
1217
},
1318
buidlerevm: {
1419
accounts: [
15-
// 20 accounts with 10^14 ETH each
20+
// 20 accounts with 10^14 ETH each
1621
// Addresses:
1722
// 0xc783df8a850f42e7f7e57013759c285caa701eb6
1823
// 0xead9c93b79ae7c1591b1fb5323bd777e86e150d4
@@ -35,120 +40,106 @@ module.exports = {
3540
// 0x68dfc526037e9030c8f813d014919cc89e7d4d74
3641
// 0x26c43a1d431a4e5ee86cd55ed7ef9edf3641e901
3742
{
38-
privateKey:
39-
"0xc5e8f61d1ab959b397eecc0a37a6517b8e67a0e7cf1f4bce5591f3ed80199122",
40-
balance: "100000000000000000000000000000000"
43+
privateKey: '0xc5e8f61d1ab959b397eecc0a37a6517b8e67a0e7cf1f4bce5591f3ed80199122',
44+
balance: '100000000000000000000000000000000'
4145
},
4246
{
43-
privateKey:
44-
"0xd49743deccbccc5dc7baa8e69e5be03298da8688a15dd202e20f15d5e0e9a9fb",
45-
balance: "100000000000000000000000000000000"
47+
privateKey: '0xd49743deccbccc5dc7baa8e69e5be03298da8688a15dd202e20f15d5e0e9a9fb',
48+
balance: '100000000000000000000000000000000'
4649
},
4750
{
48-
privateKey:
49-
"0x23c601ae397441f3ef6f1075dcb0031ff17fb079837beadaf3c84d96c6f3e569",
50-
balance: "100000000000000000000000000000000"
51+
privateKey: '0x23c601ae397441f3ef6f1075dcb0031ff17fb079837beadaf3c84d96c6f3e569',
52+
balance: '100000000000000000000000000000000'
5153
},
5254
{
53-
privateKey:
54-
"0xee9d129c1997549ee09c0757af5939b2483d80ad649a0eda68e8b0357ad11131",
55-
balance: "100000000000000000000000000000000"
55+
privateKey: '0xee9d129c1997549ee09c0757af5939b2483d80ad649a0eda68e8b0357ad11131',
56+
balance: '100000000000000000000000000000000'
5657
},
5758
{
58-
privateKey:
59-
"0x87630b2d1de0fbd5044eb6891b3d9d98c34c8d310c852f98550ba774480e47cc",
60-
balance: "100000000000000000000000000000000"
59+
privateKey: '0x87630b2d1de0fbd5044eb6891b3d9d98c34c8d310c852f98550ba774480e47cc',
60+
balance: '100000000000000000000000000000000'
6161
},
6262
{
63-
privateKey:
64-
"0x275cc4a2bfd4f612625204a20a2280ab53a6da2d14860c47a9f5affe58ad86d4",
65-
balance: "100000000000000000000000000000000"
63+
privateKey: '0x275cc4a2bfd4f612625204a20a2280ab53a6da2d14860c47a9f5affe58ad86d4',
64+
balance: '100000000000000000000000000000000'
6665
},
6766
{
68-
privateKey:
69-
"0x7f307c41137d1ed409f0a7b028f6c7596f12734b1d289b58099b99d60a96efff",
70-
balance: "100000000000000000000000000000000"
67+
privateKey: '0x7f307c41137d1ed409f0a7b028f6c7596f12734b1d289b58099b99d60a96efff',
68+
balance: '100000000000000000000000000000000'
7169
},
7270
{
73-
privateKey:
74-
"0x2a8aede924268f84156a00761de73998dac7bf703408754b776ff3f873bcec60",
75-
balance: "100000000000000000000000000000000"
71+
privateKey: '0x2a8aede924268f84156a00761de73998dac7bf703408754b776ff3f873bcec60',
72+
balance: '100000000000000000000000000000000'
7673
},
7774
{
78-
privateKey:
79-
"0x8b24fd94f1ce869d81a34b95351e7f97b2cd88a891d5c00abc33d0ec9501902e",
80-
balance: "100000000000000000000000000000000"
75+
privateKey: '0x8b24fd94f1ce869d81a34b95351e7f97b2cd88a891d5c00abc33d0ec9501902e',
76+
balance: '100000000000000000000000000000000'
8177
},
8278
{
83-
privateKey:
84-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29085",
85-
balance: "100000000000000000000000000000000"
79+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29085',
80+
balance: '100000000000000000000000000000000'
8681
},
8782
{
88-
privateKey:
89-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29086",
90-
balance: "100000000000000000000000000000000"
83+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29086',
84+
balance: '100000000000000000000000000000000'
9185
},
9286
{
93-
privateKey:
94-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29087",
95-
balance: "100000000000000000000000000000000"
87+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29087',
88+
balance: '100000000000000000000000000000000'
9689
},
9790
{
98-
privateKey:
99-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29088",
100-
balance: "100000000000000000000000000000000"
91+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29088',
92+
balance: '100000000000000000000000000000000'
10193
},
10294
{
103-
privateKey:
104-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29089",
105-
balance: "100000000000000000000000000000000"
95+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29089',
96+
balance: '100000000000000000000000000000000'
10697
},
10798
{
108-
privateKey:
109-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908a",
110-
balance: "100000000000000000000000000000000"
99+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908a',
100+
balance: '100000000000000000000000000000000'
111101
},
112102
{
113-
privateKey:
114-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908b",
115-
balance: "100000000000000000000000000000000"
103+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908b',
104+
balance: '100000000000000000000000000000000'
116105
},
117106
{
118-
privateKey:
119-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908c",
120-
balance: "100000000000000000000000000000000"
107+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908c',
108+
balance: '100000000000000000000000000000000'
121109
},
122110
{
123-
privateKey:
124-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908d",
125-
balance: "100000000000000000000000000000000"
111+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908d',
112+
balance: '100000000000000000000000000000000'
126113
},
127114
{
128-
privateKey:
129-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908e",
130-
balance: "100000000000000000000000000000000"
115+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908e',
116+
balance: '100000000000000000000000000000000'
131117
},
132118
{
133-
privateKey:
134-
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908f",
135-
balance: "100000000000000000000000000000000"
119+
privateKey: '0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908f',
120+
balance: '100000000000000000000000000000000'
136121
}
137122
]
123+
},
124+
125+
ropsten: {
126+
url: `https://ropsten.infura.io/v3/${INFURA_API_KEY}`,
127+
accounts: [PRIVATE_KEY],
128+
timeout: 20000
138129
}
139130
},
140131

141132
solc: {
142-
version: "0.6.6",
143-
optimizer: require("./solcOptimiserSettings.js")
133+
version: '0.6.6',
134+
optimizer: require('./solcOptimiserSettings.js')
144135
},
145136

146137
paths: {
147-
sources: "./contracts/sol6",
148-
tests: "./test/sol6",
138+
sources: './contracts/sol6',
139+
tests: './test/sol6'
149140
},
150141

151142
mocha: {
152143
enableTimeouts: false
153144
}
154-
};
145+
}

buidlerConfigV4.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
defaultNetwork: "buidlerevm",
3+
solc: {
4+
version: "0.4.18",
5+
optimizer: {
6+
enabled: true
7+
}
8+
},
9+
10+
paths: {
11+
sources: "./contracts",
12+
}
13+
};

package-lock.json

Lines changed: 43 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"chai-as-promised": "7.1.1",
2424
"compare-versions": "3.5.1",
2525
"ethers": "5.0.4",
26+
"dotenv": "^8.2.0",
2627
"ganache-cli": "6.8.2",
2728
"mathjs": "4.4.2",
2829
"rlp": "2.2.4",

0 commit comments

Comments
 (0)