From 9159d1e793b5fede0625be9b53da208379ea0e26 Mon Sep 17 00:00:00 2001 From: Philippe Schommers Date: Wed, 11 Oct 2023 21:37:08 +0200 Subject: [PATCH] feat: add Gnosis Chain contracts --- src/addresses.ts | 14 +++++++++++++- src/chains.ts | 5 +++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/addresses.ts b/src/addresses.ts index c3c1da1e..3a1da4a6 100644 --- a/src/addresses.ts +++ b/src/addresses.ts @@ -153,6 +153,17 @@ const BASE_GOERLI_ADDRESSES: ChainAddresses = { swapRouter02Address: '0x8357227D4eDc78991Db6FDB9bD6ADE250536dE1d' } +// Gnosis v3 addresses +const GNOSIS_ADDRESSES: ChainAddresses = { + v3CoreFactoryAddress: '0xe32F7dD7e3f098D518ff19A22d5f028e076489B1', + multicallAddress: '0x4dfa9a980efE4802E969AC33968E3d6E59B8a19e', + quoterAddress: '0x7E9cB3499A6cee3baBe5c8a3D328EA7FD36578f4', + v3MigratorAddress: '0x16dd75c567a07082452aB56fD1E673987289E6Ef', + nonfungiblePositionManagerAddress: '0xAE8fbE656a77519a7490054274910129c9244FA3', + tickLensAddress: '0x8fe3D346B53dCA838B228e0e53aCdBED5DEC70Dc', + swapRouter02Address: '0xc6D25285D5C5b62b7ca26D6092751A145D50e9Be' +} + export const CHAIN_TO_ADDRESSES_MAP: Record = { [ChainId.MAINNET]: MAINNET_ADDRESSES, [ChainId.OPTIMISM]: OPTIMISM_ADDRESSES, @@ -168,7 +179,8 @@ export const CHAIN_TO_ADDRESSES_MAP: Record [ChainId.SEPOLIA]: SEPOLIA_ADDRESSES, [ChainId.AVALANCHE]: AVALANCHE_ADDRESSES, [ChainId.BASE]: BASE_ADDRESSES, - [ChainId.BASE_GOERLI]: BASE_GOERLI_ADDRESSES + [ChainId.BASE_GOERLI]: BASE_GOERLI_ADDRESSES, + [ChainId.GNOSIS]: GNOSIS_ADDRESSES } /* V3 Contract Addresses */ diff --git a/src/chains.ts b/src/chains.ts index c9935b71..b3fa7a40 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -33,7 +33,8 @@ export const SUPPORTED_CHAINS = [ ChainId.BNB, ChainId.AVALANCHE, ChainId.BASE, - ChainId.BASE_GOERLI + ChainId.BASE_GOERLI, + ChainId.GNOSIS ] as const export type SupportedChainsType = typeof SUPPORTED_CHAINS[number] @@ -42,7 +43,7 @@ export enum NativeCurrencyName { ETHER = 'ETH', MATIC = 'MATIC', CELO = 'CELO', - GNOSIS = 'XDAI', + GNOSIS = 'xDAI', MOONBEAM = 'GLMR', BNB = 'BNB', AVAX = 'AVAX'