Skip to content

Commit d2855cc

Browse files
authored
feat: add Jasmy Chain (#4088)
* Add Jasmy Chain * fix testnet --------- Co-authored-by: akitothemoon <[email protected]>
1 parent add94c4 commit d2855cc

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

.changeset/good-pets-visit.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 Jasmy Chain.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const jasmyChain = /*#__PURE__*/ defineChain({
4+
id: 680,
5+
name: 'Jasmy Chain',
6+
network: 'jasmyChain',
7+
nativeCurrency: { name: 'JasmyCoin', symbol: 'JASMY', decimals: 18 },
8+
rpcUrls: {
9+
default: {
10+
http: ['https://rpc.jasmychain.io'],
11+
webSocket: ['wss://rpc.jasmychain.io'],
12+
},
13+
},
14+
testnet: false,
15+
})
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const jasmyChainTestnet = /*#__PURE__*/ defineChain({
4+
id: 681,
5+
name: 'Jasmy Chain Testnet',
6+
network: 'jasmyChainTestnet',
7+
nativeCurrency: { name: 'JasmyCoin', symbol: 'JASMY', decimals: 18 },
8+
rpcUrls: {
9+
default: {
10+
http: ['https://rpc_testnet.jasmychain.io'],
11+
webSocket: ['wss://rpc_testnet.jasmychain.io'],
12+
},
13+
},
14+
testnet: true,
15+
})

src/chains/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ export { iotaTestnet } from './definitions/iotaTestnet.js'
286286
export { iotex } from './definitions/iotex.js'
287287
export { iotexTestnet } from './definitions/iotexTestnet.js'
288288
export { iSunCoin } from './definitions/iSunCoin.js'
289+
export { jasmyChain } from './definitions/jasmyChain.js'
290+
export { jasmyChainTestnet } from './definitions/jasmyChainTestnet.js'
289291
export { jbc } from './definitions/jbc.js'
290292
export { jbcTestnet } from './definitions/jbcTestnet.js'
291293
export { jocMainnet } from './definitions/jocMainnet.js'

0 commit comments

Comments
 (0)