-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
52 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
noir-projects/noir-contracts/contracts/amm_contract/src/main.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
mod lib; | ||
mod state; | ||
// mod test; | ||
mod test; | ||
|
||
use dep::aztec::macros::aztec; | ||
|
||
|
3 changes: 2 additions & 1 deletion
3
noir-projects/noir-contracts/contracts/amm_contract/src/test.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 |
---|---|---|
@@ -1 +1,2 @@ | ||
mod full_flow; | ||
mod full_flow; | ||
mod utils; |
12 changes: 8 additions & 4 deletions
12
noir-projects/noir-contracts/contracts/amm_contract/src/test/full_flow.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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
use crate::{AMM, test::utils::setup}; | ||
use dep::token::Token; | ||
use dep::uint_note::uint_note::UintNote; | ||
use aztec::prelude::AztecAddress; | ||
|
||
#[test] | ||
unconstrained fn full_flow() { | ||
// Setup | ||
let (env, amm_address, token0_address, token1_address, liquidity_token_address, token_admin, liquidity_provider, lp_balance_0, lp_balance_1, swapper_balance_0) = setup(); | ||
let (env, amm_address, token0_address, token1_address, liquidity_token_address, token_admin, liquidity_provider, lp_balance_0, lp_balance_1, swapper_balance_0) = | ||
setup(); | ||
let amm = AMM::at(amm_address); | ||
|
||
// Now we add liquidity | ||
|
||
} | ||
} |
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