Skip to content

Commit 1dd83cd

Browse files
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/coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
fetch-depth: 0 # Fetch the full history instead of a shallow clone
2121

2222
- uses: oven-sh/setup-bun@v2
23+
with:
24+
bun-version: "1.3.x"
2325

2426
- uses: browser-actions/setup-chrome@v1
2527
- run: chrome --version

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
registry-url: 'https://registry.npmjs.org'
3131

3232
- uses: oven-sh/setup-bun@v2
33+
with:
34+
bun-version: "1.3.x"
3335

3436
- name: Install system dependencies
3537
run: sudo apt-get update && sudo apt-get install -y rsync

0 commit comments

Comments
 (0)