Skip to content

Commit

Permalink
Merge branch 'main' into devin/1734546430-add-soneium-chain
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Jan 16, 2025
2 parents 0a8d3fe + 062310a commit 78cd75d
Show file tree
Hide file tree
Showing 6 changed files with 96 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.46",
"@reservoir0x/reservoir-kit-ui": "^2.7.52",
"@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/ink-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.
10 changes: 10 additions & 0 deletions public/icons/ink-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.
49 changes: 48 additions & 1 deletion utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,40 @@ const usdcCurrencyBase = {
}

export const DefaultChain: ReservoirChain = {
...mainnet,
id: 1,
name: 'Ethereum',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: [
'https://ethereum-rpc.publicnode.com',
'https://mainnet.gateway.tenderly.co',
'https://rpc.flashbots.net',
'https://rpc.mevblocker.io',
'https://eth.drpc.org',
],
},
},
blockExplorers: {
default: {
name: 'Etherscan',
url: 'https://etherscan.io',
apiUrl: 'https://api.etherscan.io/api',
},
},
contracts: {
ensRegistry: {
address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
},
ensUniversalResolver: {
address: '0xce01f8eee7E479C928F8919abD53E553a36CeF67',
blockCreated: 19_258_213,
},
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 14_353_601,
},
},
// Any url to display the logo of the chain in light mode
lightIconUrl: '/icons/eth-icon-dark.svg',
// Any url to display the logo of the chain in dark mode
Expand Down Expand Up @@ -681,4 +714,18 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.soneium.checkPollingInterval,
},
{
...customChains.ink,
name: 'Ink',
lightIconUrl: '/icons/ink-icon-light.svg',
darkIconUrl: '/icons/ink-icon-dark.svg',
reservoirBaseUrl: reservoirChains.ink.baseApiUrl,
proxyApi: '/api/reservoir/ink',
routePrefix: 'ink',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
wrappedContract: '0x4200000000000000000000000000000000000006',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.ink.checkPollingInterval,
},
] as ReservoirChain[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,24 @@ export const chainPaymentTokensMap = {
},
],

// Ink
57073: [
{
chainId: 57073,
address: zeroAddress,
symbol: 'ETH',
name: 'ETH',
decimals: 18,
},
{
chainId: 57073,
address: '0x4200000000000000000000000000000000000006',
symbol: 'WETH',
name: 'WETH',
decimals: 18,
},
],

// xai
660279: [
{
Expand Down
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.46":
version "2.7.46"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.46.tgz#d8eb60069ac817f1aa2b58fc785d7ad0a434fbc1"
integrity sha512-wQMN3OSmBQSRDuir0hb5R32DeEDlQ+pnkg+H9EpfG6nuoZ6v/EdaKn98brsssxFlSULNj0mMl5ZyAR6mxQTmGw==
"@reservoir0x/reservoir-kit-ui@^2.7.52":
version "2.7.52"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.52.tgz#b2b3ee545ceb8a4f841d93b8f0a3fa95ae9ade1d"
integrity sha512-C7h4flZW492LrG/Rr+Jz8dewLYxv5JLnjiMtUQQhnRZWw78GC4mRnb6aSW4lysdgMgP6m/OQ+jPHutGVGkDXzA==
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.36"
"@reservoir0x/reservoir-sdk" "2.4.41"
"@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].36":
version "2.4.36"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.36.tgz#2299ba14f039654730f37197c49c758d4376e2a1"
integrity sha512-1kNR6aDk/pfAMeIQdTH9DnXw0hd3mJJ0A9qp2OAXq0Z2x7LFZNFyS/fuwvPLt2OosECPiL3Dp/HS4mWd39Oevw==
"@reservoir0x/[email protected].41":
version "2.4.41"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.41.tgz#c254b444e7ba5fcb56add54074c08fc4a5bbe7ce"
integrity sha512-mi+hovjT9rnILkgm2p9wYqRkqMIf+cmvuDk1Fq+Qrymf7XF6816iQLUiKSjaxsgSxUa87d79w8x0s0fGwxRyZQ==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit 78cd75d

Please sign in to comment.