Documentation ¶
Index ¶
- Constants
- func MakeBaseBlockByHeightMsg(blockMsg types.BlockMsg) (tmservice.GetBlockByHeightRequest, error)
- func MakeBaseLatestBlockMsg() (tmservice.GetLatestBlockRequest, error)
- func MakeBaseNodeInfoMsg() (tmservice.GetNodeInfoRequest, error)
- func MakeBaseSyncingMsg() (tmservice.GetSyncingRequest, error)
- func MakeLatestValidatorSetMsg() (tmservice.GetLatestValidatorSetRequest, error)
- func MakeValidatorSetByHeightMsg(validatorSetMsg types.ValidatorSetMsg) (tmservice.GetValidatorSetByHeightRequest, error)
- func NewCoreModule() core.CoreModule
- func QueryBase(i core.QueryClient) (string, error)
- type BaseExternal
Constants ¶
View Source
const ( Base = "base" BaseNodeInfoMsgType = "base-node-info" BaseSyncingMsgType = "base-syncing" BaseLatestBlockMsgtype = "base-latest-block" BaseBlockByHeightMsgType = "base-block-by-height" BaseLatestValidatorSetMsgType = "base-latest-validator-set" BaseValidatorSetByHeightMsgType = "base-validator-set-by-height" )
Variables ¶
This section is empty.
Functions ¶
func MakeBaseBlockByHeightMsg ¶
func MakeBaseBlockByHeightMsg(blockMsg types.BlockMsg) (tmservice.GetBlockByHeightRequest, error)
(Query) make msg - get block by height
func MakeBaseLatestBlockMsg ¶
func MakeBaseLatestBlockMsg() (tmservice.GetLatestBlockRequest, error)
(Query) make msg - latest block
func MakeBaseNodeInfoMsg ¶
func MakeBaseNodeInfoMsg() (tmservice.GetNodeInfoRequest, error)
(Query) make msg - node info
func MakeBaseSyncingMsg ¶
func MakeBaseSyncingMsg() (tmservice.GetSyncingRequest, error)
(Query) make msg - syncing
func MakeLatestValidatorSetMsg ¶
func MakeLatestValidatorSetMsg() (tmservice.GetLatestValidatorSetRequest, error)
(Query) make msg - latest validator set
func MakeValidatorSetByHeightMsg ¶
func MakeValidatorSetByHeightMsg(validatorSetMsg types.ValidatorSetMsg) (tmservice.GetValidatorSetByHeightRequest, error)
(Query) make msg - latest validator set
func NewCoreModule ¶ added in v0.1.2
func NewCoreModule() core.CoreModule
Types ¶
type BaseExternal ¶ added in v0.1.2
type BaseExternal struct {
Xplac provider.XplaClient
}
func NewBaseExternal ¶ added in v0.1.2
func NewBaseExternal(xplac provider.XplaClient) (e BaseExternal)
func (BaseExternal) Block ¶ added in v0.1.2
func (e BaseExternal) Block(blockMsg ...types.BlockMsg) provider.XplaClient
Query block
func (BaseExternal) NodeInfo ¶ added in v0.1.2
func (e BaseExternal) NodeInfo() provider.XplaClient
Query node info
func (BaseExternal) Syncing ¶ added in v0.1.2
func (e BaseExternal) Syncing() provider.XplaClient
Query syncing
func (BaseExternal) ValidatorSet ¶ added in v0.1.2
func (e BaseExternal) ValidatorSet(validatorSetMsg ...types.ValidatorSetMsg) provider.XplaClient
Query validator set
Click to show internal directories.
Click to hide internal directories.