Skip to content

Commit bf6f1c3

Browse files
authored
Deploy to sepolia-ethereum (Synthetixio#2217)
1 parent a40e2c6 commit bf6f1c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+12919
-82313
lines changed

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ snx.getPathToNetwork({ network: 'mainnet' });
179179
//'.../Synthetixio/synthetix/publish/deployed/mainnet'
180180

181181
// retrieve an object detailing the contract ABI and bytecode
182-
snx.getSource({ network: 'goerli', contract: 'Proxy' });
182+
snx.getSource({ network: 'sepolia', contract: 'Proxy' });
183183
/*
184184
{
185185
bytecode: '0..0',
@@ -198,20 +198,20 @@ snx.getSuspensionReasons();
198198
*/
199199

200200
// retrieve the array of synths used
201-
snx.getSynths({ network: 'goerli' }).map(({ name }) => name);
201+
snx.getSynths({ network: 'sepolia' }).map(({ name }) => name);
202202
// ['sUSD', 'sEUR', ...]
203203

204204
// retrieve an object detailing the contract deployed to the given network.
205-
snx.getTarget({ network: 'goerli', contract: 'ProxySynthetix' });
205+
snx.getTarget({ network: 'sepolia', contract: 'ProxySynthetix' });
206206
/*
207207
{
208208
name: 'ProxySynthetix',
209209
address: '0x322A3346bf24363f451164d96A5b5cd5A7F4c337',
210210
source: 'Proxy',
211-
link: 'https://goerli.etherscan.io/address/0x322A3346bf24363f451164d96A5b5cd5A7F4c337',
211+
link: 'https://sepolia.etherscan.io/address/0x322A3346bf24363f451164d96A5b5cd5A7F4c337',
212212
timestamp: '2019-03-06T23:05:43.914Z',
213213
txn: '',
214-
network: 'goerli'
214+
network: 'sepolia'
215215
}
216216
*/
217217

@@ -238,7 +238,7 @@ snx.getVersions();
238238
{ tag: 'v2.21.12-107',
239239
fulltag: 'v2.21.12-107',
240240
release: 'Hadar',
241-
network: 'goerli',
241+
network: 'sepolia',
242242
date: '2020-05-08T12:52:06-04:00',
243243
commit: '19997724bc7eaceb902c523a6742e0bd74fc75cb',
244244
contracts: { ReadProxyAddressResolver: [Object] }
@@ -247,7 +247,7 @@ snx.getVersions();
247247
*/
248248

249249
snx.networks;
250-
// [ 'local', 'goerli', 'mainnet' ]
250+
// [ 'local', 'sepolia', 'mainnet' ]
251251

252252
snx.toBytes32('sUSD');
253253
// '0x7355534400000000000000000000000000000000000000000000000000000000'
@@ -279,9 +279,9 @@ $ npx synthetix bytes32 sUSD
279279
0x7355534400000000000000000000000000000000000000000000000000000000
280280

281281
$ npx synthetix networks
282-
[ 'local', 'goerli', 'mainnet' ]
282+
[ 'local', 'sepolia', 'mainnet' ]
283283

284-
$ npx synthetix source --network goerli --contract Proxy
284+
$ npx synthetix source --network sepolia --contract Proxy
285285
{
286286
"bytecode": "0..0",
287287
"abi": [ ... ]
@@ -290,17 +290,17 @@ $ npx synthetix source --network goerli --contract Proxy
290290
$ npx synthetix suspension-reason --code 2
291291
Market Closure
292292

293-
$ npx synthetix synths --network goerli --key name
293+
$ npx synthetix synths --network sepolia --key name
294294
["sUSD", "sEUR", ... ]
295295

296-
$ npx synthetix target --network goerli --contract ProxySynthetix
296+
$ npx synthetix target --network sepolia --contract ProxySynthetix
297297
{
298298
"name": "ProxySynthetix",
299299
"address": "0x322A3346bf24363f451164d96A5b5cd5A7F4c337",
300300
"source": "Proxy",
301-
"link": "https://goerli.etherscan.io/address/0x322A3346bf24363f451164d96A5b5cd5A7F4c337",
301+
"link": "https://sepolia.etherscan.io/address/0x322A3346bf24363f451164d96A5b5cd5A7F4c337",
302302
"timestamp": "2019-03-06T23:05:43.914Z",
303-
"network": "goerli"
303+
"network": "sepolia"
304304
}
305305

306306
$ npx synthetix users --network mainnet --user oracle

cannonfile.release.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version = "<%= package.version %>"
55
# overrides the deployed contracts used by the deployer
66
# not to be confused with the cannon network
77
[setting.network]
8-
defaultValue = "goerli"
8+
defaultValue = "sepolia"
99

1010
[run.synthetix]
1111
exec = "./publish/cannon.js"

hardhat.config.js

+6-14
Original file line numberDiff line numberDiff line change
@@ -76,26 +76,18 @@ module.exports = {
7676
chainId: 10,
7777
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
7878
},
79-
goerli: {
80-
url: process.env.PROVIDER_URL?.replace('network', 'goerli') || 'http://localhost:8545',
81-
chainId: 5,
82-
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
83-
},
84-
'goerli-ovm': {
85-
url: process.env.OVM_GOERLI_PROVIDER_URL || 'https://goerli.optimism.io/',
86-
chainId: 420,
79+
sepolia: {
80+
url:
81+
process.env.PROVIDER_URL?.replace('network', 'sepolia') ||
82+
'https://ethereum-sepolia-rpc.publicnode.com',
83+
chainId: 11155111,
8784
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
8885
},
8986
'sepolia-ovm': {
9087
url: process.env.OVM_SEPOLIA_PROVIDER_URL || 'https://sepolia.optimism.io/',
9188
chainId: 11155420,
9289
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
9390
},
94-
rinkeby: {
95-
url: process.env.PROVIDER_URL?.replace('network', 'rinkeby') || '',
96-
chainId: 4,
97-
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
98-
},
9991
local: {
10092
chainId: 31337,
10193
url: 'http://localhost:8545/',
@@ -118,7 +110,7 @@ module.exports = {
118110
},
119111
etherscan: {
120112
apiKey: {
121-
goerli: process.env.ETHERSCAN_KEY,
113+
sepolia: process.env.ETHERSCAN_KEY,
122114
},
123115
},
124116
cannon: {

index.js

+6-19
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ const abiDecoder = require('abi-decoder');
66
// load the data in explicitly (not programmatically) so webpack knows what to bundle
77
const data = {
88
mainnet: require('./publish/deployed/mainnet'),
9-
goerli: require('./publish/deployed/goerli'),
10-
'goerli-ovm': require('./publish/deployed/goerli-ovm'),
9+
sepolia: require('./publish/deployed/sepolia'),
1110
'sepolia-ovm': require('./publish/deployed/sepolia-ovm'),
1211
'local-ovm': require('./publish/deployed/local-ovm'),
1312
'mainnet-ovm': require('./publish/deployed/mainnet-ovm'),
@@ -17,15 +16,12 @@ const assets = require('./publish/assets.json');
1716
const nonUpgradeable = require('./publish/non-upgradeable.json');
1817
const releases = require('./publish/releases.json');
1918

20-
const networks = ['local', 'mainnet', 'goerli', 'sepolia'];
19+
const networks = ['local', 'mainnet', 'sepolia'];
2120

2221
const chainIdMapping = Object.entries({
2322
1: {
2423
network: 'mainnet',
2524
},
26-
5: {
27-
network: 'goerli',
28-
},
2925
// Hardhat fork of mainnet: https://hardhat.org/config/#hardhat-network
3026
31337: {
3127
network: 'mainnet',
@@ -36,9 +32,8 @@ const chainIdMapping = Object.entries({
3632
network: 'mainnet',
3733
useOvm: true,
3834
},
39-
420: {
40-
network: 'goerli',
41-
useOvm: true,
35+
11155111: {
36+
network: 'sepolia',
4237
},
4338
11155420: {
4439
network: 'sepolia',
@@ -163,20 +158,16 @@ const defaults = {
163158

164159
RENBTC_ERC20_ADDRESSES: {
165160
mainnet: '0xEB4C2781e4ebA804CE9a9803C67d0893436bB27D',
166-
goerli: '0x9B2fE385cEDea62D839E4dE89B0A23EF4eacC717',
167161
// Adding zero addresses here - we don't actually support renBTC anymore.
162+
'mainnet-ovm': '0x0000000000000000000000000000000000000000',
168163
sepolia: '0x0000000000000000000000000000000000000000',
169164
'sepolia-ovm': '0x0000000000000000000000000000000000000000',
170-
// TODO: get actual goerli address
171165
},
172166
WETH_ERC20_ADDRESSES: {
173167
mainnet: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
174-
goerli: '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6',
175168
sepolia: '0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9',
176169
'mainnet-ovm': '0x4200000000000000000000000000000000000006',
177-
'goerli-ovm': '0x4200000000000000000000000000000000000006',
178170
'sepolia-ovm': '0x4200000000000000000000000000000000000006',
179-
// TODO: get actual goerli-ovm address
180171
},
181172
INITIAL_ISSUANCE: w3utils.toWei(`${100e6}`),
182173
CROSS_DOMAIN_DEPOSIT_GAS_LIMIT: `${3e6}`,
@@ -734,11 +725,7 @@ const getUsers = ({ network = 'mainnet', user, useOvm = false } = {}) => {
734725
owner: '0x6d4a64C57612841c2C6745dB2a4E4db34F002D20',
735726
deployer: '0xEde8a407913A874Dd7e3d5B731AFcA135D30375E',
736727
}),
737-
goerli: Object.assign({}, base, {
738-
owner: '0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9',
739-
deployer: '0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9',
740-
}),
741-
'goerli-ovm': Object.assign({}, base, {
728+
sepolia: Object.assign({}, base, {
742729
owner: '0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9',
743730
deployer: '0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9',
744731
}),

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "synthetix",
3-
"version": "2.100.0",
3+
"version": "2.100.1-alpha",
44
"license": "MIT",
55
"author": "Synthetix",
66
"description": "The smart contracts which make up the Synthetix system. (synthetix.io)",
@@ -54,8 +54,7 @@
5454
"publish/*.json",
5555
"publish/deployed/mainnet/*",
5656
"publish/deployed/mainnet-ovm/*",
57-
"publish/deployed/goerli/*",
58-
"publish/deployed/goerli-ovm/*",
57+
"publish/deployed/sepolia/*",
5958
"publish/deployed/sepolia-ovm/*",
6059
"publish/deployed/local-ovm/*"
6160
],

publish/README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ node publish deploy # "--help" for options
2929
- `-a, --add-new-synths` Whether or not any new synths in the synths.json file should be deployed if there is no entry in the config file.
3030
- `-b, --build-path [value]` Path for built files to go. (default of `./build` - relative to the root of this repo). The folders `compiled` and `flattened` will be made under this path and the respective files will go in there.
3131
- `-c, --contract-deployment-gas-limit <value>` Contract deployment gas limit (default: 7000000 (7m))
32-
- `-d, --deployment-path <value>` Path to a folder that has your input configuration file (`config.json`), the synths list (`synths.json`) and where your `deployment.json` file will be written (and read from if it currently exists). The `config.json` should be in the following format ([here's an example](deployed/goerli/config.json)):
32+
- `-d, --deployment-path <value>` Path to a folder that has your input configuration file (`config.json`), the synths list (`synths.json`) and where your `deployment.json` file will be written (and read from if it currently exists). The `config.json` should be in the following format ([here's an example](deployed/sepolia/config.json)):
3333

3434
```javascript
3535
// config.json
@@ -46,7 +46,7 @@ node publish deploy # "--help" for options
4646
4747
- `-g, --gas-price <value>` Gas price in GWEI (default: "1")
4848
- `-m, --method-call-gas-limit <value>` Method call gas limit (default: 150000)
49-
- `-n, --network <value>` The network to run off. Either mainnet or goerli. (default: "goerli")
49+
- `-n, --network <value>` The network to run off. Either mainnet or sepolia. (default: "sepolia")
5050
- `-o, --oracle <value>` The address of the oracle to use. (default: `0xac1e8b385230970319906c03a1d8567e3996d1d5` - used for all testnets)
5151
- `-f, --fee-auth <value>` The address of the fee Authority to use for feePool. (default:
5252
`0xfee056f4d9d63a63d6cf16707d49ffae7ff3ff01` - used for all testnets)
@@ -55,8 +55,8 @@ node publish deploy # "--help" for options
5555
### Examples
5656

5757
```bash
58-
# deploy to goerli with 20 gwei gas
59-
node publish deploy -n goerli -d publish/deployed/goerli -g 20
58+
# deploy to sepolia with 20 gwei gas
59+
node publish deploy -n sepolia -d publish/deployed/sepolia -g 20
6060
node publish deploy -n local -d publish/deployed/local -g 8
6161
```
6262

@@ -74,8 +74,8 @@ node publish verify # "--help" for options
7474
### Examples
7575

7676
```bash
77-
# verify on goerli.etherscan
78-
node publish verify -n goerli -d publish/deployed/goerli
77+
# verify on sepolia.etherscan
78+
node publish verify -n sepolia -d publish/deployed/sepolia
7979
```
8080

8181
## 4. Nominate New Owner
@@ -89,8 +89,8 @@ node publish nominate # "--help" for options
8989
### Example
9090

9191
```bash
92-
node publish nominate -n goerli -d publish/deployed/goerli -g 3 -c Synthetix -c ProxysUSD -o 0x0000000000000000000000000000000000000000
93-
node publish nominate -o 0xB64fF7a4a33Acdf48d97dab0D764afD0F6176882 -n goerli -c ProxysUSD -d publish/deployed/goerli -g 20
92+
node publish nominate -n sepolia -d publish/deployed/sepolia -g 3 -c Synthetix -c ProxysUSD -o 0x0000000000000000000000000000000000000000
93+
node publish nominate -o 0xB64fF7a4a33Acdf48d97dab0D764afD0F6176882 -n sepolia -c ProxysUSD -d publish/deployed/sepolia -g 20
9494
```
9595

9696
## 5. Owner Actions
@@ -112,7 +112,7 @@ node publish remove-synths # "--help" for options
112112
### Example
113113

114114
```bash
115-
node publish remove-synths -n goerli -d publish/deployed/goerli -g 3 -s sRUB -s sETH
115+
node publish remove-synths -n sepolia -d publish/deployed/sepolia -g 3 -s sRUB -s sETH
116116
```
117117

118118
## 7. Replace Synths
@@ -150,7 +150,7 @@ node publish deploy-staking-rewards # "--help" for options
150150
### Examples
151151

152152
```bash
153-
node publish deploy-staking-rewards -n goerli -d publish/deployed/goerli -t sBTC --dry-run
153+
node publish deploy-staking-rewards -n sepolia -d publish/deployed/sepolia -t sBTC --dry-run
154154
node publish deploy-staking-rewards -n local -d publish/deployed/local
155155

156156
```
@@ -165,10 +165,10 @@ node publish release --version 2.22.0 --branch master --release Altair
165165

166166
For `synthetix` repo, we are using the following branch mapping:
167167

168-
- `alpha` is `GOERLI`
168+
- `alpha` is `sepolia`
169169
- `master` is `MAINNET`
170170

171-
PRs should start being merged into `develop` then deployed onto `GOERLI`, then merged into `staging` once deployed for releasing onto `goerli` for staging into a `mainnet` release. These can be done multiple times for each branch, as long as we keep these up to date.
171+
PRs should start being merged into `develop` then deployed onto `sepolia`, then merged into `staging` once deployed for releasing onto `sepolia` for staging into a `mainnet` release. These can be done multiple times for each branch, as long as we keep these up to date.
172172

173173
### Versioning
174174

@@ -178,12 +178,12 @@ Using semantic versioning ([semver](https://semver.org/)): `v[MAJOR].[MINOR].[PA
178178
- `MINOR` are any changes to the underlying Solidity contracts
179179
- `PATCH` are for any JavaScript or deployed contract JSON changes
180180
- `ADDITIONAL` are for testnet deployments
181-
- `-alpha` is for `Goerli`
181+
- `-alpha` is for `sepolia`
182182

183183
### Examples
184184

185185
- Say `v3.1.8` is a mainnet release
186-
- `v3.1.9-alpha` is a Goerli deployment of new synths (no contract changes)
186+
- `v3.1.9-alpha` is a sepolia deployment of new synths (no contract changes)
187187
- `v3.1.9` is the mainnet release with all environments
188188

189189
### Example
@@ -209,7 +209,7 @@ node publish release --version 2.22.0 --branch master --release Altair
209209
## How and when to update in PRs
210210

211211
- Any PRs that involve a SIP must always add an entry to `sips` list.
212-
- However they should never allocate a SIP to a release (in `releases` list) - this is done once we are ready to promote a release to Goerli (and thus staging), this way, your PRs are disconnected from releases as they should be.
212+
- However they should never allocate a SIP to a release (in `releases` list) - this is done once we are ready to promote a release to sepolia (and thus staging), this way, your PRs are disconnected from releases as they should be.
213213

214214
## Testing
215215

0 commit comments

Comments
 (0)