Skip to content

Commit

Permalink
Configure and deploy to Base network
Browse files Browse the repository at this point in the history
  • Loading branch information
apbendi committed Feb 19, 2024
1 parent b1816ba commit a21dd9a
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts-core/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
INFURA_ID=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
MNEMONIC=here is where your twelve words mnemonic should be put my friend
DEPLOY_GSN=false
ETHERSCAN_VERIFICATION_API_KEY="YOUR_API_KEY"
ETHERSCAN_VERIFICATION_API_KEY="YOUR_API_KEY"
BASE_RPC_URL=
10 changes: 10 additions & 0 deletions contracts-core/deploy-history/base-2024-02-19T03:08:12.608Z.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"deployer": "0x5777Aa6F437399Af6cef2Fce0BE8D4B4eD7C7232",
"contracts": {
"Umbra": "0xFb2dc580Eed955B528407b4d36FfaFe3da685401",
"StealthKeyRegistry": "0x31fe56609C65Cd0C510E7125f051D440424D38f3"
},
"actions": {
"DeployingContractsToNetwork": "base"
}
}
10 changes: 10 additions & 0 deletions contracts-core/deploy-history/base-latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"deployer": "0x5777Aa6F437399Af6cef2Fce0BE8D4B4eD7C7232",
"contracts": {
"Umbra": "0xFb2dc580Eed955B528407b4d36FfaFe3da685401",
"StealthKeyRegistry": "0x31fe56609C65Cd0C510E7125f051D440424D38f3"
},
"actions": {
"DeployingContractsToNetwork": "base"
}
}
21 changes: 21 additions & 0 deletions contracts-core/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const chainIds = {
optimism: 10,
sepolia: 11155111,
gnosis_chain: 100,
base: 8453,
};

// Ensure that we have all the environment variables we need.
Expand Down Expand Up @@ -149,6 +150,16 @@ const config: HardhatUserConfig = {
chainId: chainIds['gnosis_chain'],
url: 'https://rpc.ankr.com/gnosis',
},
base: {
accounts: {
count: 10,
initialIndex: 0,
mnemonic,
path: "m/44'/60'/0'/0",
},
chainId: chainIds['base'],
url: process.env.BASE_RPC_URL,
},
},
paths: {
artifacts: './artifacts',
Expand Down Expand Up @@ -200,6 +211,16 @@ const config: HardhatUserConfig = {
},
etherscan: {
apiKey: etherscanApiKey,
customChains: [
{
network: 'base',
chainId: chainIds['base'],
urls: {
apiURL: 'https://api.basescan.org/api',
browserURL: 'https://basescan.org/',
},
},
],
},
};

Expand Down
7 changes: 7 additions & 0 deletions contracts-core/scripts/deployParams.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,12 @@
"tollCollector": "0x12aE679061C58e9f7660A2f7e6f06573014d2615",
"tollReceiver": "0xb4435399AB53D6136C9AEEBb77a0120620b117F9",
"expectedRegistryNonce": 5
},
"base": {
"expectedDeployer": "0x5777Aa6F437399Af6cef2Fce0BE8D4B4eD7C7232",
"toll": "30000000000000",
"tollCollector": "0x12aE679061C58e9f7660A2f7e6f06573014d2615",
"tollReceiver": "0xb4435399AB53D6136C9AEEBb77a0120620b117F9",
"expectedRegistryNonce": 5
}
}

0 comments on commit a21dd9a

Please sign in to comment.