Skip to content

Commit

Permalink
Merge branch 'devin/1734546430-add-soneium-chain' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Dec 18, 2024
2 parents 16ef09e + 115c1f9 commit 482770a
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 10 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.43",
"@reservoir0x/reservoir-kit-ui": "^2.7.44",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
4 changes: 4 additions & 0 deletions public/icons/soneium-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.
4 changes: 4 additions & 0 deletions public/icons/soneium-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 @@ -668,4 +668,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.game7.checkPollingInterval,
},
{
...customChains.soneium,
name: 'Soneium',
lightIconUrl: '/icons/soneium-icon-light.svg',
darkIconUrl: '/icons/soneium-icon-dark.svg',
reservoirBaseUrl: reservoirChains.soneium.baseApiUrl,
proxyApi: '/api/reservoir/soneium',
routePrefix: 'soneium',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.soneium.checkPollingInterval,
},
] as ReservoirChain[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1554,4 +1554,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// Soneium
1868: [
{
chainId: 1868,
address: zeroAddress,
symbol: 'ETH',
name: 'ETH',
decimals: 18,
},
{
chainId: 1868,
address: '0x4200000000000000000000000000000000000006',
symbol: 'WETH',
name: 'WETH',
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 @@ -36,6 +36,7 @@ const wrappedContracts: Record<number, string> = {
543210: '0xac98b49576b1c892ba6bfae08fe1bb0d80cf599c', // zero
2741: '0x3439153eb7af838ad19d56e1571fbd09333c2809', // abstract
2187: '0xfa3ed70386b9255fC04aA008A8ad1B0CDa816Fac', // game7
1868: '0x4200000000000000000000000000000000000006', // soneium
}

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.43":
version "2.7.43"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.43.tgz#f1662ca277d7bd6c0171bc9deb35610cebe1c419"
integrity sha512-DXvQEmhSr9e1zsedzQHuAwGXCwVMG+j2AySL8AspfITsCeCZRdrEXRSfYIxUj24BizBtwVCWkuvsD6+5gtpVgg==
"@reservoir0x/reservoir-kit-ui@^2.7.44":
version "2.7.44"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.44.tgz#d180e3044ac124464ef472d1d3cea07a79f46f1c"
integrity sha512-AmYErBq+1YWlGPszilZZKOvxilLuz8T0M9LbkhuAJDSd1KHmlLq/e/GjdvYhjSmPv/C1H4MFIDKmXeU5LpCqNw==
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.33"
"@reservoir0x/reservoir-sdk" "2.4.34"
"@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].33":
version "2.4.33"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.33.tgz#0c9a25ad8709c93d7f83e943664e09864f905cc4"
integrity sha512-BYCxpyBAsLh0L83WUwtj5s1KecXzjcXS8rStMR8vr1QcyCHoK3EPmOlZpgC2bC633dvTOjy+qK3NtDrRlntu+g==
"@reservoir0x/[email protected].34":
version "2.4.34"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.34.tgz#fc00ceed1a7f028902bebdb6092b0c89f1801e34"
integrity sha512-SRI3S+6VYYOgqpH8y4hDR8bTjipDyIAunpyvLCjJWgc2GPOMFSEuM56zX4ifcbTnMcp4ES9v/Pn/FJ0B2+kuvQ==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit 482770a

Please sign in to comment.