Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deploy demo swap contract to arb-sepolia #1370

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion examples/ui-demo/contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,20 @@ $ anvil
### Deploy

```shell
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
$ FOUNDRY_PROFILE=optimized-build forge script script/DeploySwapVenue.s.sol -vv --verify --rpc-url <your_rpc_url> <wallet_option>
```

Make sure to have a verifier API key at the env var `ETHERSCAN_API_KEY` before using.

Otherwise, verify manually with:

```shell

FOUNDRY_PROFILE=optimized-build forge verify-contract 0xB0AEC4c25E8332256A91bBaf169E3C32dfC3C33C Swap --rpc-url <your_rpc_url> --watch

FOUNDRY_PROFILE=optimized-build forge verify-contract 0xCFf7C6dA719408113DFcb5e36182c6d5aa491443 ERC20Mintable --rpc-url <your_rpc_url> --watch --constructor-args $(cast abi-encode "constructor(string,string)" "DemoUSDC" "USDC")

FOUNDRY_PROFILE=optimized-build forge verify-contract 0x0766798566D1f6e2f0b126f7783aaB2CBb81c66f ERC20Mintable --rpc-url <your_rpc_url> --watch --constructor-args $(cast abi-encode "constructor(string,string)" "DemoWETH" "WETH")
```

### Cast
Expand Down
Loading