diff --git a/package.json b/package.json index 84cc5d25..153e060f 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.34", + "@reservoir0x/reservoir-kit-ui": "^2.7.41", "@sentry/nextjs": "^7.85.0", "@tanstack/react-query": "5.20.2", "@types/uuid": "^9.0.1", diff --git a/public/icons/game7-icon-dark.svg b/public/icons/game7-icon-dark.svg new file mode 100644 index 00000000..e95f6b08 --- /dev/null +++ b/public/icons/game7-icon-dark.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/public/icons/game7-icon-light.svg b/public/icons/game7-icon-light.svg new file mode 100644 index 00000000..4094a3f0 --- /dev/null +++ b/public/icons/game7-icon-light.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/utils/chains.ts b/utils/chains.ts index 589ce2d6..a3993915 100644 --- a/utils/chains.ts +++ b/utils/chains.ts @@ -602,4 +602,17 @@ export default [ oracleBidsEnabled: true, checkPollingInterval: reservoirChains.zero.checkPollingInterval, }, + { + ...customChains.game7, + name: 'game7', + lightIconUrl: '/icons/game7-icon-light.svg', + darkIconUrl: '/icons/game7-icon-dark.svg', + reservoirBaseUrl: reservoirChains.game7.baseApiUrl, + proxyApi: '/api/reservoir/game7', + routePrefix: 'game7', + apiKey: process.env.RESERVOIR_API_KEY, + coingeckoId: 'ethereum', + oracleBidsEnabled: true, + checkPollingInterval: reservoirChains.game7.checkPollingInterval, + }, ] as ReservoirChain[] diff --git a/utils/paymentTokens.ts b/utils/paymentTokens.ts index e2308a69..b1cdc7de 100644 --- a/utils/paymentTokens.ts +++ b/utils/paymentTokens.ts @@ -1001,4 +1001,22 @@ export const chainPaymentTokensMap = { decimals: 18, }, ], + + //game7 + 2187: [ + { + chainId: 2187, + address: zeroAddress, + symbol: 'G7', + name: 'Game7', + decimals: 18, + }, + { + chainId: 2187, + address: '0xfa3ed70386b9255fC04aA008A8ad1B0CDa816Fac', + symbol: 'Wrapped Game7', + name: 'WG7', + decimals: 18, + }, + ], } as Record diff --git a/utils/wrappedContracts.ts b/utils/wrappedContracts.ts index 6f955ba9..e38b7c57 100644 --- a/utils/wrappedContracts.ts +++ b/utils/wrappedContracts.ts @@ -32,6 +32,7 @@ const wrappedContracts: Record = { 747: '0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e', // flow 2911: '0x2b1499d631bffb29eed7749b12cba754273d6da7', // hychain 543210: '0xac98b49576b1c892ba6bfae08fe1bb0d80cf599c', // zero + 2187: '0xfa3ed70386b9255fC04aA008A8ad1B0CDa816Fac', // game7 } export default wrappedContracts diff --git a/yarn.lock b/yarn.lock index 7d750f8f..712bccc6 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.34": - version "2.7.34" - resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.34.tgz#a4dc4c158811ce9b8d1b78d4d54d07eb29be25f4" - integrity sha512-6tnMf+dNB8Q510gQmu/5zd4DMWPdbUKO4NHYmdmrU+twMYV9CJ9urPE/lcLHAdrUKUh/Hc7bP0rsWXMy9NT6dQ== +"@reservoir0x/reservoir-kit-ui@^2.7.41": + version "2.7.41" + resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.7.41.tgz#e281a18bdfaf9b3371b817c56965f67881b7b94f" + integrity sha512-dpb9uzhL4fbNOweBGAF71vcD8A5yrNOX6q9jru2qJ3a7U9TKe44qWbvAO5I9W++gFzInRa+hDc4+Lmelzk2XxQ== 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.28" + "@reservoir0x/reservoir-sdk" "2.4.32" "@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.28": - version "2.4.28" - resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.28.tgz#806f3924d8403f7dd560a27165f59d1a68a38414" - integrity sha512-a0ZiIpKalaG9Lbs15xFL52ZKI1P28eDNNqLj43ov5E2ddBppyh44HyQwQ5ixSKI9fALQA8u5GXuOJw1nByKFvQ== +"@reservoir0x/reservoir-sdk@2.4.32": + version "2.4.32" + resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.32.tgz#fae0f8760af2046abfe1a3bfabd2113c4a8bb34b" + integrity sha512-LNIZ7s394LswdMbjjY4N/1ik4sxQymkhLAsiT9AZi+whKTNe5pAqbO+IugpS/ZlWQT7tRREtShWNybtxlpYSPw== dependencies: axios "^1.6.7" @@ -6529,16 +6529,7 @@ strict-uri-encode@^2.0.0: resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ== -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -6635,14 +6626,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -7235,7 +7219,7 @@ which@^2.0.1, which@^2.0.2: dependencies: isexe "^2.0.0" -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -7253,15 +7237,6 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"