Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
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
4 changes: 2 additions & 2 deletions src/constants/aurora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const siloToSiloAddress = {
tuxappchain: "0xA50fFd8a0953B3965E70C4F7F880B00BcdB9A313",
vertex: "0xA50fFd8a0953B3965E70C4F7F880B00BcdB9A313",
optima: "0xA50fFd8a0953B3965E70C4F7F880B00BcdB9A313",
coineasy: "0xA50fFd8a0953B3965E70C4F7F880B00BcdB9A313",
easychain: "0xA50fFd8a0953B3965E70C4F7F880B00BcdB9A313",
} as const

/**
Expand All @@ -22,5 +22,5 @@ export const auroraEngineContractId = {
tuxappchain: "0x4e454165.c.aurora",
vertex: "0x4e454173.c.aurora",
optima: "0x4e454161.c.aurora",
coineasy: "0x4e454218.c.aurora",
easychain: "0x4e454218.c.aurora",
} as Record<SupportedChainName, string>
10 changes: 5 additions & 5 deletions src/constants/blockchains.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BlockchainEnum } from "@defuse-protocol/internal-utils"

Check failure on line 1 in src/constants/blockchains.tsx

View workflow job for this annotation

GitHub Actions / test / test

Module '"@defuse-protocol/internal-utils"' declares 'BlockchainEnum' locally, but it is not exported.
import type { ReactNode } from "react"
import { NetworkIcon } from "../components/Network/NetworkIcon"

Expand Down Expand Up @@ -222,15 +222,15 @@
value: BlockchainEnum.OPTIMA,
tags: ["vol:105"],
},
[BlockchainEnum.COINEASY]: {
label: "CoinEasy",
[BlockchainEnum.EASYCHAIN]: {
label: "EasyChain",
icon: (
<NetworkIcon
chainIcon="/static/icons/network/coineasy.svg"
chainName="coineasy"
chainIcon="/static/icons/network/easychain.svg"
chainName="easychain"
/>
),
value: BlockchainEnum.COINEASY,
value: BlockchainEnum.EASYCHAIN,
tags: ["vol:106"],
},
[BlockchainEnum.POLYGON]: {
Expand Down
2 changes: 1 addition & 1 deletion src/constants/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CHAIN_IDS: Record<SupportedChainName, number | undefined> = {
tuxappchain: 1313161573,
vertex: 1313161587,
optima: 1313161569,
coineasy: 1313161752,
easychain: 1313161752,
aurora: 1313161554,
xrpledger: undefined,
zcash: undefined,
Expand Down
2 changes: 1 addition & 1 deletion src/constants/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const settings: Settings = {
tuxappchain: "https://rpc-0x4e454165.aurora-cloud.dev",
vertex: "https://rpc-0x4e454173.aurora-cloud.dev",
optima: "https://rpc-0x4e454161.aurora-cloud.dev",
coineasy: "https://0x4e454218.rpc.aurora-cloud.dev",
easychain: "https://0x4e454218.rpc.aurora-cloud.dev",
aurora: "https://mainnet.aurora.dev",
xrpledger: "https://xrplcluster.com",
zcash: "https://mainnet.lightwalletd.com",
Expand Down
2 changes: 1 addition & 1 deletion src/features/machines/depositEstimationActor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const depositEstimateMaxValueActor = fromPromise(
case BlockchainEnum.TUXAPPCHAIN:
case BlockchainEnum.VERTEX:
case BlockchainEnum.OPTIMA:
case BlockchainEnum.COINEASY:
case BlockchainEnum.EASYCHAIN:
case BlockchainEnum.AURORA:
case BlockchainEnum.GNOSIS:
case BlockchainEnum.BERACHAIN:
Expand Down
2 changes: 1 addition & 1 deletion src/features/machines/depositGenerateAddressMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const depositGenerateAddressMachine = setup({
event.params.blockchain === "tuxappchain" ||
event.params.blockchain === "vertex" ||
event.params.blockchain === "optima" ||
event.params.blockchain === "coineasy" ||
event.params.blockchain === "easychain" ||
event.params.blockchain === "aurora"
) {
return false
Expand Down
2 changes: 1 addition & 1 deletion src/features/machines/depositTokenBalanceMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const backgroundBalanceActor = fromPromise(
case BlockchainEnum.TUXAPPCHAIN:
case BlockchainEnum.VERTEX:
case BlockchainEnum.OPTIMA:
case BlockchainEnum.COINEASY:
case BlockchainEnum.EASYCHAIN:
case BlockchainEnum.AURORA:
case BlockchainEnum.GNOSIS:
case BlockchainEnum.BERACHAIN:
Expand Down
2 changes: 1 addition & 1 deletion src/features/machines/depositUIMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const depositUIMachine = setup({
},
isVirtualChainSelected: ({ context }) => {
const blockchain = context.depositFormRef.getSnapshot().context.blockchain
return ["tuxappchain", "vertex", "optima", "coineasy"].includes(
return ["tuxappchain", "vertex", "optima", "easychain"].includes(
blockchain ?? ""
)
},
Expand Down
2 changes: 1 addition & 1 deletion src/features/withdraw/components/WithdrawForm/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function chainTypeSatisfiesChainName(
case chainType === AuthMethod.EVM && chainName === "tuxappchain":
case chainType === AuthMethod.EVM && chainName === "vertex":
case chainType === AuthMethod.EVM && chainName === "optima":
case chainType === AuthMethod.EVM && chainName === "coineasy":
case chainType === AuthMethod.EVM && chainName === "easychain":
case chainType === AuthMethod.EVM && chainName === "aurora":
case chainType === AuthMethod.EVM && chainName === "gnosis":
case chainType === AuthMethod.EVM && chainName === "berachain":
Expand Down
16 changes: 8 additions & 8 deletions src/services/depositService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export function createDepositFromSiloTransaction(
getEVMChainId("tuxappchain"),
getEVMChainId("vertex"),
getEVMChainId("optima"),
getEVMChainId("coineasy"),
getEVMChainId("easychain"),
]

if (virtualChainIds.includes(chainId)) {
Expand Down Expand Up @@ -825,7 +825,7 @@ export function getAvailableDepositRoutes(
case BlockchainEnum.TUXAPPCHAIN:
case BlockchainEnum.VERTEX:
case BlockchainEnum.OPTIMA:
case BlockchainEnum.COINEASY:
case BlockchainEnum.EASYCHAIN:
case BlockchainEnum.AURORA:
case BlockchainEnum.HYPERLIQUID:
return {
Expand Down Expand Up @@ -875,7 +875,7 @@ export function getAvailableDepositRoutes(
case BlockchainEnum.TUXAPPCHAIN:
case BlockchainEnum.VERTEX:
case BlockchainEnum.OPTIMA:
case BlockchainEnum.COINEASY:
case BlockchainEnum.EASYCHAIN:
case BlockchainEnum.AURORA:
return {
activeDeposit: true,
Expand Down Expand Up @@ -931,7 +931,7 @@ export function getAvailableDepositRoutes(
case BlockchainEnum.TUXAPPCHAIN:
case BlockchainEnum.VERTEX:
case BlockchainEnum.OPTIMA:
case BlockchainEnum.COINEASY:
case BlockchainEnum.EASYCHAIN:
case BlockchainEnum.AURORA:
case BlockchainEnum.HYPERLIQUID:
return {
Expand Down Expand Up @@ -975,7 +975,7 @@ export function getAvailableDepositRoutes(
case BlockchainEnum.TUXAPPCHAIN:
case BlockchainEnum.VERTEX:
case BlockchainEnum.OPTIMA:
case BlockchainEnum.COINEASY:
case BlockchainEnum.EASYCHAIN:
case BlockchainEnum.AURORA:
case BlockchainEnum.HYPERLIQUID:
return {
Expand Down Expand Up @@ -1025,7 +1025,7 @@ export function getAvailableDepositRoutes(
case BlockchainEnum.TUXAPPCHAIN:
case BlockchainEnum.VERTEX:
case BlockchainEnum.OPTIMA:
case BlockchainEnum.COINEASY:
case BlockchainEnum.EASYCHAIN:
case BlockchainEnum.AURORA:
case BlockchainEnum.HYPERLIQUID:
return {
Expand Down Expand Up @@ -1079,8 +1079,8 @@ export function getWalletRpcUrl(network: BlockchainEnum): string {
return settings.rpcUrls.vertex
case BlockchainEnum.OPTIMA:
return settings.rpcUrls.optima
case BlockchainEnum.COINEASY:
return settings.rpcUrls.coineasy
case BlockchainEnum.EASYCHAIN:
return settings.rpcUrls.easychain
case BlockchainEnum.POLYGON:
return settings.rpcUrls.polygon
case BlockchainEnum.BSC:
Expand Down
2 changes: 1 addition & 1 deletion src/types/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type SupportedChainName =
| "tuxappchain"
| "vertex"
| "optima"
| "coineasy"
| "easychain"
| "aurora"
| "xrpledger"
| "zcash"
Expand Down
4 changes: 2 additions & 2 deletions src/utils/adapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const assetNetworkAdapter: Record<SupportedChainName, BlockchainEnum> = {
tuxappchain: BlockchainEnum.TUXAPPCHAIN,
vertex: BlockchainEnum.VERTEX,
optima: BlockchainEnum.OPTIMA,
coineasy: BlockchainEnum.COINEASY,
easychain: BlockchainEnum.EASYCHAIN,
polygon: BlockchainEnum.POLYGON,
bsc: BlockchainEnum.BSC,
hyperliquid: BlockchainEnum.HYPERLIQUID,
Expand Down Expand Up @@ -52,7 +52,7 @@ export const reverseAssetNetworkAdapter: Record<
[BlockchainEnum.TUXAPPCHAIN]: "tuxappchain",
[BlockchainEnum.VERTEX]: "vertex",
[BlockchainEnum.OPTIMA]: "optima",
[BlockchainEnum.COINEASY]: "coineasy",
[BlockchainEnum.EASYCHAIN]: "easychain",
[BlockchainEnum.POLYGON]: "polygon",
[BlockchainEnum.BSC]: "bsc",
[BlockchainEnum.HYPERLIQUID]: "hyperliquid",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function isAuroraVirtualChain(network: SupportedChainName): boolean {
"tuxappchain",
"vertex",
"optima",
"coineasy",
"easychain",
]
return virtualChains.includes(network)
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/caip2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const CAIP2_NETWORK: Record<SupportedChainName, string> = {
tuxappchain: "eip155:1313161573",
vertex: "eip155:1313161587",
optima: "eip155:1313161569",
coineasy: "eip155:1313161752",
easychain: "eip155:1313161752",
hyperliquid: "hyperliquid:mainnet", // todo: This is not reviewed and most likely incorrect
optimism: "eip155:10",
avalanche: "eip155:43114",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/chainTxExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function chainTxExplorer(blockchain: SupportedChainName): string | null {
return "https://explorer.0x4e454173.aurora-cloud.dev/tx/"
case "optima":
return "https://explorer.optima.aurora.dev/tx/"
case "coineasy":
case "easychain":
return "https://0x4e454218.explorer.aurora-cloud.dev/tx/"
case "polygon":
return "https://polygonscan.com/tx/"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/validateAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function validateAddress(
case "tuxappchain":
case "vertex":
case "optima":
case "coineasy":
case "easychain":
case "aurora":
case "gnosis":
case "berachain":
Expand Down
Loading