Documentation ¶
Index ¶
- Constants
- func MakeQueryVolunteerValidatorsMsg() (volunteertypes.QueryVolunteerValidatorsRequest, error)
- func MakeRegisterVolunteerValidatorMsg(registerVolunteerValidatorMsg types.RegisterVolunteerValidatorMsg, ...) (govtypes.MsgSubmitProposal, error)
- func MakeUnregisterVolunteerValidatorMsg(unregisterVolunteerValidatorMsg types.UnregisterVolunteerValidatorMsg, ...) (govtypes.MsgSubmitProposal, error)
- func NewCoreModule() core.CoreModule
- func QueryVolunteer(i core.QueryClient) (string, error)
- type VolunteerExternal
- func (e VolunteerExternal) QueryVolunteerValidators() provider.XplaClient
- func (e VolunteerExternal) RegisterVolunteerValidator(registerVolunteerValidatorMsg types.RegisterVolunteerValidatorMsg) provider.XplaClient
- func (e VolunteerExternal) UnregisterVolunteerValidator(unregisterVolunteerValidatorMsg types.UnregisterVolunteerValidatorMsg) provider.XplaClient
Constants ¶
View Source
const ( VolunteerModule = "volunteer" VolunteerRegisterVolunteerValidatorMsgType = "register-volunteer-validator" VolunteerUnregisterVolunteerValidatorMsgType = "unregister-volunteer-validator" VolunteerQueryValidatorsMsgType = "query-validators" )
Variables ¶
This section is empty.
Functions ¶
func MakeQueryVolunteerValidatorsMsg ¶
func MakeQueryVolunteerValidatorsMsg() (volunteertypes.QueryVolunteerValidatorsRequest, error)
(Query) make msg - query volunteer validators
func MakeRegisterVolunteerValidatorMsg ¶
func MakeRegisterVolunteerValidatorMsg(registerVolunteerValidatorMsg types.RegisterVolunteerValidatorMsg, encodingConfig paramsapp.EncodingConfig, from sdk.AccAddress) (govtypes.MsgSubmitProposal, error)
(Tx) make msg - register volunteer validator
func MakeUnregisterVolunteerValidatorMsg ¶
func MakeUnregisterVolunteerValidatorMsg(unregisterVolunteerValidatorMsg types.UnregisterVolunteerValidatorMsg, encodingConfig paramsapp.EncodingConfig, from sdk.AccAddress) (govtypes.MsgSubmitProposal, error)
(Tx) make msg - unregister volunteer validator
func NewCoreModule ¶
func NewCoreModule() core.CoreModule
func QueryVolunteer ¶
func QueryVolunteer(i core.QueryClient) (string, error)
Query client for volunteer module.
Types ¶
type VolunteerExternal ¶
type VolunteerExternal struct {
Xplac provider.XplaClient
}
func NewVolunteerExternal ¶
func NewVolunteerExternal(xplac provider.XplaClient) (e VolunteerExternal)
func (VolunteerExternal) QueryVolunteerValidators ¶
func (e VolunteerExternal) QueryVolunteerValidators() provider.XplaClient
Query volunteer validators.
func (VolunteerExternal) RegisterVolunteerValidator ¶
func (e VolunteerExternal) RegisterVolunteerValidator(registerVolunteerValidatorMsg types.RegisterVolunteerValidatorMsg) provider.XplaClient
Register new volunteer validator.
func (VolunteerExternal) UnregisterVolunteerValidator ¶
func (e VolunteerExternal) UnregisterVolunteerValidator(unregisterVolunteerValidatorMsg types.UnregisterVolunteerValidatorMsg) provider.XplaClient
Unregister a volunteer validator.
Click to show internal directories.
Click to hide internal directories.