Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetVolunteerValidatorKey(operatorAddr sdk.ValAddress) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(gs *GenesisState) error
- type DistributionKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetVolunteerValidators() []*VolunteerValidator
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type ProposalType
- type QueryClient
- type QueryServer
- type QueryVolunteerValidatorsRequest
- func (*QueryVolunteerValidatorsRequest) Descriptor() ([]byte, []int)
- func (m *QueryVolunteerValidatorsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVolunteerValidatorsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVolunteerValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVolunteerValidatorsRequest) ProtoMessage()
- func (m *QueryVolunteerValidatorsRequest) Reset()
- func (m *QueryVolunteerValidatorsRequest) Size() (n int)
- func (m *QueryVolunteerValidatorsRequest) String() string
- func (m *QueryVolunteerValidatorsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVolunteerValidatorsRequest) XXX_DiscardUnknown()
- func (m *QueryVolunteerValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVolunteerValidatorsRequest) XXX_Merge(src proto.Message)
- func (m *QueryVolunteerValidatorsRequest) XXX_Size() int
- func (m *QueryVolunteerValidatorsRequest) XXX_Unmarshal(b []byte) error
- type QueryVolunteerValidatorsResponse
- func (*QueryVolunteerValidatorsResponse) Descriptor() ([]byte, []int)
- func (m *QueryVolunteerValidatorsResponse) GetVolunteerValidators() []string
- func (m *QueryVolunteerValidatorsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVolunteerValidatorsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVolunteerValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVolunteerValidatorsResponse) ProtoMessage()
- func (m *QueryVolunteerValidatorsResponse) Reset()
- func (m *QueryVolunteerValidatorsResponse) Size() (n int)
- func (m *QueryVolunteerValidatorsResponse) String() string
- func (m *QueryVolunteerValidatorsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVolunteerValidatorsResponse) XXX_DiscardUnknown()
- func (m *QueryVolunteerValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVolunteerValidatorsResponse) XXX_Merge(src proto.Message)
- func (m *QueryVolunteerValidatorsResponse) XXX_Size() int
- func (m *QueryVolunteerValidatorsResponse) XXX_Unmarshal(b []byte) error
- type RegisterVolunteerValidatorProposal
- func (*RegisterVolunteerValidatorProposal) Descriptor() ([]byte, []int)
- func (p *RegisterVolunteerValidatorProposal) GetDescription() string
- func (p *RegisterVolunteerValidatorProposal) GetTitle() string
- func (m *RegisterVolunteerValidatorProposal) Marshal() (dAtA []byte, err error)
- func (m *RegisterVolunteerValidatorProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterVolunteerValidatorProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p RegisterVolunteerValidatorProposal) ProposalRoute() string
- func (p RegisterVolunteerValidatorProposal) ProposalType() string
- func (*RegisterVolunteerValidatorProposal) ProtoMessage()
- func (m *RegisterVolunteerValidatorProposal) Reset()
- func (m *RegisterVolunteerValidatorProposal) Size() (n int)
- func (p RegisterVolunteerValidatorProposal) String() string
- func (p RegisterVolunteerValidatorProposal) ToCreateValidator() stakingtypes.MsgCreateValidator
- func (m *RegisterVolunteerValidatorProposal) Unmarshal(dAtA []byte) error
- func (p RegisterVolunteerValidatorProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (p *RegisterVolunteerValidatorProposal) ValidateBasic() error
- func (m *RegisterVolunteerValidatorProposal) XXX_DiscardUnknown()
- func (m *RegisterVolunteerValidatorProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterVolunteerValidatorProposal) XXX_Merge(src proto.Message)
- func (m *RegisterVolunteerValidatorProposal) XXX_Size() int
- func (m *RegisterVolunteerValidatorProposal) XXX_Unmarshal(b []byte) error
- type RegisterVolunteerValidatorProposalWithDeposit
- func (*RegisterVolunteerValidatorProposalWithDeposit) Descriptor() ([]byte, []int)
- func (m *RegisterVolunteerValidatorProposalWithDeposit) Marshal() (dAtA []byte, err error)
- func (m *RegisterVolunteerValidatorProposalWithDeposit) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterVolunteerValidatorProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterVolunteerValidatorProposalWithDeposit) ProtoMessage()
- func (m *RegisterVolunteerValidatorProposalWithDeposit) Reset()
- func (m *RegisterVolunteerValidatorProposalWithDeposit) Size() (n int)
- func (m *RegisterVolunteerValidatorProposalWithDeposit) String() string
- func (m *RegisterVolunteerValidatorProposalWithDeposit) Unmarshal(dAtA []byte) error
- func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_DiscardUnknown()
- func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_Merge(src proto.Message)
- func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_Size() int
- func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type UnimplementedQueryServer
- type UnregisterVolunteerValidatorProposal
- func (*UnregisterVolunteerValidatorProposal) Descriptor() ([]byte, []int)
- func (p *UnregisterVolunteerValidatorProposal) GetDescription() string
- func (p *UnregisterVolunteerValidatorProposal) GetTitle() string
- func (m *UnregisterVolunteerValidatorProposal) Marshal() (dAtA []byte, err error)
- func (m *UnregisterVolunteerValidatorProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UnregisterVolunteerValidatorProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p UnregisterVolunteerValidatorProposal) ProposalRoute() string
- func (p UnregisterVolunteerValidatorProposal) ProposalType() string
- func (*UnregisterVolunteerValidatorProposal) ProtoMessage()
- func (m *UnregisterVolunteerValidatorProposal) Reset()
- func (m *UnregisterVolunteerValidatorProposal) Size() (n int)
- func (p UnregisterVolunteerValidatorProposal) String() string
- func (m *UnregisterVolunteerValidatorProposal) Unmarshal(dAtA []byte) error
- func (p *UnregisterVolunteerValidatorProposal) ValidateBasic() error
- func (m *UnregisterVolunteerValidatorProposal) XXX_DiscardUnknown()
- func (m *UnregisterVolunteerValidatorProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnregisterVolunteerValidatorProposal) XXX_Merge(src proto.Message)
- func (m *UnregisterVolunteerValidatorProposal) XXX_Size() int
- func (m *UnregisterVolunteerValidatorProposal) XXX_Unmarshal(b []byte) error
- type UnregisterVolunteerValidatorProposalWithDeposit
- func (*UnregisterVolunteerValidatorProposalWithDeposit) Descriptor() ([]byte, []int)
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) Marshal() (dAtA []byte, err error)
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) MarshalTo(dAtA []byte) (int, error)
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnregisterVolunteerValidatorProposalWithDeposit) ProtoMessage()
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) Reset()
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) Size() (n int)
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) String() string
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) Unmarshal(dAtA []byte) error
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_DiscardUnknown()
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_Merge(src proto.Message)
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_Size() int
- func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_Unmarshal(b []byte) error
- type VolunteerValidator
- func (*VolunteerValidator) Descriptor() ([]byte, []int)
- func (m *VolunteerValidator) Marshal() (dAtA []byte, err error)
- func (m *VolunteerValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *VolunteerValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VolunteerValidator) ProtoMessage()
- func (m *VolunteerValidator) Reset()
- func (m *VolunteerValidator) Size() (n int)
- func (m *VolunteerValidator) String() string
- func (m *VolunteerValidator) Unmarshal(dAtA []byte) error
- func (m *VolunteerValidator) XXX_DiscardUnknown()
- func (m *VolunteerValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VolunteerValidator) XXX_Merge(src proto.Message)
- func (m *VolunteerValidator) XXX_Size() int
- func (m *VolunteerValidator) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "volunteer" // StoreKey is the store key string for volunteer StoreKey = ModuleName // RouterKey is the message route for volunteer RouterKey = ModuleName // QuerierRoute is the querier route for volunteer QuerierRoute = ModuleName )
const (
QueryVolunteerValidators = "volunteer_validators"
)
Variables ¶
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthVolunteervalidator = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowVolunteervalidator = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupVolunteervalidator = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/volunteer module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding as Amino // is still used for that purpose. // // The actual codec used for serialization should be provided to x/volunteer and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
var ( // Keys for store prefixes VolunteerValidatorKey = []byte{0x11} )
Functions ¶
func GetVolunteerValidatorKey ¶
func GetVolunteerValidatorKey(operatorAddr sdk.ValAddress) []byte
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(gs *GenesisState) error
Types ¶
type DistributionKeeper ¶
type GenesisState ¶
type GenesisState struct {
VolunteerValidators []*VolunteerValidator `protobuf:"bytes,1,rep,name=volunteer_validators,json=volunteerValidators,proto3" json:"volunteer_validators,omitempty"`
}
GenesisState defines the volunteer module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(volunteerValidators []*VolunteerValidator) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetVolunteerValidators ¶
func (m *GenesisState) GetVolunteerValidators() []*VolunteerValidator
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type ProposalType ¶
type ProposalType string
const ( ProposalTypeRegisterVolunteerValidator ProposalType = "RegisterVolunteerValidator" ProposalTypeUnregisterVolunteerValidator ProposalType = "UnregisterVolunteerValidator" )
type QueryClient ¶
type QueryClient interface {
VolunteerValidators(ctx context.Context, in *QueryVolunteerValidatorsRequest, opts ...grpc.CallOption) (*QueryVolunteerValidatorsResponse, error)
}
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryServer ¶
type QueryServer interface {
VolunteerValidators(context.Context, *QueryVolunteerValidatorsRequest) (*QueryVolunteerValidatorsResponse, error)
}
QueryServer is the server API for Query service.
type QueryVolunteerValidatorsRequest ¶
type QueryVolunteerValidatorsRequest struct { }
func (*QueryVolunteerValidatorsRequest) Descriptor ¶
func (*QueryVolunteerValidatorsRequest) Descriptor() ([]byte, []int)
func (*QueryVolunteerValidatorsRequest) Marshal ¶
func (m *QueryVolunteerValidatorsRequest) Marshal() (dAtA []byte, err error)
func (*QueryVolunteerValidatorsRequest) MarshalTo ¶
func (m *QueryVolunteerValidatorsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVolunteerValidatorsRequest) MarshalToSizedBuffer ¶
func (m *QueryVolunteerValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVolunteerValidatorsRequest) ProtoMessage ¶
func (*QueryVolunteerValidatorsRequest) ProtoMessage()
func (*QueryVolunteerValidatorsRequest) Reset ¶
func (m *QueryVolunteerValidatorsRequest) Reset()
func (*QueryVolunteerValidatorsRequest) Size ¶
func (m *QueryVolunteerValidatorsRequest) Size() (n int)
func (*QueryVolunteerValidatorsRequest) String ¶
func (m *QueryVolunteerValidatorsRequest) String() string
func (*QueryVolunteerValidatorsRequest) Unmarshal ¶
func (m *QueryVolunteerValidatorsRequest) Unmarshal(dAtA []byte) error
func (*QueryVolunteerValidatorsRequest) XXX_DiscardUnknown ¶
func (m *QueryVolunteerValidatorsRequest) XXX_DiscardUnknown()
func (*QueryVolunteerValidatorsRequest) XXX_Marshal ¶
func (m *QueryVolunteerValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVolunteerValidatorsRequest) XXX_Merge ¶
func (m *QueryVolunteerValidatorsRequest) XXX_Merge(src proto.Message)
func (*QueryVolunteerValidatorsRequest) XXX_Size ¶
func (m *QueryVolunteerValidatorsRequest) XXX_Size() int
func (*QueryVolunteerValidatorsRequest) XXX_Unmarshal ¶
func (m *QueryVolunteerValidatorsRequest) XXX_Unmarshal(b []byte) error
type QueryVolunteerValidatorsResponse ¶
type QueryVolunteerValidatorsResponse struct {
VolunteerValidators []string `protobuf:"bytes,1,rep,name=volunteer_validators,json=volunteerValidators,proto3" json:"volunteer_validators,omitempty"`
}
func (*QueryVolunteerValidatorsResponse) Descriptor ¶
func (*QueryVolunteerValidatorsResponse) Descriptor() ([]byte, []int)
func (*QueryVolunteerValidatorsResponse) GetVolunteerValidators ¶
func (m *QueryVolunteerValidatorsResponse) GetVolunteerValidators() []string
func (*QueryVolunteerValidatorsResponse) Marshal ¶
func (m *QueryVolunteerValidatorsResponse) Marshal() (dAtA []byte, err error)
func (*QueryVolunteerValidatorsResponse) MarshalTo ¶
func (m *QueryVolunteerValidatorsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVolunteerValidatorsResponse) MarshalToSizedBuffer ¶
func (m *QueryVolunteerValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVolunteerValidatorsResponse) ProtoMessage ¶
func (*QueryVolunteerValidatorsResponse) ProtoMessage()
func (*QueryVolunteerValidatorsResponse) Reset ¶
func (m *QueryVolunteerValidatorsResponse) Reset()
func (*QueryVolunteerValidatorsResponse) Size ¶
func (m *QueryVolunteerValidatorsResponse) Size() (n int)
func (*QueryVolunteerValidatorsResponse) String ¶
func (m *QueryVolunteerValidatorsResponse) String() string
func (*QueryVolunteerValidatorsResponse) Unmarshal ¶
func (m *QueryVolunteerValidatorsResponse) Unmarshal(dAtA []byte) error
func (*QueryVolunteerValidatorsResponse) XXX_DiscardUnknown ¶
func (m *QueryVolunteerValidatorsResponse) XXX_DiscardUnknown()
func (*QueryVolunteerValidatorsResponse) XXX_Marshal ¶
func (m *QueryVolunteerValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVolunteerValidatorsResponse) XXX_Merge ¶
func (m *QueryVolunteerValidatorsResponse) XXX_Merge(src proto.Message)
func (*QueryVolunteerValidatorsResponse) XXX_Size ¶
func (m *QueryVolunteerValidatorsResponse) XXX_Size() int
func (*QueryVolunteerValidatorsResponse) XXX_Unmarshal ¶
func (m *QueryVolunteerValidatorsResponse) XXX_Unmarshal(b []byte) error
type RegisterVolunteerValidatorProposal ¶
type RegisterVolunteerValidatorProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` ValidatorDescription types.Description `protobuf:"bytes,3,opt,name=validator_description,json=validatorDescription,proto3" json:"validator_description"` DelegatorAddress string `` /* 134-byte string literal not displayed */ ValidatorAddress string `` /* 134-byte string literal not displayed */ Pubkey *types1.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Amount types2.Coin `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount"` }
func NewRegisterVolunteerValidatorProposal ¶
func NewRegisterVolunteerValidatorProposal(title, description string, delAddr sdk.AccAddress, valAddr sdk.ValAddress, pubKey cryptotypes.PubKey, selfDelegation sdk.Coin, validatorDescription stakingtypes.Description) (*RegisterVolunteerValidatorProposal, error)
func (*RegisterVolunteerValidatorProposal) Descriptor ¶
func (*RegisterVolunteerValidatorProposal) Descriptor() ([]byte, []int)
func (*RegisterVolunteerValidatorProposal) GetDescription ¶
func (p *RegisterVolunteerValidatorProposal) GetDescription() string
GetDescription returns the description of a register volunteer validator proposal.
func (*RegisterVolunteerValidatorProposal) GetTitle ¶
func (p *RegisterVolunteerValidatorProposal) GetTitle() string
GetTitle returns the title of a register volunteer validator proposal.
func (*RegisterVolunteerValidatorProposal) Marshal ¶
func (m *RegisterVolunteerValidatorProposal) Marshal() (dAtA []byte, err error)
func (*RegisterVolunteerValidatorProposal) MarshalTo ¶
func (m *RegisterVolunteerValidatorProposal) MarshalTo(dAtA []byte) (int, error)
func (*RegisterVolunteerValidatorProposal) MarshalToSizedBuffer ¶
func (m *RegisterVolunteerValidatorProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (RegisterVolunteerValidatorProposal) ProposalRoute ¶
func (p RegisterVolunteerValidatorProposal) ProposalRoute() string
func (RegisterVolunteerValidatorProposal) ProposalType ¶
func (p RegisterVolunteerValidatorProposal) ProposalType() string
ProposalType returns the type
func (*RegisterVolunteerValidatorProposal) ProtoMessage ¶
func (*RegisterVolunteerValidatorProposal) ProtoMessage()
func (*RegisterVolunteerValidatorProposal) Reset ¶
func (m *RegisterVolunteerValidatorProposal) Reset()
func (*RegisterVolunteerValidatorProposal) Size ¶
func (m *RegisterVolunteerValidatorProposal) Size() (n int)
func (RegisterVolunteerValidatorProposal) String ¶
func (p RegisterVolunteerValidatorProposal) String() string
String implements the Stringer interface.
func (RegisterVolunteerValidatorProposal) ToCreateValidator ¶
func (p RegisterVolunteerValidatorProposal) ToCreateValidator() stakingtypes.MsgCreateValidator
func (*RegisterVolunteerValidatorProposal) Unmarshal ¶
func (m *RegisterVolunteerValidatorProposal) Unmarshal(dAtA []byte) error
func (RegisterVolunteerValidatorProposal) UnpackInterfaces ¶
func (p RegisterVolunteerValidatorProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*RegisterVolunteerValidatorProposal) ValidateBasic ¶
func (p *RegisterVolunteerValidatorProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*RegisterVolunteerValidatorProposal) XXX_DiscardUnknown ¶
func (m *RegisterVolunteerValidatorProposal) XXX_DiscardUnknown()
func (*RegisterVolunteerValidatorProposal) XXX_Marshal ¶
func (m *RegisterVolunteerValidatorProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterVolunteerValidatorProposal) XXX_Merge ¶
func (m *RegisterVolunteerValidatorProposal) XXX_Merge(src proto.Message)
func (*RegisterVolunteerValidatorProposal) XXX_Size ¶
func (m *RegisterVolunteerValidatorProposal) XXX_Size() int
func (*RegisterVolunteerValidatorProposal) XXX_Unmarshal ¶
func (m *RegisterVolunteerValidatorProposal) XXX_Unmarshal(b []byte) error
type RegisterVolunteerValidatorProposalWithDeposit ¶
type RegisterVolunteerValidatorProposalWithDeposit struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` ValidatorDescription types.Description `protobuf:"bytes,3,opt,name=validator_description,json=validatorDescription,proto3" json:"validator_description"` DelegatorAddress string `` /* 134-byte string literal not displayed */ ValidatorAddress string `` /* 134-byte string literal not displayed */ Pubkey *types1.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Amount types2.Coin `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount"` Deposit string `protobuf:"bytes,8,opt,name=deposit,proto3" json:"deposit,omitempty"` }
func (*RegisterVolunteerValidatorProposalWithDeposit) Descriptor ¶
func (*RegisterVolunteerValidatorProposalWithDeposit) Descriptor() ([]byte, []int)
func (*RegisterVolunteerValidatorProposalWithDeposit) Marshal ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) Marshal() (dAtA []byte, err error)
func (*RegisterVolunteerValidatorProposalWithDeposit) MarshalTo ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) MarshalTo(dAtA []byte) (int, error)
func (*RegisterVolunteerValidatorProposalWithDeposit) MarshalToSizedBuffer ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterVolunteerValidatorProposalWithDeposit) ProtoMessage ¶
func (*RegisterVolunteerValidatorProposalWithDeposit) ProtoMessage()
func (*RegisterVolunteerValidatorProposalWithDeposit) Reset ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) Reset()
func (*RegisterVolunteerValidatorProposalWithDeposit) Size ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) Size() (n int)
func (*RegisterVolunteerValidatorProposalWithDeposit) String ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) String() string
func (*RegisterVolunteerValidatorProposalWithDeposit) Unmarshal ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) Unmarshal(dAtA []byte) error
func (*RegisterVolunteerValidatorProposalWithDeposit) XXX_DiscardUnknown ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_DiscardUnknown()
func (*RegisterVolunteerValidatorProposalWithDeposit) XXX_Marshal ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterVolunteerValidatorProposalWithDeposit) XXX_Merge ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_Merge(src proto.Message)
func (*RegisterVolunteerValidatorProposalWithDeposit) XXX_Size ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_Size() int
func (*RegisterVolunteerValidatorProposalWithDeposit) XXX_Unmarshal ¶
func (m *RegisterVolunteerValidatorProposalWithDeposit) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
type StakingKeeper interface { GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool) GetValidatorByConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress) (validator stakingtypes.Validator, found bool) BondDenom(ctx sdk.Context) (res string) SetValidator(ctx sdk.Context, validator stakingtypes.Validator) SetValidatorByConsAddr(ctx sdk.Context, validator stakingtypes.Validator) error SetNewValidatorByPowerIndex(ctx sdk.Context, validator stakingtypes.Validator) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) Delegate( ctx sdk.Context, delAddr sdk.AccAddress, bondAmt sdk.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool, ) (newShares sdk.Dec, err error) Undelegate( ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, sharesAmount sdk.Dec, ) (time.Time, error) }
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) VolunteerValidators ¶
func (*UnimplementedQueryServer) VolunteerValidators(ctx context.Context, req *QueryVolunteerValidatorsRequest) (*QueryVolunteerValidatorsResponse, error)
type UnregisterVolunteerValidatorProposal ¶
type UnregisterVolunteerValidatorProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` }
func NewUnregisterVolunteerValidatorProposal ¶
func NewUnregisterVolunteerValidatorProposal(title, description string, validatorAddress sdk.ValAddress) *UnregisterVolunteerValidatorProposal
func (*UnregisterVolunteerValidatorProposal) Descriptor ¶
func (*UnregisterVolunteerValidatorProposal) Descriptor() ([]byte, []int)
func (*UnregisterVolunteerValidatorProposal) GetDescription ¶
func (p *UnregisterVolunteerValidatorProposal) GetDescription() string
GetDescription returns the description of a unregister volunteer validator proposal.
func (*UnregisterVolunteerValidatorProposal) GetTitle ¶
func (p *UnregisterVolunteerValidatorProposal) GetTitle() string
GetTitle returns the title of a unregister volunteer validator proposal.
func (*UnregisterVolunteerValidatorProposal) Marshal ¶
func (m *UnregisterVolunteerValidatorProposal) Marshal() (dAtA []byte, err error)
func (*UnregisterVolunteerValidatorProposal) MarshalTo ¶
func (m *UnregisterVolunteerValidatorProposal) MarshalTo(dAtA []byte) (int, error)
func (*UnregisterVolunteerValidatorProposal) MarshalToSizedBuffer ¶
func (m *UnregisterVolunteerValidatorProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (UnregisterVolunteerValidatorProposal) ProposalRoute ¶
func (p UnregisterVolunteerValidatorProposal) ProposalRoute() string
func (UnregisterVolunteerValidatorProposal) ProposalType ¶
func (p UnregisterVolunteerValidatorProposal) ProposalType() string
ProposalType returns the type
func (*UnregisterVolunteerValidatorProposal) ProtoMessage ¶
func (*UnregisterVolunteerValidatorProposal) ProtoMessage()
func (*UnregisterVolunteerValidatorProposal) Reset ¶
func (m *UnregisterVolunteerValidatorProposal) Reset()
func (*UnregisterVolunteerValidatorProposal) Size ¶
func (m *UnregisterVolunteerValidatorProposal) Size() (n int)
func (UnregisterVolunteerValidatorProposal) String ¶
func (p UnregisterVolunteerValidatorProposal) String() string
String implements the Stringer interface.
func (*UnregisterVolunteerValidatorProposal) Unmarshal ¶
func (m *UnregisterVolunteerValidatorProposal) Unmarshal(dAtA []byte) error
func (*UnregisterVolunteerValidatorProposal) ValidateBasic ¶
func (p *UnregisterVolunteerValidatorProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*UnregisterVolunteerValidatorProposal) XXX_DiscardUnknown ¶
func (m *UnregisterVolunteerValidatorProposal) XXX_DiscardUnknown()
func (*UnregisterVolunteerValidatorProposal) XXX_Marshal ¶
func (m *UnregisterVolunteerValidatorProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnregisterVolunteerValidatorProposal) XXX_Merge ¶
func (m *UnregisterVolunteerValidatorProposal) XXX_Merge(src proto.Message)
func (*UnregisterVolunteerValidatorProposal) XXX_Size ¶
func (m *UnregisterVolunteerValidatorProposal) XXX_Size() int
func (*UnregisterVolunteerValidatorProposal) XXX_Unmarshal ¶
func (m *UnregisterVolunteerValidatorProposal) XXX_Unmarshal(b []byte) error
type UnregisterVolunteerValidatorProposalWithDeposit ¶
type UnregisterVolunteerValidatorProposalWithDeposit struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Deposit string `protobuf:"bytes,4,opt,name=deposit,proto3" json:"deposit,omitempty"` }
func (*UnregisterVolunteerValidatorProposalWithDeposit) Descriptor ¶
func (*UnregisterVolunteerValidatorProposalWithDeposit) Descriptor() ([]byte, []int)
func (*UnregisterVolunteerValidatorProposalWithDeposit) Marshal ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) Marshal() (dAtA []byte, err error)
func (*UnregisterVolunteerValidatorProposalWithDeposit) MarshalTo ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) MarshalTo(dAtA []byte) (int, error)
func (*UnregisterVolunteerValidatorProposalWithDeposit) MarshalToSizedBuffer ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnregisterVolunteerValidatorProposalWithDeposit) ProtoMessage ¶
func (*UnregisterVolunteerValidatorProposalWithDeposit) ProtoMessage()
func (*UnregisterVolunteerValidatorProposalWithDeposit) Reset ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) Reset()
func (*UnregisterVolunteerValidatorProposalWithDeposit) Size ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) Size() (n int)
func (*UnregisterVolunteerValidatorProposalWithDeposit) String ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) String() string
func (*UnregisterVolunteerValidatorProposalWithDeposit) Unmarshal ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) Unmarshal(dAtA []byte) error
func (*UnregisterVolunteerValidatorProposalWithDeposit) XXX_DiscardUnknown ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_DiscardUnknown()
func (*UnregisterVolunteerValidatorProposalWithDeposit) XXX_Marshal ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnregisterVolunteerValidatorProposalWithDeposit) XXX_Merge ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_Merge(src proto.Message)
func (*UnregisterVolunteerValidatorProposalWithDeposit) XXX_Size ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_Size() int
func (*UnregisterVolunteerValidatorProposalWithDeposit) XXX_Unmarshal ¶
func (m *UnregisterVolunteerValidatorProposalWithDeposit) XXX_Unmarshal(b []byte) error
type VolunteerValidator ¶
type VolunteerValidator struct { // address is the address of the validator. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // power defines the power of the validator. Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` }
VolunteerValidator required for validator set update logic.
func NewVolunteerValidator ¶
func NewVolunteerValidator(valAddress sdk.ValAddress, power int64) VolunteerValidator
func (*VolunteerValidator) Descriptor ¶
func (*VolunteerValidator) Descriptor() ([]byte, []int)
func (*VolunteerValidator) Marshal ¶
func (m *VolunteerValidator) Marshal() (dAtA []byte, err error)
func (*VolunteerValidator) MarshalTo ¶
func (m *VolunteerValidator) MarshalTo(dAtA []byte) (int, error)
func (*VolunteerValidator) MarshalToSizedBuffer ¶
func (m *VolunteerValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VolunteerValidator) ProtoMessage ¶
func (*VolunteerValidator) ProtoMessage()
func (*VolunteerValidator) Reset ¶
func (m *VolunteerValidator) Reset()
func (*VolunteerValidator) Size ¶
func (m *VolunteerValidator) Size() (n int)
func (*VolunteerValidator) String ¶
func (m *VolunteerValidator) String() string
func (*VolunteerValidator) Unmarshal ¶
func (m *VolunteerValidator) Unmarshal(dAtA []byte) error
func (*VolunteerValidator) XXX_DiscardUnknown ¶
func (m *VolunteerValidator) XXX_DiscardUnknown()
func (*VolunteerValidator) XXX_Marshal ¶
func (m *VolunteerValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VolunteerValidator) XXX_Merge ¶
func (m *VolunteerValidator) XXX_Merge(src proto.Message)
func (*VolunteerValidator) XXX_Size ¶
func (m *VolunteerValidator) XXX_Size() int
func (*VolunteerValidator) XXX_Unmarshal ¶
func (m *VolunteerValidator) XXX_Unmarshal(b []byte) error