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

Add BSC support on MagicDrop CLI #162

Merged
merged 5 commits into from
Dec 18, 2024
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ The composability of the stages is generic enough to enable flexible and complic
| ERC1155MInitializableV1_0_0 | 0x000000009B3dC659D26BD2f3D38136E2b270C28d | 0x8b72ee316ce281e983b3694fc794164ce2eac8c3b8d7751c42edfc89310c6665

### Supported Chains
- Ethereum
- Polygon
- Base
- Sei
- Arbitrum
- Apechain
- BSC

## Using Foundry

Expand Down
11 changes: 7 additions & 4 deletions cli/cmds/utils
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ format_address() {

set_rpc_url() {
case $1 in
1) RPC_URL="https://cloudflare-eth.com" ;; # Ethereum
wolfy-nft marked this conversation as resolved.
Show resolved Hide resolved
1) RPC_URL="https://eth.llamarpc.com" ;; # Ethereum
56) RPC_URL="https://bsc-dataseed.binance.org" ;; # BSC
137) RPC_URL="https://polygon-rpc.com" ;; # Polygon
8453) RPC_URL="https://mainnet.base.org" ;; # Base
42161) RPC_URL="https://arb1.arbitrum.io/rpc" ;; # Arbitrum
Expand Down Expand Up @@ -141,6 +142,7 @@ chain_id_to_symbol() {
42161) echo "ARB" ;;
1329) echo "SEI" ;;
33139) echo "APE" ;;
56) echo "BNB" ;;
11155111) echo "SEP" ;;
*) echo "Unknown" ;;
esac
Expand All @@ -150,11 +152,12 @@ chain_id_to_explorer_url() {
local chain_id="$1"
case $chain_id in
1) echo "https://etherscan.io" ;;
56) echo "https://bscscan.com" ;;
137) echo "https://polygonscan.com" ;;
8453) echo "https://explorer.base.org" ;;
8453) echo "https://basescan.org" ;;
42161) echo "https://arbiscan.io" ;;
1329) echo "https://sei.explorer.sepolia.io" ;;
33139) echo "https://explorer.caldera.xyz" ;;
1329) echo "https://seitrace.com" ;;
33139) echo "https://apescan.io" ;;
11155111) echo "https://sepolia.etherscan.io" ;;
*) echo "Unknown" ;;
esac
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const config: HardhatUserConfig = {
},
},
apechain: {
url: 'https://apechain.calderachain.xyz/http',
url: 'https://rpc.apechain.com/http',
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
Expand Down
1 change: 0 additions & 1 deletion scripts-foundry/common/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ VERIFICATION_API_KEY_AVALANCHE=


# Deployment Configuration
DEPLOYER=
PRIVATE_KEY=
2 changes: 1 addition & 1 deletion scripts-foundry/common/utils
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set_rpc_url() {
case $1 in
1) RPC_URL="https://cloudflare-eth.com" ;; # Ethereum
1) RPC_URL="https://eth.llamarpc.com" ;; # Ethereum
137) RPC_URL="https://polygon-rpc.com" ;; # Polygon
8453) RPC_URL="https://mainnet.base.org" ;; # Base
42161) RPC_URL="https://arb1.arbitrum.io/rpc" ;; # Arbitrum
Expand Down
Loading