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

Ink testnet and Worldchain mainnet support #737

Merged
merged 1 commit into from
Nov 12, 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
1 change: 1 addition & 0 deletions core/base/src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const chainIdAndChainEntries = [
[ 43, "Snaxchain" ],
[ 44, "Unichain" ],
[ 45, "Worldchain" ],
[ 46, "Ink" ],
[ 3104, "Wormchain" ],
[ 4000, "Cosmoshub" ],
[ 4001, "Evmos" ],
Expand Down
2 changes: 2 additions & 0 deletions core/base/src/constants/contracts/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const coreBridgeContracts = [[
["Scroll", "0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],
["Mantle", "0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],
["Snaxchain", "0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4"],
["Worldchain","0xcbcEe4e081464A15d8Ad5f58BB493954421eB506"],
]], [
"Testnet", [
["Solana", "3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"],
Expand Down Expand Up @@ -87,6 +88,7 @@ export const coreBridgeContracts = [[
["Snaxchain", "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],
["Unichain", "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],
["Worldchain", "0xe5E02cD12B6FcA153b0d7fF4bF55730AE7B3C93A"],
["Ink", "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],
["Xlayer", "0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],
["Linea", "0x79A1027a6A159502049F10906D333EC57E95F083"],
["MonadDevnet", "0x376428e7f26D5867e69201b275553C45B09EE090"],
Expand Down
2 changes: 2 additions & 0 deletions core/base/src/constants/contracts/tokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const tokenBridgeContracts = [[
["Scroll", "0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],
["Mantle", "0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],
["Snaxchain", "0x8B94bfE456B48a6025b92E11Be393BAa86e68410"],
["Worldchain","0xc309275443519adca74c9136b02A38eF96E3a1f6"],
]], [
"Testnet", [
["Solana", "DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe"],
Expand Down Expand Up @@ -79,6 +80,7 @@ export const tokenBridgeContracts = [[
["Snaxchain", "0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],
["Unichain", "0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],
["Worldchain", "0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],
["Ink", "0x376428e7f26D5867e69201b275553C45B09EE090"],
["Linea", "0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],
]], [
"Devnet", [
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/finality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const finalityThresholds = [
["Snaxchain", 512],
["Unichain", 512],
["Worldchain",512],
["Ink", 512],
["Cosmoshub", 0],
["Evmos", 0],
["Kujira", 0],
Expand Down
2 changes: 2 additions & 0 deletions core/base/src/constants/nativeChainIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const chainNetworkNativeChainIdEntries = [
["Blast", 81457n],
["Linea", 59144n],
["Snaxchain", 2192n],
["Worldchain",480n],
],
],
[
Expand Down Expand Up @@ -108,6 +109,7 @@ const chainNetworkNativeChainIdEntries = [
["Snaxchain", 13001n],
["Unichain", 1301n],
["Worldchain", 4801n],
["Ink", 763373n],
["Xlayer", 195n],
["Linea", 59141n], // Sepolia
["MonadDevnet", 41454n],
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const platformAndChainsEntries = [[
"Snaxchain",
"Unichain",
"Worldchain",
"Ink",
"MonadDevnet",
]], [
"Solana", [
Expand Down
2 changes: 2 additions & 0 deletions core/base/src/constants/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const rpcConfig = [[
["Mantle", "https://rpc.mantle.xyz"],
["Klaytn", "https://rpc.ankr.com/klaytn"],
["Snaxchain", "https://mainnet.snaxchain.io"],
["Worldchain","https://worldchain-mainnet.g.alchemy.com/public"],
]], [
"Testnet", [
["Ethereum", "https://eth-goerli.public.blastapi.io"],
Expand Down Expand Up @@ -91,6 +92,7 @@ const rpcConfig = [[
["Snaxchain", "https://testnet.snaxchain.io"],
["Unichain", "https://sepolia.unichain.org"],
["Worldchain", "https://worldchain-sepolia.g.alchemy.com/public"],
["Ink", "https://rpc-qnd-sepolia.inkonchain.com"],
bruce-riley marked this conversation as resolved.
Show resolved Hide resolved
["MonadDevnet", ""], // TODO: No public rpc is currently available, override with a custom rpc for now.
]], [
"Devnet", [
Expand Down
5 changes: 5 additions & 0 deletions core/icons/src/constants/chainIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ export function chainToIcon(chain: Chain): string {
PREFIX +
"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4gIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiMwMDAiIHJ4PSIyNTYiIC8+ICA8ZyBjbGlwLXBhdGg9InVybCgjd29ybGQtY2hhaW4tYSkiPiAgICA8bWFzayAgICAgIGlkP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zNS4zMTQgMjIzLjkyOSAxNDAuMTE5IDIyMy45MjlDMTQ5LjY2NyAyMjMuOTI5IDE1Ny4xMjUgMjMwLjk0MiAxNTcuMTI1IDI0MC40MDdaIiBmaWxsPSIjNzEzMkY1Ii8+PC9zdmc+"
);
} else if (chain === "Wormchain") {
return (
PREFIX +
Expand Down
3 changes: 3 additions & 0 deletions core/icons/src/images/chains/Ink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading