diff --git a/package.json b/package.json index c7e2f4ec5..5b5436291 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/public/icons/flow-icon-dark.svg b/public/icons/flow-icon-dark.svg new file mode 100644 index 000000000..6c769f804 --- /dev/null +++ b/public/icons/flow-icon-dark.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/public/icons/flow-icon-light.svg b/public/icons/flow-icon-light.svg new file mode 100644 index 000000000..532395f6f --- /dev/null +++ b/public/icons/flow-icon-light.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/utils/chains.ts b/utils/chains.ts index 755b9cbe5..b956ae6ee 100644 --- a/utils/chains.ts +++ b/utils/chains.ts @@ -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[] diff --git a/utils/paymentTokens.ts b/utils/paymentTokens.ts index 6322fd2fc..b4aaa5203 100644 --- a/utils/paymentTokens.ts +++ b/utils/paymentTokens.ts @@ -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 diff --git a/utils/wrappedContracts.ts b/utils/wrappedContracts.ts index 8f66478bf..b8f2a06ff 100644 --- a/utils/wrappedContracts.ts +++ b/utils/wrappedContracts.ts @@ -29,6 +29,7 @@ const wrappedContracts: Record = { 984122: '0xd5eace1274dbf70960714f513db207433615a263', // forma 33139: '0x8643a49363e80c7a15790703b915d1b0b6b71d56', // apechain 360: '0x48a9b22b80f566e88f0f1dcc90ea15a8a3bae8a4', // shape + 747: '0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e', // flow } export default wrappedContracts diff --git a/yarn.lock b/yarn.lock index b44067d76..6d6397cea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -1772,7 +1772,7 @@ "@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" @@ -1780,10 +1780,10 @@ 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"