Skip to main content

Foo

The event selector is computed from the type signature of the struct in the event, similar to how one might type the constructor function. For example, given:

Standalone Functions

get_fn_visibility

get_fn_visibility(f);

Parameters

NameType
fFunctionDefinition

is_fn_private

is_fn_private(f);

Parameters

NameType
fFunctionDefinition

is_fn_public

is_fn_public(f);

Parameters

NameType
fFunctionDefinition

is_fn_view

is_fn_view(f);

Parameters

NameType
fFunctionDefinition

is_fn_internal

is_fn_internal(f);

Parameters

NameType
fFunctionDefinition

is_fn_initializer

is_fn_initializer(f);

Parameters

NameType
fFunctionDefinition

fn_has_noinitcheck

fn_has_noinitcheck(f);

Parameters

NameType
fFunctionDefinition

modify_fn_body

modify_fn_body(body, prepend, append);

Parameters

NameType
body[Expr]
prependQuoted
appendQuoted

add_to_field_slice

add_to_field_slice(slice_name, name, typ);

Parameters

NameType
slice_nameQuoted
nameQuoted
typType

add_to_hasher

add_to_hasher(hasher_name, name, typ);

Parameters

NameType
hasher_nameQuoted
nameQuoted
typType

signature_of_type

signature_of_type(typ);

Parameters

NameType
typType

as_str_quote

as_str_quote(self);

Parameters

NameType
self

as_str_quote

as_str_quote(self);

Parameters

NameType
self

compute_fn_selector

compute_fn_selector(f);

Parameters

NameType
fFunctionDefinition

foo

foo(a, b);

Parameters

NameType
aField
bAztecAddress

compute_event_selector

compute_event_selector(s);

Parameters

NameType
sStructDefinition

get_serialized_size

get_serialized_size(typ);

Parameters

NameType
typType

module_has_storage

module_has_storage(m);

Parameters

NameType
mModule

module_has_initializer

module_has_initializer(m);

Parameters

NameType
mModule

is_note

is_note(typ);

Parameters

NameType
typType