aztec-nr - protocol_types::abis::protocol_contracts

Struct ProtocolContracts

pub struct ProtocolContracts
{ /* private fields */ }

Implementations

impl ProtocolContracts

pub fn new(derived_addresses: [AztecAddress; 11]) -> Self pub fn is_protocol_contract_address(contract_address: AztecAddress) -> bool pub fn get_derived_address(self, protocol_contract_address: AztecAddress) -> AztecAddress

Obtains the derived address for a given canonical address Important! This assumes that the called has already validated that the address is indeed a protocol contract address.

pub fn hash(self) -> Field

Trait implementations

impl Deserialize for ProtocolContracts

pub fn deserialize(serialized: [Field; 11 * 1]) -> Self

impl Empty for ProtocolContracts

pub fn empty() -> Self pub fn is_empty(self) -> bool pub fn assert_empty<let S: u32>(self, msg: str<S>)

impl Eq for ProtocolContracts

pub fn eq(_self: Self, _other: Self) -> bool

impl Serialize for ProtocolContracts

pub fn serialize(self) -> [Field; 11 * 1]