Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/honest-emus-bet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Core Blockchain Testnet details
28 changes: 28 additions & 0 deletions src/chains/definitions/coreTestnet1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const coreTestnet1 = /*#__PURE__*/ defineChain({
id: 1115,
name: 'Core Testnet',
nativeCurrency: {
decimals: 18,
name: 'tCore',
symbol: 'TCORE',
},
rpcUrls: {
default: { http: ['https://rpc.test.btcs.network'] },
},
blockExplorers: {
default: {
name: 'Core Testnet',
url: 'https://scan.test.btcs.network',
apiUrl:'https://api.test.btcs.network/api',
},
},
contracts: {
multicall3: {
address: '0xCcddF20A1932537123C2E48Bd8e00b108B8f7569',
blockCreated: 29_350_509,
},
},
testnet: true,
})
28 changes: 28 additions & 0 deletions src/chains/definitions/coreTestnet2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const coreTestnet2 = /*#__PURE__*/ defineChain({
id: 1114,
name: 'Core Testnet2',
nativeCurrency: {
decimals: 18,
name: 'tCore2',
symbol: 'TCORE2',
},
rpcUrls: {
default: { http: ['https://rpc.test2.btcs.network'] },
},
blockExplorers: {
default: {
name: 'Core Testnet2',
url: 'https://scan.test2.btcs.network',
apiUrl:'https://api.test2.btcs.network/api',
},
},
contracts: {
multicall3: {
address: '0x3CB285ff3Cd5C7C7e570b1E7DE3De17A0f985e56',
blockCreated: 3_838_600,
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export { coinex } from './definitions/coinex.js'
export { confluxESpace } from './definitions/confluxESpace.js'
export { confluxESpaceTestnet } from './definitions/confluxESpaceTestnet.js'
export { coreDao } from './definitions/coreDao.js'
export { coreTestnet1 } from './definitions/coreTestnet1.js'
export { coreTestnet2 } from './definitions/coreTestnet2.js'
export { corn } from './definitions/corn.js'
export { cornTestnet } from './definitions/cornTestnet.js'
export { crab } from './definitions/crab.js'
Expand Down