Documentation ¶
Overview ¶
Package message implements the supported runtime messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Staking *StakingMessage `json:"staking,omitempty"` Registry *RegistryMessage `json:"registry,omitempty"` }
Message is a message that can be sent by a runtime.
type RegistryMessage ¶
type RegistryMessage struct { cbor.Versioned UpdateRuntime *registry.Runtime `json:"update_runtime,omitempty"` }
RegistryMessage is a runtime message that allows a runtime to perform staking operations.
type StakingMessage ¶
type StakingMessage struct { cbor.Versioned Transfer *staking.Transfer `json:"transfer,omitempty"` Withdraw *staking.Withdraw `json:"withdraw,omitempty"` AddEscrow *staking.Escrow `json:"add_escrow,omitempty"` ReclaimEscrow *staking.ReclaimEscrow `json:"reclaim_escrow,omitempty"` }
StakingMessage is a runtime message that allows a runtime to perform staking operations.
Click to show internal directories.
Click to hide internal directories.