Skip to content

Commit

Permalink
Merge branch 'jaden/hychain-support' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Sep 10, 2024
2 parents 24e2f59 + ef35109 commit bfbec3a
Show file tree
Hide file tree
Showing 7 changed files with 90 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.7.16",
"@reservoir0x/reservoir-kit-ui": "^2.7.17",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
24 changes: 24 additions & 0 deletions public/icons/hychain-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.
24 changes: 24 additions & 0 deletions public/icons/hychain-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 @@ -578,4 +578,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.shape.checkPollingInterval,
},
{
...customChains.hychain,
name: 'Hychain',
lightIconUrl: '/icons/hychain-icon-light.svg',
darkIconUrl: '/icons/hychain-icon-dark.svg',
reservoirBaseUrl: reservoirChains.hychain.baseApiUrl,
proxyApi: '/api/reservoir/hychain',
routePrefix: 'hychain',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'hytopia',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.hychain.checkPollingInterval,
},
] as ReservoirChain[]
19 changes: 18 additions & 1 deletion utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// b3
8333: [
{
Expand Down Expand Up @@ -818,6 +818,23 @@ export const chainPaymentTokensMap = {
address: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4',
symbol: 'WETH',
name: 'Shape WETH',
},
],

// Hychain
2911: [
{
chainId: 2911,
address: zeroAddress,
symbol: 'TOPIA',
name: 'Hychain',
decimals: 18,
},
{
chainId: 2911,
address: '0x2b1499d631bffb29eed7749b12cba754273d6da7',
symbol: 'WTOPIA',
name: 'Wrapped TOPIA',
decimals: 18,
},
],
Expand Down
1 change: 1 addition & 0 deletions utils/wrappedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const wrappedContracts: Record<number, string> = {
8333: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3
33139: '0x8073b2158aa023dd7f8d4799c883b65daf6baa57', // apechain
360: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // shape
2911: '0x2b1499d631bffb29eed7749b12cba754273d6da7', // hychain
}

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.16":
version "2.7.16"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.16.tgz#6cf62884be47765d95f1440d5cc04d84d6b414e8"
integrity sha512-5le4ixFEWKqpRwE5Cw1e0ouB7Uj1KlBJQZpdIPxcrfaq7PPCmY+A3+iFNb5j/VmIzPtbgDmZ0DGQiGGDEPqvbw==
"@reservoir0x/reservoir-kit-ui@^2.7.17":
version "2.7.17"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.17.tgz#591b2cfe9cdcaf6e67323699cafd84aaba4393ff"
integrity sha512-2dJr9Q8tyEI2dV8hoVOoPpPMF5XeyqTGAVz/MR7T/uwSeOuyJ/WWjim9RnVHSVirYRcdJJgHAD/gRZRfm2m79w==
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.13"
"@reservoir0x/reservoir-sdk" "2.4.14"
"@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.13":
version "2.4.13"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.13.tgz#d45c2c6affaed3f0d7bf34bef1b4cb3ca1e02d7d"
integrity sha512-ceHpXIbkkZFMGg/13wvpI5RUA/0olkkfSaqssib+LtVCEilk3CbqskdZtalDhHSIz6WciZ8oIpotbGV9cCXsMg==
"@reservoir0x/reservoir-sdk@2.4.14":
version "2.4.14"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.14.tgz#0751a8d8d863fc6ac7447825fd7692713ff6f881"
integrity sha512-LjO0qJI7b64YgIy1hbzxVOG6JtWyOuQnWf+M/msg3adT36bdcgbS4WbAiV6yINw7wjYnkinddefBdl0l89HZ/Q==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit bfbec3a

Please sign in to comment.