Skip to content

Commit

Permalink
feat: add degen chain (#287)
Browse files Browse the repository at this point in the history
* feat: add degen chain

* chore: changesets
  • Loading branch information
dalechyn authored Apr 28, 2024
1 parent 0d41ddf commit 268ee0d
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-fishes-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frog": patch
---

Added degen chain support. [See more](https://warpcast.com/horsefacts.eth/0xd4fede11).
48 changes: 36 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/types/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export type ChainNamespace = 'eip155'
* - 8453: Base
* - 84532: Base Sepolia
* - 7777777: Zora
* - 666666666: Degen
*/
export type ChainIdEip155 = 1 | 10 | 8453 | 84532 | 7777777
export type ChainIdEip155 = 1 | 10 | 8453 | 84532 | 7777777 | 666666666

export type TransactionParameters = {
/** A CAIP-2 Chain ID to identify the transaction network. */
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"shiki": "^1.1.7",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
"viem": "^2.7.10",
"viem": "^2.9.28",
"vite": "^5.1.6",
"wagmi": "^2.5.11",
"zustand": "^4.5.2"
Expand Down
5 changes: 3 additions & 2 deletions ui/src/lib/wagmi.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { QueryClient } from '@tanstack/react-query'
import { http, createConfig, createStorage } from 'wagmi'
import { base, baseSepolia, mainnet, optimism, zora } from 'wagmi/chains'
import { base, baseSepolia, degen, mainnet, optimism, zora } from 'wagmi/chains'
import { coinbaseWallet, walletConnect } from 'wagmi/connectors'

export const config = createConfig({
chains: [mainnet, base, baseSepolia, optimism, zora],
chains: [mainnet, base, baseSepolia, degen, optimism, zora],
connectors: [
coinbaseWallet({ appName: 'Frog Devtools', headlessMode: true }),
walletConnect({
Expand All @@ -17,6 +17,7 @@ export const config = createConfig({
[mainnet.id]: http(),
[base.id]: http(),
[baseSepolia.id]: http(),
[degen.id]: http(),
[optimism.id]: http(),
[zora.id]: http(),
},
Expand Down

0 comments on commit 268ee0d

Please sign in to comment.