Skip to content

Commit

Permalink
Merge pull request #546 from reservoirprotocol/devin/1734546430-add-s…
Browse files Browse the repository at this point in the history
…oneium-chain

feat: add soneium chain configuration
  • Loading branch information
JadenDurnford authored Jan 14, 2025
2 parents 1822275 + f8ef9e5 commit 96fb984
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.47",
"@reservoir0x/reservoir-kit-ui": "^2.7.49",
"@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 @@ -648,4 +648,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 @@ -1019,4 +1019,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 @@ -33,6 +33,7 @@ const wrappedContracts: Record<number, string> = {
2911: '0x2b1499d631bffb29eed7749b12cba754273d6da7', // hychain
543210: '0xac98b49576b1c892ba6bfae08fe1bb0d80cf599c', // zero
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.47":
version "2.7.47"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.47.tgz#b18972604cc637972b61ccb6a6512fbc6937c945"
integrity sha512-3Bz9ZbAioSx3LJuo5YchUcbcbiAKNPXm4FTuC/CoAW4pAbY7x0/r6pYPqav1LA6Z+G9qBFFB6p+YoeBwnqtUjA==
"@reservoir0x/reservoir-kit-ui@^2.7.49":
version "2.7.49"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.49.tgz#06ce9d37a324e3e0e8e9ae346ea2ee68d1f1451f"
integrity sha512-N3hpJ9Rz07R2RxFi7x2wrRvV0FUm2/kTZDm6qdH2w4IcUzWUEl5g1zo4T+Na9XxKfhZs0e3gU4dcj7XtIB+j3g==
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.37"
"@reservoir0x/reservoir-sdk" "2.4.39"
"@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].37":
version "2.4.37"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.37.tgz#749bec492e0ae3b79a67f8a5eb2949520044a444"
integrity sha512-ZuZreu1GbvQh7vLlMD+rxryk1XoVz2Ys8K1hzkEgawMnx0riEplCtrWtvA18skbjqUEUawBwOlIDU/HZj2Pd/Q==
"@reservoir0x/[email protected].39":
version "2.4.39"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.39.tgz#0f4a2c188d0cf710ccfe4d700ce4ff917da044ef"
integrity sha512-QjOKprMX36NsSgtyMBLjBn6x47I254AcZKFmPdTlpqCPRLvmEUDK9+JRVmvMI16c6QQw4YjNSP29F/chcUBj8g==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit 96fb984

Please sign in to comment.