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

Recover test faucet on README.md #158

Merged
merged 1 commit into from
Jan 28, 2025
Merged
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
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,31 @@ Tests are run using the [Forge](https://github.com/foundry-rs/foundry/tree/maste
```bash
forge test
```

## Test Token Faucets

Use these faucets to receive test tokens on Arbitrum Sepolia and Optimism Sepolia testnets. Each request will send you 1000 units of the requested tokens (adjusted for token decimals). These can be used on the demo projects deployed when adding a new chain.

### Faucet Addresses
- Arbitrum Sepolia: [0x406c77947d91f965f09b458c07a66a033c3efea4](https://sepolia.arbiscan.io/address/0x406c77947d91f965f09b458c07a66a033c3efea4)
- Optimism Sepolia: [0xbebfcb5a41836490c6449ce755c8dc361c175aa3](https://sepolia-optimism.etherscan.io/address/0xbebfcb5a41836490c6449ce755c8dc361c175aa3)

### How to Use

You can request tokens using Foundry's `cast` command. Here's an example using Arbitrum Sepolia:

```bash
cast send 0x406c77947d91f965f09b458c07a66a033c3efea4 "getTokens(address,address[])" YOUR_ADDRESS "[TOKEN_ADDRESS]" --rpc-url https://sepolia-rollup.arbitrum.io/rpc --private-key $YOUR_PRIVATE_KEY
```

#### Example
To get test USDC on Arbitrum Sepolia:
```bash
cast send 0x406c77947d91f965f09b458c07a66a033c3efea4 "getTokens(address,address[])" YOUR_ADDRESS "[0x8537307810fC40F4073A12a38554D4Ff78EfFf41]" --rpc-url https://sepolia-rollup.arbitrum.io/rpc --private-key $YOUR_PRIVATE_KEY
```

Replace:
- `YOUR_ADDRESS` with your wallet address
- `$YOUR_PRIVATE_KEY` with your private key environment variable

For Optimism Sepolia, use the Optimism faucet address and RPC URL: `https://sepolia.optimism.io`