Skip to content

Commit 47adf92

Browse files
committed
Configure and deploy to Base network
1 parent c9f83d7 commit 47adf92

File tree

5 files changed

+50
-1
lines changed

5 files changed

+50
-1
lines changed

Diff for: contracts-core/.env.example

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
INFURA_ID=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
22
MNEMONIC=here is where your twelve words mnemonic should be put my friend
33
DEPLOY_GSN=false
4-
ETHERSCAN_VERIFICATION_API_KEY="YOUR_API_KEY"
4+
ETHERSCAN_VERIFICATION_API_KEY="YOUR_API_KEY"
5+
BASE_RPC_URL=
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"deployer": "0x5777Aa6F437399Af6cef2Fce0BE8D4B4eD7C7232",
3+
"contracts": {
4+
"Umbra": "0xFb2dc580Eed955B528407b4d36FfaFe3da685401",
5+
"StealthKeyRegistry": "0x31fe56609C65Cd0C510E7125f051D440424D38f3"
6+
},
7+
"actions": {
8+
"DeployingContractsToNetwork": "base"
9+
}
10+
}

Diff for: contracts-core/deploy-history/base-latest.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"deployer": "0x5777Aa6F437399Af6cef2Fce0BE8D4B4eD7C7232",
3+
"contracts": {
4+
"Umbra": "0xFb2dc580Eed955B528407b4d36FfaFe3da685401",
5+
"StealthKeyRegistry": "0x31fe56609C65Cd0C510E7125f051D440424D38f3"
6+
},
7+
"actions": {
8+
"DeployingContractsToNetwork": "base"
9+
}
10+
}

Diff for: contracts-core/hardhat.config.ts

+21
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const chainIds = {
2525
optimism: 10,
2626
sepolia: 11155111,
2727
gnosis_chain: 100,
28+
base: 8453,
2829
};
2930

3031
// Ensure that we have all the environment variables we need.
@@ -149,6 +150,16 @@ const config: HardhatUserConfig = {
149150
chainId: chainIds['gnosis_chain'],
150151
url: 'https://rpc.ankr.com/gnosis',
151152
},
153+
base: {
154+
accounts: {
155+
count: 10,
156+
initialIndex: 0,
157+
mnemonic,
158+
path: "m/44'/60'/0'/0",
159+
},
160+
chainId: chainIds['base'],
161+
url: process.env.BASE_RPC_URL,
162+
},
152163
},
153164
paths: {
154165
artifacts: './artifacts',
@@ -200,6 +211,16 @@ const config: HardhatUserConfig = {
200211
},
201212
etherscan: {
202213
apiKey: etherscanApiKey,
214+
customChains: [
215+
{
216+
network: 'base',
217+
chainId: chainIds['base'],
218+
urls: {
219+
apiURL: 'https://api.basescan.org/api',
220+
browserURL: 'https://basescan.org/',
221+
},
222+
},
223+
],
203224
},
204225
};
205226

Diff for: contracts-core/scripts/deployParams.json

+7
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,12 @@
6161
"tollCollector": "0x12aE679061C58e9f7660A2f7e6f06573014d2615",
6262
"tollReceiver": "0xb4435399AB53D6136C9AEEBb77a0120620b117F9",
6363
"expectedRegistryNonce": 5
64+
},
65+
"base": {
66+
"expectedDeployer": "0x5777Aa6F437399Af6cef2Fce0BE8D4B4eD7C7232",
67+
"toll": "30000000000000",
68+
"tollCollector": "0x12aE679061C58e9f7660A2f7e6f06573014d2615",
69+
"tollReceiver": "0xb4435399AB53D6136C9AEEBb77a0120620b117F9",
70+
"expectedRegistryNonce": 5
6471
}
6572
}

0 commit comments

Comments
 (0)