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
Copy file name to clipboardExpand all lines: README.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,13 +50,14 @@ aztec-up 2.0.2
50
50
51
51
### Environment Configuration
52
52
53
-
This project uses environment-specific `.env` files to manage configuration:
53
+
This project uses JSON configuration files to manage environment-specific settings:
54
54
55
-
-`.env.sandbox` - Configuration for local sandbox development
56
-
-`.env.testnet` - Configuration for testnet deployment
57
-
-`.env.local` - Alternative configuration for local development (optional)
55
+
-`config/sandbox.json` - Configuration for local sandbox development
56
+
-`config/testnet.json` - Configuration for testnet deployment
58
57
59
-
The system automatically loads the appropriate `.env` file based on the `ENV` environment variable. If `ENV` is not set, it defaults to `sandbox`.
58
+
The system automatically loads the appropriate configuration file based on the `ENV` environment variable. If `ENV` is not set, it defaults to `sandbox`.
59
+
60
+
The configuration files contain network URLs, timeouts, and environment-specific settings. You can modify these files to customize your development environment.
yarn interaction-existing-contract::testnet # Interact with testnet contracts
85
86
```
86
87
87
-
The `::testnet` suffix automatically sets `ENV=testnet`, loading configuration from `.env.testnet`.
88
+
The `::testnet` suffix automatically sets `ENV=testnet`, loading configuration from `config/testnet.json`.
88
89
89
90
---
90
91
@@ -171,10 +172,10 @@ You can find a handful of scripts in the `./scripts` folder.
171
172
172
173
The `./src/utils/` folder contains utility functions:
173
174
174
-
-`./src/utils/create_account_from_env.ts` provides functions to create Schnorr accounts from environment variables (SECRET and SALT), useful for account management across different environments.
175
-
-`./src/utils/setup_pxe.ts` provides a function to set up and configure the Private Execution Environment (PXE) service with proper configuration for local development.
175
+
-`./src/utils/create_account_from_env.ts` provides functions to create Schnorr accounts from environment variables (SECRET, SIGNING_KEY, and SALT), useful for account management across different environments.
176
+
-`./src/utils/setup_pxe.ts` provides a function to set up and configure the Private Execution Environment (PXE) service with proper configuration based on the environment.
176
177
-`./src/utils/deploy_account.ts` provides a function to deploy Schnorr accounts to the network with sponsored fee payment, including key generation and deployment verification.
177
-
-`./src/utils/environment.ts` provides environment-aware configuration loading, automatically selecting the correct `.env` file based on the `ENV` variable.
178
+
-`./config/config.ts` provides environment-aware configuration loading, automatically selecting the correct JSON config file based on the `ENV` variable.
0 commit comments