Expand description
Encode View Function payloads, decode the associated values returned from them, and validate static View Function payloads.
Modules§
- payload
- This module contains the trait and types used to represent View Function calls that can be made.
Constants§
- CALL_
NAME - The name of the Runtime API call which can execute
Functions§
- call_
args - Encode the bytes that will be passed to the “execute_view_function” Runtime API call, to execute the View Function represented by the given payload.
- decode_
value - Decode the value bytes at the location given by the provided View Function payload.
- validate
- Run the validation logic against some View Function payload you’d like to use. Returns
Ok(())
if the payload is valid (or if it’s not possible to check since the payload has no validation hash). Return an error if the payload was not valid or something went wrong trying to validate it (ie the View Function in question do not exist at all)