Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
feat: added q mainnet and testnet (#451)
Browse files Browse the repository at this point in the history
* added q mainnet and testnet

* space in symbol as metamask workaround since they expect 2-6 characters

* Update qMainnet.ts

* Update qTestnet.ts

* Update qMainnet.ts

* Update qTestnet.ts

* Create twelve-rocks-glow.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
aschenkuttel and jxom authored Aug 9, 2023
1 parent a432a2b commit 3846811
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-rocks-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": patch
---

Added Q mainnet and testnet
2 changes: 2 additions & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export { polygonZkEvmTestnet } from './polygonZkEvmTestnet'
export { polygonZkEvm } from './polygonZkEvm'
export { pulsechain } from './pulsechain'
export { pulsechainV4 } from './pulsechainV4'
export { qMainnet } from './qMainnet'
export { qTestnet } from './qTestnet'
export { ronin } from './ronin'
export { saigon } from './saigon'
export { scrollSepolia } from './scrollSepolia'
Expand Down
22 changes: 22 additions & 0 deletions packages/chains/src/qMainnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Chain } from './types'

export const qMainnet = {
id: 35441,
name: 'Q Mainnet',
network: 'q-mainnet',
nativeCurrency: {
decimals: 18,
name: 'Q',
symbol: 'Q',
},
rpcUrls: {
default: { http: ['https://rpc.q.org'] },
public: { http: ['https://rpc.q.org'] },
},
blockExplorers: {
default: {
name: 'Q Mainnet Explorer',
url: 'https://explorer.q.org',
},
},
} as const satisfies Chain
23 changes: 23 additions & 0 deletions packages/chains/src/qTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Chain } from './types'

export const qTestnet = {
id: 35443,
name: 'Q Testnet',
network: 'q-testnet',
nativeCurrency: {
decimals: 18,
name: 'Q',
symbol: 'Q',
},
rpcUrls: {
default: { http: ['https://rpc.qtestnet.org'] },
public: { http: ['https://rpc.qtestnet.org'] },
},
blockExplorers: {
default: {
name: 'Q Testnet Explorer',
url: 'https://explorer.qtestnet.org',
},
},
testnet: true,
} as const satisfies Chain

0 comments on commit 3846811

Please sign in to comment.