Skip to content

Commit

Permalink
Merge pull request #539 from reservoirprotocol/pedro/platf-4762-add-g…
Browse files Browse the repository at this point in the history
…ame7-mainnet-to-reservoirkit-and-explorer

Add game7
  • Loading branch information
JadenDurnford authored Dec 18, 2024
2 parents 0890e99 + d1aba21 commit fa8b5ea
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 38 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.34",
"@reservoir0x/reservoir-kit-ui": "^2.7.41",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
10 changes: 10 additions & 0 deletions public/icons/game7-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.
10 changes: 10 additions & 0 deletions public/icons/game7-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 @@ -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[]
18 changes: 18 additions & 0 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number, PaymentToken[]>
1 change: 1 addition & 0 deletions utils/wrappedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const wrappedContracts: Record<number, string> = {
747: '0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e', // flow
2911: '0x2b1499d631bffb29eed7749b12cba754273d6da7', // hychain
543210: '0xac98b49576b1c892ba6bfae08fe1bb0d80cf599c', // zero
2187: '0xfa3ed70386b9255fC04aA008A8ad1B0CDa816Fac', // game7
}

export default wrappedContracts
49 changes: 12 additions & 37 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.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"
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.28"
"@reservoir0x/reservoir-sdk" "2.4.32"
"@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/[email protected].28":
version "2.4.28"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.4.28.tgz#806f3924d8403f7dd560a27165f59d1a68a38414"
integrity sha512-a0ZiIpKalaG9Lbs15xFL52ZKI1P28eDNNqLj43ov5E2ddBppyh44HyQwQ5ixSKI9fALQA8u5GXuOJw1nByKFvQ==
"@reservoir0x/[email protected].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"

Expand Down Expand Up @@ -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==
Expand Down Expand Up @@ -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==
Expand Down Expand Up @@ -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==
Expand All @@ -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"
Expand Down

0 comments on commit fa8b5ea

Please sign in to comment.