Skip to content

Commit

Permalink
Merge pull request #509 from reservoirprotocol/jaden/platf-3747-add-s…
Browse files Browse the repository at this point in the history
…ei-chain-to-explorer

Adding sei chain
  • Loading branch information
JadenDurnford authored Jun 5, 2024
2 parents 6ef50eb + 801f9ff commit 3b97514
Show file tree
Hide file tree
Showing 7 changed files with 55 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.0.0",
"@reservoir0x/reservoir-kit-ui": "^2.5.17",
"@reservoir0x/reservoir-kit-ui": "^2.5.18",
"@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/sei-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/sei-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 @@ -477,4 +477,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.bitlayer.checkPollingInterval,
},
{
...customChains.sei,
name: 'Sei',
lightIconUrl: '/icons/sei-icon-light.svg',
darkIconUrl: '/icons/sei-icon-dark.svg',
reservoirBaseUrl: reservoirChains.sei.baseApiUrl,
proxyApi: '/api/reservoir/sei',
routePrefix: 'sei',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'sei-network',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.sei.checkPollingInterval,
},
] as ReservoirChain[]
11 changes: 11 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,4 +688,15 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// sei
1329: [
{
chainId: 1329,
address: zeroAddress,
symbol: 'SEI',
name: 'Sei',
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 @@ -24,6 +24,7 @@ const wrappedContracts: Record<number, string> = {
1482601649: '0xab01bad2c86e24d371a13ed6367bdca819589c5d', // nebula
7560: '0x4200000000000000000000000000000000000006', // cyber
200901: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f', // bitlayer
1329: '0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7', // sei
}

export default wrappedContracts
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1895,10 +1895,10 @@
dependencies:
merge-options "^3.0.4"

"@reservoir0x/reservoir-kit-ui@^2.5.17":
version "2.5.17"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.5.17.tgz#736f4cf14070f990d82e3f28de27f1c8ef68673b"
integrity sha512-1IsjYlBt4Ej0LUSEWIQhT+cyDMt0Dc3ZpnZ4bMfc/eMigIyXW230ysbfHv2K4aWxVBuRt+UbThLf48JmYdKP3g==
"@reservoir0x/reservoir-kit-ui@^2.5.18":
version "2.5.18"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.5.18.tgz#bbf22b1f76822180cb4c6ab8eb05c7b73b61c90c"
integrity sha512-Zp5u396m3rJjXe5gddxYXx/jPJRTq1pWQPJAGwIjexvOxXofED7vQEmea1GBOSB5YdJP471XFSMBO3QobPEFSw==
dependencies:
"@fortawesome/fontawesome-svg-core" "^6.1.1"
"@fortawesome/free-solid-svg-icons" "^6.1.1"
Expand All @@ -1914,18 +1914,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.2.7"
"@reservoir0x/reservoir-sdk" "2.2.8"
"@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.2.7":
version "2.2.7"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.2.7.tgz#b0e31343d16874594a5c47c92a58f6936043f521"
integrity sha512-xSreQz9jkITqeQv42MyZIhQ4971r70YiLUO1UMNBxZBbIPRxnBkEd5fJKm/RfHkllH+zGdbSTcYZKuhSWipKgw==
"@reservoir0x/reservoir-sdk@2.2.8":
version "2.2.8"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.2.8.tgz#54cd5c370c4dbd1335c7f6f50b234f88e2847be8"
integrity sha512-8Gjae9cr20VJbNGoRi/nx5JwrR/iGRMtt9ElU8LyDxsyQ1m7HtxMOfdaa81OmZbUA5w8jEGWN5YpH9fLBYfDjg==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit 3b97514

Please sign in to comment.