Skip to content

Commit

Permalink
Merge branch 'jaden/platf-3824-add-b3-testnet-to-explorer' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Jun 18, 2024
2 parents 4884a35 + f4cef32 commit e8e6594
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 21 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.0.0",
"@reservoir0x/reservoir-kit-ui": "^2.5.21",
"@reservoir0x/reservoir-kit-ui": "^2.5.22",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
15 changes: 10 additions & 5 deletions public/icons/b3-testnet-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: 10 additions & 5 deletions public/icons/b3-testnet-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.
11 changes: 11 additions & 0 deletions public/icons/flow-previewnet-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.
14 changes: 14 additions & 0 deletions public/icons/flow-previewnet-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.
15 changes: 14 additions & 1 deletion utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,19 @@ export default [
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.sei.checkPollingInterval,
checkPollingInterval: reservoirChains.b3Testnet.checkPollingInterval,
},
{
...customChains.flowPreviewnet,
name: 'Flow Previewnet',
lightIconUrl: '/icons/flow-previewnet-icon-light.svg',
darkIconUrl: '/icons/flow-previewnet-icon-dark.svg',
reservoirBaseUrl: reservoirChains.flowPreviewnet.baseApiUrl,
proxyApi: '/api/reservoir/flowPreviewnet',
routePrefix: 'flowPreviewnet',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'flow',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.flowPreviewnet.checkPollingInterval,
},
] as ReservoirChain[]
11 changes: 11 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,4 +710,15 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// flow previewnet
646: [
{
chainId: 646,
address: zeroAddress,
symbol: 'FLOW',
name: 'Flow',
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 @@ -26,6 +26,7 @@ const wrappedContracts: Record<number, string> = {
200901: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f', // bitlayer
1329: '0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7', // sei
1993: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3 testnet
646: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // flow previewnet
}

export default wrappedContracts
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1895,10 +1895,10 @@
dependencies:
merge-options "^3.0.4"

"@reservoir0x/reservoir-kit-ui@^2.5.21":
version "2.5.21"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.5.21.tgz#8c00d7f293a65320013ddaf5c7ade6e5e1a7d87b"
integrity sha512-YcrJvMHjI/6WpPgRJMvUfdlbmDD+xQRp/MVOsT9kQg/HF7jxy0LGiPoT7+eJDtqE4o5wyf8fR2uzyjPRC69Grw==
"@reservoir0x/reservoir-kit-ui@^2.5.22":
version "2.5.22"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.5.22.tgz#cb7b4877066187b91a3f7293bf9d02bd4dcbfc89"
integrity sha512-977RbjYUUphbgH279U8qi8iH7N0o61KS10g3JGET0KPnXe2EwbXFYkfvbB6c03wyl/ObNgr2CG0CtCG9ATq2uA==
dependencies:
"@fortawesome/fontawesome-svg-core" "^6.1.1"
"@fortawesome/free-solid-svg-icons" "^6.1.1"
Expand All @@ -1914,18 +1914,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.2.11"
"@reservoir0x/reservoir-sdk" "2.2.12"
"@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].11":
version "2.2.11"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.2.11.tgz#03998a0f89e8252aa2100dccc6ed989dbf086bb3"
integrity sha512-/7Oh74vZVXxQQ9Y+nH9Y3BZhWL+oMbPGr2XzP4RyD8K4EUDX73xMCYjk2sC8DnxN+wjkaaKRLlAZIoSeBy8v+g==
"@reservoir0x/[email protected].12":
version "2.2.12"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.2.12.tgz#9a376f3aa681f3a86a9996b8d0591cc8fea7a0c9"
integrity sha512-lnajlPhApyc2CET32K/KHgUZhXTA+/1Eq56Evg4VFCWUhChMOdCY3BEnkDNJg07l7azFGepttaa844Ah8JY2Mg==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit e8e6594

Please sign in to comment.