Skip to content

Commit

Permalink
Merge pull request #28203 from ProvableHQ/feat/set-defaults-to-testnet
Browse files Browse the repository at this point in the history
[Fix] Set defaults to `testnet`.
  • Loading branch information
evan-schott authored Jul 8, 2024
2 parents d379044 + f22177e commit 1e77f75
Show file tree
Hide file tree
Showing 35 changed files with 71 additions and 71 deletions.
18 changes: 9 additions & 9 deletions .circleci/token/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions compiler/parser/examples/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down
2 changes: 1 addition & 1 deletion errors/src/errors/utils/util_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/auction/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
14 changes: 7 additions & 7 deletions examples/auction/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/basic_bank/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
10 changes: 5 additions & 5 deletions examples/basic_bank/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/battleship/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
ENDPOINT=https://localhost:3030

14 changes: 7 additions & 7 deletions examples/battleship/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ echo "
"

echo "
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
" > .env
Expand Down Expand Up @@ -68,7 +68,7 @@ echo "
"

echo "
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
ENDPOINT=https://localhost:3030
" > .env
Expand Down Expand Up @@ -117,7 +117,7 @@ echo "
"

echo "
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
" > .env
Expand Down Expand Up @@ -153,7 +153,7 @@ echo "
"

echo "
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
ENDPOINT=https://localhost:3030
" > .env
Expand Down Expand Up @@ -189,7 +189,7 @@ echo "
"

echo "
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
" > .env
Expand Down Expand Up @@ -225,7 +225,7 @@ echo "
"

echo "
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
ENDPOINT=https://localhost:3030
" > .env
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion examples/bubblesort/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/core/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/fibonacci/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/groups/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/hackers-delight/ntzdebruijn/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/hackers-delight/ntzgaudet/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/hackers-delight/ntzloops/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/hackers-delight/ntzmasks/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/hackers-delight/ntzreisers/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/hackers-delight/ntzseals/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/hackers-delight/ntzsearchtree/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/hackers-delight/ntzsmallvals/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/helloworld/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/interest/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/lottery/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/message/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/simple_token/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/tictactoe/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
2 changes: 1 addition & 1 deletion examples/token/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

NETWORK=mainnet
NETWORK=testnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
Loading

0 comments on commit 1e77f75

Please sign in to comment.