Skip to content

Commit

Permalink
Merge pull request #557 from reservoirprotocol/jaden/platf-5030
Browse files Browse the repository at this point in the history
feat: adding berachain
  • Loading branch information
JadenDurnford authored Feb 6, 2025
2 parents fc2aad2 + 20291e0 commit 781f4ed
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 11 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.8.2",
"@reservoir0x/reservoir-kit-ui": "^2.8.5",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
17 changes: 17 additions & 0 deletions public/icons/berachain-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.
5 changes: 5 additions & 0 deletions public/icons/berachain-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 @@ -674,4 +674,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.abstract.checkPollingInterval,
},
{
...customChains.berachain,
name: 'Berachain',
lightIconUrl: '/icons/berachain-icon-light.svg',
darkIconUrl: '/icons/berachain-icon-dark.svg',
reservoirBaseUrl: reservoirChains.berachain.baseApiUrl,
proxyApi: '/api/reservoir/berachain',
routePrefix: 'berachain',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'berachain-bera',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.berachain.checkPollingInterval,
},
] as ReservoirChain[]
19 changes: 18 additions & 1 deletion utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,6 @@ export const chainPaymentTokensMap = {
},
],


// Abstract
2741: [
{
Expand All @@ -1056,4 +1055,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// Berachain
80094: [
{
chainId: 80094,
address: zeroAddress,
symbol: 'BERA',
name: 'BERA',
decimals: 18,
},
{
chainId: 80094,
address: '0x6969696969696969696969696969696969696969',
symbol: 'WBERA',
name: 'WBERA',
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 @@ -35,6 +35,7 @@ const wrappedContracts: Record<number, string> = {
2187: '0xfa3ed70386b9255fC04aA008A8ad1B0CDa816Fac', // game7
1868: '0x4200000000000000000000000000000000000006', // soneium
2741: '0x3439153eb7af838ad19d56e1571fbd09333c2809', // abstract
80094: '0x6969696969696969696969696969696969696969', // berachain
}

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.8.2":
version "2.8.2"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.8.2.tgz#1c6ebac0fdc6c7f8d4a8fcaa486cd29da3ef9cd4"
integrity sha512-2abprRVhqF9Dt4Rvei7A8rA+JFRdDD/eQrzfpK/pCWFFrj9Bmo9eFplEu97NwQi227ocJDkipEESdSB7BUhAow==
"@reservoir0x/reservoir-kit-ui@^2.8.5":
version "2.8.5"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.8.5.tgz#bae5dfd003fc84d2a00fb337fb27dd1512e956a5"
integrity sha512-7puFjhU2VSa4V5CoXZIBHpe21Zild4LVstIOeHj/aOxBE4TKo5NixEjqFHRIheZIUyWZrvGVdcRrmAeKX35pdQ==
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.5.2"
"@reservoir0x/reservoir-sdk" "2.5.5"
"@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].2":
version "2.5.2"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.5.2.tgz#47d45e91d466310c71c932d81ea5a494e5d2d3a4"
integrity sha512-M6L4JYYJY1kTWZj34g9JFR1Ux5CUWiN+PkpoQXMXpyELeuxMCFCIXg0dsNt/KwJmhrn427R7984l/B3QJ8/Lew==
"@reservoir0x/[email protected].5":
version "2.5.5"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.5.5.tgz#2c0e017c894b838a55dd5d48cb93039f2c966f59"
integrity sha512-vy/8xj/sCIsCALPYGOPt8Uo39mjWrfWxYQ0qW+LSVfFkGFiomiqGWB4Z1AgtRyw0skYAPEZMtO+cPe9QF1QwAw==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit 781f4ed

Please sign in to comment.