You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- prepare escrow, provision, provider registration, and demo signer authorization during shared devenv startup
- simplify sds demo setup into demo-state verification plus env export only
- update integration helpers/tests for the new default bootstrap behavior
- switch .reflex to the deterministic demo signer and remove the obsolete .reflex.stack workflow
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,17 +33,7 @@ Now `sds` invokes `devel/sds` directly. Use [reflex](https://github.com/cespare/
33
33
reflex -c .reflex
34
34
```
35
35
36
-
Both reflex configs pass `--plaintext` explicitly for the local/demo sidecar↔gateway path. Outside local/demo usage, configure TLS certificate/key files instead of relying on plaintext defaults.
37
-
38
-
To keep on-chain state stable while restarting the rest of the stack, run `devenv` separately and use the stack-only reflex config:
39
-
40
-
```bash
41
-
./devel/sds devenv
42
-
./devel/sds demo setup # writes devel/.demo.env required by `.reflex.stack`
43
-
reflex -c .reflex.stack
44
-
```
45
-
46
-
`.reflex.stack` now fails fast if `devel/.demo.env` is missing or does not contain the required demo variables.
36
+
The default `.reflex` flow uses the deterministic demo signer that `sds devenv` authorizes automatically. It also passes `--plaintext` explicitly for the local/demo sidecar↔gateway path. Outside local/demo usage, configure TLS certificate/key files instead of relying on plaintext defaults.
47
37
48
38
We have `devel/sds_sink` helper that can be used to sink in data service mode (invokes `sds sink ...` configured for development environment):
49
39
@@ -58,6 +48,13 @@ sds_sink run common@v0.1.0 map_clocks -s -1
58
48
59
49
The `sds devenv` command starts an Anvil node and deploys Graph Protocol contracts (requires Docker). It deploys the original `PaymentsEscrow`, `GraphPayments`, and `GraphTallyCollector` contracts, plus `SubstreamsDataService` and various mock contracts (GRTToken, Controller, Staking, etc.) for testing. Integration tests use the same devenv via testcontainers.
60
50
51
+
After deployment, `devenv` also prepares the default local demo state:
52
+
53
+
- payer escrow funded for the default service provider
54
+
- data service provision minimum set to `0`
55
+
- default service provider provisioned and registered
56
+
- deterministic demo signer authorized for the default payer
57
+
61
58
```bash
62
59
sds devenv # Prints contract addresses and test accounts
63
60
```
@@ -79,6 +76,9 @@ Test accounts (10 ETH + 10,000 GRT each):
`sds demo setup` no longer mutates the chain. It verifies the default demo-ready state from `sds devenv` and writes `devel/.demo.env` for any manual env-driven workflows, but it is no longer required for the default `.reflex` flow.
0 commit comments