PublicContext
Fields
Field | Type |
---|---|
pub args_hash | Option<Field> |
pub compute_args_hash | fn() -> Field |
Methods
new
PublicContext::new(compute_args_hash);
Parameters
Name | Type |
---|---|
compute_args_hash | fn( |
emit_unencrypted_log
PublicContext::emit_unencrypted_log(_self, log);
Parameters
Name | Type |
---|---|
_self | &mut Self |
log | T |
note_hash_exists
PublicContext::note_hash_exists(_self, note_hash, leaf_index);
Parameters
Name | Type |
---|---|
_self | Self |
note_hash | Field |
leaf_index | Field |
l1_to_l2_msg_exists
PublicContext::l1_to_l2_msg_exists(_self, msg_hash, msg_leaf_index);
Parameters
Name | Type |
---|---|
_self | Self |
msg_hash | Field |
msg_leaf_index | Field |
nullifier_exists
PublicContext::nullifier_exists(_self, unsiloed_nullifier, address);
Parameters
Name | Type |
---|---|
_self | Self |
unsiloed_nullifier | Field |
address | AztecAddress |
consume_l1_to_l2_message
PublicContext::consume_l1_to_l2_message(&mut self, content, secret, sender, leaf_index, );
Parameters
Name | Type |
---|---|
&mut self | |
content | Field |
secret | Field |
sender | EthAddress |
leaf_index | Field |
message_portal
PublicContext::message_portal(_self, recipient, content);
Parameters
Name | Type |
---|---|
_self | &mut Self |
recipient | EthAddress |
content | Field |
call_public_function
PublicContext::call_public_function(_self, contract_address, function_selector, args, gas_opts, );
Parameters
Name | Type |
---|---|
_self | &mut Self |
contract_address | AztecAddress |
function_selector | FunctionSelector |
args | [Field] |
gas_opts | GasOpts |
static_call_public_function
PublicContext::static_call_public_function(_self, contract_address, function_selector, args, gas_opts, );
Parameters
Name | Type |
---|---|
_self | &mut Self |
contract_address | AztecAddress |
function_selector | FunctionSelector |
args | [Field] |
gas_opts | GasOpts |
push_note_hash
PublicContext::push_note_hash(_self, note_hash);
Parameters
Name | Type |
---|---|
_self | &mut Self |
note_hash | Field |
push_nullifier
PublicContext::push_nullifier(_self, nullifier);
Parameters
Name | Type |
---|---|
_self | &mut Self |
nullifier | Field |
this_address
PublicContext::this_address(_self);
Parameters
Name | Type |
---|---|
_self | Self |
msg_sender
PublicContext::msg_sender(_self);
Parameters
Name | Type |
---|---|
_self | Self |
selector
PublicContext::selector(_self);
Parameters
Name | Type |
---|---|
_self | Self |
get_args_hash
PublicContext::get_args_hash(mut self);
Parameters
Name | Type |
---|---|
mut self |
transaction_fee
PublicContext::transaction_fee(_self);
Parameters
Name | Type |
---|---|
_self | Self |
chain_id
PublicContext::chain_id(_self);
Parameters
Name | Type |
---|---|
_self | Self |
version
PublicContext::version(_self);
Parameters
Name | Type |
---|---|
_self | Self |
block_number
PublicContext::block_number(_self);
Parameters
Name | Type |
---|---|
_self | Self |
timestamp
PublicContext::timestamp(_self);
Parameters
Name | Type |
---|---|
_self | Self |
fee_per_l2_gas
PublicContext::fee_per_l2_gas(_self);
Parameters
Name | Type |
---|---|
_self | Self |
fee_per_da_gas
PublicContext::fee_per_da_gas(_self);