mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
d44457fc32
* bump snarkvm rev * update default gitignore * impl leo execute * bump snarkvm 0.14.5 * modify examples wip * update run.sh examples * impl env file * clippy warning * fix auction example * fix auction example env * generate new private key for new env - tests failing due to env not found err * commit error changes * Fix tests; clippy * Get examples working * leo build checks that build dir is well formed; clippy * Clean up * Update examples/README.md Co-authored-by: d0cd <pranavsaig@gmail.com> Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com> * do not commit .avm files * use snarkvm commands --------- Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com> Co-authored-by: Pranav Gaddamadugu <pranav@aleo.org> Co-authored-by: d0cd <pranavsaig@gmail.com>
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
// The program input for auction/src/main.leo
|
|
[place_bid]
|
|
// Note that `bidder` must have the same address as the caller (refer to `program.json`).
|
|
// Swapping the below lines, will result in an error.
|
|
// bidder: address = aleo1y7065c2jxkra5yzu9jfxq55klweqev0zas89lt9nxmfrqrafmq9qw2ktdg;
|
|
bidder: address = aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh;
|
|
amount: u64 = 90u64;
|
|
|
|
[resolve]
|
|
first: Bid = Bid {
|
|
owner: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
bidder: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
amount: 10u64,
|
|
is_winner: false,
|
|
_nonce: 6480683131255842390406647532838179519970794442201387718334686863304493823461group,
|
|
};
|
|
second: Bid = Bid {
|
|
owner: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
bidder: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
amount: 90u64,
|
|
is_winner: false,
|
|
_nonce: 1511010328912449299156978046557700301564153667442988008615502964863620401388group,
|
|
};
|
|
|
|
[finish]
|
|
bid: Bid = Bid {
|
|
owner: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
bidder: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
amount: 90u64,
|
|
is_winner: false,
|
|
_nonce: 4195536711021629817871261453343069023119119274215827022954896024118351555272group,
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|