Skip to content

Commit

Permalink
Merge pull request #519 from reservoirprotocol/jaden/adding-forma
Browse files Browse the repository at this point in the history
Jaden/adding forma
  • Loading branch information
JadenDurnford authored Aug 1, 2024
2 parents dcafda3 + c7cffd6 commit ccc286f
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 10 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.6",
"@reservoir0x/reservoir-kit-ui": "^2.7.10",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
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 @@ -552,4 +552,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.boss.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[]
17 changes: 17 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -749,4 +749,21 @@ 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',
},
],
} 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 @@ -27,6 +27,7 @@ const wrappedContracts: Record<number, string> = {
1329: '0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7', // sei
1993: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // b3 testnet
646: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // flow previewnet
984122: '0xd5eace1274dbf70960714f513db207433615a263', // forma
}

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.6":
version "2.7.6"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.6.tgz#3ba605655aa9d8ddbfaf2378a656e78d70159685"
integrity sha512-0DiqLDly60qlA1ohVCMLWYIx3jCYiDT9tUmVR4eyYqSrjfUDXPjAu2/tRoEw3IcazItb8V+LZdDw55eo3RCrTA==
"@reservoir0x/reservoir-kit-ui@^2.7.10":
version "2.7.10"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.10.tgz#28f518597d0717f625bed9eae64a0fa4e980ee8c"
integrity sha512-1TiIF4H8jpJbdy7u+pJg8WQE8AodiX3K5s7gfR98PfuuthgI7nPTwNuO4Cf35TZZIqlLOYhtC/rr+FOT5u+LrQ==
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.5"
"@reservoir0x/reservoir-sdk" "2.4.7"
"@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/reservoir-sdk@2.4.5":
version "2.4.5"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.5.tgz#6cf1c6c08fe418ae05ff7104ef9c6f27229f7552"
integrity sha512-26doyAOIzYtSmttup17qo1NQM19ZLPwkiqAVyoRACRJXAyktOFJwCnSqSx2gGl9QbMhkVUJ9Da3SQ397d3dI+g==
"@reservoir0x/reservoir-sdk@2.4.7":
version "2.4.7"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.7.tgz#1265f3444adb082549c8994aa3a355325e8a34e8"
integrity sha512-Izotj2OAtmZ5xnoX/7oEAlX+OtWJLTRDGTjzE2COTvvGZv1JHtu2EPqgn7AD8f+PeTUiSnyfFJ/04YEMGfe/TQ==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit ccc286f

Please sign in to comment.