Sitelet https://github.com/wevm/references/commit/384681190df6c80a74e82359859106b27ca3ac05
Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 3846811

Browse files
aschenkutteljxom
andauthored
feat: added q mainnet and testnet (#451)
* 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>
1 parent a432a2b commit 3846811

4 files changed

Lines changed: 52 additions & 0 deletions

File tree

‎.changeset/twelve-rocks-glow.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wagmi/chains": patch
3+
---
4+
5+
Added Q mainnet and testnet

‎packages/chains/src/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ export { polygonZkEvmTestnet } from './polygonZkEvmTestnet'
8282
export { polygonZkEvm } from './polygonZkEvm'
8383
export { pulsechain } from './pulsechain'
8484
export { pulsechainV4 } from './pulsechainV4'
85+
export { qMainnet } from './qMainnet'
86+
export { qTestnet } from './qTestnet'
8587
export { ronin } from './ronin'
8688
export { saigon } from './saigon'
8789
export { scrollSepolia } from './scrollSepolia'

‎packages/chains/src/qMainnet.ts‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Chain } from './types'
2+
3+
export const qMainnet = {
4+
id: 35441,
5+
name: 'Q Mainnet',
6+
network: 'q-mainnet',
7+
nativeCurrency: {
8+
decimals: 18,
9+
name: 'Q',
10+
symbol: 'Q',
11+
},
12+
rpcUrls: {
13+
default: { http: ['https://rpc.q.org'] },
14+
public: { http: ['https://rpc.q.org'] },
15+
},
16+
blockExplorers: {
17+
default: {
18+
name: 'Q Mainnet Explorer',
19+
url: 'https://explorer.q.org',
20+
},
21+
},
22+
} as const satisfies Chain

‎packages/chains/src/qTestnet.ts‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { Chain } from './types'
2+
3+
export const qTestnet = {
4+
id: 35443,
5+
name: 'Q Testnet',
6+
network: 'q-testnet',
7+
nativeCurrency: {
8+
decimals: 18,
9+
name: 'Q',
10+
symbol: 'Q',
11+
},
12+
rpcUrls: {
13+
default: { http: ['https://rpc.qtestnet.org'] },
14+
public: { http: ['https://rpc.qtestnet.org'] },
15+
},
16+
blockExplorers: {
17+
default: {
18+
name: 'Q Testnet Explorer',
19+
url: 'https://explorer.qtestnet.org',
20+
},
21+
},
22+
testnet: true,
23+
} as const satisfies Chain

0 commit comments

Comments
 (0)