Skip to content

Commit

Permalink
Merge pull request #553 from reservoirprotocol/jaden/adding-monad-tes…
Browse files Browse the repository at this point in the history
…tnet

feat: adding monad testnet
  • Loading branch information
JadenDurnford authored Jan 16, 2025
2 parents 78cd75d + 261d101 commit 39bf358
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
10 changes: 10 additions & 0 deletions public/icons/monad-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/monad-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 @@ -728,4 +728,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.ink.checkPollingInterval,
},
{
...customChains.monadTestnet,
name: 'Monad Testnet',
lightIconUrl: '/icons/monad-icon-light.svg',
darkIconUrl: '/icons/monad-icon-dark.svg',
reservoirBaseUrl: reservoirChains.monadTestnet.baseApiUrl,
proxyApi: '/api/reservoir/monad-testnet',
routePrefix: 'monadTestnet',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'monad',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.monadTestnet.checkPollingInterval,
},
] as ReservoirChain[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1590,4 +1590,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// Monad Testnet
10143: [
{
chainId: 10143,
address: zeroAddress,
symbol: 'MON',
name: 'Monad',
decimals: 18,
},
{
chainId: 10143,
address: '0x760afe86e5de5fa0ee542fc7b7b713e1c5425701',
symbol: 'WMON',
name: 'Wrapped Monad',
decimals: 18,
},
],
} as Record<number, PaymentToken[]>
2 changes: 2 additions & 0 deletions utils/wrappedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const wrappedContracts: Record<number, string> = {
2741: '0x3439153eb7af838ad19d56e1571fbd09333c2809', // abstract
2187: '0xfa3ed70386b9255fC04aA008A8ad1B0CDa816Fac', // game7
1868: '0x4200000000000000000000000000000000000006', // soneium
57073: '0x4200000000000000000000000000000000000006', // ink
10143: '0x760afe86e5de5fa0ee542fc7b7b713e1c5425701', // monad testnet
}

export default wrappedContracts

0 comments on commit 39bf358

Please sign in to comment.