Skip to content

Commit

Permalink
Add instructions for deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
enriquefynn committed Jan 30, 2024
1 parent f975515 commit 0fdb3d1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PRIVATE_KEY=
ETHERSCAN_API_KEY=
DEFAULT_FEE=2800
GOERLI_RPC_URL=https://ethereum-goerli.publicnode.com
GOERLI_RPC_URL=https://ethereum-goerli.publicnode.com
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ the ownership on the transfer must confirm it with a transaction.
- **defaultFeeNumerator**: Set upon deployment and modifiable by the contract owner.
- **Eth Withdrawal**: Only the owner can withdraw Eth from the contract.

## Deploying

Copy and populate `.env.dist` to `.env` in the root directory
To deploy to Goerli, run:

```
forge script ./script/FeeRewardsManager.s.sol --verify --broadcast --rpc-url goerli --private-key ${PRIVATE_KEY}
```

Switch to `--rpc-url mainnet` making sure the `mainnet` RPC endpoint exists in the `foundry.toml` file.
If deploying with a ledger, instead of `--private-key ${PRIVATE_KEY}`, use `--ledger`.

## Walkthrough a normal execution

Deploy `FeeRewardsManager` as `manager`, then we call
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ libs = ["lib"]
goerli = "${GOERLI_RPC_URL}"

[etherscan]
sepolia = { key = "${ETHERSCAN_API_KEY}" }
sepolia = { key = "${ETHERSCAN_API_KEY}" }

0 comments on commit 0fdb3d1

Please sign in to comment.