Skip to content

Commit

Permalink
Merge branch 'jaden/adding-abstract-mainnet' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Nov 8, 2024
2 parents c2f96dc + ef49f47 commit c765798
Show file tree
Hide file tree
Showing 7 changed files with 92 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.34",
"@reservoir0x/reservoir-kit-ui": "^2.7.35",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
25 changes: 25 additions & 0 deletions public/icons/abstract-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.
25 changes: 25 additions & 0 deletions public/icons/abstract-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 @@ -630,4 +630,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.zero.checkPollingInterval,
},
{
...customChains.abstract,
name: 'Abstract',
lightIconUrl: '/icons/abstract-icon-light.svg',
darkIconUrl: '/icons/abstract-icon-dark.svg',
reservoirBaseUrl: reservoirChains.abstract.baseApiUrl,
proxyApi: '/api/reservoir/abstract',
routePrefix: 'abstract',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.abstract.checkPollingInterval,
},
] as ReservoirChain[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1288,4 +1288,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// Abstract
2741: [
{
chainId: 2741,
address: zeroAddress,
symbol: 'ETH',
name: 'ETH',
decimals: 18,
},
{
chainId: 2741,
address: '0x3439153eb7af838ad19d56e1571fbd09333c2809',
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 @@ -34,6 +34,7 @@ const wrappedContracts: Record<number, string> = {
360: '0x4200000000000000000000000000000000000006', // shape
747: '0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e', // flow
543210: '0xac98b49576b1c892ba6bfae08fe1bb0d80cf599c', // zero
2741: '0x3439153eb7af838ad19d56e1571fbd09333c2809', // abstract
}

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.34":
version "2.7.34"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.34.tgz#a4dc4c158811ce9b8d1b78d4d54d07eb29be25f4"
integrity sha512-6tnMf+dNB8Q510gQmu/5zd4DMWPdbUKO4NHYmdmrU+twMYV9CJ9urPE/lcLHAdrUKUh/Hc7bP0rsWXMy9NT6dQ==
"@reservoir0x/reservoir-kit-ui@^2.7.35":
version "2.7.35"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.35.tgz#a3f4020ac63eaa97483867f533240c9e83931402"
integrity sha512-8mMBVv0HxqXDuIEalPSI9e7937T/ab/aYcCN66YDFnxBrGVZQ3YQAFQB6NWMGMqKkNk1CtxWTEnjJ7PXS3+9Qg==
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.28"
"@reservoir0x/reservoir-sdk" "2.4.29"
"@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.4.28":
version "2.4.28"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.28.tgz#806f3924d8403f7dd560a27165f59d1a68a38414"
integrity sha512-a0ZiIpKalaG9Lbs15xFL52ZKI1P28eDNNqLj43ov5E2ddBppyh44HyQwQ5ixSKI9fALQA8u5GXuOJw1nByKFvQ==
"@reservoir0x/reservoir-sdk@2.4.29":
version "2.4.29"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.29.tgz#f9e9d36f612537646ec3f519e922eb1214e497f4"
integrity sha512-x5KYxs/zeTYTFk1HBUvBWuuYq0pKYPTpLrBkzmfUDKPMyLToflMZ7ETUGWeUiViDVHdkYv0r3O6IjoA39tDNww==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit c765798

Please sign in to comment.