diff --git a/package.json b/package.json index 84cc5d254..b687e48fb 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@radix-ui/react-toggle-group": "^1.0.1", "@radix-ui/react-tooltip": "1.0.6", "@rainbow-me/rainbowkit": "2.1.2", - "@reservoir0x/reservoir-kit-ui": "^2.7.34", + "@reservoir0x/reservoir-kit-ui": "^2.7.35", "@sentry/nextjs": "^7.85.0", "@tanstack/react-query": "5.20.2", "@types/uuid": "^9.0.1", diff --git a/public/icons/abstract-icon-dark.svg b/public/icons/abstract-icon-dark.svg new file mode 100644 index 000000000..dd200943a --- /dev/null +++ b/public/icons/abstract-icon-dark.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/icons/abstract-icon-light.svg b/public/icons/abstract-icon-light.svg new file mode 100644 index 000000000..3daaede5d --- /dev/null +++ b/public/icons/abstract-icon-light.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/utils/chains.ts b/utils/chains.ts index c8bbeb86b..5e624ef02 100644 --- a/utils/chains.ts +++ b/utils/chains.ts @@ -630,4 +630,17 @@ export default [ oracleBidsEnabled: true, checkPollingInterval: reservoirChains.zero.checkPollingInterval, }, + { + ...customChains.abstract, + name: 'Abstract', + lightIconUrl: '/icons/abstract-icon-light.svg', + darkIconUrl: '/icons/abstract-icon-dark.svg', + reservoirBaseUrl: reservoirChains.abstract.baseApiUrl, + proxyApi: '/api/reservoir/abstract', + routePrefix: 'abstract', + apiKey: process.env.RESERVOIR_API_KEY, + coingeckoId: 'ethereum', + oracleBidsEnabled: true, + checkPollingInterval: reservoirChains.abstract.checkPollingInterval, + }, ] as ReservoirChain[] diff --git a/utils/paymentTokens.ts b/utils/paymentTokens.ts index 679462cbc..17e6431b0 100644 --- a/utils/paymentTokens.ts +++ b/utils/paymentTokens.ts @@ -1288,4 +1288,22 @@ export const chainPaymentTokensMap = { decimals: 18, }, ], + + // Abstract + 2741: [ + { + chainId: 2741, + address: zeroAddress, + symbol: 'ETH', + name: 'ETH', + decimals: 18, + }, + { + chainId: 2741, + address: '0x3439153eb7af838ad19d56e1571fbd09333c2809', + symbol: 'WETH', + name: 'WETH', + decimals: 18, + }, + ], } as Record diff --git a/utils/wrappedContracts.ts b/utils/wrappedContracts.ts index 0f7ea5575..0237c87af 100644 --- a/utils/wrappedContracts.ts +++ b/utils/wrappedContracts.ts @@ -34,6 +34,7 @@ const wrappedContracts: Record = { 360: '0x4200000000000000000000000000000000000006', // shape 747: '0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e', // flow 543210: '0xac98b49576b1c892ba6bfae08fe1bb0d80cf599c', // zero + 2741: '0x3439153eb7af838ad19d56e1571fbd09333c2809', // abstract } export default wrappedContracts diff --git a/yarn.lock b/yarn.lock index 7d750f8f0..ec42b48eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1753,10 +1753,10 @@ dependencies: "@react-hookz/deep-equal" "^1.0.3" -"@reservoir0x/reservoir-kit-ui@^2.7.34": - version "2.7.34" - resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.34.tgz#a4dc4c158811ce9b8d1b78d4d54d07eb29be25f4" - integrity sha512-6tnMf+dNB8Q510gQmu/5zd4DMWPdbUKO4NHYmdmrU+twMYV9CJ9urPE/lcLHAdrUKUh/Hc7bP0rsWXMy9NT6dQ== +"@reservoir0x/reservoir-kit-ui@^2.7.35": + version "2.7.35" + resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.35.tgz#a3f4020ac63eaa97483867f533240c9e83931402" + integrity sha512-8mMBVv0HxqXDuIEalPSI9e7937T/ab/aYcCN66YDFnxBrGVZQ3YQAFQB6NWMGMqKkNk1CtxWTEnjJ7PXS3+9Qg== dependencies: "@fortawesome/fontawesome-svg-core" "^6.1.1" "@fortawesome/free-solid-svg-icons" "^6.1.1" @@ -1772,7 +1772,7 @@ "@radix-ui/react-toggle-group" "1.0.4" "@radix-ui/react-tooltip" "1.0.6" "@react-hookz/web" "^19.2.0" - "@reservoir0x/reservoir-sdk" "2.4.28" + "@reservoir0x/reservoir-sdk" "2.4.29" "@stitches/react" "1.3.1-1" dayjs "^1.11.4" flatpickr "^4.6.13" @@ -1780,10 +1780,10 @@ react-flatpickr "^3.10.13" swr "2.0.1" -"@reservoir0x/reservoir-sdk@2.4.28": - version "2.4.28" - resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.28.tgz#806f3924d8403f7dd560a27165f59d1a68a38414" - integrity sha512-a0ZiIpKalaG9Lbs15xFL52ZKI1P28eDNNqLj43ov5E2ddBppyh44HyQwQ5ixSKI9fALQA8u5GXuOJw1nByKFvQ== +"@reservoir0x/reservoir-sdk@2.4.29": + version "2.4.29" + resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.29.tgz#f9e9d36f612537646ec3f519e922eb1214e497f4" + integrity sha512-x5KYxs/zeTYTFk1HBUvBWuuYq0pKYPTpLrBkzmfUDKPMyLToflMZ7ETUGWeUiViDVHdkYv0r3O6IjoA39tDNww== dependencies: axios "^1.6.7"