diff --git a/package.json b/package.json index 599f0f5..6023800 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ ] }, "dependencies": { - "@lifi/types": "17.67.0" + "@lifi/types": "17.68.0" }, "devDependencies": { "@commitlint/cli": "^19.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 72255e1..362c26a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@lifi/types': - specifier: 17.67.0 - version: 17.67.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) + specifier: 17.68.0 + version: 17.68.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@commitlint/cli': specifier: ^19.7.1 @@ -440,8 +440,8 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - '@lifi/types@17.67.0': - resolution: {integrity: sha512-3glVBBlB8xWkZ1TCimx7BQcEyR6jD3qoSinkupdI295KaiVeNhxqG/qX7q7q0glYHR7zV+1h6FgjIeuNYlYw6w==} + '@lifi/types@17.68.0': + resolution: {integrity: sha512-7q4zzKWQ+/iYf5m6lIVhjJ4DXoKDPUR05uYskCw8YT9EmBR82Gl6SOV04a0beUDO1mIc+zALvPO8Dnhl3qUXHw==} '@mysten/bcs@1.9.2': resolution: {integrity: sha512-kBk5xrxV9OWR7i+JhL/plQrgQ2/KJhB2pB5gj+w6GXhbMQwS3DPpOvi/zN0Tj84jwPvHMllpEl0QHj6ywN7/eQ==} @@ -3141,7 +3141,7 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.5 - '@lifi/types@17.67.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': + '@lifi/types@17.68.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: viem: 2.46.3(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) transitivePeerDependencies: diff --git a/src/chains/foundry.ts b/src/chains/foundry.ts index 112a8d1..a35d383 100644 --- a/src/chains/foundry.ts +++ b/src/chains/foundry.ts @@ -78,6 +78,7 @@ export const foundryChainNameMap: Record = { [ChainId.JOV]: 'jovay', [ChainId.MOP]: 'morph', [ChainId.TEM]: 'tempo', + [ChainId.ARCT]: 'arctestnet', // Custom chains [7777777 as ChainId]: 'zora', diff --git a/src/chains/supportedChains.evm.ts b/src/chains/supportedChains.evm.ts index f587361..6341d37 100644 --- a/src/chains/supportedChains.evm.ts +++ b/src/chains/supportedChains.evm.ts @@ -1941,9 +1941,34 @@ export const supportedEVMChains: EVMChain[] = [ nativeCurrency: { name: 'PathUSD', symbol: 'PathUSD', - decimals: 18, + decimals: 6, }, rpcUrls: ['https://rpc.tempo.xyz'], }, }, + + // Arc Testnet + { + key: ChainKey.ARCT, + chainType: ChainType.EVM, + name: 'Arc Testnet', + coin: CoinKey.USDC, + id: ChainId.ARCT, + mainnet: false, + logoURI: + 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arct.svg', + relayerSupported: false, + multicallAddress: multicallAddresses[ChainId.ARCT], + metamask: { + chainId: prefixChainId(ChainId.ARCT), + blockExplorerUrls: ['https://testnet.arcscan.app/'], + chainName: 'Arc Testnet', + nativeCurrency: { + name: 'USDC', + symbol: 'USDC', + decimals: 6, + }, + rpcUrls: ['https://rpc.testnet.arc.network/'], + }, + }, ] diff --git a/src/coins/coins.ts b/src/coins/coins.ts index b22c35a..b90fc59 100644 --- a/src/coins/coins.ts +++ b/src/coins/coins.ts @@ -1122,6 +1122,10 @@ export const basicCoins: BasicCoin[] = [ address: '0xe34c91815d7fc18A9e2148bcD4241d0a5848b693', decimals: 6, }, + [ChainId.ARCT]: { + address: '0x3600000000000000000000000000000000000000', + decimals: 6, + }, }, }, // USDC.e @@ -3392,6 +3396,41 @@ export const basicCoins: BasicCoin[] = [ }, }, + // Eurc + { + key: CoinKey.EURC, + name: 'Eurc', + logoURI: + 'https://static.debank.com/image/eth_token/logo_url/0x1abaea1f7c830bd89acc67ec4af516284b1bc33c/790d0c3a6da87111b66255c0d57108fa.png', + verified: true, + chains: { + [ChainId.ETH]: { + address: '0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c', + decimals: 6, + }, + [ChainId.ARCT]: { + address: '0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a', + decimals: 6, + }, + [ChainId.AVA]: { + address: '0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD', + decimals: 6, + }, + [ChainId.BAS]: { + address: '0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42', + decimals: 6, + }, + [ChainId.SOL]: { + address: 'HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr', + decimals: 6, + }, + [ChainId.SON]: { + address: '0xe715cba7b5ccb33790cebff1436809d36cb17e57', + decimals: 6, + }, + }, + }, + // > Bitcoin { key: CoinKey.BTC, @@ -4290,6 +4329,17 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = { logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/pathUSD.svg', }, + [ChainId.ARCT]: { + // https://testnet.arcscan.app/token/0x3600000000000000000000000000000000000000 + address: '0x3600000000000000000000000000000000000000', + symbol: 'USDC', + decimals: 6, + chainId: ChainId.ARCT, + coinKey: CoinKey.USDC, + name: 'USDC', + logoURI: + 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', + }, } export const findDefaultCoin = (coinKey: CoinKey): Coin => { const coin = defaultCoins.find((coin) => coin.key === coinKey) diff --git a/src/multicall.ts b/src/multicall.ts index 8f35d09..978d987 100644 --- a/src/multicall.ts +++ b/src/multicall.ts @@ -84,6 +84,7 @@ export const multicallAddresses: { [ChainId: number]: string } = { [ChainId.JOV]: '0xcA11bde05977b3631167028862bE2a173976CA11', [ChainId.MOP]: '0xA403025927d715a41Ccbad5EAeBf2979055e639e', [ChainId.TEM]: '0xcA11bde05977b3631167028862bE2a173976CA11', + [ChainId.ARCT]: '0xcA11bde05977b3631167028862bE2a173976CA11', // TODO // [ChainId.EXP]: '', // TODO