Skip to content

Commit

Permalink
feat: add SatoshiVM Chain (#2356)
Browse files Browse the repository at this point in the history
* feat: added SatoshiVM chain

* feat: added SatoshiVM Testnet chain

* chore: add changeset

* Update satoshivmTestnet.ts

* Update satoshivm.ts

---------

Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
blascokoa and jxom committed Jun 3, 2024
1 parent ba2c697 commit e667862
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-berries-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const satoshiVM = /*#__PURE__*/ defineChain({
id: 3109,
name: 'SatoshiVM Alpha Mainnet',
nativeCurrency: {
name: 'BTC',
symbol: 'BTC',
decimals: 18,
},
rpcUrls: {
default: { http: ['https://alpha-rpc-node-http.svmscan.io'] },
},
blockExplorers: {
default: {
name: 'blockscout',
url: 'https://svmscan.io',
apiUrl: 'https://svmscan.io/api',
},
},
})
22 changes: 22 additions & 0 deletions src/chains/definitions/satoshivmTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const satoshiVMTestnet = /*#__PURE__*/ defineChain({
id: 3110,
name: 'SatoshiVM Testnet',
nativeCurrency: {
name: 'BTC',
symbol: 'BTC',
decimals: 18,
},
rpcUrls: {
default: { http: ['https://test-rpc-node-http.svmscan.io'] },
},
blockExplorers: {
default: {
name: 'blockscout',
url: 'https://testnet.svmscan.io',
apiUrl: 'https://testnet.svmscan.io/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 @@ -212,6 +212,8 @@ export { rss3Sepolia } from './definitions/rss3Sepolia.js'
export { saigon } from './definitions/saigon.js'
export { sapphire } from './definitions/sapphire.js'
export { sapphireTestnet } from './definitions/sapphireTestnet.js'
export { satoshiVM } from './definitions/satoshivm.js'
export { satoshiVMTestnet } from './definitions/satoshivmTestnet.js'
export { scroll } from './definitions/scroll.js'
export { scrollSepolia } from './definitions/scrollSepolia.js'
export { sei } from './definitions/sei.js'
Expand Down

0 comments on commit e667862

Please sign in to comment.