diff --git a/package.json b/package.json index 37bfd5a8..fd08ff59 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.6", + "@reservoir0x/reservoir-kit-ui": "^2.7.12", "@sentry/nextjs": "^7.85.0", "@tanstack/react-query": "5.20.2", "@types/uuid": "^9.0.1", diff --git a/public/icons/b3-icon-dark.svg b/public/icons/b3-icon-dark.svg new file mode 100644 index 00000000..1da01098 --- /dev/null +++ b/public/icons/b3-icon-dark.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/public/icons/b3-icon-light.svg b/public/icons/b3-icon-light.svg new file mode 100644 index 00000000..8b7ebf8f --- /dev/null +++ b/public/icons/b3-icon-light.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/utils/chains.ts b/utils/chains.ts index 533beed0..234c2139 100644 --- a/utils/chains.ts +++ b/utils/chains.ts @@ -499,4 +499,17 @@ export default [ oracleBidsEnabled: true, checkPollingInterval: reservoirChains.boss.checkPollingInterval, }, + { + ...customChains.b3, + name: 'B3', + lightIconUrl: '/icons/b3-icon-light.svg', + darkIconUrl: '/icons/b3-icon-dark.svg', + reservoirBaseUrl: reservoirChains.b3.baseApiUrl, + proxyApi: '/api/reservoir/b3', + routePrefix: 'b3', + apiKey: process.env.RESERVOIR_API_KEY, + coingeckoId: 'ethereum', + oracleBidsEnabled: true, + checkPollingInterval: reservoirChains.b3.checkPollingInterval, + }, ] as ReservoirChain[] diff --git a/utils/paymentTokens.ts b/utils/paymentTokens.ts index 2bd7d0e0..f6c92584 100644 --- a/utils/paymentTokens.ts +++ b/utils/paymentTokens.ts @@ -727,4 +727,22 @@ export const chainPaymentTokensMap = { decimals: 18, }, ], + + // b3 + 8333: [ + { + chainId: 8333, + address: zeroAddress, + symbol: 'ETH', + name: 'B3 ETH', + decimals: 18, + }, + { + chainId: 8333, + address: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', + symbol: 'WETH', + name: 'B3 WETH', + decimals: 18, + }, + ], } as Record diff --git a/utils/wrappedContracts.ts b/utils/wrappedContracts.ts index e2150a08..ba77e2e6 100644 --- a/utils/wrappedContracts.ts +++ b/utils/wrappedContracts.ts @@ -25,6 +25,7 @@ const wrappedContracts: Record = { 7560: '0x4200000000000000000000000000000000000006', // cyber 200901: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f', // bitlayer 1329: '0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7', // sei + 8333: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3 } export default wrappedContracts diff --git a/yarn.lock b/yarn.lock index b595036c..d5410594 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1753,10 +1753,11 @@ dependencies: "@react-hookz/deep-equal" "^1.0.3" -"@reservoir0x/reservoir-kit-ui@^2.7.6": - version "2.7.6" - resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.6.tgz#3ba605655aa9d8ddbfaf2378a656e78d70159685" - integrity sha512-0DiqLDly60qlA1ohVCMLWYIx3jCYiDT9tUmVR4eyYqSrjfUDXPjAu2/tRoEw3IcazItb8V+LZdDw55eo3RCrTA== +"@reservoir0x/reservoir-kit-ui@^2.7.12": + version "2.7.12" + resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.12.tgz#76ecb6085ad6d03cf7cc3d3d35bac0fd7b07df95" + integrity sha512-AdaS8mTCwBnlM9jFMalBTX+PaIbJ+uBnTxm1EOuvemSPxDtY0cgMwsxq9Bvj1uwq/VFLEMZ1HiAlYrXQehXvNQ== + dependencies: "@fortawesome/fontawesome-svg-core" "^6.1.1" "@fortawesome/free-solid-svg-icons" "^6.1.1" @@ -1772,7 +1773,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.5" + "@reservoir0x/reservoir-sdk" "2.4.9" "@stitches/react" "1.3.1-1" dayjs "^1.11.4" flatpickr "^4.6.13" @@ -1780,10 +1781,10 @@ react-flatpickr "^3.10.13" swr "2.0.1" -"@reservoir0x/reservoir-sdk@2.4.5": - version "2.4.5" - resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.5.tgz#6cf1c6c08fe418ae05ff7104ef9c6f27229f7552" - integrity sha512-26doyAOIzYtSmttup17qo1NQM19ZLPwkiqAVyoRACRJXAyktOFJwCnSqSx2gGl9QbMhkVUJ9Da3SQ397d3dI+g== +"@reservoir0x/reservoir-sdk@2.4.9": + version "2.4.9" + resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.9.tgz#7c1d530c72b74658c14b80e6cdd85eda7e8f9b0f" + integrity sha512-94bDPeycrEss1I8kHp5lkSYNncVSnwpcGMaS01DamXptP+I5wcw040Ua0qFLQ2gAcmcOXTlXTa2sGGaHKMoXsA== dependencies: axios "^1.6.7"