Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- 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)
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCommitteeAddress() string
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetStakerAddresses() []string
- 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 (gs GenesisState) Validate() 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 MsgClient
- type MsgCreateStaker
- func (*MsgCreateStaker) Descriptor() ([]byte, []int)
- func (m *MsgCreateStaker) GetCreator() string
- func (m *MsgCreateStaker) GetStakerAddress() string
- func (m *MsgCreateStaker) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateStaker) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateStaker) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateStaker) ProtoMessage()
- func (m *MsgCreateStaker) Reset()
- func (m *MsgCreateStaker) Size() (n int)
- func (m *MsgCreateStaker) String() string
- func (m *MsgCreateStaker) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateStaker) ValidateBasic() error
- func (m *MsgCreateStaker) XXX_DiscardUnknown()
- func (m *MsgCreateStaker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateStaker) XXX_Merge(src proto.Message)
- func (m *MsgCreateStaker) XXX_Size() int
- func (m *MsgCreateStaker) XXX_Unmarshal(b []byte) error
- type MsgCreateStakerResponse
- func (*MsgCreateStakerResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateStakerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateStakerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateStakerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateStakerResponse) ProtoMessage()
- func (m *MsgCreateStakerResponse) Reset()
- func (m *MsgCreateStakerResponse) Size() (n int)
- func (m *MsgCreateStakerResponse) String() string
- func (m *MsgCreateStakerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateStakerResponse) XXX_DiscardUnknown()
- func (m *MsgCreateStakerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateStakerResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateStakerResponse) XXX_Size() int
- func (m *MsgCreateStakerResponse) XXX_Unmarshal(b []byte) error
- type MsgRegisterVK
- func (*MsgRegisterVK) Descriptor() ([]byte, []int)
- func (m *MsgRegisterVK) GetCreator() string
- func (m *MsgRegisterVK) GetVk() []byte
- func (m *MsgRegisterVK) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterVK) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterVK) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterVK) ProtoMessage()
- func (m *MsgRegisterVK) Reset()
- func (m *MsgRegisterVK) Size() (n int)
- func (m *MsgRegisterVK) String() string
- func (m *MsgRegisterVK) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterVK) XXX_DiscardUnknown()
- func (m *MsgRegisterVK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterVK) XXX_Merge(src proto.Message)
- func (m *MsgRegisterVK) XXX_Size() int
- func (m *MsgRegisterVK) XXX_Unmarshal(b []byte) error
- type MsgRegisterVKResponse
- func (*MsgRegisterVKResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterVKResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterVKResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterVKResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterVKResponse) ProtoMessage()
- func (m *MsgRegisterVKResponse) Reset()
- func (m *MsgRegisterVKResponse) Size() (n int)
- func (m *MsgRegisterVKResponse) String() string
- func (m *MsgRegisterVKResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterVKResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterVKResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterVKResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterVKResponse) XXX_Size() int
- func (m *MsgRegisterVKResponse) XXX_Unmarshal(b []byte) error
- type MsgRemoveStaker
- func (*MsgRemoveStaker) Descriptor() ([]byte, []int)
- func (m *MsgRemoveStaker) GetCreator() string
- func (m *MsgRemoveStaker) GetStakerAddress() string
- func (m *MsgRemoveStaker) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveStaker) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveStaker) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveStaker) ProtoMessage()
- func (m *MsgRemoveStaker) Reset()
- func (m *MsgRemoveStaker) Size() (n int)
- func (m *MsgRemoveStaker) String() string
- func (m *MsgRemoveStaker) Unmarshal(dAtA []byte) error
- func (msg *MsgRemoveStaker) ValidateBasic() error
- func (m *MsgRemoveStaker) XXX_DiscardUnknown()
- func (m *MsgRemoveStaker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveStaker) XXX_Merge(src proto.Message)
- func (m *MsgRemoveStaker) XXX_Size() int
- func (m *MsgRemoveStaker) XXX_Unmarshal(b []byte) error
- type MsgRemoveStakerResponse
- func (*MsgRemoveStakerResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveStakerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveStakerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveStakerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveStakerResponse) ProtoMessage()
- func (m *MsgRemoveStakerResponse) Reset()
- func (m *MsgRemoveStakerResponse) Size() (n int)
- func (m *MsgRemoveStakerResponse) String() string
- func (m *MsgRemoveStakerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveStakerResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveStakerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveStakerResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveStakerResponse) XXX_Size() int
- func (m *MsgRemoveStakerResponse) XXX_Unmarshal(b []byte) error
- type MsgRemoveVK
- func (*MsgRemoveVK) Descriptor() ([]byte, []int)
- func (m *MsgRemoveVK) GetCreator() string
- func (m *MsgRemoveVK) GetVk() []byte
- func (m *MsgRemoveVK) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveVK) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveVK) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveVK) ProtoMessage()
- func (m *MsgRemoveVK) Reset()
- func (m *MsgRemoveVK) Size() (n int)
- func (m *MsgRemoveVK) String() string
- func (m *MsgRemoveVK) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveVK) XXX_DiscardUnknown()
- func (m *MsgRemoveVK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveVK) XXX_Merge(src proto.Message)
- func (m *MsgRemoveVK) XXX_Size() int
- func (m *MsgRemoveVK) XXX_Unmarshal(b []byte) error
- type MsgRemoveVKResponse
- func (*MsgRemoveVKResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveVKResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveVKResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveVKResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveVKResponse) ProtoMessage()
- func (m *MsgRemoveVKResponse) Reset()
- func (m *MsgRemoveVKResponse) Size() (n int)
- func (m *MsgRemoveVKResponse) String() string
- func (m *MsgRemoveVKResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveVKResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveVKResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveVKResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveVKResponse) XXX_Size() int
- func (m *MsgRemoveVKResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateCommitteeAddress
- func (*MsgUpdateCommitteeAddress) Descriptor() ([]byte, []int)
- func (m *MsgUpdateCommitteeAddress) GetCreator() string
- func (m *MsgUpdateCommitteeAddress) GetNewCommitteeAddress() string
- func (m *MsgUpdateCommitteeAddress) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCommitteeAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCommitteeAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCommitteeAddress) ProtoMessage()
- func (m *MsgUpdateCommitteeAddress) Reset()
- func (m *MsgUpdateCommitteeAddress) Size() (n int)
- func (m *MsgUpdateCommitteeAddress) String() string
- func (m *MsgUpdateCommitteeAddress) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateCommitteeAddress) ValidateBasic() error
- func (m *MsgUpdateCommitteeAddress) XXX_DiscardUnknown()
- func (m *MsgUpdateCommitteeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCommitteeAddress) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCommitteeAddress) XXX_Size() int
- func (m *MsgUpdateCommitteeAddress) XXX_Unmarshal(b []byte) error
- type MsgUpdateCommitteeAddressResponse
- func (*MsgUpdateCommitteeAddressResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateCommitteeAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCommitteeAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCommitteeAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCommitteeAddressResponse) ProtoMessage()
- func (m *MsgUpdateCommitteeAddressResponse) Reset()
- func (m *MsgUpdateCommitteeAddressResponse) Size() (n int)
- func (m *MsgUpdateCommitteeAddressResponse) String() string
- func (m *MsgUpdateCommitteeAddressResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateCommitteeAddressResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateCommitteeAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCommitteeAddressResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCommitteeAddressResponse) XXX_Size() int
- func (m *MsgUpdateCommitteeAddressResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllStakerInfoRequest
- func (*QueryAllStakerInfoRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllStakerInfoRequest) GetPagination() *query.PageRequest
- func (m *QueryAllStakerInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllStakerInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllStakerInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllStakerInfoRequest) ProtoMessage()
- func (m *QueryAllStakerInfoRequest) Reset()
- func (m *QueryAllStakerInfoRequest) Size() (n int)
- func (m *QueryAllStakerInfoRequest) String() string
- func (m *QueryAllStakerInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllStakerInfoRequest) XXX_DiscardUnknown()
- func (m *QueryAllStakerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllStakerInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllStakerInfoRequest) XXX_Size() int
- func (m *QueryAllStakerInfoRequest) XXX_Unmarshal(b []byte) error
- type QueryAllStakerInfoResponse
- func (*QueryAllStakerInfoResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllStakerInfoResponse) GetAllStakerInfo() []StakerInfo
- func (m *QueryAllStakerInfoResponse) GetPagination() *query.PageResponse
- func (m *QueryAllStakerInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllStakerInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllStakerInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllStakerInfoResponse) ProtoMessage()
- func (m *QueryAllStakerInfoResponse) Reset()
- func (m *QueryAllStakerInfoResponse) Size() (n int)
- func (m *QueryAllStakerInfoResponse) String() string
- func (m *QueryAllStakerInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllStakerInfoResponse) XXX_DiscardUnknown()
- func (m *QueryAllStakerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllStakerInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllStakerInfoResponse) XXX_Size() int
- func (m *QueryAllStakerInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCommitteeAddressRequest
- func (*QueryCommitteeAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryCommitteeAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCommitteeAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCommitteeAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCommitteeAddressRequest) ProtoMessage()
- func (m *QueryCommitteeAddressRequest) Reset()
- func (m *QueryCommitteeAddressRequest) Size() (n int)
- func (m *QueryCommitteeAddressRequest) String() string
- func (m *QueryCommitteeAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCommitteeAddressRequest) XXX_DiscardUnknown()
- func (m *QueryCommitteeAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCommitteeAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryCommitteeAddressRequest) XXX_Size() int
- func (m *QueryCommitteeAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryCommitteeAddressResponse
- func (*QueryCommitteeAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryCommitteeAddressResponse) GetCommitteeAddress() string
- func (m *QueryCommitteeAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCommitteeAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCommitteeAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCommitteeAddressResponse) ProtoMessage()
- func (m *QueryCommitteeAddressResponse) Reset()
- func (m *QueryCommitteeAddressResponse) Size() (n int)
- func (m *QueryCommitteeAddressResponse) String() string
- func (m *QueryCommitteeAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCommitteeAddressResponse) XXX_DiscardUnknown()
- func (m *QueryCommitteeAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCommitteeAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryCommitteeAddressResponse) XXX_Size() int
- func (m *QueryCommitteeAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryRegisteredVKListRequest
- func (*QueryRegisteredVKListRequest) Descriptor() ([]byte, []int)
- func (m *QueryRegisteredVKListRequest) GetPagination() *query.PageRequest
- func (m *QueryRegisteredVKListRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRegisteredVKListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRegisteredVKListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRegisteredVKListRequest) ProtoMessage()
- func (m *QueryRegisteredVKListRequest) Reset()
- func (m *QueryRegisteredVKListRequest) Size() (n int)
- func (m *QueryRegisteredVKListRequest) String() string
- func (m *QueryRegisteredVKListRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRegisteredVKListRequest) XXX_DiscardUnknown()
- func (m *QueryRegisteredVKListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRegisteredVKListRequest) XXX_Merge(src proto.Message)
- func (m *QueryRegisteredVKListRequest) XXX_Size() int
- func (m *QueryRegisteredVKListRequest) XXX_Unmarshal(b []byte) error
- type QueryRegisteredVKListResponse
- func (*QueryRegisteredVKListResponse) Descriptor() ([]byte, []int)
- func (m *QueryRegisteredVKListResponse) GetPagination() *query.PageResponse
- func (m *QueryRegisteredVKListResponse) GetRegisteredVkList() [][]byte
- func (m *QueryRegisteredVKListResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRegisteredVKListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRegisteredVKListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRegisteredVKListResponse) ProtoMessage()
- func (m *QueryRegisteredVKListResponse) Reset()
- func (m *QueryRegisteredVKListResponse) Size() (n int)
- func (m *QueryRegisteredVKListResponse) String() string
- func (m *QueryRegisteredVKListResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRegisteredVKListResponse) XXX_DiscardUnknown()
- func (m *QueryRegisteredVKListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRegisteredVKListResponse) XXX_Merge(src proto.Message)
- func (m *QueryRegisteredVKListResponse) XXX_Size() int
- func (m *QueryRegisteredVKListResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StakerInfo
- func (*StakerInfo) Descriptor() ([]byte, []int)
- func (m *StakerInfo) GetStakerAddress() string
- func (m *StakerInfo) GetStakerIndex() uint64
- func (m *StakerInfo) Marshal() (dAtA []byte, err error)
- func (m *StakerInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *StakerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StakerInfo) ProtoMessage()
- func (m *StakerInfo) Reset()
- func (m *StakerInfo) Size() (n int)
- func (m *StakerInfo) String() string
- func (m *StakerInfo) Unmarshal(dAtA []byte) error
- func (m *StakerInfo) XXX_DiscardUnknown()
- func (m *StakerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StakerInfo) XXX_Merge(src proto.Message)
- func (m *StakerInfo) XXX_Size() int
- func (m *StakerInfo) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateStaker(ctx context.Context, req *MsgCreateStaker) (*MsgCreateStakerResponse, error)
- func (*UnimplementedMsgServer) RegisterVK(ctx context.Context, req *MsgRegisterVK) (*MsgRegisterVKResponse, error)
- func (*UnimplementedMsgServer) RemoveStaker(ctx context.Context, req *MsgRemoveStaker) (*MsgRemoveStakerResponse, error)
- func (*UnimplementedMsgServer) RemoveVK(ctx context.Context, req *MsgRemoveVK) (*MsgRemoveVKResponse, error)
- func (*UnimplementedMsgServer) UpdateCommitteeAddress(ctx context.Context, req *MsgUpdateCommitteeAddress) (*MsgUpdateCommitteeAddressResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllStakerInfo(ctx context.Context, req *QueryAllStakerInfoRequest) (*QueryAllStakerInfoResponse, error)
- func (*UnimplementedQueryServer) CommitteeAddress(ctx context.Context, req *QueryCommitteeAddressRequest) (*QueryCommitteeAddressResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) RegisteredVKList(ctx context.Context, req *QueryRegisteredVKListRequest) (*QueryRegisteredVKListResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "bitvmstaker" // StoreKey defines the primary module store key StoreKey = ModuleName )
Variables ¶
var ( ErrInvalidLengthBitvmstaker = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBitvmstaker = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBitvmstaker = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrStakerNotFound = sdkerrors.Register(ModuleName, 1102, "staker not found") ErrVaildatorNotStaker = sdkerrors.Register(ModuleName, 1103, "validator is not a bitvm staker") )
x/bitvmstaker module sentinel errors
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 ( ParamsKey = []byte{0x01} // key prefix for the parameters CommitteeAddressKey = []byte{0x02} // key prefix for the committee address StakerCountKey = []byte{0x03} // key prefix for the staker count StakerKey = []byte{0x04} // key prefix for the staker VkKey = []byte{0x05} // key prefix for the vk )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = 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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
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)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
}
AccountKeeper defines the expected interface for the Account module.
type BankKeeper ¶
BankKeeper defines the expected interface for the Bank module.
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` CommitteeAddress string `protobuf:"bytes,2,opt,name=committee_address,json=committeeAddress,proto3" json:"committee_address,omitempty"` StakerAddresses []string `protobuf:"bytes,3,rep,name=staker_addresses,json=stakerAddresses,proto3" json:"staker_addresses,omitempty"` }
GenesisState defines the bitvmstaker module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetCommitteeAddress ¶
func (m *GenesisState) GetCommitteeAddress() string
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetStakerAddresses ¶
func (m *GenesisState) GetStakerAddresses() []string
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) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
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 MsgClient ¶
type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) CreateStaker(ctx context.Context, in *MsgCreateStaker, opts ...grpc.CallOption) (*MsgCreateStakerResponse, error) RemoveStaker(ctx context.Context, in *MsgRemoveStaker, opts ...grpc.CallOption) (*MsgRemoveStakerResponse, error) UpdateCommitteeAddress(ctx context.Context, in *MsgUpdateCommitteeAddress, opts ...grpc.CallOption) (*MsgUpdateCommitteeAddressResponse, error) RegisterVK(ctx context.Context, in *MsgRegisterVK, opts ...grpc.CallOption) (*MsgRegisterVKResponse, error) RemoveVK(ctx context.Context, in *MsgRemoveVK, opts ...grpc.CallOption) (*MsgRemoveVKResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateStaker ¶
type MsgCreateStaker struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` StakerAddress string `protobuf:"bytes,2,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` }
func NewMsgCreateStaker ¶
func NewMsgCreateStaker(creator string, stakerAddress string) *MsgCreateStaker
func (*MsgCreateStaker) Descriptor ¶
func (*MsgCreateStaker) Descriptor() ([]byte, []int)
func (*MsgCreateStaker) GetCreator ¶
func (m *MsgCreateStaker) GetCreator() string
func (*MsgCreateStaker) GetStakerAddress ¶
func (m *MsgCreateStaker) GetStakerAddress() string
func (*MsgCreateStaker) Marshal ¶
func (m *MsgCreateStaker) Marshal() (dAtA []byte, err error)
func (*MsgCreateStaker) MarshalToSizedBuffer ¶
func (m *MsgCreateStaker) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateStaker) ProtoMessage ¶
func (*MsgCreateStaker) ProtoMessage()
func (*MsgCreateStaker) Reset ¶
func (m *MsgCreateStaker) Reset()
func (*MsgCreateStaker) Size ¶
func (m *MsgCreateStaker) Size() (n int)
func (*MsgCreateStaker) String ¶
func (m *MsgCreateStaker) String() string
func (*MsgCreateStaker) Unmarshal ¶
func (m *MsgCreateStaker) Unmarshal(dAtA []byte) error
func (*MsgCreateStaker) ValidateBasic ¶
func (msg *MsgCreateStaker) ValidateBasic() error
func (*MsgCreateStaker) XXX_DiscardUnknown ¶
func (m *MsgCreateStaker) XXX_DiscardUnknown()
func (*MsgCreateStaker) XXX_Marshal ¶
func (m *MsgCreateStaker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateStaker) XXX_Merge ¶
func (m *MsgCreateStaker) XXX_Merge(src proto.Message)
func (*MsgCreateStaker) XXX_Size ¶
func (m *MsgCreateStaker) XXX_Size() int
func (*MsgCreateStaker) XXX_Unmarshal ¶
func (m *MsgCreateStaker) XXX_Unmarshal(b []byte) error
type MsgCreateStakerResponse ¶
type MsgCreateStakerResponse struct { }
func (*MsgCreateStakerResponse) Descriptor ¶
func (*MsgCreateStakerResponse) Descriptor() ([]byte, []int)
func (*MsgCreateStakerResponse) Marshal ¶
func (m *MsgCreateStakerResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateStakerResponse) MarshalTo ¶
func (m *MsgCreateStakerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateStakerResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateStakerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateStakerResponse) ProtoMessage ¶
func (*MsgCreateStakerResponse) ProtoMessage()
func (*MsgCreateStakerResponse) Reset ¶
func (m *MsgCreateStakerResponse) Reset()
func (*MsgCreateStakerResponse) Size ¶
func (m *MsgCreateStakerResponse) Size() (n int)
func (*MsgCreateStakerResponse) String ¶
func (m *MsgCreateStakerResponse) String() string
func (*MsgCreateStakerResponse) Unmarshal ¶
func (m *MsgCreateStakerResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateStakerResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateStakerResponse) XXX_DiscardUnknown()
func (*MsgCreateStakerResponse) XXX_Marshal ¶
func (m *MsgCreateStakerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateStakerResponse) XXX_Merge ¶
func (m *MsgCreateStakerResponse) XXX_Merge(src proto.Message)
func (*MsgCreateStakerResponse) XXX_Size ¶
func (m *MsgCreateStakerResponse) XXX_Size() int
func (*MsgCreateStakerResponse) XXX_Unmarshal ¶
func (m *MsgCreateStakerResponse) XXX_Unmarshal(b []byte) error
type MsgRegisterVK ¶
type MsgRegisterVK struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Vk []byte `protobuf:"bytes,2,opt,name=vk,proto3" json:"vk,omitempty"` }
func (*MsgRegisterVK) Descriptor ¶
func (*MsgRegisterVK) Descriptor() ([]byte, []int)
func (*MsgRegisterVK) GetCreator ¶
func (m *MsgRegisterVK) GetCreator() string
func (*MsgRegisterVK) GetVk ¶
func (m *MsgRegisterVK) GetVk() []byte
func (*MsgRegisterVK) Marshal ¶
func (m *MsgRegisterVK) Marshal() (dAtA []byte, err error)
func (*MsgRegisterVK) MarshalToSizedBuffer ¶
func (m *MsgRegisterVK) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterVK) ProtoMessage ¶
func (*MsgRegisterVK) ProtoMessage()
func (*MsgRegisterVK) Reset ¶
func (m *MsgRegisterVK) Reset()
func (*MsgRegisterVK) Size ¶
func (m *MsgRegisterVK) Size() (n int)
func (*MsgRegisterVK) String ¶
func (m *MsgRegisterVK) String() string
func (*MsgRegisterVK) Unmarshal ¶
func (m *MsgRegisterVK) Unmarshal(dAtA []byte) error
func (*MsgRegisterVK) XXX_DiscardUnknown ¶
func (m *MsgRegisterVK) XXX_DiscardUnknown()
func (*MsgRegisterVK) XXX_Marshal ¶
func (m *MsgRegisterVK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterVK) XXX_Merge ¶
func (m *MsgRegisterVK) XXX_Merge(src proto.Message)
func (*MsgRegisterVK) XXX_Size ¶
func (m *MsgRegisterVK) XXX_Size() int
func (*MsgRegisterVK) XXX_Unmarshal ¶
func (m *MsgRegisterVK) XXX_Unmarshal(b []byte) error
type MsgRegisterVKResponse ¶
type MsgRegisterVKResponse struct { }
func (*MsgRegisterVKResponse) Descriptor ¶
func (*MsgRegisterVKResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterVKResponse) Marshal ¶
func (m *MsgRegisterVKResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterVKResponse) MarshalTo ¶
func (m *MsgRegisterVKResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterVKResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterVKResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterVKResponse) ProtoMessage ¶
func (*MsgRegisterVKResponse) ProtoMessage()
func (*MsgRegisterVKResponse) Reset ¶
func (m *MsgRegisterVKResponse) Reset()
func (*MsgRegisterVKResponse) Size ¶
func (m *MsgRegisterVKResponse) Size() (n int)
func (*MsgRegisterVKResponse) String ¶
func (m *MsgRegisterVKResponse) String() string
func (*MsgRegisterVKResponse) Unmarshal ¶
func (m *MsgRegisterVKResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterVKResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterVKResponse) XXX_DiscardUnknown()
func (*MsgRegisterVKResponse) XXX_Marshal ¶
func (m *MsgRegisterVKResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterVKResponse) XXX_Merge ¶
func (m *MsgRegisterVKResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterVKResponse) XXX_Size ¶
func (m *MsgRegisterVKResponse) XXX_Size() int
func (*MsgRegisterVKResponse) XXX_Unmarshal ¶
func (m *MsgRegisterVKResponse) XXX_Unmarshal(b []byte) error
type MsgRemoveStaker ¶
type MsgRemoveStaker struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` StakerAddress string `protobuf:"bytes,2,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` }
func NewMsgRemoveStaker ¶
func NewMsgRemoveStaker(creator string, stakerAddress string) *MsgRemoveStaker
func (*MsgRemoveStaker) Descriptor ¶
func (*MsgRemoveStaker) Descriptor() ([]byte, []int)
func (*MsgRemoveStaker) GetCreator ¶
func (m *MsgRemoveStaker) GetCreator() string
func (*MsgRemoveStaker) GetStakerAddress ¶
func (m *MsgRemoveStaker) GetStakerAddress() string
func (*MsgRemoveStaker) Marshal ¶
func (m *MsgRemoveStaker) Marshal() (dAtA []byte, err error)
func (*MsgRemoveStaker) MarshalToSizedBuffer ¶
func (m *MsgRemoveStaker) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveStaker) ProtoMessage ¶
func (*MsgRemoveStaker) ProtoMessage()
func (*MsgRemoveStaker) Reset ¶
func (m *MsgRemoveStaker) Reset()
func (*MsgRemoveStaker) Size ¶
func (m *MsgRemoveStaker) Size() (n int)
func (*MsgRemoveStaker) String ¶
func (m *MsgRemoveStaker) String() string
func (*MsgRemoveStaker) Unmarshal ¶
func (m *MsgRemoveStaker) Unmarshal(dAtA []byte) error
func (*MsgRemoveStaker) ValidateBasic ¶
func (msg *MsgRemoveStaker) ValidateBasic() error
func (*MsgRemoveStaker) XXX_DiscardUnknown ¶
func (m *MsgRemoveStaker) XXX_DiscardUnknown()
func (*MsgRemoveStaker) XXX_Marshal ¶
func (m *MsgRemoveStaker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveStaker) XXX_Merge ¶
func (m *MsgRemoveStaker) XXX_Merge(src proto.Message)
func (*MsgRemoveStaker) XXX_Size ¶
func (m *MsgRemoveStaker) XXX_Size() int
func (*MsgRemoveStaker) XXX_Unmarshal ¶
func (m *MsgRemoveStaker) XXX_Unmarshal(b []byte) error
type MsgRemoveStakerResponse ¶
type MsgRemoveStakerResponse struct { }
func (*MsgRemoveStakerResponse) Descriptor ¶
func (*MsgRemoveStakerResponse) Descriptor() ([]byte, []int)
func (*MsgRemoveStakerResponse) Marshal ¶
func (m *MsgRemoveStakerResponse) Marshal() (dAtA []byte, err error)
func (*MsgRemoveStakerResponse) MarshalTo ¶
func (m *MsgRemoveStakerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveStakerResponse) MarshalToSizedBuffer ¶
func (m *MsgRemoveStakerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveStakerResponse) ProtoMessage ¶
func (*MsgRemoveStakerResponse) ProtoMessage()
func (*MsgRemoveStakerResponse) Reset ¶
func (m *MsgRemoveStakerResponse) Reset()
func (*MsgRemoveStakerResponse) Size ¶
func (m *MsgRemoveStakerResponse) Size() (n int)
func (*MsgRemoveStakerResponse) String ¶
func (m *MsgRemoveStakerResponse) String() string
func (*MsgRemoveStakerResponse) Unmarshal ¶
func (m *MsgRemoveStakerResponse) Unmarshal(dAtA []byte) error
func (*MsgRemoveStakerResponse) XXX_DiscardUnknown ¶
func (m *MsgRemoveStakerResponse) XXX_DiscardUnknown()
func (*MsgRemoveStakerResponse) XXX_Marshal ¶
func (m *MsgRemoveStakerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveStakerResponse) XXX_Merge ¶
func (m *MsgRemoveStakerResponse) XXX_Merge(src proto.Message)
func (*MsgRemoveStakerResponse) XXX_Size ¶
func (m *MsgRemoveStakerResponse) XXX_Size() int
func (*MsgRemoveStakerResponse) XXX_Unmarshal ¶
func (m *MsgRemoveStakerResponse) XXX_Unmarshal(b []byte) error
type MsgRemoveVK ¶
type MsgRemoveVK struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Vk []byte `protobuf:"bytes,2,opt,name=vk,proto3" json:"vk,omitempty"` }
func (*MsgRemoveVK) Descriptor ¶
func (*MsgRemoveVK) Descriptor() ([]byte, []int)
func (*MsgRemoveVK) GetCreator ¶
func (m *MsgRemoveVK) GetCreator() string
func (*MsgRemoveVK) GetVk ¶
func (m *MsgRemoveVK) GetVk() []byte
func (*MsgRemoveVK) Marshal ¶
func (m *MsgRemoveVK) Marshal() (dAtA []byte, err error)
func (*MsgRemoveVK) MarshalToSizedBuffer ¶
func (m *MsgRemoveVK) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveVK) ProtoMessage ¶
func (*MsgRemoveVK) ProtoMessage()
func (*MsgRemoveVK) Reset ¶
func (m *MsgRemoveVK) Reset()
func (*MsgRemoveVK) Size ¶
func (m *MsgRemoveVK) Size() (n int)
func (*MsgRemoveVK) String ¶
func (m *MsgRemoveVK) String() string
func (*MsgRemoveVK) Unmarshal ¶
func (m *MsgRemoveVK) Unmarshal(dAtA []byte) error
func (*MsgRemoveVK) XXX_DiscardUnknown ¶
func (m *MsgRemoveVK) XXX_DiscardUnknown()
func (*MsgRemoveVK) XXX_Marshal ¶
func (m *MsgRemoveVK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveVK) XXX_Merge ¶
func (m *MsgRemoveVK) XXX_Merge(src proto.Message)
func (*MsgRemoveVK) XXX_Size ¶
func (m *MsgRemoveVK) XXX_Size() int
func (*MsgRemoveVK) XXX_Unmarshal ¶
func (m *MsgRemoveVK) XXX_Unmarshal(b []byte) error
type MsgRemoveVKResponse ¶
type MsgRemoveVKResponse struct { }
func (*MsgRemoveVKResponse) Descriptor ¶
func (*MsgRemoveVKResponse) Descriptor() ([]byte, []int)
func (*MsgRemoveVKResponse) Marshal ¶
func (m *MsgRemoveVKResponse) Marshal() (dAtA []byte, err error)
func (*MsgRemoveVKResponse) MarshalTo ¶
func (m *MsgRemoveVKResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveVKResponse) MarshalToSizedBuffer ¶
func (m *MsgRemoveVKResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveVKResponse) ProtoMessage ¶
func (*MsgRemoveVKResponse) ProtoMessage()
func (*MsgRemoveVKResponse) Reset ¶
func (m *MsgRemoveVKResponse) Reset()
func (*MsgRemoveVKResponse) Size ¶
func (m *MsgRemoveVKResponse) Size() (n int)
func (*MsgRemoveVKResponse) String ¶
func (m *MsgRemoveVKResponse) String() string
func (*MsgRemoveVKResponse) Unmarshal ¶
func (m *MsgRemoveVKResponse) Unmarshal(dAtA []byte) error
func (*MsgRemoveVKResponse) XXX_DiscardUnknown ¶
func (m *MsgRemoveVKResponse) XXX_DiscardUnknown()
func (*MsgRemoveVKResponse) XXX_Marshal ¶
func (m *MsgRemoveVKResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveVKResponse) XXX_Merge ¶
func (m *MsgRemoveVKResponse) XXX_Merge(src proto.Message)
func (*MsgRemoveVKResponse) XXX_Size ¶
func (m *MsgRemoveVKResponse) XXX_Size() int
func (*MsgRemoveVKResponse) XXX_Unmarshal ¶
func (m *MsgRemoveVKResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) CreateStaker(context.Context, *MsgCreateStaker) (*MsgCreateStakerResponse, error) RemoveStaker(context.Context, *MsgRemoveStaker) (*MsgRemoveStakerResponse, error) UpdateCommitteeAddress(context.Context, *MsgUpdateCommitteeAddress) (*MsgUpdateCommitteeAddressResponse, error) RegisterVK(context.Context, *MsgRegisterVK) (*MsgRegisterVKResponse, error) RemoveVK(context.Context, *MsgRemoveVK) (*MsgRemoveVKResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateCommitteeAddress ¶
type MsgUpdateCommitteeAddress struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` NewCommitteeAddress string `protobuf:"bytes,2,opt,name=new_committee_address,json=newCommitteeAddress,proto3" json:"new_committee_address,omitempty"` }
func NewMsgUpdateCommitteeAddress ¶
func NewMsgUpdateCommitteeAddress(creator string, newCommitteeAddress string) *MsgUpdateCommitteeAddress
func (*MsgUpdateCommitteeAddress) Descriptor ¶
func (*MsgUpdateCommitteeAddress) Descriptor() ([]byte, []int)
func (*MsgUpdateCommitteeAddress) GetCreator ¶
func (m *MsgUpdateCommitteeAddress) GetCreator() string
func (*MsgUpdateCommitteeAddress) GetNewCommitteeAddress ¶
func (m *MsgUpdateCommitteeAddress) GetNewCommitteeAddress() string
func (*MsgUpdateCommitteeAddress) Marshal ¶
func (m *MsgUpdateCommitteeAddress) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCommitteeAddress) MarshalTo ¶
func (m *MsgUpdateCommitteeAddress) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateCommitteeAddress) MarshalToSizedBuffer ¶
func (m *MsgUpdateCommitteeAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCommitteeAddress) ProtoMessage ¶
func (*MsgUpdateCommitteeAddress) ProtoMessage()
func (*MsgUpdateCommitteeAddress) Reset ¶
func (m *MsgUpdateCommitteeAddress) Reset()
func (*MsgUpdateCommitteeAddress) Size ¶
func (m *MsgUpdateCommitteeAddress) Size() (n int)
func (*MsgUpdateCommitteeAddress) String ¶
func (m *MsgUpdateCommitteeAddress) String() string
func (*MsgUpdateCommitteeAddress) Unmarshal ¶
func (m *MsgUpdateCommitteeAddress) Unmarshal(dAtA []byte) error
func (*MsgUpdateCommitteeAddress) ValidateBasic ¶
func (msg *MsgUpdateCommitteeAddress) ValidateBasic() error
func (*MsgUpdateCommitteeAddress) XXX_DiscardUnknown ¶
func (m *MsgUpdateCommitteeAddress) XXX_DiscardUnknown()
func (*MsgUpdateCommitteeAddress) XXX_Marshal ¶
func (m *MsgUpdateCommitteeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCommitteeAddress) XXX_Merge ¶
func (m *MsgUpdateCommitteeAddress) XXX_Merge(src proto.Message)
func (*MsgUpdateCommitteeAddress) XXX_Size ¶
func (m *MsgUpdateCommitteeAddress) XXX_Size() int
func (*MsgUpdateCommitteeAddress) XXX_Unmarshal ¶
func (m *MsgUpdateCommitteeAddress) XXX_Unmarshal(b []byte) error
type MsgUpdateCommitteeAddressResponse ¶
type MsgUpdateCommitteeAddressResponse struct { }
func (*MsgUpdateCommitteeAddressResponse) Descriptor ¶
func (*MsgUpdateCommitteeAddressResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateCommitteeAddressResponse) Marshal ¶
func (m *MsgUpdateCommitteeAddressResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCommitteeAddressResponse) MarshalTo ¶
func (m *MsgUpdateCommitteeAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateCommitteeAddressResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateCommitteeAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCommitteeAddressResponse) ProtoMessage ¶
func (*MsgUpdateCommitteeAddressResponse) ProtoMessage()
func (*MsgUpdateCommitteeAddressResponse) Reset ¶
func (m *MsgUpdateCommitteeAddressResponse) Reset()
func (*MsgUpdateCommitteeAddressResponse) Size ¶
func (m *MsgUpdateCommitteeAddressResponse) Size() (n int)
func (*MsgUpdateCommitteeAddressResponse) String ¶
func (m *MsgUpdateCommitteeAddressResponse) String() string
func (*MsgUpdateCommitteeAddressResponse) Unmarshal ¶
func (m *MsgUpdateCommitteeAddressResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateCommitteeAddressResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateCommitteeAddressResponse) XXX_DiscardUnknown()
func (*MsgUpdateCommitteeAddressResponse) XXX_Marshal ¶
func (m *MsgUpdateCommitteeAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCommitteeAddressResponse) XXX_Merge ¶
func (m *MsgUpdateCommitteeAddressResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateCommitteeAddressResponse) XXX_Size ¶
func (m *MsgUpdateCommitteeAddressResponse) XXX_Size() int
func (*MsgUpdateCommitteeAddressResponse) XXX_Unmarshal ¶
func (m *MsgUpdateCommitteeAddressResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { Get(context.Context, []byte, interface{}) Set(context.Context, []byte, interface{}) }
ParamSubspace defines the expected Subspace interface for parameters.
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllStakerInfoRequest ¶
type QueryAllStakerInfoRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllStakerInfoRequest) Descriptor ¶
func (*QueryAllStakerInfoRequest) Descriptor() ([]byte, []int)
func (*QueryAllStakerInfoRequest) GetPagination ¶
func (m *QueryAllStakerInfoRequest) GetPagination() *query.PageRequest
func (*QueryAllStakerInfoRequest) Marshal ¶
func (m *QueryAllStakerInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllStakerInfoRequest) MarshalTo ¶
func (m *QueryAllStakerInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllStakerInfoRequest) MarshalToSizedBuffer ¶
func (m *QueryAllStakerInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllStakerInfoRequest) ProtoMessage ¶
func (*QueryAllStakerInfoRequest) ProtoMessage()
func (*QueryAllStakerInfoRequest) Reset ¶
func (m *QueryAllStakerInfoRequest) Reset()
func (*QueryAllStakerInfoRequest) Size ¶
func (m *QueryAllStakerInfoRequest) Size() (n int)
func (*QueryAllStakerInfoRequest) String ¶
func (m *QueryAllStakerInfoRequest) String() string
func (*QueryAllStakerInfoRequest) Unmarshal ¶
func (m *QueryAllStakerInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryAllStakerInfoRequest) XXX_DiscardUnknown ¶
func (m *QueryAllStakerInfoRequest) XXX_DiscardUnknown()
func (*QueryAllStakerInfoRequest) XXX_Marshal ¶
func (m *QueryAllStakerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllStakerInfoRequest) XXX_Merge ¶
func (m *QueryAllStakerInfoRequest) XXX_Merge(src proto.Message)
func (*QueryAllStakerInfoRequest) XXX_Size ¶
func (m *QueryAllStakerInfoRequest) XXX_Size() int
func (*QueryAllStakerInfoRequest) XXX_Unmarshal ¶
func (m *QueryAllStakerInfoRequest) XXX_Unmarshal(b []byte) error
type QueryAllStakerInfoResponse ¶
type QueryAllStakerInfoResponse struct { AllStakerInfo []StakerInfo `protobuf:"bytes,1,rep,name=all_staker_info,json=allStakerInfo,proto3" json:"all_staker_info"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllStakerInfoResponse) Descriptor ¶
func (*QueryAllStakerInfoResponse) Descriptor() ([]byte, []int)
func (*QueryAllStakerInfoResponse) GetAllStakerInfo ¶
func (m *QueryAllStakerInfoResponse) GetAllStakerInfo() []StakerInfo
func (*QueryAllStakerInfoResponse) GetPagination ¶
func (m *QueryAllStakerInfoResponse) GetPagination() *query.PageResponse
func (*QueryAllStakerInfoResponse) Marshal ¶
func (m *QueryAllStakerInfoResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllStakerInfoResponse) MarshalTo ¶
func (m *QueryAllStakerInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllStakerInfoResponse) MarshalToSizedBuffer ¶
func (m *QueryAllStakerInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllStakerInfoResponse) ProtoMessage ¶
func (*QueryAllStakerInfoResponse) ProtoMessage()
func (*QueryAllStakerInfoResponse) Reset ¶
func (m *QueryAllStakerInfoResponse) Reset()
func (*QueryAllStakerInfoResponse) Size ¶
func (m *QueryAllStakerInfoResponse) Size() (n int)
func (*QueryAllStakerInfoResponse) String ¶
func (m *QueryAllStakerInfoResponse) String() string
func (*QueryAllStakerInfoResponse) Unmarshal ¶
func (m *QueryAllStakerInfoResponse) Unmarshal(dAtA []byte) error
func (*QueryAllStakerInfoResponse) XXX_DiscardUnknown ¶
func (m *QueryAllStakerInfoResponse) XXX_DiscardUnknown()
func (*QueryAllStakerInfoResponse) XXX_Marshal ¶
func (m *QueryAllStakerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllStakerInfoResponse) XXX_Merge ¶
func (m *QueryAllStakerInfoResponse) XXX_Merge(src proto.Message)
func (*QueryAllStakerInfoResponse) XXX_Size ¶
func (m *QueryAllStakerInfoResponse) XXX_Size() int
func (*QueryAllStakerInfoResponse) XXX_Unmarshal ¶
func (m *QueryAllStakerInfoResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // QueryAllStakerInfoRequest is the request type for the Query/AllStakerInfo RPC method. AllStakerInfo(ctx context.Context, in *QueryAllStakerInfoRequest, opts ...grpc.CallOption) (*QueryAllStakerInfoResponse, error) // QueryCommitteeAddressRequest is the request type for the Query/CommitteeAddress RPC method. CommitteeAddress(ctx context.Context, in *QueryCommitteeAddressRequest, opts ...grpc.CallOption) (*QueryCommitteeAddressResponse, error) // QueryRegisteredVKListRequest is the request type for the Query/RegisteredVKList RPC method. RegisteredVKList(ctx context.Context, in *QueryRegisteredVKListRequest, opts ...grpc.CallOption) (*QueryRegisteredVKListResponse, 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 QueryCommitteeAddressRequest ¶
type QueryCommitteeAddressRequest struct { }
func (*QueryCommitteeAddressRequest) Descriptor ¶
func (*QueryCommitteeAddressRequest) Descriptor() ([]byte, []int)
func (*QueryCommitteeAddressRequest) Marshal ¶
func (m *QueryCommitteeAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryCommitteeAddressRequest) MarshalTo ¶
func (m *QueryCommitteeAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCommitteeAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryCommitteeAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCommitteeAddressRequest) ProtoMessage ¶
func (*QueryCommitteeAddressRequest) ProtoMessage()
func (*QueryCommitteeAddressRequest) Reset ¶
func (m *QueryCommitteeAddressRequest) Reset()
func (*QueryCommitteeAddressRequest) Size ¶
func (m *QueryCommitteeAddressRequest) Size() (n int)
func (*QueryCommitteeAddressRequest) String ¶
func (m *QueryCommitteeAddressRequest) String() string
func (*QueryCommitteeAddressRequest) Unmarshal ¶
func (m *QueryCommitteeAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryCommitteeAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryCommitteeAddressRequest) XXX_DiscardUnknown()
func (*QueryCommitteeAddressRequest) XXX_Marshal ¶
func (m *QueryCommitteeAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCommitteeAddressRequest) XXX_Merge ¶
func (m *QueryCommitteeAddressRequest) XXX_Merge(src proto.Message)
func (*QueryCommitteeAddressRequest) XXX_Size ¶
func (m *QueryCommitteeAddressRequest) XXX_Size() int
func (*QueryCommitteeAddressRequest) XXX_Unmarshal ¶
func (m *QueryCommitteeAddressRequest) XXX_Unmarshal(b []byte) error
type QueryCommitteeAddressResponse ¶
type QueryCommitteeAddressResponse struct {
CommitteeAddress string `protobuf:"bytes,1,opt,name=committeeAddress,proto3" json:"committeeAddress,omitempty"`
}
func (*QueryCommitteeAddressResponse) Descriptor ¶
func (*QueryCommitteeAddressResponse) Descriptor() ([]byte, []int)
func (*QueryCommitteeAddressResponse) GetCommitteeAddress ¶
func (m *QueryCommitteeAddressResponse) GetCommitteeAddress() string
func (*QueryCommitteeAddressResponse) Marshal ¶
func (m *QueryCommitteeAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryCommitteeAddressResponse) MarshalTo ¶
func (m *QueryCommitteeAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCommitteeAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryCommitteeAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCommitteeAddressResponse) ProtoMessage ¶
func (*QueryCommitteeAddressResponse) ProtoMessage()
func (*QueryCommitteeAddressResponse) Reset ¶
func (m *QueryCommitteeAddressResponse) Reset()
func (*QueryCommitteeAddressResponse) Size ¶
func (m *QueryCommitteeAddressResponse) Size() (n int)
func (*QueryCommitteeAddressResponse) String ¶
func (m *QueryCommitteeAddressResponse) String() string
func (*QueryCommitteeAddressResponse) Unmarshal ¶
func (m *QueryCommitteeAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryCommitteeAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryCommitteeAddressResponse) XXX_DiscardUnknown()
func (*QueryCommitteeAddressResponse) XXX_Marshal ¶
func (m *QueryCommitteeAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCommitteeAddressResponse) XXX_Merge ¶
func (m *QueryCommitteeAddressResponse) XXX_Merge(src proto.Message)
func (*QueryCommitteeAddressResponse) XXX_Size ¶
func (m *QueryCommitteeAddressResponse) XXX_Size() int
func (*QueryCommitteeAddressResponse) XXX_Unmarshal ¶
func (m *QueryCommitteeAddressResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryRegisteredVKListRequest ¶
type QueryRegisteredVKListRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryRegisteredVKListRequest) Descriptor ¶
func (*QueryRegisteredVKListRequest) Descriptor() ([]byte, []int)
func (*QueryRegisteredVKListRequest) GetPagination ¶
func (m *QueryRegisteredVKListRequest) GetPagination() *query.PageRequest
func (*QueryRegisteredVKListRequest) Marshal ¶
func (m *QueryRegisteredVKListRequest) Marshal() (dAtA []byte, err error)
func (*QueryRegisteredVKListRequest) MarshalTo ¶
func (m *QueryRegisteredVKListRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRegisteredVKListRequest) MarshalToSizedBuffer ¶
func (m *QueryRegisteredVKListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRegisteredVKListRequest) ProtoMessage ¶
func (*QueryRegisteredVKListRequest) ProtoMessage()
func (*QueryRegisteredVKListRequest) Reset ¶
func (m *QueryRegisteredVKListRequest) Reset()
func (*QueryRegisteredVKListRequest) Size ¶
func (m *QueryRegisteredVKListRequest) Size() (n int)
func (*QueryRegisteredVKListRequest) String ¶
func (m *QueryRegisteredVKListRequest) String() string
func (*QueryRegisteredVKListRequest) Unmarshal ¶
func (m *QueryRegisteredVKListRequest) Unmarshal(dAtA []byte) error
func (*QueryRegisteredVKListRequest) XXX_DiscardUnknown ¶
func (m *QueryRegisteredVKListRequest) XXX_DiscardUnknown()
func (*QueryRegisteredVKListRequest) XXX_Marshal ¶
func (m *QueryRegisteredVKListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRegisteredVKListRequest) XXX_Merge ¶
func (m *QueryRegisteredVKListRequest) XXX_Merge(src proto.Message)
func (*QueryRegisteredVKListRequest) XXX_Size ¶
func (m *QueryRegisteredVKListRequest) XXX_Size() int
func (*QueryRegisteredVKListRequest) XXX_Unmarshal ¶
func (m *QueryRegisteredVKListRequest) XXX_Unmarshal(b []byte) error
type QueryRegisteredVKListResponse ¶
type QueryRegisteredVKListResponse struct { RegisteredVkList [][]byte `protobuf:"bytes,1,rep,name=registered_vk_list,json=registeredVkList,proto3" json:"registered_vk_list,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryRegisteredVKListResponse) Descriptor ¶
func (*QueryRegisteredVKListResponse) Descriptor() ([]byte, []int)
func (*QueryRegisteredVKListResponse) GetPagination ¶
func (m *QueryRegisteredVKListResponse) GetPagination() *query.PageResponse
func (*QueryRegisteredVKListResponse) GetRegisteredVkList ¶
func (m *QueryRegisteredVKListResponse) GetRegisteredVkList() [][]byte
func (*QueryRegisteredVKListResponse) Marshal ¶
func (m *QueryRegisteredVKListResponse) Marshal() (dAtA []byte, err error)
func (*QueryRegisteredVKListResponse) MarshalTo ¶
func (m *QueryRegisteredVKListResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRegisteredVKListResponse) MarshalToSizedBuffer ¶
func (m *QueryRegisteredVKListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRegisteredVKListResponse) ProtoMessage ¶
func (*QueryRegisteredVKListResponse) ProtoMessage()
func (*QueryRegisteredVKListResponse) Reset ¶
func (m *QueryRegisteredVKListResponse) Reset()
func (*QueryRegisteredVKListResponse) Size ¶
func (m *QueryRegisteredVKListResponse) Size() (n int)
func (*QueryRegisteredVKListResponse) String ¶
func (m *QueryRegisteredVKListResponse) String() string
func (*QueryRegisteredVKListResponse) Unmarshal ¶
func (m *QueryRegisteredVKListResponse) Unmarshal(dAtA []byte) error
func (*QueryRegisteredVKListResponse) XXX_DiscardUnknown ¶
func (m *QueryRegisteredVKListResponse) XXX_DiscardUnknown()
func (*QueryRegisteredVKListResponse) XXX_Marshal ¶
func (m *QueryRegisteredVKListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRegisteredVKListResponse) XXX_Merge ¶
func (m *QueryRegisteredVKListResponse) XXX_Merge(src proto.Message)
func (*QueryRegisteredVKListResponse) XXX_Size ¶
func (m *QueryRegisteredVKListResponse) XXX_Size() int
func (*QueryRegisteredVKListResponse) XXX_Unmarshal ¶
func (m *QueryRegisteredVKListResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // QueryAllStakerInfoRequest is the request type for the Query/AllStakerInfo RPC method. AllStakerInfo(context.Context, *QueryAllStakerInfoRequest) (*QueryAllStakerInfoResponse, error) // QueryCommitteeAddressRequest is the request type for the Query/CommitteeAddress RPC method. CommitteeAddress(context.Context, *QueryCommitteeAddressRequest) (*QueryCommitteeAddressResponse, error) // QueryRegisteredVKListRequest is the request type for the Query/RegisteredVKList RPC method. RegisteredVKList(context.Context, *QueryRegisteredVKListRequest) (*QueryRegisteredVKListResponse, error) }
QueryServer is the server API for Query service.
type StakerInfo ¶
type StakerInfo struct { StakerIndex uint64 `protobuf:"varint,1,opt,name=staker_index,json=stakerIndex,proto3" json:"staker_index,omitempty"` StakerAddress string `protobuf:"bytes,2,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` }
StakerInfo is the data structure for the BitVM staker information
func (*StakerInfo) Descriptor ¶
func (*StakerInfo) Descriptor() ([]byte, []int)
func (*StakerInfo) GetStakerAddress ¶
func (m *StakerInfo) GetStakerAddress() string
func (*StakerInfo) GetStakerIndex ¶
func (m *StakerInfo) GetStakerIndex() uint64
func (*StakerInfo) Marshal ¶
func (m *StakerInfo) Marshal() (dAtA []byte, err error)
func (*StakerInfo) MarshalToSizedBuffer ¶
func (m *StakerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StakerInfo) ProtoMessage ¶
func (*StakerInfo) ProtoMessage()
func (*StakerInfo) Reset ¶
func (m *StakerInfo) Reset()
func (*StakerInfo) Size ¶
func (m *StakerInfo) Size() (n int)
func (*StakerInfo) String ¶
func (m *StakerInfo) String() string
func (*StakerInfo) Unmarshal ¶
func (m *StakerInfo) Unmarshal(dAtA []byte) error
func (*StakerInfo) XXX_DiscardUnknown ¶
func (m *StakerInfo) XXX_DiscardUnknown()
func (*StakerInfo) XXX_Marshal ¶
func (m *StakerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StakerInfo) XXX_Merge ¶
func (m *StakerInfo) XXX_Merge(src proto.Message)
func (*StakerInfo) XXX_Size ¶
func (m *StakerInfo) XXX_Size() int
func (*StakerInfo) XXX_Unmarshal ¶
func (m *StakerInfo) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
type StakingKeeper interface { ConsensusAddressCodec() address.Codec Jail(context.Context, sdk.ConsAddress) error ValidatorByConsAddr(context.Context, sdk.ConsAddress) (stakingtypes.ValidatorI, error) GetAllValidators(ctx context.Context) ([]stakingtypes.Validator, error) }
StakingKeeper defines the expected interface for the Staking module.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateStaker ¶
func (*UnimplementedMsgServer) CreateStaker(ctx context.Context, req *MsgCreateStaker) (*MsgCreateStakerResponse, error)
func (*UnimplementedMsgServer) RegisterVK ¶
func (*UnimplementedMsgServer) RegisterVK(ctx context.Context, req *MsgRegisterVK) (*MsgRegisterVKResponse, error)
func (*UnimplementedMsgServer) RemoveStaker ¶
func (*UnimplementedMsgServer) RemoveStaker(ctx context.Context, req *MsgRemoveStaker) (*MsgRemoveStakerResponse, error)
func (*UnimplementedMsgServer) RemoveVK ¶
func (*UnimplementedMsgServer) RemoveVK(ctx context.Context, req *MsgRemoveVK) (*MsgRemoveVKResponse, error)
func (*UnimplementedMsgServer) UpdateCommitteeAddress ¶
func (*UnimplementedMsgServer) UpdateCommitteeAddress(ctx context.Context, req *MsgUpdateCommitteeAddress) (*MsgUpdateCommitteeAddressResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllStakerInfo ¶
func (*UnimplementedQueryServer) AllStakerInfo(ctx context.Context, req *QueryAllStakerInfoRequest) (*QueryAllStakerInfoResponse, error)
func (*UnimplementedQueryServer) CommitteeAddress ¶
func (*UnimplementedQueryServer) CommitteeAddress(ctx context.Context, req *QueryCommitteeAddressRequest) (*QueryCommitteeAddressResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) RegisteredVKList ¶
func (*UnimplementedQueryServer) RegisteredVKList(ctx context.Context, req *QueryRegisteredVKListRequest) (*QueryRegisteredVKListResponse, error)