Skip to content

Commit

Permalink
🔧 add Base env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabnock01 committed Nov 6, 2023
1 parent 2262455 commit 88bd837
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ AUTHORSHIP_TOKEN_PRIVATE_KEY="0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
CURTA_PRIVATE_KEY="0xcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"

# RPC endpoints
RPC_URL_CONSTELLATION=""
RPC_URL_GOERLI=""
RPC_URL_MAINNET=""
RPC_URL_BASE_GOERLI=""
RPC_URL_BASE_MAINNET=""

# API keys
ETHERSCAN_KEY=""
BASESCAN_KEY=""
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ Create a file named `.env` at the root of the project and copy the contents of `
<td>The account to deploy <code>Curta</code></td>
</tr>
<tr>
<td rowspan="3">RPC endpoints</td>
<td><code>RPC_URL_CONSTELLATION</code></td>
<td>An RPC endpoint for the Constellation chain</td>
</tr>
<tr>
<td rowspan="4">RPC endpoints</td>
<td><code>RPC_URL_GOERLI</code></td>
<td>An RPC endpoint for Goerli</td>
</tr>
Expand All @@ -139,10 +135,24 @@ Create a file named `.env` at the root of the project and copy the contents of `
<td>An RPC endpoint for mainnet</td>
</tr>
<tr>
<td rowspan="1">API keys</td>
<td><code>RPC_URL_BASE_GOERLI</code></td>
<td>An RPC endpoint for Base Goerli</td>
</tr>
<tr>
<td><code>RPC_URL_BASE_MAINNET</code></td>
<td>An RPC endpoint for Base mainnet</td>
</tr>
<tr>
<td rowspan="2">API keys</td>
<td><code>ETHERSCAN_KEY</code></td>
<td>An <a href="https://etherscan.io" target="_blank" rel="noreferrer noopener"><b>Etherscan</b></a> API key for verifying contracts</td>
</tr>
<tr>
<td><code>BASESCAN_KEY</code></td>
<td>A <a href="https://basescan.org" target="_blank"
rel="noreferrer noopener"><b>Basescan</b></a> API key for verifying
contracts</td>
</tr>
</tbody>
<table>

Expand Down
4 changes: 3 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ quote_style = "double"
number_underscore = "thousands"

[rpc_endpoints]
constellation = "${RPC_URL_CONSTELLATION}"
goerli = "${RPC_URL_GOERLI}"
mainnet = "${RPC_URL_MAINNET}"
base_goreli = "${RPC_URL_BASE_GOERLI"
base_mainnet = "${RPC_URL_BASE_MAINNET}"

[etherscan]
goerli = {key = "${ETHERSCAN_KEY}", url = "https://api-goerli.etherscan.io/api"}
mainnet = {key = "${ETHERSCAN_KEY}"}
base_mainnet = {key = "${BASESCAN_KEY}"}

0 comments on commit 88bd837

Please sign in to comment.