Commit 1dd83cd
committed
Refactor resources into modules & update security
Split the monolithic core/resources.ts into focused modules (balance, block, network, token, transaction) and added helpers and an index to register all EVM resources. Updated server import to use the new resources index and removed the old resources.ts file. Changed contracts service to stop reading private key from config and rely on wallet provider (removed direct private-key checks). Replaced Console+process.exit security handling with thrown errors in validateSecurityConfig to improve testability and signal unsafe config explicitly. Pinned bun-version to "1.3.x" in CI workflows and updated tests to reflect the refactor and new error behavior.1 parent be7b473 commit 1dd83cd
15 files changed
Lines changed: 498 additions & 805 deletions
File tree
- .github/workflows
- packages/mcp-server/src
- core
- resources
- services
- server
- transport
- tests
- core/services
- server/transport
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments