Skip to content

Commit

Permalink
Merge pull request #522 from reservoirprotocol/jaden/platf-4090-b3-su…
Browse files Browse the repository at this point in the history
…pport

feat: adding b3
  • Loading branch information
JadenDurnford authored Aug 14, 2024
2 parents 58eabde + a5e3431 commit 772a9b6
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
15 changes: 15 additions & 0 deletions public/icons/b3-icon-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions public/icons/b3-icon-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number, PaymentToken[]>
1 change: 1 addition & 0 deletions utils/wrappedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const wrappedContracts: Record<number, string> = {
7560: '0x4200000000000000000000000000000000000006', // cyber
200901: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f', // bitlayer
1329: '0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7', // sei
8333: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3
}

export default wrappedContracts
19 changes: 10 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -1772,18 +1773,18 @@
"@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"
framer-motion "^6.4.2"
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"

Expand Down

0 comments on commit 772a9b6

Please sign in to comment.