Skip to content

Commit 99812b9

Browse files
fe-dudujxom
andauthored
feat: add creditcoin3 chain (#3254)
* add creditcoin chain * Update twenty-zebras-yell.md --------- Co-authored-by: jxom <[email protected]>
1 parent 7475fdb commit 99812b9

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

.changeset/twenty-zebras-yell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Added creditcoin3 chain.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const creditCoin3Mainnet = /*#__PURE__*/ defineChain({
4+
id: 102030,
5+
name: 'Creditcoin3 Mainnet',
6+
nativeCurrency: { name: 'Creditcoin3 Mainnet', symbol: 'CTC', decimals: 18 },
7+
rpcUrls: {
8+
default: {
9+
http: ['https://mainnet3.creditcoin.network'],
10+
webSocket: ['wss://mainnet3.creditcoin.network'],
11+
},
12+
},
13+
blockExplorers: {
14+
default: {
15+
name: 'Blockscout',
16+
url: 'https://creditcoin.blockscout.com',
17+
apiUrl: 'https://creditcoin.blockscout.com/api',
18+
},
19+
},
20+
testnet: false,
21+
})
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const creditCoin3Testnet = /*#__PURE__*/ defineChain({
4+
id: 102031,
5+
name: 'Creditcoin3 Testnet',
6+
nativeCurrency: { name: 'Creditcoin3 Testnet', symbol: 'TCTC', decimals: 18 },
7+
rpcUrls: {
8+
default: {
9+
http: ['https://rpc.cc3-testnet.creditcoin.network'],
10+
webSocket: ['wss://rpc.cc3-testnet.creditcoin.network"'],
11+
},
12+
},
13+
blockExplorers: {
14+
default: {
15+
name: 'Blockscout',
16+
url: 'https://creditcoin-testnet.blockscout.com',
17+
apiUrl: 'https://creditcoin-testnet.blockscout.com/api',
18+
},
19+
},
20+
testnet: true,
21+
})

src/chains/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ export { corn } from './definitions/corn.js'
9797
export { cornTestnet } from './definitions/cornTestnet.js'
9898
export { crab } from './definitions/crab.js'
9999
export { creatorTestnet } from './definitions/creatorTestnet.js'
100+
export { creditCoin3Mainnet } from './definitions/creditCoin3Mainnet.js'
101+
export { creditCoin3Testnet } from './definitions/creditCoin3Testnet.js'
100102
export { cronos } from './definitions/cronos.js'
101103
export { cronosTestnet } from './definitions/cronosTestnet.js'
102104
export { cronoszkEVM } from './definitions/cronoszkEVM.js'

0 commit comments

Comments
 (0)