Skip to content

Commit

Permalink
Merge pull request #538 from reservoirprotocol/jaden/hychain-support
Browse files Browse the repository at this point in the history
feat: adding hychain
  • Loading branch information
JadenDurnford authored Nov 12, 2024
2 parents 669c34c + 8ba8cb7 commit 823b9ab
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 0 deletions.
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 @@ -577,4 +577,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.flow.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[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -965,4 +965,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// Hychain
2911: [
{
chainId: 2911,
address: zeroAddress,
symbol: 'TOPIA',
name: 'Hychain',
decimals: 18,
},
{
chainId: 2911,
address: '0x2b1499d631bffb29eed7749b12cba754273d6da7',
symbol: 'WTOPIA',
name: 'Wrapped TOPIA',
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 @@ -30,6 +30,7 @@ const wrappedContracts: Record<number, string> = {
33139: '0x48b62137edfa95a428d35c09e44256a739f6b557', // apechain
360: '0x4200000000000000000000000000000000000006', // shape
747: '0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e', // flow
2911: '0x2b1499d631bffb29eed7749b12cba754273d6da7', // hychain
}

export default wrappedContracts

0 comments on commit 823b9ab

Please sign in to comment.