Skip to content

Commit

Permalink
Merge branch 'jaden/platf-3966-reservoirkit-support-for-nebula' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Jul 11, 2024
2 parents e8e6594 + e1987b5 commit 3cdbc38
Show file tree
Hide file tree
Showing 7 changed files with 455 additions and 751 deletions.
10 changes: 9 additions & 1 deletion hooks/useChainCurrency.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mainnet, sepolia } from 'wagmi/chains'
import { mainnet, sepolia, skaleNebula } from 'wagmi/chains'
import { useMarketplaceChain } from 'hooks'
import { zeroAddress } from 'viem'

Expand All @@ -14,6 +14,14 @@ export default function () {
address: zeroAddress,
chainId: chain?.id || mainnet.id,
}
} else if (chain.id === skaleNebula.id) {
return {
name: 'Europa ETH',
symbol: 'ETH',
decimals: 18,
address: '0xab01bad2c86e24d371a13ed6367bdca819589c5d',
chainId: 1482601649,
}
} else {
return {
...chain.nativeCurrency,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@radix-ui/react-toast": "1.1.4",
"@radix-ui/react-toggle-group": "^1.0.1",
"@radix-ui/react-tooltip": "1.0.6",
"@rainbow-me/rainbowkit": "2.0.0",
"@reservoir0x/reservoir-kit-ui": "^2.5.22",
"@rainbow-me/rainbowkit": "2.1.2",
"@reservoir0x/reservoir-kit-ui": "2.6.2",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand All @@ -53,8 +53,8 @@
"upgrade": "^1.1.0",
"usehooks-ts": "^2.9.1",
"uuid": "^9.0.0",
"viem": "~2.7.8",
"wagmi": "~2.5.7",
"viem": "~2.9.31",
"wagmi": "~2.10.3",
"yarn": "^1.22.19"
},
"prettier": {
Expand Down
84 changes: 49 additions & 35 deletions public/icons/redstone-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.
85 changes: 49 additions & 36 deletions public/icons/redstone-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.
16 changes: 6 additions & 10 deletions utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,25 +450,21 @@ export default [
community: process.env.NEXT_PUBLIC_NEBULA_COMMUNITY,
listingCurrencies: [
{
chainId: 1482601649,
address: '0xab01bad2c86e24d371a13ed6367bdca819589c5d',
contract: '0xab01bad2c86e24d371a13ed6367bdca819589c5d',
symbol: 'ETH',
name: 'Europa ETH',
decimals: 18,
},
{
chainId: 1482601649,
address: '0xcc205196288b7a26f6d43bbd68aaa98dde97276d',
contract: '0xcc205196288b7a26f6d43bbd68aaa98dde97276d',
symbol: 'USDC',
name: 'USDC',
decimals: 18,
decimals: 6,
coinGeckoId: 'usd-coin',
},
{
chainId: 1482601649,
address: '0x7f73b66d4e6e67bcdeaf277b9962addcdabbfc4d',
contract: '0x7f73b66d4e6e67bcdeaf277b9962addcdabbfc4d',
symbol: 'SKL',
name: 'SKL',
decimals: 18,
coinGeckoId: 'skale',
},
],
oracleBidsEnabled: true,
Expand Down
6 changes: 3 additions & 3 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,14 +641,14 @@ export const chainPaymentTokensMap = {
chainId: 1482601649,
address: '0xcc205196288b7a26f6d43bbd68aaa98dde97276d',
symbol: 'USDC',
name: 'USDC',
decimals: 18,
name: 'Europa USDC',
decimals: 6,
},
{
chainId: 1482601649,
address: '0x7f73b66d4e6e67bcdeaf277b9962addcdabbfc4d',
symbol: 'SKL',
name: 'SKL',
name: 'Europa SKL',
decimals: 18,
},
],
Expand Down
Loading

0 comments on commit 3cdbc38

Please sign in to comment.