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

Unichain testnet support #713

Merged
merged 1 commit into from
Oct 10, 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 @@ -48,6 +48,7 @@ const chainIdAndChainEntries = [
[ 39, "Berachain" ],
[ 40, "Seievm" ],
[ 43, "Snaxchain" ],
[ 44, "Unichain" ],
[ 3104, "Wormchain" ],
[ 4000, "Cosmoshub" ],
[ 4001, "Evmos" ],
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/contracts/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const coreBridgeContracts = [[
["Blast", "0x473e002D7add6fB67a4964F13bFd61280Ca46886"],
["Berachain", "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],
["Snaxchain", "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],
["Unichain", "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],
["Xlayer", "0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],
["Linea", "0x79A1027a6A159502049F10906D333EC57E95F083"],
]], [
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/contracts/tokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const tokenBridgeContracts = [[
["Xlayer", "0xdA91a06299BBF302091B053c6B9EF86Eff0f930D"],
["Berachain", "0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],
["Snaxchain", "0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],
["Unichain", "0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],
["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 @@ -60,6 +60,7 @@ const finalityThresholds = [
["Injective", 0],
["Berachain", 0],
["Snaxchain", 0],
["Unichain", 0],
["Cosmoshub", 0],
["Evmos", 0],
["Kujira", 0],
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/nativeChainIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const chainNetworkNativeChainIdEntries = [
["Scroll", 534351n],
["Berachain", 80084n], // Testnet v2
["Snaxchain", 13001n],
["Unichain", 1301n],
["Xlayer", 195n],
["Linea", 59141n], // Sepolia
],
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 @@ -37,6 +37,7 @@ const platformAndChainsEntries = [[
"Berachain",
"Seievm",
"Snaxchain",
"Unichain",
]], [
"Solana", [
"Solana",
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 @@ -195,6 +195,11 @@ export function chainToIcon(chain: Chain): string {
PREFIX +
"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjQuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIJIHZpZXdCb3g9IjAgMCAxOTIgMTkyIiBzdHlsZT0i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MsMCwwLDAJQy0wLjEsMCwxLjUsMS45LDMuNCw0LjN6IE0zNC4xLDE0Ni41YzEuMS0xLjksMC41LTQuMy0xLjMtNS41Yy0xLjctMS4xLTQuMy0wLjYtNC4zLDAuOWMwLDAuNCwwLjIsMC44LDAuOCwxYzAuOSwwLjUsMSwxLDAuMywyLjEJYy0wLjcsMS4xLTAuNywyLjEsMC4yLDIuOEMzMS4yLDE0OC45LDMzLjEsMTQ4LjMsMzQuMSwxNDYuNXoiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNNzQuNiw5My45Yy0yLjQsMC43LTQuNywzLjMtNS40LDUuOWMtMC40LDEuNi0wLjIsNC41LDAuNSw1LjRjMS4xLDEuNCwyLjEsMS44LDQuOSwxLjgJYzUuNSwwLDEwLjItMi40LDEwLjctNS4zYzAuNS0yLjQtMS42LTUuNy00LjUtNy4yQzc5LjMsOTMuNyw3Ni4yLDkzLjQsNzQuNiw5My45eiBNODEsOTguOWMwLjgtMS4yLDAuNS0yLjUtMS0zLjQJYy0yLjctMS43LTYuOC0wLjMtNi44LDIuM2MwLDEuMywyLjEsMi43LDQuMSwyLjdDNzguNiwxMDAuNSw4MC40LDk5LjcsODEsOTguOXoiLz48L3N2Zz4="
);
} else if (chain === "Wormchain") {
return (
PREFIX +
Expand Down
48 changes: 48 additions & 0 deletions core/icons/src/images/chains/Unichain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading