Skip to content

Commit

Permalink
Merge pull request #536 from reservoirprotocol/jaden/platf-4535-suppo…
Browse files Browse the repository at this point in the history
…rt-zerθ-mainnet-announcement-on-oct-30

feat: adding zero mainnet
  • Loading branch information
JadenDurnford authored Nov 12, 2024
2 parents 823b9ab + f099621 commit 78f9967
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 1 deletion.
16 changes: 16 additions & 0 deletions public/icons/zero-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.
16 changes: 16 additions & 0 deletions public/icons/zero-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.
15 changes: 14 additions & 1 deletion utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,5 +589,18 @@ export default [
coingeckoId: 'hytopia',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.hychain.checkPollingInterval,
}
},
{
...customChains.zero,
name: 'Zero',
lightIconUrl: '/icons/zero-icon-light.svg',
darkIconUrl: '/icons/zero-icon-dark.svg',
reservoirBaseUrl: reservoirChains.zero.baseApiUrl,
proxyApi: '/api/reservoir/zero',
routePrefix: 'zero',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.zero.checkPollingInterval,
},
] as ReservoirChain[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -983,4 +983,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

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

export default wrappedContracts

0 comments on commit 78f9967

Please sign in to comment.