Skip to content

Commit

Permalink
feat: adding shape, switching to new apechain icons
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Sep 5, 2024
1 parent 8d3d889 commit 3774a9d
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 98 deletions.
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 @@ -538,4 +538,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 @@ -781,4 +781,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 @@ -28,6 +28,7 @@ const wrappedContracts: Record<number, string> = {
8333: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3
984122: '0xd5eace1274dbf70960714f513db207433615a263', // forma
33139: '0x8073b2158aa023dd7f8d4799c883b65daf6baa57', // apechain
360: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // shape
}

export default wrappedContracts

0 comments on commit 3774a9d

Please sign in to comment.