diff --git a/.circleci/token/run.sh b/.circleci/token/run.sh index 812d1c2b85..bff3959a56 100644 --- a/.circleci/token/run.sh +++ b/.circleci/token/run.sh @@ -8,18 +8,18 @@ fi # The private key and address of Alice. # Swap these into .env, when running transactions as the first bidder. -# NETWORK=mainnet +# NETWORK=testnet # PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH # The private key and address of Bob. # Swap these into program.json, when running transactions as the second bidder. -# NETWORK=mainnet +# NETWORK=testnet # PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh # Swap in the private key of Alice. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -54,7 +54,7 @@ leo run mint_public aleo13ssze66adjjkt795z9u5wpq8h6kn0y2657726h4h3e3wfnez4vqsm30 # Swap in the private key of Bob. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -89,7 +89,7 @@ leo run mint_private aleo17vy26rpdhqx4598y5gp7nvaa9rk7tnvl6ufhvvf4calsrrqdaqyshd # Swap in the private key of Alice. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -124,7 +124,7 @@ leo run transfer_public aleo17vy26rpdhqx4598y5gp7nvaa9rk7tnvl6ufhvvf4calsrrqdaqy # Swap in the private key of Bob. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -163,7 +163,7 @@ leo run transfer_private "{ # Swap in the private key of Alice. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -199,7 +199,7 @@ leo run transfer_public_to_private aleo17vy26rpdhqx4598y5gp7nvaa9rk7tnvl6ufhvvf4 # Swap in the private key of Bob. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -241,7 +241,7 @@ leo run transfer_private_to_public "{ # Swap in the private key of Alice. # This is done to ensure that program.json is the same after every execution of ./run.sh. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env diff --git a/compiler/parser/examples/parser.rs b/compiler/parser/examples/parser.rs index cf093f412d..cd7450f061 100644 --- a/compiler/parser/examples/parser.rs +++ b/compiler/parser/examples/parser.rs @@ -39,8 +39,8 @@ struct Opt { #[clap(short, long)] print_stdout: bool, - /// The network to use. Defaults to mainnet. - #[clap(long, default_value = "mainnet")] + /// The network to use. Defaults to testnet. + #[clap(long, default_value = "testnet")] pub(crate) network: String, } diff --git a/errors/src/errors/utils/util_errors.rs b/errors/src/errors/utils/util_errors.rs index da25660922..98c1366cc8 100644 --- a/errors/src/errors/utils/util_errors.rs +++ b/errors/src/errors/utils/util_errors.rs @@ -114,7 +114,7 @@ create_messages!( missing_network_error { args: (dependency: impl Display), msg: format!("Dependency {dependency} is missing a network specification"), - help: Some("Add a network specification to the dependency in the `program.json` file. Example: `network: \"mainnet\"`".to_string()), + help: Some("Add a network specification to the dependency in the `program.json` file. Example: `network: \"testnet\"`".to_string()), } @formatted diff --git a/examples/auction/.env b/examples/auction/.env index f5b42ea894..cb5fec963e 100644 --- a/examples/auction/.env +++ b/examples/auction/.env @@ -1,4 +1,4 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/auction/run.sh b/examples/auction/run.sh index d94296f936..7804637849 100755 --- a/examples/auction/run.sh +++ b/examples/auction/run.sh @@ -8,18 +8,18 @@ fi # The private key and address of the first bidder. # Swap these into program.json, when running transactions as the first bidder. -# NETWORK=mainnet +# NETWORK=testnet # PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH # The private key and address of the second bidder. # Swap these into program.json, when running transactions as the second bidder. -# NETWORK=mainnet +# NETWORK=testnet # PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh # The private key and address of the auctioneer. # Swap these into program.json, when running transactions as the auctioneer. -# NETWORK=mainnet +# NETWORK=testnet # PRIVATE_KEY=APrivateKey1zkp2GUmKbVsuc1NSj28pa1WTQuZaK5f1DQJAT6vPcHyWokG @@ -38,7 +38,7 @@ echo " " # Swap in the private key and address of the first bidder to .env. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -61,7 +61,7 @@ leo run place_bid aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9p # Swap in the private key and address of the second bidder to .env. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -84,7 +84,7 @@ leo run place_bid aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0xzqqw29q9m5pqem2u4 # Swap in the private key and address of the auctioneer to .env. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2GUmKbVsuc1NSj28pa1WTQuZaK5f1DQJAT6vPcHyWokG ENDPOINT=https://localhost:3030 " > .env @@ -142,7 +142,7 @@ leo run finish "{ # Restore the .env file to its original state. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env diff --git a/examples/basic_bank/.env b/examples/basic_bank/.env index f5b42ea894..cb5fec963e 100644 --- a/examples/basic_bank/.env +++ b/examples/basic_bank/.env @@ -1,4 +1,4 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/basic_bank/run.sh b/examples/basic_bank/run.sh index 7ba84051f8..109119bb78 100755 --- a/examples/basic_bank/run.sh +++ b/examples/basic_bank/run.sh @@ -8,17 +8,17 @@ fi # The private key and address of the bank. # Swap these into program.json, when running transactions as the bank. -# NETWORK=mainnet +# NETWORK=testnet # PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH # The private key and address of the user. # Swap these into program.json, when running transactions as the user. -# NETWORK=mainnet +# NETWORK=testnet # PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh # Swap in the private key and address of the bank to .env. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -69,7 +69,7 @@ leo run issue aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0xzqqw29q9m5pqem2u4t 10 # Swap in the private key and address of the user to .env. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -164,7 +164,7 @@ echo " # Swap in the private key and address of the bank to .env. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env diff --git a/examples/battleship/.env b/examples/battleship/.env index f0216e5f1b..8df6a23e94 100644 --- a/examples/battleship/.env +++ b/examples/battleship/.env @@ -1,5 +1,5 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 diff --git a/examples/battleship/run.sh b/examples/battleship/run.sh index 0f6d6eacae..ed66acecc0 100755 --- a/examples/battleship/run.sh +++ b/examples/battleship/run.sh @@ -17,7 +17,7 @@ echo " " echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -68,7 +68,7 @@ echo " " echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -117,7 +117,7 @@ echo " " echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -153,7 +153,7 @@ echo " " echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -189,7 +189,7 @@ echo " " echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -225,7 +225,7 @@ echo " " echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -254,7 +254,7 @@ echo " # Restore the .env file to its original state echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env diff --git a/examples/bubblesort/.env b/examples/bubblesort/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/bubblesort/.env +++ b/examples/bubblesort/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/core/.env b/examples/core/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/core/.env +++ b/examples/core/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/fibonacci/.env b/examples/fibonacci/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/fibonacci/.env +++ b/examples/fibonacci/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/groups/.env b/examples/groups/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/groups/.env +++ b/examples/groups/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/hackers-delight/ntzdebruijn/.env b/examples/hackers-delight/ntzdebruijn/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/hackers-delight/ntzdebruijn/.env +++ b/examples/hackers-delight/ntzdebruijn/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/hackers-delight/ntzgaudet/.env b/examples/hackers-delight/ntzgaudet/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/hackers-delight/ntzgaudet/.env +++ b/examples/hackers-delight/ntzgaudet/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/hackers-delight/ntzloops/.env b/examples/hackers-delight/ntzloops/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/hackers-delight/ntzloops/.env +++ b/examples/hackers-delight/ntzloops/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/hackers-delight/ntzmasks/.env b/examples/hackers-delight/ntzmasks/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/hackers-delight/ntzmasks/.env +++ b/examples/hackers-delight/ntzmasks/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/hackers-delight/ntzreisers/.env b/examples/hackers-delight/ntzreisers/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/hackers-delight/ntzreisers/.env +++ b/examples/hackers-delight/ntzreisers/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/hackers-delight/ntzseals/.env b/examples/hackers-delight/ntzseals/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/hackers-delight/ntzseals/.env +++ b/examples/hackers-delight/ntzseals/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/hackers-delight/ntzsearchtree/.env b/examples/hackers-delight/ntzsearchtree/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/hackers-delight/ntzsearchtree/.env +++ b/examples/hackers-delight/ntzsearchtree/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/hackers-delight/ntzsmallvals/.env b/examples/hackers-delight/ntzsmallvals/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/hackers-delight/ntzsmallvals/.env +++ b/examples/hackers-delight/ntzsmallvals/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/helloworld/.env b/examples/helloworld/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/helloworld/.env +++ b/examples/helloworld/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/interest/.env b/examples/interest/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/interest/.env +++ b/examples/interest/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/lottery/.env b/examples/lottery/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/lottery/.env +++ b/examples/lottery/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/message/.env b/examples/message/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/message/.env +++ b/examples/message/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/simple_token/.env b/examples/simple_token/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/simple_token/.env +++ b/examples/simple_token/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/tictactoe/.env b/examples/tictactoe/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/tictactoe/.env +++ b/examples/tictactoe/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/token/.env b/examples/token/.env index f5b42ea894..cb5fec963e 100644 --- a/examples/token/.env +++ b/examples/token/.env @@ -1,4 +1,4 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/token/run.sh b/examples/token/run.sh index 69b9f81993..cbf5393654 100755 --- a/examples/token/run.sh +++ b/examples/token/run.sh @@ -8,17 +8,17 @@ fi # The private key and address of Alice. # Swap these into program.json, when running transactions as the first bidder. -# NETWORK=mainnet +# NETWORK=testnet # PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH # The private key and address of Bob. # Swap these into program.json, when running transactions as the second bidder. -# NETWORK=mainnet +# NETWORK=testnet # PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh # Swap in the private key of Alice. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -53,7 +53,7 @@ leo run mint_public aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp # Swap in the private key of Bob. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -88,7 +88,7 @@ leo run mint_private aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0xzqqw29q9m5pqem # Swap in the private key of Alice. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -123,7 +123,7 @@ leo run transfer_public aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0xzqqw29q9m5p # Swap in the private key of Bob. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -162,7 +162,7 @@ leo run transfer_private "{ # Swap in the private key of Alice. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env @@ -198,7 +198,7 @@ leo run transfer_public_to_private aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0x # Swap in the private key of Bob. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh ENDPOINT=https://localhost:3030 " > .env @@ -240,7 +240,7 @@ leo run transfer_private_to_public "{ # Swap in the private key of Alice. # This is done to ensure that program.json is the same after every execution of ./run.sh. echo " -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 " > .env diff --git a/examples/twoadicity/.env b/examples/twoadicity/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/twoadicity/.env +++ b/examples/twoadicity/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/examples/vote/.env b/examples/vote/.env index ab80b96bf5..0a686ef86f 100644 --- a/examples/vote/.env +++ b/examples/vote/.env @@ -1,3 +1,3 @@ -NETWORK=mainnet +NETWORK=testnet PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH ENDPOINT=https://localhost:3030 diff --git a/leo/cli/commands/account.rs b/leo/cli/commands/account.rs index e9a36159c7..80e4bff989 100644 --- a/leo/cli/commands/account.rs +++ b/leo/cli/commands/account.rs @@ -47,7 +47,7 @@ pub enum Account { /// Print sensitive information (such as private key) discreetly to an alternate screen #[clap(long)] discreet: bool, - #[clap(short = 'n', long, help = "Name of the network to use", default_value = "mainnet")] + #[clap(short = 'n', long, help = "Name of the network to use", default_value = "testnet")] network: String, #[clap( short = 'e', @@ -67,7 +67,7 @@ pub enum Account { /// Print sensitive information (such as private key) discreetly to an alternate screen #[clap(long)] discreet: bool, - #[clap(short = 'n', long, help = "Name of the network to use", default_value = "mainnet")] + #[clap(short = 'n', long, help = "Name of the network to use", default_value = "testnet")] network: String, #[clap( short = 'e', @@ -94,7 +94,7 @@ pub enum Account { /// When enabled, parses the message as bytes instead of Aleo literals #[clap(short = 'r', long)] raw: bool, - #[clap(short = 'n', long, help = "Name of the network to use", default_value = "mainnet")] + #[clap(short = 'n', long, help = "Name of the network to use", default_value = "testnet")] network: String, }, /// Verify a message from an Aleo address. @@ -111,7 +111,7 @@ pub enum Account { /// When enabled, parses the message as bytes instead of Aleo literals #[clap(short = 'r', long)] raw: bool, - #[clap(short = 'n', long, help = "Name of the network to use", default_value = "mainnet")] + #[clap(short = 'n', long, help = "Name of the network to use", default_value = "testnet")] network: String, }, } diff --git a/leo/cli/commands/add.rs b/leo/cli/commands/add.rs index 54720807eb..57a6479cdb 100755 --- a/leo/cli/commands/add.rs +++ b/leo/cli/commands/add.rs @@ -28,7 +28,7 @@ pub struct Add { #[clap(short = 'l', long, help = "Path to local dependency")] pub(crate) local: Option, - #[clap(short = 'n', long, help = "Name of the network to use", default_value = "mainnet")] + #[clap(short = 'n', long, help = "Name of the network to use", default_value = "testnet")] pub(crate) network: String, #[clap(short = 'c', long, help = "Clear all previous dependencies.", default_value = "false")] diff --git a/leo/cli/commands/example.rs b/leo/cli/commands/example.rs index 44863c4c98..86d1aac040 100644 --- a/leo/cli/commands/example.rs +++ b/leo/cli/commands/example.rs @@ -23,7 +23,7 @@ use std::fs; pub struct Example { #[clap(name = "NAME", help = "The example to initialize.")] pub(crate) name: String, - #[clap(short = 'n', long, help = "Name of the network to use", default_value = "mainnet")] + #[clap(short = 'n', long, help = "Name of the network to use", default_value = "testnet")] pub(crate) network: String, #[clap( short = 'e', diff --git a/leo/cli/commands/new.rs b/leo/cli/commands/new.rs index df5fe53062..00cb9a622d 100644 --- a/leo/cli/commands/new.rs +++ b/leo/cli/commands/new.rs @@ -24,7 +24,7 @@ use leo_retriever::NetworkName; pub struct New { #[clap(name = "NAME", help = "Set package name")] pub(crate) name: String, - #[clap(short = 'n', long, help = "Name of the network to use", default_value = "mainnet")] + #[clap(short = 'n', long, help = "Name of the network to use", default_value = "testnet")] pub(crate) network: String, #[clap( short = 'e',