Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
5b3fdc6 to
c9c8a76
Compare
c9c8a76 to
5089fa3
Compare
5089fa3 to
962accd
Compare
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Show resolved
Hide resolved
nventuro
left a comment
There was a problem hiding this comment.
This is so much nicer than I thought it'd be. Are we actually doing a good job?
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Outdated
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/order.nr
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Outdated
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Outdated
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Outdated
Show resolved
Hide resolved
1faf365 to
2d318b3
Compare
e339b2a to
807baf1
Compare
| #[utility] | ||
| unconstrained fn get_order(order_id: Field) -> pub (Order, bool) { | ||
| let order = storage.orders.at(order_id).read(); | ||
| let is_fulfilled = check_nullifier_exists(order_id); |
There was a problem hiding this comment.
We have nullifier_exists function on public context but not on utility and private contexts. Shall we add it?
There was a problem hiding this comment.
Unsure. The way we do this in private is with the prove_nullifier_inclusion fn, which expects a full block header. It'd not touch these too much until we use them more, or get external feedback.
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Outdated
Show resolved
Hide resolved
nventuro
left a comment
There was a problem hiding this comment.
such smart
much nice
wow
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/config.nr
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/config.nr
Outdated
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/config.nr
Outdated
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/config.nr
Outdated
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/config.nr
Outdated
Show resolved
Hide resolved
| #[utility] | ||
| unconstrained fn get_order(order_id: Field) -> pub (Order, bool) { | ||
| let order = storage.orders.at(order_id).read(); | ||
| let is_fulfilled = check_nullifier_exists(order_id); |
There was a problem hiding this comment.
Unsure. The way we do this in private is with the prove_nullifier_inclusion fn, which expects a full block header. It'd not touch these too much until we use them more, or get external feedback.
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Outdated
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/orderbook_contract/src/main.nr
Show resolved
Hide resolved
aff6028 to
0e0996d
Compare
0610d9f to
6c8ce5d
Compare
fca2253 to
989ed05
Compare
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
…src/main.nr Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
…nsistency and clarity
…based on bid_token_is_zero parameter
…src/main.nr Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
…src/config.nr Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
…on for improved clarity
3b5017b to
65f6141
Compare

Implemented an orderbook DEX as we need it to demonstrate partial note completion in private flow.
Pointed this to
05-22-refactor_separating_getlogsbytags_to_public_and_private_versionsbranch as to avoid getting unwanted collisions of Orderbook's public logs with token's partial note completion logs.