mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-22 05:00:59 +03:00
Set defaults
This commit is contained in:
parent
5ff127c120
commit
f22177e2c5
@ -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
|
||||
|
@ -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,
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -1,3 +1,3 @@
|
||||
NETWORK=mainnet
|
||||
NETWORK=testnet
|
||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||
ENDPOINT=https://localhost:3030
|
||||
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ pub struct Add {
|
||||
#[clap(short = 'l', long, help = "Path to local dependency")]
|
||||
pub(crate) local: Option<PathBuf>,
|
||||
|
||||
#[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")]
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user