Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@
"semi": false,
"singleQuote": true,
"trailingComma": "none"
},
"dependencies": {
"viem": "~2.9.31"
}
}
28 changes: 28 additions & 0 deletions packages/sdk/src/utils/customChains.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import type { Chain } from 'viem'

export const calderaTestnet = {
id: 4654,
name: 'Creator Testnet',
nativeCurrency: {
name: 'ETH',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://creator-testnet.rpc.caldera.xyz/http'],
webSocket: undefined
},
public: {
http: ['https://creator-testnet.rpc.caldera.xyz/http'],
webSocket: undefined
}
},
blockExplorers: {
default: {
name: 'Caldera Explorer',
url: 'https://creator-testnet.explorer.caldera.xyz'
}
},
testnet: true,
} as const satisfies Chain
18 changes: 18 additions & 0 deletions packages/sdk/src/utils/reservoirChains.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { Chain } from 'viem'
import { calderaTestnet } from './customChains'

export type ReservoirChain = Chain & {
lightIconUrl?: string
darkIconUrl?: string
reservoirBaseUrl?: string
proxyApi?: string
collectionSetId?: string
community?: string
}

export const reservoirChains: ReservoirChain[] = [
{
...calderaTestnet,
reservoirBaseUrl: 'https://api-creator-testnet.reservoir.tools'
}
]
2 changes: 1 addition & 1 deletion packages/ui/src/components/primitives/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ AnimatedContent.displayName = 'AnimatedContent'

type Props = {
trigger: ReactNode
portalProps?: DialogPrimitive.PortalProps
portalProps?: ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>
}

const Dialog = forwardRef<
Expand Down
13 changes: 13 additions & 0 deletions packages/ui/src/constants/ChainSuggestedTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export enum ChainId {
ATLAS_RELAY_TESTNET = 1357,
B3_SEPOLIA = 1993,
LISK_SEPOLIA = 4202,
CREATOR_TESTNET = 4654,
ARENA_Z_TESTNET = 9897,
SHAPE_SEPOLIA = 11011,
ABSTRACT_TESTNET = 11124,
Expand Down Expand Up @@ -557,6 +558,18 @@ const ChainSuggestedTokens: Record<number, Token[]> = {
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
verified: true
}
],
[ChainId.CREATOR_TESTNET]: [
{
chainId: ChainId.CREATOR_TESTNET,
address: '0x34AF38Ec07708dBC01C5A814fc418D3840448fce',
name: 'Wrapped Ether',
symbol: 'WETH',
decimals: 18,
logoURI:
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
verified: true
}
]
}

Expand Down
Loading
Loading