Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeResult ¶
func DecodeResult(result *types.CallResult, meta interface{}) (*types.CallResult, error)
DecodeResult performs result decoding based on the specified call format metadata.
func EncodeCall ¶
func EncodeCall(call *types.Call, cf types.CallFormat, cfg *EncodeConfig) (*types.Call, interface{}, error)
EncodeCall encodes a call based on its configured call format.
It returns the encoded call and any metadata needed to successfully decode the result.
Types ¶
type EncodeConfig ¶
type EncodeConfig struct { // PublicKey is an optional runtime's call data public key to use for encrypted call formats. PublicKey *types.SignedPublicKey // Epoch is the epoch of the ephemeral runtime key (when PublicKey is set). Epoch uint64 }
EncodeConfig is call encoding configuration.
Click to show internal directories.
Click to hide internal directories.