diff --git a/package.json b/package.json index 84459f2..9a7de24 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ ] }, "dependencies": { - "@lifi/types": "17.85.0" + "@lifi/types": "17.86.0" }, "devDependencies": { "@commitlint/cli": "^19.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fcaa57e..e7da74e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@lifi/types': - specifier: 17.85.0 - version: 17.85.0 + specifier: 17.86.0 + version: 17.86.0 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.85.0': - resolution: {integrity: sha512-EueQyqhyvZbHygkyxj9EPAhUwn69ViRn9zJ56UnZlXsHlOZ/NdNVWxUwrVFVuRt/8qkdZH35R/1vE+SOxFHCNw==} + '@lifi/types@17.86.0': + resolution: {integrity: sha512-VkEK2c7pL2P49cVZfSW76pbMJNCrWC4ge2FmyexyZW71XA56bv+AAj9zL8zeEQVQUnMnekQVC1EHVBlx5uBwdg==} '@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.85.0': {} + '@lifi/types@17.86.0': {} '@mysten/bcs@1.9.2': dependencies: diff --git a/src/chains/foundry.ts b/src/chains/foundry.ts index 0922711..f0c31ca 100644 --- a/src/chains/foundry.ts +++ b/src/chains/foundry.ts @@ -84,6 +84,7 @@ export const foundryChainNameMap: Record = { [ChainId.SOM]: 'somnia', [ChainId.OUT]: 'outlaw', [ChainId.ARC]: 'arc', + [ChainId.INJ]: 'injective', [ChainId.OPST]: 'optimismsepolia', [ChainId.BAST]: 'basesepolia', [ChainId.ARBS]: 'arbitrumsepolia', diff --git a/src/chains/supportedChains.evm.ts b/src/chains/supportedChains.evm.ts index 0707795..2acd837 100644 --- a/src/chains/supportedChains.evm.ts +++ b/src/chains/supportedChains.evm.ts @@ -2223,4 +2223,29 @@ export const supportedEVMChains: EVMChain[] = [ rpcUrls: ['https://arc-rpc.transferto.xyz/'], }, }, + + // 1776 - Injective + { + key: ChainKey.INJ, + chainType: ChainType.EVM, + name: 'Injective', + coin: CoinKey.INJ, + id: ChainId.INJ, + mainnet: true, + logoURI: + 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/injective.svg', + multicallAddress: multicallAddresses[ChainId.INJ], + relayerSupported: false, + metamask: { + chainId: prefixChainId(ChainId.INJ), + blockExplorerUrls: ['https://blockscout.injective.network/'], + chainName: 'Injective', + nativeCurrency: { + name: 'Injective', + symbol: 'INJ', + decimals: 18, + }, + rpcUrls: ['https://sentry.evm-rpc.injective.network'], + }, + }, ] diff --git a/src/coins/coins.ts b/src/coins/coins.ts index e5cef35..2346562 100644 --- a/src/coins/coins.ts +++ b/src/coins/coins.ts @@ -1198,6 +1198,10 @@ export const basicCoins: BasicCoin[] = [ address: '0xc879c018db60520f4355c26ed1a6d572cdac1815', decimals: 6, }, + [ChainId.INJ]: { + address: '0xa00C59fF5a080D2b954d0c75e46E22a0c371235a', + decimals: 6, + }, }, }, // USDC.e @@ -3694,6 +3698,35 @@ export const basicCoins: BasicCoin[] = [ }, }, + // > Injective + { + key: CoinKey.INJ, + name: 'Injective', + logoURI: + 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/injective.svg', + verified: true, + chains: { + [ChainId.INJ]: { + address: '0x0000000000000000000000000000000000000000', + decimals: 18, + }, + }, + }, + + { + key: CoinKey.WINJ, + name: 'Wrapped INJ', + logoURI: + 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/injective.svg', + verified: true, + chains: { + [ChainId.INJ]: { + address: '0x0000000088827d2d103ee2d9A6b781773AE03FfB', + decimals: 18, + }, + }, + }, + // > Bitcoin { key: CoinKey.BTC, @@ -4675,6 +4708,16 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = { logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/somnia.svg', }, + [ChainId.INJ]: { + address: '0x0000000088827d2d103ee2d9A6b781773AE03FfB', + symbol: CoinKey.WINJ, + decimals: 18, + chainId: ChainId.INJ, + coinKey: CoinKey.WINJ, + name: 'Wrapped INJ', + logoURI: + 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/injective.svg', + }, [ChainId.OPST]: { address: '0x4200000000000000000000000000000000000006', symbol: 'WETH', diff --git a/src/multicall.ts b/src/multicall.ts index 09be825..3935993 100644 --- a/src/multicall.ts +++ b/src/multicall.ts @@ -91,6 +91,7 @@ export const multicallAddresses: { [ChainId: number]: string } = { [ChainId.SOM]: '0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11', [ChainId.OUT]: '0xcA11bde05977b3631167028862bE2a173976CA11', [ChainId.ARC]: '0xcA11bde05977b3631167028862bE2a173976CA11', + [ChainId.INJ]: '0xcA11bde05977b3631167028862bE2a173976CA11', [ChainId.OPST]: '0xcA11bde05977b3631167028862bE2a173976CA11', [ChainId.BAST]: '0xcA11bde05977b3631167028862bE2a173976CA11', [ChainId.ARBS]: '0xcA11bde05977b3631167028862bE2a173976CA11',