Skip to content

Commit

Permalink
feat: add Degen chain (#2050)
Browse files Browse the repository at this point in the history
* Add Degen chain

* Update degen.ts

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
cryptoflop and jxom committed Mar 31, 2024
1 parent d89514a commit dd0ed3e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-donkeys-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Degen chain.
23 changes: 23 additions & 0 deletions src/chains/definitions/degen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const degen = /*#__PURE__*/ defineChain({
id: 666666666,
name: 'Degen',
nativeCurrency: {
decimals: 18,
name: 'Degen',
symbol: 'DEGEN',
},
rpcUrls: {
default: {
http: ['https://rpc.degen.tips'],
},
},
blockExplorers: {
default: {
name: 'Degen Chain Explorer',
url: 'https://explorer.degen.tips',
apiUrl: 'https://explorer.degen.tips/api/v2',
},
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export { cronosTestnet } from './definitions/cronosTestnet.js'
export { crossbell } from './definitions/crossbell.js'
export { defichainEvm } from './definitions/defichainEvm.js'
export { defichainEvmTestnet } from './definitions/defichainEvmTestnet.js'
export { degen } from './definitions/degen.js'
export { dfk } from './definitions/dfk.js'
export { dogechain } from './definitions/dogechain.js'
export { edgeware } from './definitions/edgeware.js'
Expand Down

0 comments on commit dd0ed3e

Please sign in to comment.