Skip to content

Commit 5de3825

Browse files
committed
update readme
1 parent 0ea54b4 commit 5de3825

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ This repo is meant to be a starting point for learning to write Aztec contracts
1212

1313
You can find the **Easy Private Voting contract** in `./src/main.nr`. A simple integration test is in `./src/test/e2e/index.test.ts`.
1414

15-
## Testnet
15+
## Devnet
1616

17-
This repo connects to a locally running Aztec Sandbox by default, but can be configured to connect to the testnet by specifying `AZTEC_ENV=testnet` in a `.env` file or by prefixing a command e.g. `AZTEC_ENV=testnet yarn deploy`.
17+
This repo connects to a locally running Aztec Sandbox by default, but can be configured to connect to the devnet by specifying `AZTEC_ENV=devnet` in a `.env` file or by prefixing a command e.g. `AZTEC_ENV=devnet yarn deploy`.
1818

1919
<div align="center">
2020

@@ -53,7 +53,7 @@ aztec-up 3.0.0-devnet.2
5353
This project uses JSON configuration files to manage environment-specific settings:
5454

5555
- `config/sandbox.json` - Configuration for local sandbox development
56-
- `config/testnet.json` - Configuration for testnet deployment
56+
- `config/devnet.json` - Configuration for devnet deployment
5757

5858
The system automatically loads the appropriate configuration file based on the `ENV` environment variable. If `ENV` is not set, it defaults to `sandbox`.
5959

@@ -74,18 +74,18 @@ yarn deploy # Deploy to sandbox
7474
yarn test # Run tests on sandbox
7575
```
7676

77-
### Running on Testnet
77+
### Running on Devnet
7878

79-
All scripts support a `::testnet` suffix to automatically use testnet configuration:
79+
All scripts support a `::devnet` suffix to automatically use devnet configuration:
8080

8181
```bash
82-
yarn deploy::testnet # Deploy to testnet
83-
yarn test::testnet # Run tests on testnet
84-
yarn deploy-account::testnet # Deploy account to testnet
85-
yarn interaction-existing-contract::testnet # Interact with testnet contracts
82+
yarn deploy::devnet # Deploy to devnet
83+
yarn test::devnet # Run tests on devnet
84+
yarn deploy-account::devnet # Deploy account to devnet
85+
yarn interaction-existing-contract::devnet # Interact with devnet contracts
8686
```
8787

88-
The `::testnet` suffix automatically sets `ENV=testnet`, loading configuration from `config/testnet.json`.
88+
The `::devnet` suffix automatically sets `ENV=devnet`, loading configuration from `config/devnet.json`.
8989

9090
---
9191

config/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class ConfigManager {
6565
return this.config.network;
6666
}
6767

68-
public isTestnet(): boolean {
68+
public isDevnet(): boolean {
6969
return this.config.environment === 'devnet';
7070
}
7171

@@ -91,7 +91,7 @@ export class ConfigManager {
9191
}
9292

9393
// Otherwise, use defaults based on environment
94-
if (this.isTestnet()) {
94+
if (this.isDevnet()) {
9595
return {
9696
deployTimeout: 1200000, // 20 minutes
9797
txTimeout: 180000, // 3 minutes

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"deploy-account::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/deploy_account.ts",
2121
"interaction-existing-contract": "node --loader ts-node/esm scripts/interaction_existing_contract.ts",
2222
"interaction-existing-contract::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/interaction_existing_contract.ts",
23-
"multiple-pxe": "node --loader ts-node/esm scripts/multiple_pxe.ts",
24-
"multiple-pxe::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/multiple_pxe.ts",
23+
"multiple-wallet": "node --loader ts-node/esm scripts/multiple_wallet.ts",
24+
"multiple-wallet::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/multiple_wallet.ts",
2525
"get-block": "node --loader ts-node/esm scripts/get_block.ts",
2626
"get-block::devnet": "AZTEC_ENV=devnet node --loader ts-node/esm scripts/get_block.ts",
2727
"profile": "node --loader ts-node/esm scripts/profile_deploy.ts",

0 commit comments

Comments
 (0)