Expand description
External C API to communicate with substrate contracts runtime module.
Refer to substrate FRAME contract module for more documentation.
Macros§
- Utility macro to read input passed to a contract.
- Utility macro to invoke a host function that expect a
output: &mut &mut [u8]
as last argument. - Call the host function and convert the [u8; 32] output to u64.
- Similar to
output!
but unwraps the result.
Structs§
- Flags used to change the behaviour of
seal_call
andseal_delegate_call
. - The raw return code returned by the host side.
- Flags used by a contract to customize exit behaviour.
- Flags used by a contract to customize storage behaviour.
Enums§
- Implements
HostFn
when compiled on supported architectures (RISC-V). - Every error that can be returned to a contract when it calls any of the host functions.
Traits§
- Defines all the host apis available to contracts.
Functions§
- Helper to pack two
u32
values into au64
register. - Convert a u64 into a [u8; 32].