Skip to content

Commit

Permalink
feat: deploy demo swap contract to arb-sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
adamegyed committed Feb 18, 2025
1 parent 5e09e3b commit ed2b122
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 1 deletion.
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

0 comments on commit ed2b122

Please sign in to comment.