Skip to content

Commit

Permalink
Merge pull request #28146 from ProvableHQ/feat/simplify-cli
Browse files Browse the repository at this point in the history
[Feat] CLI cleanup
  • Loading branch information
d0cd authored Jul 2, 2024
2 parents a679893 + 3659d1f commit 94382c4
Show file tree
Hide file tree
Showing 53 changed files with 641 additions and 241 deletions.
7 changes: 7 additions & 0 deletions .circleci/token/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fi
echo "
NETWORK=mainnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
" > .env

# Publicly mint 100 tokens for Alice.
Expand Down Expand Up @@ -55,6 +56,7 @@ leo run mint_public aleo13ssze66adjjkt795z9u5wpq8h6kn0y2657726h4h3e3wfnez4vqsm30
echo "
NETWORK=mainnet
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
ENDPOINT=https://localhost:3030
" > .env

# Privately mint 100 tokens for Bob.
Expand Down Expand Up @@ -89,6 +91,7 @@ leo run mint_private aleo17vy26rpdhqx4598y5gp7nvaa9rk7tnvl6ufhvvf4calsrrqdaqyshd
echo "
NETWORK=mainnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
" > .env

# Publicly transfer 10 tokens from Alice to Bob.
Expand Down Expand Up @@ -123,6 +126,7 @@ leo run transfer_public aleo17vy26rpdhqx4598y5gp7nvaa9rk7tnvl6ufhvvf4calsrrqdaqy
echo "
NETWORK=mainnet
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
ENDPOINT=https://localhost:3030
" > .env

# Privately transfer 20 tokens from Bob to Alice.
Expand Down Expand Up @@ -161,6 +165,7 @@ leo run transfer_private "{
echo "
NETWORK=mainnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
" > .env

# Convert 30 public tokens from Alice into 30 private tokens for Bob.
Expand Down Expand Up @@ -196,6 +201,7 @@ leo run transfer_public_to_private aleo17vy26rpdhqx4598y5gp7nvaa9rk7tnvl6ufhvvf4
echo "
NETWORK=mainnet
PRIVATE_KEY=APrivateKey1zkp2RWGDcde3efb89rjhME1VYA8QMxcxep5DShNBR6n8Yjh
ENDPOINT=https://localhost:3030
" > .env

# Convert 40 private tokens from Bob into 40 public tokens for Alice.
Expand Down Expand Up @@ -237,4 +243,5 @@ leo run transfer_private_to_public "{
echo "
NETWORK=mainnet
PRIVATE_KEY=APrivateKey1zkp8CZNn3yeCseEtxuVPbDCwSyhGW6yZKUYKfgXmcpoGPWH
ENDPOINT=https://localhost:3030
" > .env
Loading

0 comments on commit 94382c4

Please sign in to comment.