Skip to content

Commit

Permalink
Merge branch 'jaden/platf-3681-add-cyber-chain' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed May 21, 2024
2 parents 990307a + 75f882a commit f8f72bf
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 12 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.10",
"@reservoir0x/reservoir-kit-ui": "^2.5.12",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
10 changes: 10 additions & 0 deletions public/icons/bitlayer-icon-dark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/icons/bitlayer-icon-light.svg
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 utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,4 +465,19 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.cyber.checkPollingInterval,
},
{
...customChains.bitlayer,
name: 'Bitlayer',
lightIconUrl: '/icons/bitlayer-icon-light.svg',
darkIconUrl: '/icons/bitlayer-icon-dark.svg',
reservoirBaseUrl: reservoirChains.bitlayer.baseApiUrl,
proxyApi: '/api/reservoir/bitlayer',
routePrefix: 'bitlayer',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'bitcoin',
collectionSetId: process.env.NEXT_PUBLIC_BITLAYER_COLLECTION_SET_ID,
community: process.env.NEXT_PUBLIC_BITLAYER_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.bitlayer.checkPollingInterval,
},
] as ReservoirChain[]
31 changes: 29 additions & 2 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// degen
666666666: [
{
Expand All @@ -609,7 +610,7 @@ export const chainPaymentTokensMap = {
},
],

// Xai
// xai
660279: [
{
chainId: 660279,
Expand All @@ -627,7 +628,7 @@ export const chainPaymentTokensMap = {
},
],

// Nebula
// nebula
1482601649: [
{
chainId: 1482601649,
Expand All @@ -636,7 +637,15 @@ export const chainPaymentTokensMap = {
name: 'SFUEL',
decimals: 18,
},
{
chainId: 1482601649,
address: '0xab01bad2c86e24d371a13ed6367bdca819589c5d',
symbol: 'ETH',
name: 'Europa ETH',
decimals: 18,
},
],

// cyber
7560: [
{
Expand All @@ -654,4 +663,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// bitlayer
200901: [
{
chainId: 200901,
address: zeroAddress,
symbol: 'BTC',
name: 'Bitcoin',
decimals: 18,
},
{
chainId: 200901,
address: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f',
symbol: 'WBTC',
name: 'Wrapped BTC',
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 @@ -23,6 +23,7 @@ const wrappedContracts: Record<number, string> = {
660279: '0x3fb787101dc6be47cfe18aeee15404dcc842e6af', // xai
1482601649: '0xab01bad2c86e24d371a13ed6367bdca819589c5d', // nebula
7560: '0x4200000000000000000000000000000000000006', // cyber
200901: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f', // bitlayer
}

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.10":
version "2.5.10"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.5.10.tgz#332703fa92b4b3461b7745ae5753f1e6f328bec8"
integrity sha512-ChP6ERjP7itcAHFKWPudxDRo1DI+YcMCQBxoWk9kBPjV1IeaT71uvSu/YwWUPVTfSx83dsoWv/fUcuxMbX9PNA==
"@reservoir0x/reservoir-kit-ui@^2.5.12":
version "2.5.12"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.5.12.tgz#dd16e82c2362aeb50f3bfdd207fae086c2d6ff5b"
integrity sha512-/ouUvyuLJtWdKmYEjlF9UnnhKdeDE/aeBhCnOscHVGt7jmmATs7ap9TBQTyqLoiCVyK9J1dXJkKxdP24oZwaow==
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.1"
"@reservoir0x/reservoir-sdk" "2.2.3"
"@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.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.2.1.tgz#ff460e1224f8d0721802b0df5c1a1e001960e88b"
integrity sha512-6vCNr/TkjA+ElblVM8V8ZL8Q5x2yYjBhVmr5T5snakV0Z0Fh//uQ3Q36hYBuuth4tzgjKe3bM//rBYZPDjSjEQ==
"@reservoir0x/reservoir-sdk@2.2.3":
version "2.2.3"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.2.3.tgz#5a1488710e38cf955da445de6881e88e3d37f3eb"
integrity sha512-JyuEE3RC7HIISLocRjHp5XL7iIxUAnxSkAat0t+ro5ppoPB+cRSxByRtLa0xW/X26R7Nt1e5ILrlLBGvyqOfKg==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit f8f72bf

Please sign in to comment.