Skip to content

Commit

Permalink
Merge branch 'jaden/shape-support' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Sep 5, 2024
2 parents b6543d2 + bbdeaaf commit 55a256c
Show file tree
Hide file tree
Showing 9 changed files with 98 additions and 108 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.15",
"@reservoir0x/reservoir-kit-ui": "^2.7.16",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
59 changes: 10 additions & 49 deletions public/icons/apechain-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.
59 changes: 10 additions & 49 deletions public/icons/apechain-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.
18 changes: 18 additions & 0 deletions public/icons/shape-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.
18 changes: 18 additions & 0 deletions public/icons/shape-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 @@ -565,4 +565,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.apechain.checkPollingInterval,
},
{
...customChains.shape,
name: 'Shape',
lightIconUrl: '/icons/shape-icon-light.svg',
darkIconUrl: '/icons/shape-icon-dark.svg',
reservoirBaseUrl: reservoirChains.shape.baseApiUrl,
proxyApi: '/api/reservoir/shape',
routePrefix: 'shape',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.shape.checkPollingInterval,
},
] as ReservoirChain[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,4 +803,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// shape
360: [
{
chainId: 360,
address: zeroAddress,
symbol: 'ETH',
name: 'Shape ETH',
decimals: 18,
},
{
chainId: 360,
address: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4',
symbol: 'WETH',
name: 'Shape 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 @@ -30,6 +30,7 @@ const wrappedContracts: Record<number, string> = {
984122: '0xd5eace1274dbf70960714f513db207433615a263', // forma
8333: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3
33139: '0x8073b2158aa023dd7f8d4799c883b65daf6baa57', // apechain
360: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // shape
}

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.15":
version "2.7.15"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.15.tgz#68aa2ae5fcc5d711611f4edbac9ac181a08f9215"
integrity sha512-Q7IqUrl5a7t70yUhDbs/tfC8U3BvMoMQ/05H9NbSHjaV2fPRD6UPCoY0C0rkcofIpr1mSf/awnINDWX+mpLI0w==
"@reservoir0x/reservoir-kit-ui@^2.7.16":
version "2.7.16"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.16.tgz#6cf62884be47765d95f1440d5cc04d84d6b414e8"
integrity sha512-5le4ixFEWKqpRwE5Cw1e0ouB7Uj1KlBJQZpdIPxcrfaq7PPCmY+A3+iFNb5j/VmIzPtbgDmZ0DGQiGGDEPqvbw==
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.12"
"@reservoir0x/reservoir-sdk" "2.4.13"
"@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].12":
version "2.4.12"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.12.tgz#c25f6ac50c1df478d884965e11c0f286c933092b"
integrity sha512-OopXaOiZjq4zScC0Y4UIRjQMB8IdISvHoiNxu7UDjSb0wgN84gRZuncR/ib+JR+IBhscFqpXsZgVyFQ8Wx2A6g==
"@reservoir0x/[email protected].13":
version "2.4.13"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.13.tgz#d45c2c6affaed3f0d7bf34bef1b4cb3ca1e02d7d"
integrity sha512-ceHpXIbkkZFMGg/13wvpI5RUA/0olkkfSaqssib+LtVCEilk3CbqskdZtalDhHSIz6WciZ8oIpotbGV9cCXsMg==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit 55a256c

Please sign in to comment.