mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-27 12:17:35 +03:00
43 lines
1.4 KiB
Plaintext
43 lines
1.4 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,
|
|
gates: 0u64,
|
|
bidder: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
amount: 10u64,
|
|
is_winner: false,
|
|
_nonce: 6480683131255842390406647532838179519970794442201387718334686863304493823461group,
|
|
};
|
|
second: Bid = Bid {
|
|
owner: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
gates: 0u64,
|
|
bidder: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
amount: 90u64,
|
|
is_winner: false,
|
|
_nonce: 1635474322959998727812727786860193861506102794050195384593971440884677453921group,
|
|
};
|
|
|
|
[finish]
|
|
bid: Bid = Bid {
|
|
owner: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
gates: 0u64,
|
|
bidder: aleo1fxs9s0w97lmkwlcmgn0z3nuxufdee5yck9wqrs0umevp7qs0sg9q5xxxzh,
|
|
amount: 90u64,
|
|
is_winner: false,
|
|
_nonce: 4195536711021629817871261453343069023119119274215827022954896024118351555272group,
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|