mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-09-11 05:45:30 +03:00
Merge pull request #28203 from ProvableHQ/feat/set-defaults-to-testnet
[Fix] Set defaults to `testnet`.
This commit is contained in:
commit
1e77f75d61
@ -8,18 +8,18 @@ fi
|
|||||||
|
|
||||||
# The private key and address of Alice.
|
# The private key and address of Alice.
|
||||||
# Swap these into .env, when running transactions as the first bidder.
|
# Swap these into .env, when running transactions as the first bidder.
|
||||||
# NETWORK=mainnet
|
# NETWORK=testnet
|
||||||
# PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
# PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
|
|
||||||
# The private key and address of Bob.
|
# The private key and address of Bob.
|
||||||
# Swap these into program.json, when running transactions as the second bidder.
|
# Swap these into program.json, when running transactions as the second bidder.
|
||||||
# NETWORK=mainnet
|
# NETWORK=testnet
|
||||||
# PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
# PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
|
|
||||||
|
|
||||||
# Swap in the private key of Alice.
|
# Swap in the private key of Alice.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -54,7 +54,7 @@ leo run mint_public aleo13ssze66adjjkt795z9u5wpq8h6kn0y2657726h4h3e3wfnez4vqsm30
|
|||||||
|
|
||||||
# Swap in the private key of Bob.
|
# Swap in the private key of Bob.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -89,7 +89,7 @@ leo run mint_private aleo17vy26rpdhqx4598y5gp7nvaa9rk7tnvl6ufhvvf4calsrrqdaqyshd
|
|||||||
|
|
||||||
# Swap in the private key of Alice.
|
# Swap in the private key of Alice.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -124,7 +124,7 @@ leo run transfer_public aleo17vy26rpdhqx4598y5gp7nvaa9rk7tnvl6ufhvvf4calsrrqdaqy
|
|||||||
|
|
||||||
# Swap in the private key of Bob.
|
# Swap in the private key of Bob.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -163,7 +163,7 @@ leo run transfer_private "{
|
|||||||
|
|
||||||
# Swap in the private key of Alice.
|
# Swap in the private key of Alice.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -199,7 +199,7 @@ leo run transfer_public_to_private aleo17vy26rpdhqx4598y5gp7nvaa9rk7tnvl6ufhvvf4
|
|||||||
|
|
||||||
# Swap in the private key of Bob.
|
# Swap in the private key of Bob.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -241,7 +241,7 @@ leo run transfer_private_to_public "{
|
|||||||
# Swap in the private key of Alice.
|
# Swap in the private key of Alice.
|
||||||
# This is done to ensure that program.json is the same after every execution of ./run.sh.
|
# This is done to ensure that program.json is the same after every execution of ./run.sh.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
|
@ -39,8 +39,8 @@ struct Opt {
|
|||||||
#[clap(short, long)]
|
#[clap(short, long)]
|
||||||
print_stdout: bool,
|
print_stdout: bool,
|
||||||
|
|
||||||
/// The network to use. Defaults to mainnet.
|
/// The network to use. Defaults to testnet.
|
||||||
#[clap(long, default_value = "mainnet")]
|
#[clap(long, default_value = "testnet")]
|
||||||
pub(crate) network: String,
|
pub(crate) network: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ create_messages!(
|
|||||||
missing_network_error {
|
missing_network_error {
|
||||||
args: (dependency: impl Display),
|
args: (dependency: impl Display),
|
||||||
msg: format!("Dependency {dependency} is missing a network specification"),
|
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
|
@formatted
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -8,18 +8,18 @@ fi
|
|||||||
|
|
||||||
# The private key and address of the first bidder.
|
# The private key and address of the first bidder.
|
||||||
# Swap these into program.json, when running transactions as the first bidder.
|
# Swap these into program.json, when running transactions as the first bidder.
|
||||||
# NETWORK=mainnet
|
# NETWORK=testnet
|
||||||
# PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
# PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
|
|
||||||
# The private key and address of the second bidder.
|
# The private key and address of the second bidder.
|
||||||
# Swap these into program.json, when running transactions as the second bidder.
|
# Swap these into program.json, when running transactions as the second bidder.
|
||||||
# NETWORK=mainnet
|
# NETWORK=testnet
|
||||||
# PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
# PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
|
|
||||||
|
|
||||||
# The private key and address of the auctioneer.
|
# The private key and address of the auctioneer.
|
||||||
# Swap these into program.json, when running transactions as the auctioneer.
|
# Swap these into program.json, when running transactions as the auctioneer.
|
||||||
# NETWORK=mainnet
|
# NETWORK=testnet
|
||||||
# PRIVATE_KEY=APrivateKey1zkp2GUmKbVsuc1NSj28pa1WTQuZaK5f1DQJAT6vPcHyWokG
|
# PRIVATE_KEY=APrivateKey1zkp2GUmKbVsuc1NSj28pa1WTQuZaK5f1DQJAT6vPcHyWokG
|
||||||
|
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ echo "
|
|||||||
"
|
"
|
||||||
# Swap in the private key and address of the first bidder to .env.
|
# Swap in the private key and address of the first bidder to .env.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -61,7 +61,7 @@ leo run place_bid aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9p
|
|||||||
|
|
||||||
# Swap in the private key and address of the second bidder to .env.
|
# Swap in the private key and address of the second bidder to .env.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -84,7 +84,7 @@ leo run place_bid aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0xzqqw29q9m5pqem2u4
|
|||||||
|
|
||||||
# Swap in the private key and address of the auctioneer to .env.
|
# Swap in the private key and address of the auctioneer to .env.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2GUmKbVsuc1NSj28pa1WTQuZaK5f1DQJAT6vPcHyWokG
|
PRIVATE_KEY=APrivateKey1zkp2GUmKbVsuc1NSj28pa1WTQuZaK5f1DQJAT6vPcHyWokG
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -142,7 +142,7 @@ leo run finish "{
|
|||||||
|
|
||||||
# Restore the .env file to its original state.
|
# Restore the .env file to its original state.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -8,17 +8,17 @@ fi
|
|||||||
|
|
||||||
# The private key and address of the bank.
|
# The private key and address of the bank.
|
||||||
# Swap these into program.json, when running transactions as the bank.
|
# Swap these into program.json, when running transactions as the bank.
|
||||||
# NETWORK=mainnet
|
# NETWORK=testnet
|
||||||
# PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
# PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
|
|
||||||
# The private key and address of the user.
|
# The private key and address of the user.
|
||||||
# Swap these into program.json, when running transactions as the user.
|
# Swap these into program.json, when running transactions as the user.
|
||||||
# NETWORK=mainnet
|
# NETWORK=testnet
|
||||||
# PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
# PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
|
|
||||||
# Swap in the private key and address of the bank to .env.
|
# Swap in the private key and address of the bank to .env.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -69,7 +69,7 @@ leo run issue aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0xzqqw29q9m5pqem2u4t 10
|
|||||||
|
|
||||||
# Swap in the private key and address of the user to .env.
|
# Swap in the private key and address of the user to .env.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -164,7 +164,7 @@ echo "
|
|||||||
|
|
||||||
# Swap in the private key and address of the bank to .env.
|
# Swap in the private key and address of the bank to .env.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ echo "
|
|||||||
"
|
"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -68,7 +68,7 @@ echo "
|
|||||||
"
|
"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -117,7 +117,7 @@ echo "
|
|||||||
"
|
"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -153,7 +153,7 @@ echo "
|
|||||||
"
|
"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -189,7 +189,7 @@ echo "
|
|||||||
"
|
"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -225,7 +225,7 @@ echo "
|
|||||||
"
|
"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -254,7 +254,7 @@ echo "
|
|||||||
|
|
||||||
# Restore the .env file to its original state
|
# Restore the .env file to its original state
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -8,17 +8,17 @@ fi
|
|||||||
|
|
||||||
# The private key and address of Alice.
|
# The private key and address of Alice.
|
||||||
# Swap these into program.json, when running transactions as the first bidder.
|
# Swap these into program.json, when running transactions as the first bidder.
|
||||||
# NETWORK=mainnet
|
# NETWORK=testnet
|
||||||
# PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
# PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
|
|
||||||
# The private key and address of Bob.
|
# The private key and address of Bob.
|
||||||
# Swap these into program.json, when running transactions as the second bidder.
|
# Swap these into program.json, when running transactions as the second bidder.
|
||||||
# NETWORK=mainnet
|
# NETWORK=testnet
|
||||||
# PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
# PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
|
|
||||||
# Swap in the private key of Alice.
|
# Swap in the private key of Alice.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -53,7 +53,7 @@ leo run mint_public aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp
|
|||||||
|
|
||||||
# Swap in the private key of Bob.
|
# Swap in the private key of Bob.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -88,7 +88,7 @@ leo run mint_private aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0xzqqw29q9m5pqem
|
|||||||
|
|
||||||
# Swap in the private key of Alice.
|
# Swap in the private key of Alice.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -123,7 +123,7 @@ leo run transfer_public aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0xzqqw29q9m5p
|
|||||||
|
|
||||||
# Swap in the private key of Bob.
|
# Swap in the private key of Bob.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -162,7 +162,7 @@ leo run transfer_private "{
|
|||||||
|
|
||||||
# Swap in the private key of Alice.
|
# Swap in the private key of Alice.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -198,7 +198,7 @@ leo run transfer_public_to_private aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0x
|
|||||||
|
|
||||||
# Swap in the private key of Bob.
|
# Swap in the private key of Bob.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
@ -240,7 +240,7 @@ leo run transfer_private_to_public "{
|
|||||||
# Swap in the private key of Alice.
|
# Swap in the private key of Alice.
|
||||||
# This is done to ensure that program.json is the same after every execution of ./run.sh.
|
# This is done to ensure that program.json is the same after every execution of ./run.sh.
|
||||||
echo "
|
echo "
|
||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
" > .env
|
" > .env
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
NETWORK=mainnet
|
NETWORK=testnet
|
||||||
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
|
||||||
ENDPOINT=https://localhost:3030
|
ENDPOINT=https://localhost:3030
|
||||||
|
@ -47,7 +47,7 @@ pub enum Account {
|
|||||||
/// Print sensitive information (such as private key) discreetly to an alternate screen
|
/// Print sensitive information (such as private key) discreetly to an alternate screen
|
||||||
#[clap(long)]
|
#[clap(long)]
|
||||||
discreet: bool,
|
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,
|
network: String,
|
||||||
#[clap(
|
#[clap(
|
||||||
short = 'e',
|
short = 'e',
|
||||||
@ -67,7 +67,7 @@ pub enum Account {
|
|||||||
/// Print sensitive information (such as private key) discreetly to an alternate screen
|
/// Print sensitive information (such as private key) discreetly to an alternate screen
|
||||||
#[clap(long)]
|
#[clap(long)]
|
||||||
discreet: bool,
|
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,
|
network: String,
|
||||||
#[clap(
|
#[clap(
|
||||||
short = 'e',
|
short = 'e',
|
||||||
@ -94,7 +94,7 @@ pub enum Account {
|
|||||||
/// When enabled, parses the message as bytes instead of Aleo literals
|
/// When enabled, parses the message as bytes instead of Aleo literals
|
||||||
#[clap(short = 'r', long)]
|
#[clap(short = 'r', long)]
|
||||||
raw: bool,
|
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,
|
network: String,
|
||||||
},
|
},
|
||||||
/// Verify a message from an Aleo address.
|
/// 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
|
/// When enabled, parses the message as bytes instead of Aleo literals
|
||||||
#[clap(short = 'r', long)]
|
#[clap(short = 'r', long)]
|
||||||
raw: bool,
|
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,
|
network: String,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ pub struct Add {
|
|||||||
#[clap(short = 'l', long, help = "Path to local dependency")]
|
#[clap(short = 'l', long, help = "Path to local dependency")]
|
||||||
pub(crate) local: Option<PathBuf>,
|
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,
|
pub(crate) network: String,
|
||||||
|
|
||||||
#[clap(short = 'c', long, help = "Clear all previous dependencies.", default_value = "false")]
|
#[clap(short = 'c', long, help = "Clear all previous dependencies.", default_value = "false")]
|
||||||
|
@ -23,7 +23,7 @@ use std::fs;
|
|||||||
pub struct Example {
|
pub struct Example {
|
||||||
#[clap(name = "NAME", help = "The example to initialize.")]
|
#[clap(name = "NAME", help = "The example to initialize.")]
|
||||||
pub(crate) name: String,
|
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,
|
pub(crate) network: String,
|
||||||
#[clap(
|
#[clap(
|
||||||
short = 'e',
|
short = 'e',
|
||||||
|
@ -24,7 +24,7 @@ use leo_retriever::NetworkName;
|
|||||||
pub struct New {
|
pub struct New {
|
||||||
#[clap(name = "NAME", help = "Set package name")]
|
#[clap(name = "NAME", help = "Set package name")]
|
||||||
pub(crate) name: String,
|
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,
|
pub(crate) network: String,
|
||||||
#[clap(
|
#[clap(
|
||||||
short = 'e',
|
short = 'e',
|
||||||
|
Loading…
Reference in New Issue
Block a user