Skip to content

Commit

Permalink
Added a local seid chain object for usage with viem (#203)
Browse files Browse the repository at this point in the history
* Added a local seid chain object for usage with viem

* Added changeset for NPM release
  • Loading branch information
codebycarson authored Jan 6, 2025
1 parent 489556b commit 1554931
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-shoes-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sei-js/evm": patch
---

Added a new export to connect to a local chain (seid) with viem
12 changes: 12 additions & 0 deletions packages/evm/src/viem/chain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineChain } from 'viem';

export const seiLocal = defineChain({
id: 713715,
name: 'Sei Local',
nativeCurrency: { name: 'Sei', symbol: 'SEI', decimals: 18 },
rpcUrls: {
default: {
http: ['http://localhost:8545']
}
}
});
2 changes: 2 additions & 0 deletions packages/evm/src/viem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ export * from './pointerPrecompile';
export * from './pointerviewPrecompile';
export * from './stakingPrecompile';
export * from './wasmPrecompile';

export * from './chain';

0 comments on commit 1554931

Please sign in to comment.