-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: purge unconstrained + batch simulate improvements (#6639)
Recovers work done by @LHerskind in #5819 combining it with batched simulations to avoid 💀 ⏳ in tests --------- Co-authored-by: LHerskind <[email protected]>
- Loading branch information
Showing
39 changed files
with
212 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
noir-projects/noir-contracts/contracts/lending_contract/src/position.nr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use dep::aztec::prelude::AztecAddress; | ||
use dep::aztec::protocol_types::traits::{Deserialize, Serialize}; | ||
|
||
struct Position { | ||
collateral: Field, | ||
static_debt: Field, | ||
debt: Field, | ||
} | ||
|
||
global POSITION_SERIALIZED_LEN: Field = 3; | ||
|
||
impl Serialize<POSITION_SERIALIZED_LEN> for Position { | ||
fn serialize(position: Position) -> [Field; POSITION_SERIALIZED_LEN] { | ||
[ | ||
position.collateral.to_field(), | ||
position.static_debt.to_field(), | ||
position.debt.to_field(), | ||
] | ||
} | ||
} | ||
|
||
impl Deserialize<POSITION_SERIALIZED_LEN> for Position { | ||
fn deserialize(fields: [Field; POSITION_SERIALIZED_LEN]) -> Position { | ||
Position { | ||
collateral: fields[0], | ||
static_debt: fields[1], | ||
debt: fields[2], | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
noir-projects/noir-contracts/contracts/reader_contract/Nargo.toml
This file was deleted.
Oops, something went wrong.
71 changes: 0 additions & 71 deletions
71
noir-projects/noir-contracts/contracts/reader_contract/src/main.nr
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.