Skip to content

Commit

Permalink
feat: add cyber testnet (#2161)
Browse files Browse the repository at this point in the history
* add cyber testnet

* Update cyberTestnet.ts

* Create few-impalas-tickle.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
PengDeng-Cyber and jxom committed Apr 21, 2024
1 parent 089d960 commit 601ed60
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-impalas-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const cyberTestnet = /*#__PURE__*/ defineChain({
id: 111_557_560,
name: 'Cyber Testnet',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://cyber-testnet.alt.technology'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://cyber-testnet-explorer.alt.technology',
apiUrl: 'https://cyber-testnet-explorer.alt.technology/api',
},
},
contracts: {
multicall3: {
address: '0xffc391F0018269d4758AEA1a144772E8FB99545E',
blockCreated: 304545,
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export { coreDao } from './definitions/coreDao.js'
export { cronos } from './definitions/cronos.js'
export { cronosTestnet } from './definitions/cronosTestnet.js'
export { crossbell } from './definitions/crossbell.js'
export { cyberTestnet } from './definitions/cyberTestnet.js'
export { darwinia } from './definitions/darwinia.js'
export { defichainEvm } from './definitions/defichainEvm.js'
export { defichainEvmTestnet } from './definitions/defichainEvmTestnet.js'
Expand Down

0 comments on commit 601ed60

Please sign in to comment.