Skip to content

Commit

Permalink
feat: adding flow
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Sep 23, 2024
1 parent 55e1386 commit 0b22b60
Show file tree
Hide file tree
Showing 7 changed files with 67 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.21",
"@reservoir0x/reservoir-kit-ui": "^2.7.22",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
11 changes: 11 additions & 0 deletions public/icons/flow-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.
14 changes: 14 additions & 0 deletions public/icons/flow-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 @@ -551,4 +551,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.shape.checkPollingInterval,
},
{
...customChains.flow,
name: 'Flow',
lightIconUrl: '/icons/flow-icon-light.svg',
darkIconUrl: '/icons/flow-icon-dark.svg',
reservoirBaseUrl: reservoirChains.flow.baseApiUrl,
proxyApi: '/api/reservoir/flow',
routePrefix: 'flow',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'flow',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.flow.checkPollingInterval,
},
] as ReservoirChain[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -799,4 +799,22 @@ export const chainPaymentTokensMap = {
decimals: 18,
},
],

// Flow
747: [
{
chainId: 747,
address: zeroAddress,
symbol: 'FLOW',
name: 'Flow',
decimals: 18,
},
{
chainId: 747,
address: '0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e',
symbol: 'WFLOW',
name: 'WFLOW',
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 @@ -29,6 +29,7 @@ const wrappedContracts: Record<number, string> = {
984122: '0xd5eace1274dbf70960714f513db207433615a263', // forma
33139: '0x8643a49363e80c7a15790703b915d1b0b6b71d56', // apechain
360: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // shape
747: '0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e', // flow
}

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.21":
version "2.7.21"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.21.tgz#f1c3e5b6bb65a572e4cdfc2de2492d7c82618d3f"
integrity sha512-FxfpSZZSAyq3m6vu2AQD2GdmjUvZjyIFLMHIcBQWZhuMJYgxYyynz01oyfLwxaufxM2PXm7lCs7fQj5LblD0Cg==
"@reservoir0x/reservoir-kit-ui@^2.7.22":
version "2.7.22"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.22.tgz#31765e9ce2a24ad213c12247d743b470cd1fe525"
integrity sha512-3NEy7bqw7+5dP7OZaDWQb+mMzbfST4ljJZMPgjSGZbsAmvdEC3Tl54Pb9xY2n/btYcS1zHGEayRVEXzUJmdD+Q==
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.18"
"@reservoir0x/reservoir-sdk" "2.4.19"
"@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.18":
version "2.4.18"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.18.tgz#70af728c497b31ea545fc817edb97b2414f63be5"
integrity sha512-v3AOIg5DY1ZbZDR5H5ZCLP9Y3ANAPFqpCn9dVgkZ500wlGQbBRBgc0q6p3aUmF9f3Rmz2q83388jlFN2GjcQgQ==
"@reservoir0x/reservoir-sdk@2.4.19":
version "2.4.19"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.19.tgz#6445b0e5bb93e49a34f4c00b5dde0d496c905d06"
integrity sha512-T6gBiNhmf6ftK6jz2447f49nsTwFF1CtAf67FgEMfh5YPPqQJeThd073Y49CF9AFmj1haUHSFt/Kwl2GFDgUiQ==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit 0b22b60

Please sign in to comment.