Skip to content

Commit

Permalink
Merge pull request #521 from reservoirprotocol/jaden/adding-forma
Browse files Browse the repository at this point in the history
Jaden/adding forma
  • Loading branch information
JadenDurnford committed Aug 15, 2024
2 parents 772a9b6 + 9dc1fd1 commit 3a265ac
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
12 changes: 12 additions & 0 deletions public/icons/forma-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.
12 changes: 12 additions & 0 deletions public/icons/forma-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 @@ -512,4 +512,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.b3.checkPollingInterval,
},
{
...customChains.forma,
name: 'Forma',
lightIconUrl: '/icons/forma-icon-light.svg',
darkIconUrl: '/icons/forma-icon-dark.svg',
reservoirBaseUrl: reservoirChains.forma.baseApiUrl,
proxyApi: '/api/reservoir/forma',
routePrefix: 'forma',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'celestia',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.forma.checkPollingInterval,
},
] as ReservoirChain[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -745,4 +745,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// forma
984122: [
{
chainId: 984122,
address: zeroAddress,
symbol: 'TIA',
name: 'TIA',
decimals: 18,
},
{
chainId: 984122,
address: '0xd5eace1274dbf70960714f513db207433615a263',
symbol: 'WTIA',
name: 'WTIA',
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 @@ -26,6 +26,7 @@ const wrappedContracts: Record<number, string> = {
200901: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f', // bitlayer
1329: '0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7', // sei
8333: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3
984122: '0xd5eace1274dbf70960714f513db207433615a263', // forma
}

export default wrappedContracts

0 comments on commit 3a265ac

Please sign in to comment.