Skip to content

Commit 97e2ab4

Browse files
Refactor configuration management to support JSON format (#292)
* Refactor configuration management to support JSON format - Removed TOML configuration files and replaced them with JSON equivalents. - Updated the configuration loading logic to parse JSON instead of TOML. - Adjusted account implementations to handle JSON-based configurations. - Enhanced validation and error handling for JSON configurations. - Updated README and CLI commands to reflect the new JSON configuration format. - Added a new demo configuration file in JSON format. * fix * feat(solver-demo): load init config from active storage backend * test(solver-demo): merge init storage tests into existing module * clippy * docs(solver-demo): document init load-storage workflow * fix clappy * fix * fix
1 parent f8543a1 commit 97e2ab4

File tree

67 files changed

+3462
-3484
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3462
-3484
lines changed

Cargo.lock

Lines changed: 6 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ tempfile = "3.0"
6868
thiserror = "2.0.12"
6969
tokio = { version = "1.40", features = ["full"] }
7070
tokio-stream = "0.1"
71-
toml = "0.9.2"
7271
tower = "0.5.2"
7372
tower-http = { version = "0.6.6", features = ["trace", "cors"] }
7473
tracing = "0.1"

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ sequenceDiagram
854854

855855
The admin API enables authorized wallet addresses to perform administrative operations using EIP-712 signed messages. This provides secure, decentralized admin access without shared secrets.
856856

857-
**Setup:** Configure admin addresses in your bootstrap config or TOML config:
857+
**Setup:** Configure admin addresses in your seed overrides JSON:
858858

859859
```json
860860
{
@@ -1101,8 +1101,8 @@ git clone https://github.com/openintentsframework/oif-contracts.git
11011101
cd oif-contracts && forge build && cd ..
11021102

11031103
# 1. Initialize configuration and load it
1104-
cargo run -p solver-demo -- init new config/demo.toml
1105-
cargo run -p solver-demo -- init load config/demo.toml --local
1104+
cargo run -p solver-demo -- init new config/demo.json
1105+
cargo run -p solver-demo -- init load config/demo.json --local
11061106

11071107
# 2. Start local environment (Anvil chains)
11081108
cargo run -p solver-demo -- env start
@@ -1295,9 +1295,10 @@ The demo tool generates files in the `.oif-demo/requests/` directory following a
12951295

12961296
The demo tool provides a complete workflow for setting up a test environment:
12971297

1298-
1. **Initialize Configuration** (`init new` / `init load`):
1298+
1. **Initialize Configuration** (`init new` / `init load` / `init load-storage`):
12991299

13001300
- Creates or loads solver configuration
1301+
- Can load runtime config directly from storage backend (`init load-storage`)
13011302
- Sets up network definitions and RPC endpoints
13021303
- Configures account keys and signing
13031304
- Stores session data in `.oif-demo/` directory

0 commit comments

Comments
 (0)