Expand description
Defines the abstract level of inputs and outputs of a contract method.
Contracts written use the #[contract]
macro to unpack those Transaction Command Call
that contain a serialized arguments
. This structure selects the Method
that a call should enter, as well as provides the arguments for the function call.
The structure of output of a contract method wraps the return value in Internal Calls.
Developers typically do not need to care about the contents of this module. The #[contract]
macro handles
the creation and consumption of ContractMethodInput in expanded code.
Structsยง
- Contract
Method Input - Input of a contract method in a call, which consists of method name and its borsh-serialized arguments.
- Contract
Method Input Builder - Builder to contruct arguments in Call command so that it can be passed to entrypoint
- Contract
Method Output - Encapsulates the return value as serialized bytes from contract method. None if the contract method does not specify return value.