Skip to content

Commit

Permalink
Merge branch 'jaden/platf-4090-b3-support' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Aug 7, 2024
2 parents ccc286f + e760fc9 commit eff2526
Show file tree
Hide file tree
Showing 7 changed files with 72 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.10",
"@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 @@ -565,4 +565,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.forma.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 @@ -764,6 +764,24 @@ export const chainPaymentTokensMap = {
address: '0xd5eace1274dbf70960714f513db207433615a263',
symbol: 'WTIA',
name: 'WTIA',
}
],

// 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 @@ -28,6 +28,7 @@ const wrappedContracts: Record<number, string> = {
1993: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3 testnet
646: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // flow previewnet
984122: '0xd5eace1274dbf70960714f513db207433615a263', // forma
8333: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3
}

export default wrappedContracts
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1753,10 +1753,10 @@
dependencies:
"@react-hookz/deep-equal" "^1.0.3"

"@reservoir0x/reservoir-kit-ui@^2.7.10":
version "2.7.10"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.10.tgz#28f518597d0717f625bed9eae64a0fa4e980ee8c"
integrity sha512-1TiIF4H8jpJbdy7u+pJg8WQE8AodiX3K5s7gfR98PfuuthgI7nPTwNuO4Cf35TZZIqlLOYhtC/rr+FOT5u+LrQ==
"@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 +1772,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.7"
"@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/[email protected].7":
version "2.4.7"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.7.tgz#1265f3444adb082549c8994aa3a355325e8a34e8"
integrity sha512-Izotj2OAtmZ5xnoX/7oEAlX+OtWJLTRDGTjzE2COTvvGZv1JHtu2EPqgn7AD8f+PeTUiSnyfFJ/04YEMGfe/TQ==
"@reservoir0x/[email protected].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 eff2526

Please sign in to comment.