Skip to main content

Module abi

Module abi 

Source

Structs§

AbiParameter
A named, typed parameter in a function ABI.
AuthorizationSelector
A 4-byte authorization selector used to identify authwit request types.
ContractArtifact
A deserialized contract artifact containing function metadata.
EventSelector
A field-element event selector used to identify contract events.
FieldLayout
Describes the storage slot layout for a single contract storage field.
FunctionArtifact
Metadata for a single function within a contract artifact.
FunctionSelector
A 4-byte function selector used to identify contract functions.
NoteSelector
A 7-bit note selector identifying a note type within a contract.

Enums§

AbiDecoded
A decoded ABI value, produced by decode_from_abi.
AbiType
ABI type representation for function parameters and return values.
AbiValue
A concrete ABI value used as a function argument or return value.
FunctionType
The type of a contract function.

Functions§

abi_checker
Validate a contract artifact’s ABI for correctness.
abi_type_signature
Convert an ABI type to its canonical Noir signature representation.
abi_type_size
Compute the number of field elements an ABI type occupies when flattened.
buffer_as_fields
Split a byte buffer into field elements for on-chain storage.
buffer_from_fields
Reconstruct a byte buffer from field elements produced by buffer_as_fields.
count_arguments_size
Compute the total flattened field-element count for a function’s parameters.
decode_from_abi
Decode field elements back into typed ABI values.
encode_arguments
ABI-encode a function’s arguments into field elements.
encode_value
is_address_struct
Returns true if the ABI type represents an AztecAddress or EthAddress struct.
is_aztec_address_struct
Returns true if the ABI type is an AztecAddress struct.
is_bounded_vec_struct
Returns true if the ABI type is a BoundedVec struct.
is_eth_address_struct
Returns true if the ABI type is an EthAddress struct.
is_function_selector_struct
Returns true if the ABI type is a FunctionSelector struct.
is_option_struct
Returns true if the ABI type is an Option struct.
is_public_keys_struct
Returns true if the ABI type is a PublicKeys struct (Noir ABI representation).
is_wrapped_field_struct
Returns true if the ABI type is a struct wrapping a single inner: Field.

Type Aliases§

ContractStorageLayout
Maps storage field names to their slot layout descriptors.