-
Notifications
You must be signed in to change notification settings - Fork 284
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
21 changed files
with
399 additions
and
543 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
mod private_context_inputs; | ||
mod public_context_inputs; | ||
mod avm_context_inputs; | ||
|
||
use crate::context::inputs::private_context_inputs::PrivateContextInputs; | ||
use crate::context::inputs::public_context_inputs::PublicContextInputs; | ||
use crate::context::inputs::avm_context_inputs::AvmContextInputs; |
15 changes: 0 additions & 15 deletions
15
noir-projects/aztec-nr/aztec/src/context/inputs/avm_context_inputs.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
24 changes: 5 additions & 19 deletions
24
noir-projects/aztec-nr/aztec/src/context/inputs/public_context_inputs.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,29 +1,15 @@ | ||
use crate::context::globals::public_global_variables::PublicGlobalVariables; | ||
use dep::protocol_types::traits::Empty; | ||
|
||
use dep::protocol_types::{abis::call_context::CallContext, abis::gas::Gas, header::Header, traits::Empty}; | ||
|
||
// PublicContextInputs are expected to be provided to each public function | ||
// docs:start:public-context-inputs | ||
struct PublicContextInputs { | ||
call_context: CallContext, | ||
historical_header: Header, | ||
|
||
public_global_variables: PublicGlobalVariables, | ||
start_side_effect_counter: u32, | ||
gas_left: Gas, | ||
transaction_fee: Field, | ||
selector: Field, | ||
args_hash: Field, | ||
} | ||
// docs:end:public-context-inputs | ||
|
||
impl Empty for PublicContextInputs { | ||
fn empty() -> Self { | ||
PublicContextInputs { | ||
call_context: CallContext::empty(), | ||
historical_header: Header::empty(), | ||
public_global_variables: PublicGlobalVariables::empty(), | ||
start_side_effect_counter: 0 as u32, | ||
gas_left: Gas::empty(), | ||
transaction_fee: 0, | ||
selector: 0, | ||
args_hash: 0, | ||
} | ||
} | ||
} |
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.