Hello everyone, my name is Alex Zhao. My Discord username is 'alzhao6666'. Welcome to contact me!
To compile this Aleo program, run:
leo clean
leo build
./snarkos developer deploy double_color_ball.aleo --private-key xxxx --query "http://localhost:3030" --path "build/" --broadcast "http://localhost:3030/testnet3/transaction/broadcast" --fee 91169000 --record xxxxx
./snarkos developer execute double_color_ball.aleo new_round_lottery_drawing 3u32 --query "http://localhost:3030" --broadcast "http://localhost:3030/testnet3/transaction/broadcast" --private-key xxxxxx --fee 91169000 --record xxxx
./snarkos developer execute double_color_ball.aleo ticket_purchase "{user:aleo1xxx,round_number:2u32,count:1u32,gates:100000000u64,red_ball_1:1u32,red_ball_2:2u32,red_ball_3:15u32,red_ball_4:16u32,red_ball_5:13u32,red_ball_6:30u32,blue_ball_1:8u32}" --query "http://localhost:3030" --broadcast "http://localhost:3030/testnet3/transaction/broadcast" --private-key xxxxxx --fee 91169000 --record xxxx
./snarkos developer execute double_color_ball.aleo stop_lottery_drawing 1u32 --query "http://localhost:3030" --broadcast "http://localhost:3030/testnet3/transaction/broadcast" --private-key xxxxxx --fee 91169000 --record xxxx
./snarkos developer execute double_color_ball.aleo draw_price 2u32 --query "http://localhost:3030" --broadcast "http://localhost:3030/testnet3/transaction/broadcast" --private-key xxxxxx --fee 1091169000 --record xxxx