Skip to content

Commit

Permalink
feat: add creditcoin3 chain (#3254)
Browse files Browse the repository at this point in the history
* add creditcoin chain

* Update twenty-zebras-yell.md

---------

Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>
  • Loading branch information
fe-dudu and jxom authored Jan 22, 2025
1 parent 7475fdb commit 99812b9
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-zebras-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const creditCoin3Mainnet = /*#__PURE__*/ defineChain({
id: 102030,
name: 'Creditcoin3 Mainnet',
nativeCurrency: { name: 'Creditcoin3 Mainnet', symbol: 'CTC', decimals: 18 },
rpcUrls: {
default: {
http: ['https://mainnet3.creditcoin.network'],
webSocket: ['wss://mainnet3.creditcoin.network'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://creditcoin.blockscout.com',
apiUrl: 'https://creditcoin.blockscout.com/api',
},
},
testnet: false,
})
21 changes: 21 additions & 0 deletions src/chains/definitions/creditCoin3Testnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const creditCoin3Testnet = /*#__PURE__*/ defineChain({
id: 102031,
name: 'Creditcoin3 Testnet',
nativeCurrency: { name: 'Creditcoin3 Testnet', symbol: 'TCTC', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.cc3-testnet.creditcoin.network'],
webSocket: ['wss://rpc.cc3-testnet.creditcoin.network"'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://creditcoin-testnet.blockscout.com',
apiUrl: 'https://creditcoin-testnet.blockscout.com/api',
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export { corn } from './definitions/corn.js'
export { cornTestnet } from './definitions/cornTestnet.js'
export { crab } from './definitions/crab.js'
export { creatorTestnet } from './definitions/creatorTestnet.js'
export { creditCoin3Mainnet } from './definitions/creditCoin3Mainnet.js'
export { creditCoin3Testnet } from './definitions/creditCoin3Testnet.js'
export { cronos } from './definitions/cronos.js'
export { cronosTestnet } from './definitions/cronosTestnet.js'
export { cronoszkEVM } from './definitions/cronoszkEVM.js'
Expand Down

0 comments on commit 99812b9

Please sign in to comment.