Skip to content
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: 1 addition & 1 deletion cli-typescript/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const explorerUrls: { [chainId in SUPPORTED_CHAINS]: string } = {
[SUPPORTED_CHAINS.BERACHAIN]: 'https://berascan.com', // Berachain
[SUPPORTED_CHAINS.MONAD]: 'https://monadvision.com', // Monad
[SUPPORTED_CHAINS.AVALANCHE]: 'https://snowtrace.io', // Avalanche
[SUPPORTED_CHAINS.MEGAETH]: 'https://TBD', // MegaETH
[SUPPORTED_CHAINS.MEGAETH]: 'https://megaeth.blockscout.com', // MegaETH
};

export const DEFAULT_TOKEN_URI_SUFFIX = '.json';
Expand Down
5 changes: 4 additions & 1 deletion cli-typescript/src/utils/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export const megaeth = defineChain({
},
},
blockExplorers: {
default: { name: 'MegaETH Explorer', url: 'https://TBD' },
default: {
name: 'MegaETH Explorer',
url: 'https://megaeth.blockscout.com',
},
},
});

Expand Down
7 changes: 5 additions & 2 deletions cli/cmds/const
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ SUPPORTED_CHAINS=(
"80094:Berachain"
"10143:MonadTestnet"
"143:Monad"
"4326:MegaETH"
)

MAGIC_DROP_KEYSTORE="MAGIC_DROP_KEYSTORE"
Expand Down Expand Up @@ -43,7 +44,7 @@ get_factory_address() {
echo "0x4a08d3F6881c4843232EFdE05baCfb5eAaB35d19"
elif [ "$chain_id" == "43114" ]; then
echo "0x0b49bDcf2eC9329Fa6F42DCCC66e8906a3E4ACF0"
elif [ "$chain_id" == "143" ]; then
elif [ "$chain_id" == "143" ] || [ "$chain_id" == "4326" ]; then
echo "0x00000000bEa935F8315156894Aa4a45D3c7a0075"
else # default
echo "0x000000009e44eBa131196847C685F20Cd4b68aC4"
Expand All @@ -56,7 +57,7 @@ get_registry_address() {
echo "0x9b60ad31F145ec7EE3c559153bB57928B65C0F87"
elif [ "$chain_id" == "43114" ]; then
echo "0x09E0135dfBb7528D6eAA5beB69f3C030dF26F57c"
elif [ "$chain_id" == "143" ]; then
elif [ "$chain_id" == "143" ] || [ "$chain_id" == "4326" ]; then
echo "0x000000000e447e71b2EC36CD62048Dd2a1Cd0a57"
else # default
echo "0x00000000caF1E3978e291c5Fb53FeedB957eC146"
Expand All @@ -80,6 +81,8 @@ get_impl_id() {
echo "6" # avalanche
elif [ "$chain_id" == "143" ]; then
echo "2" # monad
elif [ "$chain_id" == "4326" ]; then
echo "2" # megaeth
else
echo "8" # all other chains
fi
Expand Down
3 changes: 3 additions & 0 deletions cli/cmds/getters
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ get_transfer_validator_address() {
"143")
echo "$LIMITBREAK_TRANSFER_VALIDATOR_V5"
;;
"4326")
echo "$LIMITBREAK_TRANSFER_VALIDATOR_V5"
;;
*)
echo "$LIMITBREAK_TRANSFER_VALIDATOR_V3"
;;
Expand Down
2 changes: 1 addition & 1 deletion cli/cmds/utils
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ chain_id_to_explorer_url() {
10143) echo "https://testnet.monadexplorer.com" ;;
43114) echo "https://snowtrace.io" ;;
143) echo "https://monadvision.com" ;;
4326) echo "https://TBD" ;;
4326) echo "https://megaeth.blockscout.com" ;;
*) echo "Unknown" ;;
esac
}
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ berachain = {key = "${VERIFICATION_API_KEY_BERACHAIN}", chain = 80094, url = "ht
abstract = {key = "${VERIFICATION_API_KEY_ABSTRACT}", chain = 2741, url = "https://api.abscan.org/api"}
avalanche = {key = "${VERIFICATION_API_KEY_AVALANCHE}", chain = 43114, url = "https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan"}
monad = {key = "${VERIFICATION_API_KEY_MONAD}", chain = 143, url = "https://sourcify-api-monad.blockvision.org"}
megaeth = {key = "${VERIFICATION_API_KEY_MEGAETH}", chain = 4326, url = "https://TBD"}
megaeth = {key = "${VERIFICATION_API_KEY_MEGAETH}", chain = 4326, url = "https://megaeth.blockscout.com/api"}