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)
- func RelayMiningDifficultyKey(serviceId string) []byte
- func ServiceKey(serviceID string) []byte
- func ValidateAddServiceFee(addServiceFeeAny any) error
- type AccountKeeper
- type BankKeeper
- type EventRelayMiningDifficultyUpdated
- func (*EventRelayMiningDifficultyUpdated) Descriptor() ([]byte, []int)
- func (m *EventRelayMiningDifficultyUpdated) GetNewNumRelaysEma() uint64
- func (m *EventRelayMiningDifficultyUpdated) GetNewTargetHashHexEncoded() string
- func (m *EventRelayMiningDifficultyUpdated) GetPrevNumRelaysEma() uint64
- func (m *EventRelayMiningDifficultyUpdated) GetPrevTargetHashHexEncoded() string
- func (m *EventRelayMiningDifficultyUpdated) GetServiceId() string
- func (m *EventRelayMiningDifficultyUpdated) Marshal() (dAtA []byte, err error)
- func (m *EventRelayMiningDifficultyUpdated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRelayMiningDifficultyUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRelayMiningDifficultyUpdated) ProtoMessage()
- func (m *EventRelayMiningDifficultyUpdated) Reset()
- func (m *EventRelayMiningDifficultyUpdated) Size() (n int)
- func (m *EventRelayMiningDifficultyUpdated) String() string
- func (m *EventRelayMiningDifficultyUpdated) Unmarshal(dAtA []byte) error
- func (m *EventRelayMiningDifficultyUpdated) XXX_DiscardUnknown()
- func (m *EventRelayMiningDifficultyUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRelayMiningDifficultyUpdated) XXX_Merge(src proto.Message)
- func (m *EventRelayMiningDifficultyUpdated) XXX_Size() int
- func (m *EventRelayMiningDifficultyUpdated) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRelayMiningDifficultyList() []RelayMiningDifficulty
- func (m *GenesisState) GetServiceList() []types.Service
- 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 MsgAddService
- func (*MsgAddService) Descriptor() ([]byte, []int)
- func (m *MsgAddService) GetOwnerAddress() string
- func (m *MsgAddService) GetService() types1.Service
- func (m *MsgAddService) Marshal() (dAtA []byte, err error)
- func (m *MsgAddService) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddService) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddService) ProtoMessage()
- func (m *MsgAddService) Reset()
- func (m *MsgAddService) Size() (n int)
- func (m *MsgAddService) String() string
- func (m *MsgAddService) Unmarshal(dAtA []byte) error
- func (msg *MsgAddService) ValidateBasic() error
- func (m *MsgAddService) XXX_DiscardUnknown()
- func (m *MsgAddService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddService) XXX_Merge(src proto.Message)
- func (m *MsgAddService) XXX_Size() int
- func (m *MsgAddService) XXX_Unmarshal(b []byte) error
- type MsgAddServiceResponse
- func (*MsgAddServiceResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddServiceResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddServiceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddServiceResponse) ProtoMessage()
- func (m *MsgAddServiceResponse) Reset()
- func (m *MsgAddServiceResponse) Size() (n int)
- func (m *MsgAddServiceResponse) String() string
- func (m *MsgAddServiceResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddServiceResponse) XXX_DiscardUnknown()
- func (m *MsgAddServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddServiceResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddServiceResponse) XXX_Size() int
- func (m *MsgAddServiceResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateParam
- func (*MsgUpdateParam) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParam) GetAsCoin() *types.Coin
- func (m *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
- func (m *MsgUpdateParam) GetAuthority() string
- func (m *MsgUpdateParam) GetName() string
- func (m *MsgUpdateParam) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParam) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParam) ProtoMessage()
- func (m *MsgUpdateParam) Reset()
- func (m *MsgUpdateParam) Size() (n int)
- func (m *MsgUpdateParam) String() string
- func (m *MsgUpdateParam) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParam) ValidateBasic() error
- func (m *MsgUpdateParam) XXX_DiscardUnknown()
- func (m *MsgUpdateParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParam) XXX_Merge(src proto.Message)
- func (*MsgUpdateParam) XXX_OneofWrappers() []interface{}
- func (m *MsgUpdateParam) XXX_Size() int
- func (m *MsgUpdateParam) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamResponse
- func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamResponse) GetParams() *Params
- func (m *MsgUpdateParamResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamResponse) ProtoMessage()
- func (m *MsgUpdateParamResponse) Reset()
- func (m *MsgUpdateParamResponse) Size() (n int)
- func (m *MsgUpdateParamResponse) String() string
- func (m *MsgUpdateParamResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamResponse) XXX_Size() int
- func (m *MsgUpdateParamResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParam_AsCoin
- 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 Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetAddServiceFee() *types.Coin
- 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) ValidateBasic() 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 QueryAllRelayMiningDifficultyRequest
- func (*QueryAllRelayMiningDifficultyRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllRelayMiningDifficultyRequest) GetPagination() *query.PageRequest
- func (m *QueryAllRelayMiningDifficultyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRelayMiningDifficultyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRelayMiningDifficultyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRelayMiningDifficultyRequest) ProtoMessage()
- func (m *QueryAllRelayMiningDifficultyRequest) Reset()
- func (m *QueryAllRelayMiningDifficultyRequest) Size() (n int)
- func (m *QueryAllRelayMiningDifficultyRequest) String() string
- func (m *QueryAllRelayMiningDifficultyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllRelayMiningDifficultyRequest) XXX_DiscardUnknown()
- func (m *QueryAllRelayMiningDifficultyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRelayMiningDifficultyRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllRelayMiningDifficultyRequest) XXX_Size() int
- func (m *QueryAllRelayMiningDifficultyRequest) XXX_Unmarshal(b []byte) error
- type QueryAllRelayMiningDifficultyResponse
- func (*QueryAllRelayMiningDifficultyResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllRelayMiningDifficultyResponse) GetPagination() *query.PageResponse
- func (m *QueryAllRelayMiningDifficultyResponse) GetRelayMiningDifficulty() []RelayMiningDifficulty
- func (m *QueryAllRelayMiningDifficultyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRelayMiningDifficultyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRelayMiningDifficultyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRelayMiningDifficultyResponse) ProtoMessage()
- func (m *QueryAllRelayMiningDifficultyResponse) Reset()
- func (m *QueryAllRelayMiningDifficultyResponse) Size() (n int)
- func (m *QueryAllRelayMiningDifficultyResponse) String() string
- func (m *QueryAllRelayMiningDifficultyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllRelayMiningDifficultyResponse) XXX_DiscardUnknown()
- func (m *QueryAllRelayMiningDifficultyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRelayMiningDifficultyResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllRelayMiningDifficultyResponse) XXX_Size() int
- func (m *QueryAllRelayMiningDifficultyResponse) XXX_Unmarshal(b []byte) error
- type QueryAllServicesRequest
- func (*QueryAllServicesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllServicesRequest) GetPagination() *query.PageRequest
- func (m *QueryAllServicesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllServicesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllServicesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllServicesRequest) ProtoMessage()
- func (m *QueryAllServicesRequest) Reset()
- func (m *QueryAllServicesRequest) Size() (n int)
- func (m *QueryAllServicesRequest) String() string
- func (m *QueryAllServicesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllServicesRequest) XXX_DiscardUnknown()
- func (m *QueryAllServicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllServicesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllServicesRequest) XXX_Size() int
- func (m *QueryAllServicesRequest) XXX_Unmarshal(b []byte) error
- type QueryAllServicesResponse
- func (*QueryAllServicesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllServicesResponse) GetPagination() *query.PageResponse
- func (m *QueryAllServicesResponse) GetService() []types.Service
- func (m *QueryAllServicesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllServicesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllServicesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllServicesResponse) ProtoMessage()
- func (m *QueryAllServicesResponse) Reset()
- func (m *QueryAllServicesResponse) Size() (n int)
- func (m *QueryAllServicesResponse) String() string
- func (m *QueryAllServicesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllServicesResponse) XXX_DiscardUnknown()
- func (m *QueryAllServicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllServicesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllServicesResponse) XXX_Size() int
- func (m *QueryAllServicesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetRelayMiningDifficultyRequest
- func (*QueryGetRelayMiningDifficultyRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetRelayMiningDifficultyRequest) GetServiceId() string
- func (m *QueryGetRelayMiningDifficultyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetRelayMiningDifficultyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetRelayMiningDifficultyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetRelayMiningDifficultyRequest) ProtoMessage()
- func (m *QueryGetRelayMiningDifficultyRequest) Reset()
- func (m *QueryGetRelayMiningDifficultyRequest) Size() (n int)
- func (m *QueryGetRelayMiningDifficultyRequest) String() string
- func (m *QueryGetRelayMiningDifficultyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetRelayMiningDifficultyRequest) XXX_DiscardUnknown()
- func (m *QueryGetRelayMiningDifficultyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetRelayMiningDifficultyRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetRelayMiningDifficultyRequest) XXX_Size() int
- func (m *QueryGetRelayMiningDifficultyRequest) XXX_Unmarshal(b []byte) error
- type QueryGetRelayMiningDifficultyResponse
- func (*QueryGetRelayMiningDifficultyResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetRelayMiningDifficultyResponse) GetRelayMiningDifficulty() RelayMiningDifficulty
- func (m *QueryGetRelayMiningDifficultyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetRelayMiningDifficultyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetRelayMiningDifficultyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetRelayMiningDifficultyResponse) ProtoMessage()
- func (m *QueryGetRelayMiningDifficultyResponse) Reset()
- func (m *QueryGetRelayMiningDifficultyResponse) Size() (n int)
- func (m *QueryGetRelayMiningDifficultyResponse) String() string
- func (m *QueryGetRelayMiningDifficultyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetRelayMiningDifficultyResponse) XXX_DiscardUnknown()
- func (m *QueryGetRelayMiningDifficultyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetRelayMiningDifficultyResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetRelayMiningDifficultyResponse) XXX_Size() int
- func (m *QueryGetRelayMiningDifficultyResponse) XXX_Unmarshal(b []byte) error
- type QueryGetServiceRequest
- func (*QueryGetServiceRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetServiceRequest) GetId() string
- func (m *QueryGetServiceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetServiceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetServiceRequest) ProtoMessage()
- func (m *QueryGetServiceRequest) Reset()
- func (m *QueryGetServiceRequest) Size() (n int)
- func (m *QueryGetServiceRequest) String() string
- func (m *QueryGetServiceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetServiceRequest) XXX_DiscardUnknown()
- func (m *QueryGetServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetServiceRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetServiceRequest) XXX_Size() int
- func (m *QueryGetServiceRequest) XXX_Unmarshal(b []byte) error
- type QueryGetServiceResponse
- func (*QueryGetServiceResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetServiceResponse) GetService() types.Service
- func (m *QueryGetServiceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetServiceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetServiceResponse) ProtoMessage()
- func (m *QueryGetServiceResponse) Reset()
- func (m *QueryGetServiceResponse) Size() (n int)
- func (m *QueryGetServiceResponse) String() string
- func (m *QueryGetServiceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetServiceResponse) XXX_DiscardUnknown()
- func (m *QueryGetServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetServiceResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetServiceResponse) XXX_Size() int
- func (m *QueryGetServiceResponse) 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 QueryServer
- type Relay
- func (*Relay) Descriptor() ([]byte, []int)
- func (relay *Relay) GetHash() ([protocol.RelayHasherSize]byte, error)
- func (m *Relay) GetReq() *RelayRequest
- func (m *Relay) GetRes() *RelayResponse
- func (m *Relay) Marshal() (dAtA []byte, err error)
- func (m *Relay) MarshalTo(dAtA []byte) (int, error)
- func (m *Relay) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Relay) ProtoMessage()
- func (m *Relay) Reset()
- func (m *Relay) Size() (n int)
- func (m *Relay) String() string
- func (m *Relay) Unmarshal(dAtA []byte) error
- func (m *Relay) XXX_DiscardUnknown()
- func (m *Relay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Relay) XXX_Merge(src proto.Message)
- func (m *Relay) XXX_Size() int
- func (m *Relay) XXX_Unmarshal(b []byte) error
- type RelayMiningDifficulty
- func (*RelayMiningDifficulty) Descriptor() ([]byte, []int)
- func (m *RelayMiningDifficulty) GetBlockHeight() int64
- func (m *RelayMiningDifficulty) GetNumRelaysEma() uint64
- func (m *RelayMiningDifficulty) GetServiceId() string
- func (m *RelayMiningDifficulty) GetTargetHash() []byte
- func (m *RelayMiningDifficulty) Marshal() (dAtA []byte, err error)
- func (m *RelayMiningDifficulty) MarshalTo(dAtA []byte) (int, error)
- func (m *RelayMiningDifficulty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RelayMiningDifficulty) ProtoMessage()
- func (m *RelayMiningDifficulty) Reset()
- func (m *RelayMiningDifficulty) Size() (n int)
- func (m *RelayMiningDifficulty) String() string
- func (m *RelayMiningDifficulty) Unmarshal(dAtA []byte) error
- func (m *RelayMiningDifficulty) XXX_DiscardUnknown()
- func (m *RelayMiningDifficulty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelayMiningDifficulty) XXX_Merge(src proto.Message)
- func (m *RelayMiningDifficulty) XXX_Size() int
- func (m *RelayMiningDifficulty) XXX_Unmarshal(b []byte) error
- type RelayRequest
- func (*RelayRequest) Descriptor() ([]byte, []int)
- func (m *RelayRequest) GetMeta() RelayRequestMetadata
- func (m *RelayRequest) GetPayload() []byte
- func (req RelayRequest) GetSignableBytesHash() ([protocol.RelayHasherSize]byte, error)
- func (m *RelayRequest) Marshal() (dAtA []byte, err error)
- func (m *RelayRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (sourceRelayRequest *RelayRequest) NullifyForObservability() *RelayRequest
- func (*RelayRequest) ProtoMessage()
- func (m *RelayRequest) Reset()
- func (m *RelayRequest) Size() (n int)
- func (m *RelayRequest) String() string
- func (m *RelayRequest) Unmarshal(dAtA []byte) error
- func (req *RelayRequest) ValidateBasic() error
- func (m *RelayRequest) XXX_DiscardUnknown()
- func (m *RelayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelayRequest) XXX_Merge(src proto.Message)
- func (m *RelayRequest) XXX_Size() int
- func (m *RelayRequest) XXX_Unmarshal(b []byte) error
- type RelayRequestMetadata
- func (*RelayRequestMetadata) Descriptor() ([]byte, []int)
- func (m *RelayRequestMetadata) GetSessionHeader() *types.SessionHeader
- func (m *RelayRequestMetadata) GetSignature() []byte
- func (m *RelayRequestMetadata) GetSupplierOperatorAddress() string
- func (m *RelayRequestMetadata) Marshal() (dAtA []byte, err error)
- func (m *RelayRequestMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *RelayRequestMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RelayRequestMetadata) ProtoMessage()
- func (m *RelayRequestMetadata) Reset()
- func (m *RelayRequestMetadata) Size() (n int)
- func (m *RelayRequestMetadata) String() string
- func (m *RelayRequestMetadata) Unmarshal(dAtA []byte) error
- func (m *RelayRequestMetadata) XXX_DiscardUnknown()
- func (m *RelayRequestMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelayRequestMetadata) XXX_Merge(src proto.Message)
- func (m *RelayRequestMetadata) XXX_Size() int
- func (m *RelayRequestMetadata) XXX_Unmarshal(b []byte) error
- type RelayResponse
- func (*RelayResponse) Descriptor() ([]byte, []int)
- func (m *RelayResponse) GetMeta() RelayResponseMetadata
- func (m *RelayResponse) GetPayload() []byte
- func (res RelayResponse) GetSignableBytesHash() ([protocol.RelayHasherSize]byte, error)
- func (m *RelayResponse) Marshal() (dAtA []byte, err error)
- func (m *RelayResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RelayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RelayResponse) ProtoMessage()
- func (m *RelayResponse) Reset()
- func (m *RelayResponse) Size() (n int)
- func (m *RelayResponse) String() string
- func (m *RelayResponse) Unmarshal(dAtA []byte) error
- func (res *RelayResponse) ValidateBasic() error
- func (res *RelayResponse) VerifySupplierOperatorSignature(supplierOperatorPubKey cryptotypes.PubKey) error
- func (m *RelayResponse) XXX_DiscardUnknown()
- func (m *RelayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelayResponse) XXX_Merge(src proto.Message)
- func (m *RelayResponse) XXX_Size() int
- func (m *RelayResponse) XXX_Unmarshal(b []byte) error
- type RelayResponseMetadata
- func (*RelayResponseMetadata) Descriptor() ([]byte, []int)
- func (m *RelayResponseMetadata) GetSessionHeader() *types.SessionHeader
- func (m *RelayResponseMetadata) GetSupplierOperatorSignature() []byte
- func (m *RelayResponseMetadata) Marshal() (dAtA []byte, err error)
- func (m *RelayResponseMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *RelayResponseMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RelayResponseMetadata) ProtoMessage()
- func (m *RelayResponseMetadata) Reset()
- func (m *RelayResponseMetadata) Size() (n int)
- func (m *RelayResponseMetadata) String() string
- func (m *RelayResponseMetadata) Unmarshal(dAtA []byte) error
- func (m *RelayResponseMetadata) XXX_DiscardUnknown()
- func (m *RelayResponseMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelayResponseMetadata) XXX_Merge(src proto.Message)
- func (m *RelayResponseMetadata) XXX_Size() int
- func (m *RelayResponseMetadata) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddService(ctx context.Context, req *MsgAddService) (*MsgAddServiceResponse, error)
- func (*UnimplementedMsgServer) UpdateParam(ctx context.Context, req *MsgUpdateParam) (*MsgUpdateParamResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllServices(ctx context.Context, req *QueryAllServicesRequest) (*QueryAllServicesResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) RelayMiningDifficulty(ctx context.Context, req *QueryGetRelayMiningDifficultyRequest) (*QueryGetRelayMiningDifficultyResponse, error)
- func (*UnimplementedQueryServer) RelayMiningDifficultyAll(ctx context.Context, req *QueryAllRelayMiningDifficultyRequest) (*QueryAllRelayMiningDifficultyResponse, error)
- func (*UnimplementedQueryServer) Service(ctx context.Context, req *QueryGetServiceRequest) (*QueryGetServiceResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "service" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_service" )
const (
DefaultComputeUnitsPerRelay uint64 = 1
)
const (
// RelayMiningDifficultyKeyPrefix is the prefix to retrieve all RelayMiningDifficulty
RelayMiningDifficultyKeyPrefix = "RelayMiningDifficulty/value/"
)
const (
// ServiceKeyPrefix is the prefix to retrieve all Service
ServiceKeyPrefix = "Service/id/"
)
Variables ¶
var ( ErrServiceInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrServiceDuplicateIndex = sdkerrors.Register(ModuleName, 1101, "duplicate index when adding a new service") ErrServiceInvalidAddress = sdkerrors.Register(ModuleName, 1102, "invalid address when adding a new service") ErrServiceMissingID = sdkerrors.Register(ModuleName, 1103, "missing service ID") ErrServiceMissingName = sdkerrors.Register(ModuleName, 1104, "missing service name") ErrServiceAlreadyExists = sdkerrors.Register(ModuleName, 1105, "service already exists") ErrServiceNotEnoughFunds = sdkerrors.Register(ModuleName, 1108, "not enough funds to add service") ErrServiceFailedToDeductFee = sdkerrors.Register(ModuleName, 1109, "failed to deduct fee") ErrServiceInvalidRelayResponse = sdkerrors.Register(ModuleName, 1110, "invalid relay response") ErrServiceInvalidRelayRequest = sdkerrors.Register(ModuleName, 1111, "invalid relay request") ErrServiceInvalidOwnerAddress = sdkerrors.Register(ModuleName, 1113, "invalid owner address") ErrServiceParamInvalid = sdkerrors.Register(ModuleName, 1115, "the provided param is invalid") ErrServiceMissingRelayMiningDifficulty = sdkerrors.Register(ModuleName, 1116, "missing relay mining difficulty") )
x/service module sentinel errors
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
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 ( KeyAddServiceFee = []byte("AddServiceFee") ParamAddServiceFee = "add_service_fee" // TODO_TECHDEBT: Determine a sensible default/min value for the add service fee. // MinAddServiceFee is the default and minimum fee for adding a new service. MinAddServiceFee = cosmostypes.NewCoin(volatile.DenomuPOKT, math.NewInt(1000000000)) )
DefaultAddServiceFee is the default value for the add service fee parameter in the genesis state of the service module. TODO_MAINNET: Revisit default param values for service fee
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 ( ErrInvalidLengthRelay = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRelay = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRelay = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthRelayMiningDifficulty = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRelayMiningDifficulty = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRelayMiningDifficulty = 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 ParamsKey = []byte("p_service")
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶ added in v0.0.3
func RegisterQueryHandler ¶ added in v0.0.3
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.0.3
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 ¶ added in v0.0.3
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 ¶ added in v0.0.3
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 ¶ added in v0.0.3
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func RelayMiningDifficultyKey ¶ added in v0.0.10
RelayMiningDifficultyKey returns the store key to retrieve a RelayMiningDifficulty from the index fields
func ServiceKey ¶
ServiceKey returns the store key to retrieve a Service from the index fields
func ValidateAddServiceFee ¶ added in v0.0.8
validateAddServiceFee validates the AddServiceFee param
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 ¶
type BankKeeper interface { SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins // We use the bankkeeper SendXXX instead of DelegateXX methods // because their purpose is to "escrow" funds on behalf of an account rather // than "delegate" funds from one account to another which is more closely // linked to staking. SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines the expected interface for the Bank module.
type EventRelayMiningDifficultyUpdated ¶ added in v0.0.10
type EventRelayMiningDifficultyUpdated struct { ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` PrevTargetHashHexEncoded string `` /* 139-byte string literal not displayed */ NewTargetHashHexEncoded string `` /* 136-byte string literal not displayed */ PrevNumRelaysEma uint64 `protobuf:"varint,4,opt,name=prev_num_relays_ema,json=prevNumRelaysEma,proto3" json:"prev_num_relays_ema,omitempty"` NewNumRelaysEma uint64 `protobuf:"varint,5,opt,name=new_num_relays_ema,json=newNumRelaysEma,proto3" json:"new_num_relays_ema,omitempty"` }
EventRelayMiningDifficultyUpdated is an event emitted whenever the relay mining difficulty is updated for a given service.
func (*EventRelayMiningDifficultyUpdated) Descriptor ¶ added in v0.0.10
func (*EventRelayMiningDifficultyUpdated) Descriptor() ([]byte, []int)
func (*EventRelayMiningDifficultyUpdated) GetNewNumRelaysEma ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) GetNewNumRelaysEma() uint64
func (*EventRelayMiningDifficultyUpdated) GetNewTargetHashHexEncoded ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) GetNewTargetHashHexEncoded() string
func (*EventRelayMiningDifficultyUpdated) GetPrevNumRelaysEma ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) GetPrevNumRelaysEma() uint64
func (*EventRelayMiningDifficultyUpdated) GetPrevTargetHashHexEncoded ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) GetPrevTargetHashHexEncoded() string
func (*EventRelayMiningDifficultyUpdated) GetServiceId ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) GetServiceId() string
func (*EventRelayMiningDifficultyUpdated) Marshal ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) Marshal() (dAtA []byte, err error)
func (*EventRelayMiningDifficultyUpdated) MarshalTo ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) MarshalTo(dAtA []byte) (int, error)
func (*EventRelayMiningDifficultyUpdated) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRelayMiningDifficultyUpdated) ProtoMessage ¶ added in v0.0.10
func (*EventRelayMiningDifficultyUpdated) ProtoMessage()
func (*EventRelayMiningDifficultyUpdated) Reset ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) Reset()
func (*EventRelayMiningDifficultyUpdated) Size ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) Size() (n int)
func (*EventRelayMiningDifficultyUpdated) String ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) String() string
func (*EventRelayMiningDifficultyUpdated) Unmarshal ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) Unmarshal(dAtA []byte) error
func (*EventRelayMiningDifficultyUpdated) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) XXX_DiscardUnknown()
func (*EventRelayMiningDifficultyUpdated) XXX_Marshal ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRelayMiningDifficultyUpdated) XXX_Merge ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) XXX_Merge(src proto.Message)
func (*EventRelayMiningDifficultyUpdated) XXX_Size ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) XXX_Size() int
func (*EventRelayMiningDifficultyUpdated) XXX_Unmarshal ¶ added in v0.0.10
func (m *EventRelayMiningDifficultyUpdated) XXX_Unmarshal(b []byte) error
type GenesisState ¶ added in v0.0.3
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` ServiceList []types.Service `protobuf:"bytes,2,rep,name=service_list,json=serviceList,proto3" json:"service_list"` RelayMiningDifficultyList []RelayMiningDifficulty `protobuf:"bytes,3,rep,name=relayMiningDifficultyList,proto3" json:"relayMiningDifficultyList"` }
GenesisState defines the service module's genesis state.
func DefaultGenesis ¶ added in v0.0.3
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶ added in v0.0.3
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶ added in v0.0.3
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRelayMiningDifficultyList ¶ added in v0.0.10
func (m *GenesisState) GetRelayMiningDifficultyList() []RelayMiningDifficulty
func (*GenesisState) GetServiceList ¶ added in v0.0.3
func (m *GenesisState) GetServiceList() []types.Service
func (*GenesisState) Marshal ¶ added in v0.0.3
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.0.3
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.0.3
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.0.3
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.0.3
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.0.3
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.0.3
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶ added in v0.0.3
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.0.3
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.0.3
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.0.3
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.0.3
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgAddService ¶ added in v0.0.3
type MsgAddService struct { OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` Service types1.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service"` }
MsgAddService defines a message for adding a new message to the network. Services can be added by any actor in the network making them truly permissionless. TODO_BETA: Add Champions / Sources once its fully defined.
func NewMsgAddService ¶ added in v0.0.3
func NewMsgAddService(serviceOwnerAddr, serviceId, serviceName string, computeUnitsPerRelay uint64) *MsgAddService
func (*MsgAddService) Descriptor ¶ added in v0.0.3
func (*MsgAddService) Descriptor() ([]byte, []int)
func (*MsgAddService) GetOwnerAddress ¶ added in v0.0.5
func (m *MsgAddService) GetOwnerAddress() string
func (*MsgAddService) GetService ¶ added in v0.0.3
func (m *MsgAddService) GetService() types1.Service
func (*MsgAddService) Marshal ¶ added in v0.0.3
func (m *MsgAddService) Marshal() (dAtA []byte, err error)
func (*MsgAddService) MarshalTo ¶ added in v0.0.3
func (m *MsgAddService) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddService) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgAddService) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddService) ProtoMessage ¶ added in v0.0.3
func (*MsgAddService) ProtoMessage()
func (*MsgAddService) Reset ¶ added in v0.0.3
func (m *MsgAddService) Reset()
func (*MsgAddService) Size ¶ added in v0.0.3
func (m *MsgAddService) Size() (n int)
func (*MsgAddService) String ¶ added in v0.0.3
func (m *MsgAddService) String() string
func (*MsgAddService) Unmarshal ¶ added in v0.0.3
func (m *MsgAddService) Unmarshal(dAtA []byte) error
func (*MsgAddService) ValidateBasic ¶ added in v0.0.3
func (msg *MsgAddService) ValidateBasic() error
ValidateBasic performs basic validation of the message and its fields
func (*MsgAddService) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgAddService) XXX_DiscardUnknown()
func (*MsgAddService) XXX_Marshal ¶ added in v0.0.3
func (m *MsgAddService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddService) XXX_Merge ¶ added in v0.0.3
func (m *MsgAddService) XXX_Merge(src proto.Message)
func (*MsgAddService) XXX_Size ¶ added in v0.0.3
func (m *MsgAddService) XXX_Size() int
func (*MsgAddService) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgAddService) XXX_Unmarshal(b []byte) error
type MsgAddServiceResponse ¶ added in v0.0.3
type MsgAddServiceResponse struct { }
func (*MsgAddServiceResponse) Descriptor ¶ added in v0.0.3
func (*MsgAddServiceResponse) Descriptor() ([]byte, []int)
func (*MsgAddServiceResponse) Marshal ¶ added in v0.0.3
func (m *MsgAddServiceResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddServiceResponse) MarshalTo ¶ added in v0.0.3
func (m *MsgAddServiceResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddServiceResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgAddServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddServiceResponse) ProtoMessage ¶ added in v0.0.3
func (*MsgAddServiceResponse) ProtoMessage()
func (*MsgAddServiceResponse) Reset ¶ added in v0.0.3
func (m *MsgAddServiceResponse) Reset()
func (*MsgAddServiceResponse) Size ¶ added in v0.0.3
func (m *MsgAddServiceResponse) Size() (n int)
func (*MsgAddServiceResponse) String ¶ added in v0.0.3
func (m *MsgAddServiceResponse) String() string
func (*MsgAddServiceResponse) Unmarshal ¶ added in v0.0.3
func (m *MsgAddServiceResponse) Unmarshal(dAtA []byte) error
func (*MsgAddServiceResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgAddServiceResponse) XXX_DiscardUnknown()
func (*MsgAddServiceResponse) XXX_Marshal ¶ added in v0.0.3
func (m *MsgAddServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddServiceResponse) XXX_Merge ¶ added in v0.0.3
func (m *MsgAddServiceResponse) XXX_Merge(src proto.Message)
func (*MsgAddServiceResponse) XXX_Size ¶ added in v0.0.3
func (m *MsgAddServiceResponse) XXX_Size() int
func (*MsgAddServiceResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgAddServiceResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.0.3
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) UpdateParam(ctx context.Context, in *MsgUpdateParam, opts ...grpc.CallOption) (*MsgUpdateParamResponse, error) AddService(ctx context.Context, in *MsgAddService, opts ...grpc.CallOption) (*MsgAddServiceResponse, 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 ¶ added in v0.0.3
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶ added in v0.0.3
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) UpdateParam(context.Context, *MsgUpdateParam) (*MsgUpdateParamResponse, error) AddService(context.Context, *MsgAddService) (*MsgAddServiceResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParam ¶ added in v0.0.8
type MsgUpdateParam 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"` // The (name, as_type) tuple must match the corresponding name and type as // specified in the `Params` message in `proof/params.proto.` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to AsType: // *MsgUpdateParam_AsCoin AsType isMsgUpdateParam_AsType `protobuf_oneof:"as_type"` }
MsgUpdateParam is the Msg/UpdateParam request type to update a single param.
func NewMsgUpdateParam ¶ added in v0.0.8
func NewMsgUpdateParam(authority string, name string, asType any) (*MsgUpdateParam, error)
NewMsgUpdateParam creates a new MsgUpdateParam instance for a single governance parameter update.
func (*MsgUpdateParam) Descriptor ¶ added in v0.0.8
func (*MsgUpdateParam) Descriptor() ([]byte, []int)
func (*MsgUpdateParam) GetAsCoin ¶ added in v0.0.8
func (m *MsgUpdateParam) GetAsCoin() *types.Coin
func (*MsgUpdateParam) GetAsType ¶ added in v0.0.8
func (m *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
func (*MsgUpdateParam) GetAuthority ¶ added in v0.0.8
func (m *MsgUpdateParam) GetAuthority() string
func (*MsgUpdateParam) GetName ¶ added in v0.0.8
func (m *MsgUpdateParam) GetName() string
func (*MsgUpdateParam) Marshal ¶ added in v0.0.8
func (m *MsgUpdateParam) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParam) MarshalTo ¶ added in v0.0.8
func (m *MsgUpdateParam) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgUpdateParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam) ProtoMessage ¶ added in v0.0.8
func (*MsgUpdateParam) ProtoMessage()
func (*MsgUpdateParam) Reset ¶ added in v0.0.8
func (m *MsgUpdateParam) Reset()
func (*MsgUpdateParam) Size ¶ added in v0.0.8
func (m *MsgUpdateParam) Size() (n int)
func (*MsgUpdateParam) String ¶ added in v0.0.8
func (m *MsgUpdateParam) String() string
func (*MsgUpdateParam) Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateParam) Unmarshal(dAtA []byte) error
func (*MsgUpdateParam) ValidateBasic ¶ added in v0.0.8
func (msg *MsgUpdateParam) ValidateBasic() error
ValidateBasic performs a basic validation of the MsgUpdateParam fields. It ensures the parameter name is supported and the parameter type matches the expected type for a given parameter name.
func (*MsgUpdateParam) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgUpdateParam) XXX_DiscardUnknown()
func (*MsgUpdateParam) XXX_Marshal ¶ added in v0.0.8
func (m *MsgUpdateParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParam) XXX_Merge ¶ added in v0.0.8
func (m *MsgUpdateParam) XXX_Merge(src proto.Message)
func (*MsgUpdateParam) XXX_OneofWrappers ¶ added in v0.0.8
func (*MsgUpdateParam) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*MsgUpdateParam) XXX_Size ¶ added in v0.0.8
func (m *MsgUpdateParam) XXX_Size() int
func (*MsgUpdateParam) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateParam) XXX_Unmarshal(b []byte) error
type MsgUpdateParamResponse ¶ added in v0.0.8
type MsgUpdateParamResponse struct {
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
MsgUpdateParamResponse defines the response structure for executing a MsgUpdateParam message after a single param update.
func (*MsgUpdateParamResponse) Descriptor ¶ added in v0.0.8
func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamResponse) GetParams ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) GetParams() *Params
func (*MsgUpdateParamResponse) Marshal ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgUpdateParamResponse) ProtoMessage()
func (*MsgUpdateParamResponse) Reset ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) Reset()
func (*MsgUpdateParamResponse) Size ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) Size() (n int)
func (*MsgUpdateParamResponse) String ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) String() string
func (*MsgUpdateParamResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) XXX_Size() int
func (*MsgUpdateParamResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateParamResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParam_AsCoin ¶ added in v0.0.8
type MsgUpdateParam_AsCoin struct {
AsCoin *types.Coin `protobuf:"bytes,9,opt,name=as_coin,json=asCoin,proto3,oneof" json:"as_coin"`
}
func (*MsgUpdateParam_AsCoin) MarshalTo ¶ added in v0.0.8
func (m *MsgUpdateParam_AsCoin) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsCoin) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgUpdateParam_AsCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsCoin) Size ¶ added in v0.0.8
func (m *MsgUpdateParam_AsCoin) Size() (n int)
type MsgUpdateParams ¶ added in v0.0.3
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"` // params defines the x/service parameters to update. // 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 ¶ added in v0.0.3
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v0.0.3
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v0.0.3
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶ added in v0.0.3
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.0.3
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.0.3
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.0.3
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v0.0.3
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.0.3
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v0.0.3
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.0.3
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.0.3
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.0.3
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.0.3
type Params struct { // The amount of uPOKT required to add a new service. // This will be deducted from the signer's account balance, // and transferred to the pocket network foundation. AddServiceFee *types.Coin `protobuf:"bytes,1,opt,name=add_service_fee,json=addServiceFee,proto3" json:"add_service_fee" yaml:"add_service_fee"` }
Params defines the parameters for the module.
func DefaultParams ¶ added in v0.0.3
func DefaultParams() Params
DefaultParams returns a default set of parameters
func NewParams ¶ added in v0.0.3
func NewParams(addServiceFee *cosmostypes.Coin) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶ added in v0.0.3
func (*Params) GetAddServiceFee ¶ added in v0.0.3
func (*Params) MarshalToSizedBuffer ¶ added in v0.0.3
func (*Params) ParamSetPairs ¶ added in v0.0.3
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶ added in v0.0.3
func (*Params) ProtoMessage()
func (Params) ValidateBasic ¶ added in v0.0.8
ValidateBasic validates the set of params
func (*Params) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.0.3
func (*Params) XXX_Unmarshal ¶ added in v0.0.3
type QueryAllRelayMiningDifficultyRequest ¶ added in v0.0.10
type QueryAllRelayMiningDifficultyRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllRelayMiningDifficultyRequest) Descriptor ¶ added in v0.0.10
func (*QueryAllRelayMiningDifficultyRequest) Descriptor() ([]byte, []int)
func (*QueryAllRelayMiningDifficultyRequest) GetPagination ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) GetPagination() *query.PageRequest
func (*QueryAllRelayMiningDifficultyRequest) Marshal ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllRelayMiningDifficultyRequest) MarshalTo ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRelayMiningDifficultyRequest) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRelayMiningDifficultyRequest) ProtoMessage ¶ added in v0.0.10
func (*QueryAllRelayMiningDifficultyRequest) ProtoMessage()
func (*QueryAllRelayMiningDifficultyRequest) Reset ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) Reset()
func (*QueryAllRelayMiningDifficultyRequest) Size ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) Size() (n int)
func (*QueryAllRelayMiningDifficultyRequest) String ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) String() string
func (*QueryAllRelayMiningDifficultyRequest) Unmarshal ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) Unmarshal(dAtA []byte) error
func (*QueryAllRelayMiningDifficultyRequest) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) XXX_DiscardUnknown()
func (*QueryAllRelayMiningDifficultyRequest) XXX_Marshal ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRelayMiningDifficultyRequest) XXX_Merge ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) XXX_Merge(src proto.Message)
func (*QueryAllRelayMiningDifficultyRequest) XXX_Size ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) XXX_Size() int
func (*QueryAllRelayMiningDifficultyRequest) XXX_Unmarshal ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyRequest) XXX_Unmarshal(b []byte) error
type QueryAllRelayMiningDifficultyResponse ¶ added in v0.0.10
type QueryAllRelayMiningDifficultyResponse struct { RelayMiningDifficulty []RelayMiningDifficulty `protobuf:"bytes,1,rep,name=relayMiningDifficulty,proto3" json:"relayMiningDifficulty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllRelayMiningDifficultyResponse) Descriptor ¶ added in v0.0.10
func (*QueryAllRelayMiningDifficultyResponse) Descriptor() ([]byte, []int)
func (*QueryAllRelayMiningDifficultyResponse) GetPagination ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) GetPagination() *query.PageResponse
func (*QueryAllRelayMiningDifficultyResponse) GetRelayMiningDifficulty ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) GetRelayMiningDifficulty() []RelayMiningDifficulty
func (*QueryAllRelayMiningDifficultyResponse) Marshal ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllRelayMiningDifficultyResponse) MarshalTo ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRelayMiningDifficultyResponse) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRelayMiningDifficultyResponse) ProtoMessage ¶ added in v0.0.10
func (*QueryAllRelayMiningDifficultyResponse) ProtoMessage()
func (*QueryAllRelayMiningDifficultyResponse) Reset ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) Reset()
func (*QueryAllRelayMiningDifficultyResponse) Size ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) Size() (n int)
func (*QueryAllRelayMiningDifficultyResponse) String ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) String() string
func (*QueryAllRelayMiningDifficultyResponse) Unmarshal ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) Unmarshal(dAtA []byte) error
func (*QueryAllRelayMiningDifficultyResponse) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) XXX_DiscardUnknown()
func (*QueryAllRelayMiningDifficultyResponse) XXX_Marshal ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRelayMiningDifficultyResponse) XXX_Merge ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) XXX_Merge(src proto.Message)
func (*QueryAllRelayMiningDifficultyResponse) XXX_Size ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) XXX_Size() int
func (*QueryAllRelayMiningDifficultyResponse) XXX_Unmarshal ¶ added in v0.0.10
func (m *QueryAllRelayMiningDifficultyResponse) XXX_Unmarshal(b []byte) error
type QueryAllServicesRequest ¶ added in v0.0.3
type QueryAllServicesRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllServicesRequest) Descriptor ¶ added in v0.0.3
func (*QueryAllServicesRequest) Descriptor() ([]byte, []int)
func (*QueryAllServicesRequest) GetPagination ¶ added in v0.0.3
func (m *QueryAllServicesRequest) GetPagination() *query.PageRequest
func (*QueryAllServicesRequest) Marshal ¶ added in v0.0.3
func (m *QueryAllServicesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllServicesRequest) MarshalTo ¶ added in v0.0.3
func (m *QueryAllServicesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllServicesRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryAllServicesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllServicesRequest) ProtoMessage ¶ added in v0.0.3
func (*QueryAllServicesRequest) ProtoMessage()
func (*QueryAllServicesRequest) Reset ¶ added in v0.0.3
func (m *QueryAllServicesRequest) Reset()
func (*QueryAllServicesRequest) Size ¶ added in v0.0.3
func (m *QueryAllServicesRequest) Size() (n int)
func (*QueryAllServicesRequest) String ¶ added in v0.0.3
func (m *QueryAllServicesRequest) String() string
func (*QueryAllServicesRequest) Unmarshal ¶ added in v0.0.3
func (m *QueryAllServicesRequest) Unmarshal(dAtA []byte) error
func (*QueryAllServicesRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryAllServicesRequest) XXX_DiscardUnknown()
func (*QueryAllServicesRequest) XXX_Marshal ¶ added in v0.0.3
func (m *QueryAllServicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllServicesRequest) XXX_Merge ¶ added in v0.0.3
func (m *QueryAllServicesRequest) XXX_Merge(src proto.Message)
func (*QueryAllServicesRequest) XXX_Size ¶ added in v0.0.3
func (m *QueryAllServicesRequest) XXX_Size() int
func (*QueryAllServicesRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryAllServicesRequest) XXX_Unmarshal(b []byte) error
type QueryAllServicesResponse ¶ added in v0.0.3
type QueryAllServicesResponse struct { Service []types.Service `protobuf:"bytes,1,rep,name=service,proto3" json:"service"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllServicesResponse) Descriptor ¶ added in v0.0.3
func (*QueryAllServicesResponse) Descriptor() ([]byte, []int)
func (*QueryAllServicesResponse) GetPagination ¶ added in v0.0.3
func (m *QueryAllServicesResponse) GetPagination() *query.PageResponse
func (*QueryAllServicesResponse) GetService ¶ added in v0.0.3
func (m *QueryAllServicesResponse) GetService() []types.Service
func (*QueryAllServicesResponse) Marshal ¶ added in v0.0.3
func (m *QueryAllServicesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllServicesResponse) MarshalTo ¶ added in v0.0.3
func (m *QueryAllServicesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllServicesResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryAllServicesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllServicesResponse) ProtoMessage ¶ added in v0.0.3
func (*QueryAllServicesResponse) ProtoMessage()
func (*QueryAllServicesResponse) Reset ¶ added in v0.0.3
func (m *QueryAllServicesResponse) Reset()
func (*QueryAllServicesResponse) Size ¶ added in v0.0.3
func (m *QueryAllServicesResponse) Size() (n int)
func (*QueryAllServicesResponse) String ¶ added in v0.0.3
func (m *QueryAllServicesResponse) String() string
func (*QueryAllServicesResponse) Unmarshal ¶ added in v0.0.3
func (m *QueryAllServicesResponse) Unmarshal(dAtA []byte) error
func (*QueryAllServicesResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryAllServicesResponse) XXX_DiscardUnknown()
func (*QueryAllServicesResponse) XXX_Marshal ¶ added in v0.0.3
func (m *QueryAllServicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllServicesResponse) XXX_Merge ¶ added in v0.0.3
func (m *QueryAllServicesResponse) XXX_Merge(src proto.Message)
func (*QueryAllServicesResponse) XXX_Size ¶ added in v0.0.3
func (m *QueryAllServicesResponse) XXX_Size() int
func (*QueryAllServicesResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryAllServicesResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶ added in v0.0.3
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of Service items. Service(ctx context.Context, in *QueryGetServiceRequest, opts ...grpc.CallOption) (*QueryGetServiceResponse, error) AllServices(ctx context.Context, in *QueryAllServicesRequest, opts ...grpc.CallOption) (*QueryAllServicesResponse, error) // Queries a list of RelayMiningDifficulty items. RelayMiningDifficulty(ctx context.Context, in *QueryGetRelayMiningDifficultyRequest, opts ...grpc.CallOption) (*QueryGetRelayMiningDifficultyResponse, error) RelayMiningDifficultyAll(ctx context.Context, in *QueryAllRelayMiningDifficultyRequest, opts ...grpc.CallOption) (*QueryAllRelayMiningDifficultyResponse, 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 ¶ added in v0.0.3
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryGetRelayMiningDifficultyRequest ¶ added in v0.0.10
type QueryGetRelayMiningDifficultyRequest struct {
ServiceId string `protobuf:"bytes,1,opt,name=serviceId,proto3" json:"serviceId,omitempty"`
}
func (*QueryGetRelayMiningDifficultyRequest) Descriptor ¶ added in v0.0.10
func (*QueryGetRelayMiningDifficultyRequest) Descriptor() ([]byte, []int)
func (*QueryGetRelayMiningDifficultyRequest) GetServiceId ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) GetServiceId() string
func (*QueryGetRelayMiningDifficultyRequest) Marshal ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetRelayMiningDifficultyRequest) MarshalTo ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetRelayMiningDifficultyRequest) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetRelayMiningDifficultyRequest) ProtoMessage ¶ added in v0.0.10
func (*QueryGetRelayMiningDifficultyRequest) ProtoMessage()
func (*QueryGetRelayMiningDifficultyRequest) Reset ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) Reset()
func (*QueryGetRelayMiningDifficultyRequest) Size ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) Size() (n int)
func (*QueryGetRelayMiningDifficultyRequest) String ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) String() string
func (*QueryGetRelayMiningDifficultyRequest) Unmarshal ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) Unmarshal(dAtA []byte) error
func (*QueryGetRelayMiningDifficultyRequest) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) XXX_DiscardUnknown()
func (*QueryGetRelayMiningDifficultyRequest) XXX_Marshal ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetRelayMiningDifficultyRequest) XXX_Merge ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) XXX_Merge(src proto.Message)
func (*QueryGetRelayMiningDifficultyRequest) XXX_Size ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) XXX_Size() int
func (*QueryGetRelayMiningDifficultyRequest) XXX_Unmarshal ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyRequest) XXX_Unmarshal(b []byte) error
type QueryGetRelayMiningDifficultyResponse ¶ added in v0.0.10
type QueryGetRelayMiningDifficultyResponse struct {
RelayMiningDifficulty RelayMiningDifficulty `protobuf:"bytes,1,opt,name=relayMiningDifficulty,proto3" json:"relayMiningDifficulty"`
}
func (*QueryGetRelayMiningDifficultyResponse) Descriptor ¶ added in v0.0.10
func (*QueryGetRelayMiningDifficultyResponse) Descriptor() ([]byte, []int)
func (*QueryGetRelayMiningDifficultyResponse) GetRelayMiningDifficulty ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) GetRelayMiningDifficulty() RelayMiningDifficulty
func (*QueryGetRelayMiningDifficultyResponse) Marshal ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetRelayMiningDifficultyResponse) MarshalTo ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetRelayMiningDifficultyResponse) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetRelayMiningDifficultyResponse) ProtoMessage ¶ added in v0.0.10
func (*QueryGetRelayMiningDifficultyResponse) ProtoMessage()
func (*QueryGetRelayMiningDifficultyResponse) Reset ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) Reset()
func (*QueryGetRelayMiningDifficultyResponse) Size ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) Size() (n int)
func (*QueryGetRelayMiningDifficultyResponse) String ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) String() string
func (*QueryGetRelayMiningDifficultyResponse) Unmarshal ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) Unmarshal(dAtA []byte) error
func (*QueryGetRelayMiningDifficultyResponse) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) XXX_DiscardUnknown()
func (*QueryGetRelayMiningDifficultyResponse) XXX_Marshal ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetRelayMiningDifficultyResponse) XXX_Merge ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) XXX_Merge(src proto.Message)
func (*QueryGetRelayMiningDifficultyResponse) XXX_Size ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) XXX_Size() int
func (*QueryGetRelayMiningDifficultyResponse) XXX_Unmarshal ¶ added in v0.0.10
func (m *QueryGetRelayMiningDifficultyResponse) XXX_Unmarshal(b []byte) error
type QueryGetServiceRequest ¶ added in v0.0.3
type QueryGetServiceRequest struct { // TODO_IMPROVE: We could support getting services by name. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` }
func (*QueryGetServiceRequest) Descriptor ¶ added in v0.0.3
func (*QueryGetServiceRequest) Descriptor() ([]byte, []int)
func (*QueryGetServiceRequest) GetId ¶ added in v0.0.3
func (m *QueryGetServiceRequest) GetId() string
func (*QueryGetServiceRequest) Marshal ¶ added in v0.0.3
func (m *QueryGetServiceRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetServiceRequest) MarshalTo ¶ added in v0.0.3
func (m *QueryGetServiceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetServiceRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryGetServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetServiceRequest) ProtoMessage ¶ added in v0.0.3
func (*QueryGetServiceRequest) ProtoMessage()
func (*QueryGetServiceRequest) Reset ¶ added in v0.0.3
func (m *QueryGetServiceRequest) Reset()
func (*QueryGetServiceRequest) Size ¶ added in v0.0.3
func (m *QueryGetServiceRequest) Size() (n int)
func (*QueryGetServiceRequest) String ¶ added in v0.0.3
func (m *QueryGetServiceRequest) String() string
func (*QueryGetServiceRequest) Unmarshal ¶ added in v0.0.3
func (m *QueryGetServiceRequest) Unmarshal(dAtA []byte) error
func (*QueryGetServiceRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryGetServiceRequest) XXX_DiscardUnknown()
func (*QueryGetServiceRequest) XXX_Marshal ¶ added in v0.0.3
func (m *QueryGetServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetServiceRequest) XXX_Merge ¶ added in v0.0.3
func (m *QueryGetServiceRequest) XXX_Merge(src proto.Message)
func (*QueryGetServiceRequest) XXX_Size ¶ added in v0.0.3
func (m *QueryGetServiceRequest) XXX_Size() int
func (*QueryGetServiceRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryGetServiceRequest) XXX_Unmarshal(b []byte) error
type QueryGetServiceResponse ¶ added in v0.0.3
type QueryGetServiceResponse struct {
Service types.Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service"`
}
func (*QueryGetServiceResponse) Descriptor ¶ added in v0.0.3
func (*QueryGetServiceResponse) Descriptor() ([]byte, []int)
func (*QueryGetServiceResponse) GetService ¶ added in v0.0.3
func (m *QueryGetServiceResponse) GetService() types.Service
func (*QueryGetServiceResponse) Marshal ¶ added in v0.0.3
func (m *QueryGetServiceResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetServiceResponse) MarshalTo ¶ added in v0.0.3
func (m *QueryGetServiceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetServiceResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryGetServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetServiceResponse) ProtoMessage ¶ added in v0.0.3
func (*QueryGetServiceResponse) ProtoMessage()
func (*QueryGetServiceResponse) Reset ¶ added in v0.0.3
func (m *QueryGetServiceResponse) Reset()
func (*QueryGetServiceResponse) Size ¶ added in v0.0.3
func (m *QueryGetServiceResponse) Size() (n int)
func (*QueryGetServiceResponse) String ¶ added in v0.0.3
func (m *QueryGetServiceResponse) String() string
func (*QueryGetServiceResponse) Unmarshal ¶ added in v0.0.3
func (m *QueryGetServiceResponse) Unmarshal(dAtA []byte) error
func (*QueryGetServiceResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryGetServiceResponse) XXX_DiscardUnknown()
func (*QueryGetServiceResponse) XXX_Marshal ¶ added in v0.0.3
func (m *QueryGetServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetServiceResponse) XXX_Merge ¶ added in v0.0.3
func (m *QueryGetServiceResponse) XXX_Merge(src proto.Message)
func (*QueryGetServiceResponse) XXX_Size ¶ added in v0.0.3
func (m *QueryGetServiceResponse) XXX_Size() int
func (*QueryGetServiceResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryGetServiceResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v0.0.3
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v0.0.3
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.0.3
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.0.3
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.0.3
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.0.3
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.0.3
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.0.3
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.0.3
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.0.3
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 ¶ added in v0.0.3
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.0.3
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v0.0.3
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.0.3
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.0.3
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.0.3
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.0.3
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.0.3
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.0.3
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.0.3
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of Service items. Service(context.Context, *QueryGetServiceRequest) (*QueryGetServiceResponse, error) AllServices(context.Context, *QueryAllServicesRequest) (*QueryAllServicesResponse, error) // Queries a list of RelayMiningDifficulty items. RelayMiningDifficulty(context.Context, *QueryGetRelayMiningDifficultyRequest) (*QueryGetRelayMiningDifficultyResponse, error) RelayMiningDifficultyAll(context.Context, *QueryAllRelayMiningDifficultyRequest) (*QueryAllRelayMiningDifficultyResponse, error) }
QueryServer is the server API for Query service.
type Relay ¶ added in v0.0.3
type Relay struct { Req *RelayRequest `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"` Res *RelayResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` }
Relay contains both the RelayRequest (signed by the Application) and the RelayResponse (signed by the Supplier). The serialized tuple is inserted into the SMST leaves as values in the Claim/Proof lifecycle.
func (*Relay) Descriptor ¶ added in v0.0.3
func (*Relay) GetHash ¶ added in v0.0.3
func (relay *Relay) GetHash() ([protocol.RelayHasherSize]byte, error)
GetHash returns the hash of the relay, which contains both the signed relay request and the relay response. It is used as the key for insertion into the SMT.
func (*Relay) GetReq ¶ added in v0.0.3
func (m *Relay) GetReq() *RelayRequest
func (*Relay) GetRes ¶ added in v0.0.3
func (m *Relay) GetRes() *RelayResponse
func (*Relay) MarshalToSizedBuffer ¶ added in v0.0.3
func (*Relay) ProtoMessage ¶ added in v0.0.3
func (*Relay) ProtoMessage()
func (*Relay) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Relay) XXX_DiscardUnknown()
func (*Relay) XXX_Marshal ¶ added in v0.0.3
func (*Relay) XXX_Unmarshal ¶ added in v0.0.3
type RelayMiningDifficulty ¶ added in v0.0.10
type RelayMiningDifficulty struct { // The service ID the relay mining difficulty is associated with. ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // The block height at which this relay mining difficulty was computed. // This is needed to determine how much time has passed since the last time // the exponential moving average was computed. BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // The exponential moving average of the number of relays for this service. NumRelaysEma uint64 `protobuf:"varint,3,opt,name=num_relays_ema,json=numRelaysEma,proto3" json:"num_relays_ema,omitempty"` // The target hash determining the difficulty to mine relays for this service. // For example, if we use sha256 to hash the (RelayRequest,ReqlayResponse) tuple, // and the difficulty has 4 leading zero bits, then the target hash would be: // 0b0000111... (until 32 bytes are filled up). TargetHash []byte `protobuf:"bytes,4,opt,name=target_hash,json=targetHash,proto3" json:"target_hash,omitempty"` }
RelayMiningDifficulty is a message used to store the on-chain Relay Mining difficulty associated with a specific service ID. TODO_TECHDEBT: Embed this message in the Service message.
func (*RelayMiningDifficulty) Descriptor ¶ added in v0.0.10
func (*RelayMiningDifficulty) Descriptor() ([]byte, []int)
func (*RelayMiningDifficulty) GetBlockHeight ¶ added in v0.0.10
func (m *RelayMiningDifficulty) GetBlockHeight() int64
func (*RelayMiningDifficulty) GetNumRelaysEma ¶ added in v0.0.10
func (m *RelayMiningDifficulty) GetNumRelaysEma() uint64
func (*RelayMiningDifficulty) GetServiceId ¶ added in v0.0.10
func (m *RelayMiningDifficulty) GetServiceId() string
func (*RelayMiningDifficulty) GetTargetHash ¶ added in v0.0.10
func (m *RelayMiningDifficulty) GetTargetHash() []byte
func (*RelayMiningDifficulty) Marshal ¶ added in v0.0.10
func (m *RelayMiningDifficulty) Marshal() (dAtA []byte, err error)
func (*RelayMiningDifficulty) MarshalTo ¶ added in v0.0.10
func (m *RelayMiningDifficulty) MarshalTo(dAtA []byte) (int, error)
func (*RelayMiningDifficulty) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *RelayMiningDifficulty) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelayMiningDifficulty) ProtoMessage ¶ added in v0.0.10
func (*RelayMiningDifficulty) ProtoMessage()
func (*RelayMiningDifficulty) Reset ¶ added in v0.0.10
func (m *RelayMiningDifficulty) Reset()
func (*RelayMiningDifficulty) Size ¶ added in v0.0.10
func (m *RelayMiningDifficulty) Size() (n int)
func (*RelayMiningDifficulty) String ¶ added in v0.0.10
func (m *RelayMiningDifficulty) String() string
func (*RelayMiningDifficulty) Unmarshal ¶ added in v0.0.10
func (m *RelayMiningDifficulty) Unmarshal(dAtA []byte) error
func (*RelayMiningDifficulty) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *RelayMiningDifficulty) XXX_DiscardUnknown()
func (*RelayMiningDifficulty) XXX_Marshal ¶ added in v0.0.10
func (m *RelayMiningDifficulty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelayMiningDifficulty) XXX_Merge ¶ added in v0.0.10
func (m *RelayMiningDifficulty) XXX_Merge(src proto.Message)
func (*RelayMiningDifficulty) XXX_Size ¶ added in v0.0.10
func (m *RelayMiningDifficulty) XXX_Size() int
func (*RelayMiningDifficulty) XXX_Unmarshal ¶ added in v0.0.10
func (m *RelayMiningDifficulty) XXX_Unmarshal(b []byte) error
type RelayRequest ¶ added in v0.0.3
type RelayRequest struct { Meta RelayRequestMetadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta"` // payload is the serialized payload for the request. // The payload is passed directly to the service and as such can be any // format that the service supports: JSON-RPC, REST, gRPC, etc. Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
RelayRequest holds the request details for a relay.
func (*RelayRequest) Descriptor ¶ added in v0.0.3
func (*RelayRequest) Descriptor() ([]byte, []int)
func (*RelayRequest) GetMeta ¶ added in v0.0.3
func (m *RelayRequest) GetMeta() RelayRequestMetadata
func (*RelayRequest) GetPayload ¶ added in v0.0.3
func (m *RelayRequest) GetPayload() []byte
func (RelayRequest) GetSignableBytesHash ¶ added in v0.0.3
func (req RelayRequest) GetSignableBytesHash() ([protocol.RelayHasherSize]byte, error)
GetSignableBytesHash returns the hash of the signable bytes of the relay request Hashing the marshaled request message guarantees that the signable bytes are always of a constant and expected length.
func (*RelayRequest) Marshal ¶ added in v0.0.3
func (m *RelayRequest) Marshal() (dAtA []byte, err error)
func (*RelayRequest) MarshalTo ¶ added in v0.0.3
func (m *RelayRequest) MarshalTo(dAtA []byte) (int, error)
func (*RelayRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *RelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelayRequest) NullifyForObservability ¶ added in v0.0.3
func (sourceRelayRequest *RelayRequest) NullifyForObservability() *RelayRequest
nullifyForObservability generates an empty RelayRequest that has the same service and payload as the source RelayRequest if they are not nil. It is meant to be used when replying with an error but no valid RelayRequest is available.
func (*RelayRequest) ProtoMessage ¶ added in v0.0.3
func (*RelayRequest) ProtoMessage()
func (*RelayRequest) Reset ¶ added in v0.0.3
func (m *RelayRequest) Reset()
func (*RelayRequest) Size ¶ added in v0.0.3
func (m *RelayRequest) Size() (n int)
func (*RelayRequest) String ¶ added in v0.0.3
func (m *RelayRequest) String() string
func (*RelayRequest) Unmarshal ¶ added in v0.0.3
func (m *RelayRequest) Unmarshal(dAtA []byte) error
func (*RelayRequest) ValidateBasic ¶ added in v0.0.3
func (req *RelayRequest) ValidateBasic() error
ValidateBasic performs basic validation of the RelayResponse Meta, SessionHeader and Signature fields. TODO_TEST: Add tests for RelayRequest validation
func (*RelayRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *RelayRequest) XXX_DiscardUnknown()
func (*RelayRequest) XXX_Marshal ¶ added in v0.0.3
func (m *RelayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelayRequest) XXX_Merge ¶ added in v0.0.3
func (m *RelayRequest) XXX_Merge(src proto.Message)
func (*RelayRequest) XXX_Size ¶ added in v0.0.3
func (m *RelayRequest) XXX_Size() int
func (*RelayRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *RelayRequest) XXX_Unmarshal(b []byte) error
type RelayRequestMetadata ¶ added in v0.0.3
type RelayRequestMetadata struct { SessionHeader *types.SessionHeader `protobuf:"bytes,1,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"` // The request signature is a serialized ring signature that may have been // by either the application itself or one of the gateways that the // application has delegated to. The signature is made using the ring of the // application in both cases. Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // TODO_MAINNET: make sure we're checking/verifying this address on-chain (if needed). // Relevant conversation: https://github.com/pokt-network/poktroll/pull/567#discussion_r1628722168 // // The supplier operator address the relay is sent to. It is being used on the // RelayMiner to route to the correct supplier. SupplierOperatorAddress string `` /* 132-byte string literal not displayed */ }
RelayRequestMetadata contains the metadata for a RelayRequest.
func (*RelayRequestMetadata) Descriptor ¶ added in v0.0.3
func (*RelayRequestMetadata) Descriptor() ([]byte, []int)
func (*RelayRequestMetadata) GetSessionHeader ¶ added in v0.0.3
func (m *RelayRequestMetadata) GetSessionHeader() *types.SessionHeader
func (*RelayRequestMetadata) GetSignature ¶ added in v0.0.3
func (m *RelayRequestMetadata) GetSignature() []byte
func (*RelayRequestMetadata) GetSupplierOperatorAddress ¶ added in v0.0.6
func (m *RelayRequestMetadata) GetSupplierOperatorAddress() string
func (*RelayRequestMetadata) Marshal ¶ added in v0.0.3
func (m *RelayRequestMetadata) Marshal() (dAtA []byte, err error)
func (*RelayRequestMetadata) MarshalTo ¶ added in v0.0.3
func (m *RelayRequestMetadata) MarshalTo(dAtA []byte) (int, error)
func (*RelayRequestMetadata) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *RelayRequestMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelayRequestMetadata) ProtoMessage ¶ added in v0.0.3
func (*RelayRequestMetadata) ProtoMessage()
func (*RelayRequestMetadata) Reset ¶ added in v0.0.3
func (m *RelayRequestMetadata) Reset()
func (*RelayRequestMetadata) Size ¶ added in v0.0.3
func (m *RelayRequestMetadata) Size() (n int)
func (*RelayRequestMetadata) String ¶ added in v0.0.3
func (m *RelayRequestMetadata) String() string
func (*RelayRequestMetadata) Unmarshal ¶ added in v0.0.3
func (m *RelayRequestMetadata) Unmarshal(dAtA []byte) error
func (*RelayRequestMetadata) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *RelayRequestMetadata) XXX_DiscardUnknown()
func (*RelayRequestMetadata) XXX_Marshal ¶ added in v0.0.3
func (m *RelayRequestMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelayRequestMetadata) XXX_Merge ¶ added in v0.0.3
func (m *RelayRequestMetadata) XXX_Merge(src proto.Message)
func (*RelayRequestMetadata) XXX_Size ¶ added in v0.0.3
func (m *RelayRequestMetadata) XXX_Size() int
func (*RelayRequestMetadata) XXX_Unmarshal ¶ added in v0.0.3
func (m *RelayRequestMetadata) XXX_Unmarshal(b []byte) error
type RelayResponse ¶ added in v0.0.3
type RelayResponse struct { Meta RelayResponseMetadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta"` // payload is the serialized payload for the response. // The payload is passed directly from the service and as such can be any // format the service responds with: JSON-RPC, REST, gRPC, etc. Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
RelayResponse contains the response details for a RelayRequest.
func (*RelayResponse) Descriptor ¶ added in v0.0.3
func (*RelayResponse) Descriptor() ([]byte, []int)
func (*RelayResponse) GetMeta ¶ added in v0.0.3
func (m *RelayResponse) GetMeta() RelayResponseMetadata
func (*RelayResponse) GetPayload ¶ added in v0.0.3
func (m *RelayResponse) GetPayload() []byte
func (RelayResponse) GetSignableBytesHash ¶ added in v0.0.3
func (res RelayResponse) GetSignableBytesHash() ([protocol.RelayHasherSize]byte, error)
GetSignableBytesHash returns the hash of the signable bytes of the relay response Hashing the marshaled response message guarantees that the signable bytes are always of a constant and expected length.
func (*RelayResponse) Marshal ¶ added in v0.0.3
func (m *RelayResponse) Marshal() (dAtA []byte, err error)
func (*RelayResponse) MarshalTo ¶ added in v0.0.3
func (m *RelayResponse) MarshalTo(dAtA []byte) (int, error)
func (*RelayResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *RelayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelayResponse) ProtoMessage ¶ added in v0.0.3
func (*RelayResponse) ProtoMessage()
func (*RelayResponse) Reset ¶ added in v0.0.3
func (m *RelayResponse) Reset()
func (*RelayResponse) Size ¶ added in v0.0.3
func (m *RelayResponse) Size() (n int)
func (*RelayResponse) String ¶ added in v0.0.3
func (m *RelayResponse) String() string
func (*RelayResponse) Unmarshal ¶ added in v0.0.3
func (m *RelayResponse) Unmarshal(dAtA []byte) error
func (*RelayResponse) ValidateBasic ¶ added in v0.0.3
func (res *RelayResponse) ValidateBasic() error
ValidateBasic performs basic validation of the RelayResponse Meta, SessionHeader and SupplierOperatorSignature fields. TODO_TEST: Add tests for RelayResponse validation
func (*RelayResponse) VerifySupplierOperatorSignature ¶ added in v0.0.6
func (res *RelayResponse) VerifySupplierOperatorSignature(supplierOperatorPubKey cryptotypes.PubKey) error
VerifySupplierOperatorSignature ensures the signature provided by the supplier is valid according to their relay response.
func (*RelayResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *RelayResponse) XXX_DiscardUnknown()
func (*RelayResponse) XXX_Marshal ¶ added in v0.0.3
func (m *RelayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelayResponse) XXX_Merge ¶ added in v0.0.3
func (m *RelayResponse) XXX_Merge(src proto.Message)
func (*RelayResponse) XXX_Size ¶ added in v0.0.3
func (m *RelayResponse) XXX_Size() int
func (*RelayResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *RelayResponse) XXX_Unmarshal(b []byte) error
type RelayResponseMetadata ¶ added in v0.0.3
type RelayResponseMetadata struct { SessionHeader *types.SessionHeader `protobuf:"bytes,1,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"` SupplierOperatorSignature []byte `` /* 138-byte string literal not displayed */ }
RelayResponseMetadata contains the metadata for a RelayResponse.
func (*RelayResponseMetadata) Descriptor ¶ added in v0.0.3
func (*RelayResponseMetadata) Descriptor() ([]byte, []int)
func (*RelayResponseMetadata) GetSessionHeader ¶ added in v0.0.3
func (m *RelayResponseMetadata) GetSessionHeader() *types.SessionHeader
func (*RelayResponseMetadata) GetSupplierOperatorSignature ¶ added in v0.0.6
func (m *RelayResponseMetadata) GetSupplierOperatorSignature() []byte
func (*RelayResponseMetadata) Marshal ¶ added in v0.0.3
func (m *RelayResponseMetadata) Marshal() (dAtA []byte, err error)
func (*RelayResponseMetadata) MarshalTo ¶ added in v0.0.3
func (m *RelayResponseMetadata) MarshalTo(dAtA []byte) (int, error)
func (*RelayResponseMetadata) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *RelayResponseMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelayResponseMetadata) ProtoMessage ¶ added in v0.0.3
func (*RelayResponseMetadata) ProtoMessage()
func (*RelayResponseMetadata) Reset ¶ added in v0.0.3
func (m *RelayResponseMetadata) Reset()
func (*RelayResponseMetadata) Size ¶ added in v0.0.3
func (m *RelayResponseMetadata) Size() (n int)
func (*RelayResponseMetadata) String ¶ added in v0.0.3
func (m *RelayResponseMetadata) String() string
func (*RelayResponseMetadata) Unmarshal ¶ added in v0.0.3
func (m *RelayResponseMetadata) Unmarshal(dAtA []byte) error
func (*RelayResponseMetadata) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *RelayResponseMetadata) XXX_DiscardUnknown()
func (*RelayResponseMetadata) XXX_Marshal ¶ added in v0.0.3
func (m *RelayResponseMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelayResponseMetadata) XXX_Merge ¶ added in v0.0.3
func (m *RelayResponseMetadata) XXX_Merge(src proto.Message)
func (*RelayResponseMetadata) XXX_Size ¶ added in v0.0.3
func (m *RelayResponseMetadata) XXX_Size() int
func (*RelayResponseMetadata) XXX_Unmarshal ¶ added in v0.0.3
func (m *RelayResponseMetadata) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶ added in v0.0.3
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddService ¶ added in v0.0.3
func (*UnimplementedMsgServer) AddService(ctx context.Context, req *MsgAddService) (*MsgAddServiceResponse, error)
func (*UnimplementedMsgServer) UpdateParam ¶ added in v0.0.8
func (*UnimplementedMsgServer) UpdateParam(ctx context.Context, req *MsgUpdateParam) (*MsgUpdateParamResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.0.3
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶ added in v0.0.3
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllServices ¶ added in v0.0.3
func (*UnimplementedQueryServer) AllServices(ctx context.Context, req *QueryAllServicesRequest) (*QueryAllServicesResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v0.0.3
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) RelayMiningDifficulty ¶ added in v0.0.10
func (*UnimplementedQueryServer) RelayMiningDifficulty(ctx context.Context, req *QueryGetRelayMiningDifficultyRequest) (*QueryGetRelayMiningDifficultyResponse, error)
func (*UnimplementedQueryServer) RelayMiningDifficultyAll ¶ added in v0.0.10
func (*UnimplementedQueryServer) RelayMiningDifficultyAll(ctx context.Context, req *QueryAllRelayMiningDifficultyRequest) (*QueryAllRelayMiningDifficultyResponse, error)
func (*UnimplementedQueryServer) Service ¶ added in v0.0.3
func (*UnimplementedQueryServer) Service(ctx context.Context, req *QueryGetServiceRequest) (*QueryGetServiceResponse, error)
Source Files ¶
- codec.go
- errors.go
- event.pb.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- key_relay_mining_difficulty.go
- key_service.go
- keys.go
- message_add_service.go
- message_update_param.go
- message_update_params.go
- params.go
- params.pb.go
- query.pb.go
- query.pb.gw.go
- relay.go
- relay.pb.go
- relay_mining_difficulty.pb.go
- tx.pb.go
- types.go