Skip to content

Commit

Permalink
deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Dec 18, 2024
1 parent 72eb2ff commit a6520b3
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 74 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# API KEY (REQUIRED FOR CONTRACT VERIFICATION)
ETHERSCAN_API_KEY=CHANGE_ME
ETHERSCAN_API_KEY=<your-api-key>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ storage/

# Dotenv file
.env
.preset.sh

# appleeeee
.DS_Store
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ forge update

### Setup

To be able to use our contracts, we need an [Ethereum Wallet](#create-wallet), and an [RPC endpoint](#prepare-rpc-endpoint).
To be able to deploy & use our contracts, we need two things:

- [Ethereum Wallet](#create-wallet)
- [RPC endpoint](#prepare-rpc-endpoint)

### Create Wallet

Expand Down Expand Up @@ -134,18 +137,23 @@ forge clean && forge script ./script/Deploy.s.sol:Deploy<CONTRACT_NAME> \
You can verify an existing contract with:

```sh
forge verify-contract <CONTRACT_ADDRESS> src/<CONTRACT_NAME>.sol:<CONTRACT_NAME> \
forge verify-contract <CONTRACT_ADDRESS> ./src/<CONTRACT_NAME>.sol:<CONTRACT_NAME> \
--verifier blockscout \
--verifier-url <VERIFIER_URL>
```

Note that the `--verifier-url` value should be the target explorer's homepage URL. Foundry will read your `ETHERSCAN_API_KEY` from environment already, so this does not have to be within your URL.
Note that the `--verifier-url` value should be the target explorer's homepage URL. Some example URLs are:

- `https://base.blockscout.com/api/` for Base (Mainnet)
- `https://base-sepolia.blockscout.com/api/` for Base Sepolia (Testnet)

`https://base-sepolia.blockscout.com/api/` for `Base Sepolia Network`
> [!NOTE]
>
> URL should not contain the API key! Foundry will read your `ETHERSCAN_API_KEY` from environment.
> [!NOTE]
>
> The `--verifier` can accept any of the following: `etherscan`, `blockscout`, `sourcify`; but we are using Blockscout most of the time.
> The `--verifier` can accept any of the following: `etherscan`, `blockscout`, `sourcify`, `oklink`. We are using Blockscout most of the time.
## Testing & Diagnostics

Expand Down Expand Up @@ -205,7 +213,7 @@ We have auto-generated MDBook documentations under the [`docs`](./docs) folder,
```sh
forge doc

# servers the book as well
# serves the book as well
forge doc --serve
```

Expand Down
126 changes: 63 additions & 63 deletions broadcast/Deploy.s.sol/84532/run-latest.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions deployment/84532.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"implAddr": "0x92d4407bbeb368f173ed02e1a4f4d62b0685c80a"
},
"LLMOracleCoordinator": {
"proxyAddr": "0xe0d187376ccd0ca9ca2d5bd1517e92585bbd2033",
"implAddr": "0x94feef756aa9f0a036b4bc566518b58390af7fc0"
"proxyAddr": "0x5fb1d1bde4b0d0a7b03aa3b23eb1ee0da1030253",
"implAddr": "0xff133f5b43571ccbc8bf88bb392160d132d0d374"
}
}
}

0 comments on commit a6520b3

Please sign in to comment.