Skip to content

Commit

Permalink
🔧 add Base env vars (#26)
Browse files Browse the repository at this point in the history
* 🔧 add Base env vars

* snapshot
  • Loading branch information
Sabnock01 authored Nov 6, 2023
1 parent 2262455 commit ab09821
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 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=""
4 changes: 2 additions & 2 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AuthorshipTokenTest:test_curtaMint() (gas: 85648)
AuthorshipTokenTest:test_curtaMint_SenderIsNotCurta_RevertsUnauthorized(address) (runs: 256, μ: 10204, ~: 10204)
AuthorshipTokenTest:test_ownerMint_FuzzMintTimestamps_IssuesTokensCorrectly(uint256) (runs: 256, μ: 6416430, ~: 6008044)
AuthorshipTokenTest:test_ownerMint_FuzzMintTimestamps_IssuesTokensCorrectly(uint256) (runs: 256, μ: 6569437, ~: 6066166)
AuthorshipTokenTest:test_ownerMint_SenderIsNotOwner_RevertUnauthorized(address) (runs: 256, μ: 12935, ~: 12935)
AuthorshipTokenTest:test_ownerMint_SenderIsOwner_AllowsMint() (gas: 108202)
AuthorshipTokenTest:test_tokenURI_MintedToken_Succeeds() (gas: 232)
Expand Down Expand Up @@ -74,4 +74,4 @@ DeployMainnetTest:test_authorshipTokenIssueLengthEquality() (gas: 11460)
DeployMainnetTest:test_authorshipTokenMinting() (gas: 91601)
DeployMainnetTest:test_authorshipTokenOwnerEquality() (gas: 13799)
DeployMainnetTest:test_curtaOwnerEquality() (gas: 13832)
OptimizationsTest:testFuzzComputePhaseFromTimestampBranchlessOptimization(uint40,uint40) (runs: 256, μ: 3545, ~: 3531)
OptimizationsTest:testFuzzComputePhaseFromTimestampBranchlessOptimization(uint40,uint40) (runs: 256, μ: 3543, ~: 3531)
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 ab09821

Please sign in to comment.