Module contract

Source

Structs§

ContractDeclaration
Represents a declaration of a contract.
ContractInfo
Sierra information of a contract.

Functions§

find_contracts
Finds the inline modules annotated as contracts in the given crate_ids and returns the corresponding ContractDeclarations.
get_contract_abi_functions
Returns the ABI functions of a given contract. Assumes the given module is a contract module.
get_contracts_info
Returns the list of functions in a given module.
get_selector_and_sierra_function
Converts a function to a Sierra function. Returns the selector and the sierra function id.
module_contract
Returns the contract declaration of a given module if it is a contract module.