Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamsKeyTable() params.KeyTable
- func ProviderKey(address hubtypes.ProvAddress) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
- func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
- func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
- func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
- func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
- func ValidateGenesis(state *GenesisState) error
- type EventModule
- func (*EventModule) Descriptor() ([]byte, []int)
- func (m *EventModule) Marshal() (dAtA []byte, err error)
- func (m *EventModule) MarshalTo(dAtA []byte) (int, error)
- func (m *EventModule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventModule) ProtoMessage()
- func (m *EventModule) Reset()
- func (m *EventModule) Size() (n int)
- func (m *EventModule) String() string
- func (m *EventModule) Unmarshal(dAtA []byte) error
- func (m *EventModule) XXX_DiscardUnknown()
- func (m *EventModule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventModule) XXX_Merge(src proto.Message)
- func (m *EventModule) XXX_Size() int
- func (m *EventModule) XXX_Unmarshal(b []byte) error
- type EventRegisterProvider
- func (*EventRegisterProvider) Descriptor() ([]byte, []int)
- func (m *EventRegisterProvider) Marshal() (dAtA []byte, err error)
- func (m *EventRegisterProvider) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRegisterProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRegisterProvider) ProtoMessage()
- func (m *EventRegisterProvider) Reset()
- func (m *EventRegisterProvider) Size() (n int)
- func (m *EventRegisterProvider) String() string
- func (m *EventRegisterProvider) Unmarshal(dAtA []byte) error
- func (m *EventRegisterProvider) XXX_DiscardUnknown()
- func (m *EventRegisterProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRegisterProvider) XXX_Merge(src proto.Message)
- func (m *EventRegisterProvider) XXX_Size() int
- func (m *EventRegisterProvider) XXX_Unmarshal(b []byte) error
- type EventUpdateProvider
- func (*EventUpdateProvider) Descriptor() ([]byte, []int)
- func (m *EventUpdateProvider) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateProvider) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateProvider) ProtoMessage()
- func (m *EventUpdateProvider) Reset()
- func (m *EventUpdateProvider) Size() (n int)
- func (m *EventUpdateProvider) String() string
- func (m *EventUpdateProvider) Unmarshal(dAtA []byte) error
- func (m *EventUpdateProvider) XXX_DiscardUnknown()
- func (m *EventUpdateProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateProvider) XXX_Merge(src proto.Message)
- func (m *EventUpdateProvider) XXX_Size() int
- func (m *EventUpdateProvider) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgRegisterRequest
- func (*MsgRegisterRequest) Descriptor() ([]byte, []int)
- func (m *MsgRegisterRequest) GetSignBytes() []byte
- func (m *MsgRegisterRequest) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterRequest) ProtoMessage()
- func (m *MsgRegisterRequest) Reset()
- func (m *MsgRegisterRequest) Route() string
- func (m *MsgRegisterRequest) Size() (n int)
- func (m *MsgRegisterRequest) String() string
- func (m *MsgRegisterRequest) Type() string
- func (m *MsgRegisterRequest) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterRequest) ValidateBasic() error
- func (m *MsgRegisterRequest) XXX_DiscardUnknown()
- func (m *MsgRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterRequest) XXX_Merge(src proto.Message)
- func (m *MsgRegisterRequest) XXX_Size() int
- func (m *MsgRegisterRequest) XXX_Unmarshal(b []byte) error
- type MsgRegisterResponse
- func (*MsgRegisterResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterResponse) ProtoMessage()
- func (m *MsgRegisterResponse) Reset()
- func (m *MsgRegisterResponse) Size() (n int)
- func (m *MsgRegisterResponse) String() string
- func (m *MsgRegisterResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterResponse) XXX_Size() int
- func (m *MsgRegisterResponse) XXX_Unmarshal(b []byte) error
- type MsgServiceClient
- type MsgServiceServer
- type MsgUpdateRequest
- func (*MsgUpdateRequest) Descriptor() ([]byte, []int)
- func (m *MsgUpdateRequest) GetSignBytes() []byte
- func (m *MsgUpdateRequest) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateRequest) ProtoMessage()
- func (m *MsgUpdateRequest) Reset()
- func (m *MsgUpdateRequest) Route() string
- func (m *MsgUpdateRequest) Size() (n int)
- func (m *MsgUpdateRequest) String() string
- func (m *MsgUpdateRequest) Type() string
- func (m *MsgUpdateRequest) Unmarshal(dAtA []byte) error
- func (m MsgUpdateRequest) ValidateBasic() error
- func (m *MsgUpdateRequest) XXX_DiscardUnknown()
- func (m *MsgUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateRequest) XXX_Merge(src proto.Message)
- func (m *MsgUpdateRequest) XXX_Size() int
- func (m *MsgUpdateRequest) XXX_Unmarshal(b []byte) error
- type MsgUpdateResponse
- func (*MsgUpdateResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateResponse) ProtoMessage()
- func (m *MsgUpdateResponse) Reset()
- func (m *MsgUpdateResponse) Size() (n int)
- func (m *MsgUpdateResponse) String() string
- func (m *MsgUpdateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateResponse) XXX_Size() int
- func (m *MsgUpdateResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- 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() params.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Provider
- func (*Provider) Descriptor() ([]byte, []int)
- func (p *Provider) GetAddress() hubtypes.ProvAddress
- func (m *Provider) Marshal() (dAtA []byte, err error)
- func (m *Provider) MarshalTo(dAtA []byte) (int, error)
- func (m *Provider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Provider) ProtoMessage()
- func (m *Provider) Reset()
- func (m *Provider) Size() (n int)
- func (m *Provider) String() string
- func (m *Provider) Unmarshal(dAtA []byte) error
- func (p *Provider) Validate() error
- func (m *Provider) XXX_DiscardUnknown()
- func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Provider) XXX_Merge(src proto.Message)
- func (m *Provider) XXX_Size() int
- func (m *Provider) XXX_Unmarshal(b []byte) error
- type Providers
- 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) 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 QueryProviderRequest
- func (*QueryProviderRequest) Descriptor() ([]byte, []int)
- func (m *QueryProviderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderRequest) ProtoMessage()
- func (m *QueryProviderRequest) Reset()
- func (m *QueryProviderRequest) Size() (n int)
- func (m *QueryProviderRequest) String() string
- func (m *QueryProviderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProviderRequest) XXX_DiscardUnknown()
- func (m *QueryProviderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderRequest) XXX_Merge(src proto.Message)
- func (m *QueryProviderRequest) XXX_Size() int
- func (m *QueryProviderRequest) XXX_Unmarshal(b []byte) error
- type QueryProviderResponse
- func (*QueryProviderResponse) Descriptor() ([]byte, []int)
- func (m *QueryProviderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderResponse) ProtoMessage()
- func (m *QueryProviderResponse) Reset()
- func (m *QueryProviderResponse) Size() (n int)
- func (m *QueryProviderResponse) String() string
- func (m *QueryProviderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProviderResponse) XXX_DiscardUnknown()
- func (m *QueryProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderResponse) XXX_Merge(src proto.Message)
- func (m *QueryProviderResponse) XXX_Size() int
- func (m *QueryProviderResponse) XXX_Unmarshal(b []byte) error
- type QueryProvidersRequest
- func (*QueryProvidersRequest) Descriptor() ([]byte, []int)
- func (m *QueryProvidersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProvidersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProvidersRequest) ProtoMessage()
- func (m *QueryProvidersRequest) Reset()
- func (m *QueryProvidersRequest) Size() (n int)
- func (m *QueryProvidersRequest) String() string
- func (m *QueryProvidersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProvidersRequest) XXX_DiscardUnknown()
- func (m *QueryProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProvidersRequest) XXX_Merge(src proto.Message)
- func (m *QueryProvidersRequest) XXX_Size() int
- func (m *QueryProvidersRequest) XXX_Unmarshal(b []byte) error
- type QueryProvidersResponse
- func (*QueryProvidersResponse) Descriptor() ([]byte, []int)
- func (m *QueryProvidersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProvidersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProvidersResponse) ProtoMessage()
- func (m *QueryProvidersResponse) Reset()
- func (m *QueryProvidersResponse) Size() (n int)
- func (m *QueryProvidersResponse) String() string
- func (m *QueryProvidersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProvidersResponse) XXX_DiscardUnknown()
- func (m *QueryProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProvidersResponse) XXX_Merge(src proto.Message)
- func (m *QueryProvidersResponse) XXX_Size() int
- func (m *QueryProvidersResponse) XXX_Unmarshal(b []byte) error
- type QueryServiceClient
- type QueryServiceServer
- type UnimplementedMsgServiceServer
- type UnimplementedQueryServiceServer
- func (*UnimplementedQueryServiceServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServiceServer) QueryProvider(ctx context.Context, req *QueryProviderRequest) (*QueryProviderResponse, error)
- func (*UnimplementedQueryServiceServer) QueryProviders(ctx context.Context, req *QueryProvidersRequest) (*QueryProvidersResponse, error)
Constants ¶
const ( ModuleName = "provider" QuerierRoute = ModuleName )
Variables ¶
var ( ErrorMarshal = errors.Register(ModuleName, 101, "error occurred while marshalling") ErrorUnmarshal = errors.Register(ModuleName, 102, "error occurred while unmarshalling") ErrorUnknownMsgType = errors.Register(ModuleName, 103, "unknown message type") ErrorUnknownQueryType = errors.Register(ModuleName, 104, "unknown query type") ErrorInvalidFieldName = errors.Register(ModuleName, 105, "invalid field name; expected length between 1 and 64") ErrorDuplicateProvider = errors.Register(ModuleName, 106, "duplicate provider") ErrorProviderDoesNotExist = errors.Register(ModuleName, 107, "provider does not exist") ErrorInvalidFieldFrom = errors.Register(ModuleName, 108, "invalid field from; expected a valid address") ErrorInvalidFieldIdentity = errors.Register(ModuleName, 109, "invalid field identity; expected length between 0 and 64") ErrorInvalidFieldWebsite = errors.Register(ModuleName, 110, "invalid field website; expected length between 0 and 64") ErrorInvalidFieldDescription = errors.Register(ModuleName, 111, "invalid field description; expected length between 0 and 256") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = 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 ( ParamsSubspace = ModuleName RouterKey = ModuleName StoreKey = ModuleName )
var ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthProvider = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProvider = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProvider = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuerier = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuerier = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group") )
var (
DefaultDeposit = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(1000))
)
var (
EventModuleName = EventModule{Name: ModuleName}
)
var (
KeyDeposit = []byte("Deposit")
)
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var (
ProviderKeyPrefix = []byte{0x10}
)
Functions ¶
func ParamsKeyTable ¶ added in v0.4.0
func ProviderKey ¶
func ProviderKey(address hubtypes.ProvAddress) []byte
func RegisterInterfaces ¶ added in v0.6.0
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v0.6.0
func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
func RegisterMsgServiceServer ¶ added in v0.6.0
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
func RegisterQueryServiceHandler ¶ added in v0.6.0
func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterQueryServiceHandler registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryServiceHandlerClient ¶ added in v0.6.0
func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
RegisterQueryServiceHandlerClient registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryServiceClient" to call the correct interceptors.
func RegisterQueryServiceHandlerFromEndpoint ¶ added in v0.6.0
func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryServiceHandlerFromEndpoint is same as RegisterQueryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryServiceHandlerServer ¶ added in v0.6.0
func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". UnaryRPC :call QueryServiceServer 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 RegisterQueryServiceHandlerFromEndpoint instead.
func RegisterQueryServiceServer ¶ added in v0.6.0
func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
func ValidateGenesis ¶ added in v0.6.0
func ValidateGenesis(state *GenesisState) error
Types ¶
type EventModule ¶ added in v0.6.0
type EventModule struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (*EventModule) Descriptor ¶ added in v0.6.0
func (*EventModule) Descriptor() ([]byte, []int)
func (*EventModule) Marshal ¶ added in v0.6.0
func (m *EventModule) Marshal() (dAtA []byte, err error)
func (*EventModule) MarshalTo ¶ added in v0.6.0
func (m *EventModule) MarshalTo(dAtA []byte) (int, error)
func (*EventModule) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *EventModule) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventModule) ProtoMessage ¶ added in v0.6.0
func (*EventModule) ProtoMessage()
func (*EventModule) Reset ¶ added in v0.6.0
func (m *EventModule) Reset()
func (*EventModule) Size ¶ added in v0.6.0
func (m *EventModule) Size() (n int)
func (*EventModule) String ¶ added in v0.6.0
func (m *EventModule) String() string
func (*EventModule) Unmarshal ¶ added in v0.6.0
func (m *EventModule) Unmarshal(dAtA []byte) error
func (*EventModule) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *EventModule) XXX_DiscardUnknown()
func (*EventModule) XXX_Marshal ¶ added in v0.6.0
func (m *EventModule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventModule) XXX_Merge ¶ added in v0.6.0
func (m *EventModule) XXX_Merge(src proto.Message)
func (*EventModule) XXX_Size ¶ added in v0.6.0
func (m *EventModule) XXX_Size() int
func (*EventModule) XXX_Unmarshal ¶ added in v0.6.0
func (m *EventModule) XXX_Unmarshal(b []byte) error
type EventRegisterProvider ¶ added in v0.6.0
type EventRegisterProvider struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` Website string `protobuf:"bytes,5,opt,name=website,proto3" json:"website,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` }
func (*EventRegisterProvider) Descriptor ¶ added in v0.6.0
func (*EventRegisterProvider) Descriptor() ([]byte, []int)
func (*EventRegisterProvider) Marshal ¶ added in v0.6.0
func (m *EventRegisterProvider) Marshal() (dAtA []byte, err error)
func (*EventRegisterProvider) MarshalTo ¶ added in v0.6.0
func (m *EventRegisterProvider) MarshalTo(dAtA []byte) (int, error)
func (*EventRegisterProvider) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *EventRegisterProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRegisterProvider) ProtoMessage ¶ added in v0.6.0
func (*EventRegisterProvider) ProtoMessage()
func (*EventRegisterProvider) Reset ¶ added in v0.6.0
func (m *EventRegisterProvider) Reset()
func (*EventRegisterProvider) Size ¶ added in v0.6.0
func (m *EventRegisterProvider) Size() (n int)
func (*EventRegisterProvider) String ¶ added in v0.6.0
func (m *EventRegisterProvider) String() string
func (*EventRegisterProvider) Unmarshal ¶ added in v0.6.0
func (m *EventRegisterProvider) Unmarshal(dAtA []byte) error
func (*EventRegisterProvider) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *EventRegisterProvider) XXX_DiscardUnknown()
func (*EventRegisterProvider) XXX_Marshal ¶ added in v0.6.0
func (m *EventRegisterProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRegisterProvider) XXX_Merge ¶ added in v0.6.0
func (m *EventRegisterProvider) XXX_Merge(src proto.Message)
func (*EventRegisterProvider) XXX_Size ¶ added in v0.6.0
func (m *EventRegisterProvider) XXX_Size() int
func (*EventRegisterProvider) XXX_Unmarshal ¶ added in v0.6.0
func (m *EventRegisterProvider) XXX_Unmarshal(b []byte) error
type EventUpdateProvider ¶ added in v0.6.0
type EventUpdateProvider struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` Website string `protobuf:"bytes,5,opt,name=website,proto3" json:"website,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` }
func (*EventUpdateProvider) Descriptor ¶ added in v0.6.0
func (*EventUpdateProvider) Descriptor() ([]byte, []int)
func (*EventUpdateProvider) Marshal ¶ added in v0.6.0
func (m *EventUpdateProvider) Marshal() (dAtA []byte, err error)
func (*EventUpdateProvider) MarshalTo ¶ added in v0.6.0
func (m *EventUpdateProvider) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateProvider) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *EventUpdateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateProvider) ProtoMessage ¶ added in v0.6.0
func (*EventUpdateProvider) ProtoMessage()
func (*EventUpdateProvider) Reset ¶ added in v0.6.0
func (m *EventUpdateProvider) Reset()
func (*EventUpdateProvider) Size ¶ added in v0.6.0
func (m *EventUpdateProvider) Size() (n int)
func (*EventUpdateProvider) String ¶ added in v0.6.0
func (m *EventUpdateProvider) String() string
func (*EventUpdateProvider) Unmarshal ¶ added in v0.6.0
func (m *EventUpdateProvider) Unmarshal(dAtA []byte) error
func (*EventUpdateProvider) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *EventUpdateProvider) XXX_DiscardUnknown()
func (*EventUpdateProvider) XXX_Marshal ¶ added in v0.6.0
func (m *EventUpdateProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateProvider) XXX_Merge ¶ added in v0.6.0
func (m *EventUpdateProvider) XXX_Merge(src proto.Message)
func (*EventUpdateProvider) XXX_Size ¶ added in v0.6.0
func (m *EventUpdateProvider) XXX_Size() int
func (*EventUpdateProvider) XXX_Unmarshal ¶ added in v0.6.0
func (m *EventUpdateProvider) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Providers []Provider `protobuf:"bytes,1,rep,name=providers,proto3" json:"_,omitempty"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(providers Providers, params Params) *GenesisState
func (*GenesisState) Descriptor ¶ added in v0.6.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶ added in v0.6.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.6.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.6.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.6.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.6.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.6.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.6.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.6.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.6.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.6.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.6.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgRegisterRequest ¶ added in v0.6.0
type MsgRegisterRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` }
MsgRegisterRequest defines the SDK message for registering a provider
func NewMsgRegisterRequest ¶ added in v0.6.0
func NewMsgRegisterRequest(from sdk.AccAddress, name, identity, website, description string) *MsgRegisterRequest
func (*MsgRegisterRequest) Descriptor ¶ added in v0.6.0
func (*MsgRegisterRequest) Descriptor() ([]byte, []int)
func (*MsgRegisterRequest) GetSignBytes ¶ added in v0.6.0
func (m *MsgRegisterRequest) GetSignBytes() []byte
func (*MsgRegisterRequest) GetSigners ¶ added in v0.6.0
func (m *MsgRegisterRequest) GetSigners() []sdk.AccAddress
func (*MsgRegisterRequest) Marshal ¶ added in v0.6.0
func (m *MsgRegisterRequest) Marshal() (dAtA []byte, err error)
func (*MsgRegisterRequest) MarshalTo ¶ added in v0.6.0
func (m *MsgRegisterRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgRegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterRequest) ProtoMessage ¶ added in v0.6.0
func (*MsgRegisterRequest) ProtoMessage()
func (*MsgRegisterRequest) Reset ¶ added in v0.6.0
func (m *MsgRegisterRequest) Reset()
func (*MsgRegisterRequest) Route ¶ added in v0.6.0
func (m *MsgRegisterRequest) Route() string
func (*MsgRegisterRequest) Size ¶ added in v0.6.0
func (m *MsgRegisterRequest) Size() (n int)
func (*MsgRegisterRequest) String ¶ added in v0.6.0
func (m *MsgRegisterRequest) String() string
func (*MsgRegisterRequest) Type ¶ added in v0.6.0
func (m *MsgRegisterRequest) Type() string
func (*MsgRegisterRequest) Unmarshal ¶ added in v0.6.0
func (m *MsgRegisterRequest) Unmarshal(dAtA []byte) error
func (*MsgRegisterRequest) ValidateBasic ¶ added in v0.6.0
func (m *MsgRegisterRequest) ValidateBasic() error
func (*MsgRegisterRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_DiscardUnknown()
func (*MsgRegisterRequest) XXX_Marshal ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterRequest) XXX_Merge ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_Merge(src proto.Message)
func (*MsgRegisterRequest) XXX_Size ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_Size() int
func (*MsgRegisterRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_Unmarshal(b []byte) error
type MsgRegisterResponse ¶ added in v0.6.0
type MsgRegisterResponse struct { }
MsgRegisterResponse defines the response of message MsgRegisterRequest
func (*MsgRegisterResponse) Descriptor ¶ added in v0.6.0
func (*MsgRegisterResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterResponse) Marshal ¶ added in v0.6.0
func (m *MsgRegisterResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgRegisterResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgRegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgRegisterResponse) ProtoMessage()
func (*MsgRegisterResponse) Reset ¶ added in v0.6.0
func (m *MsgRegisterResponse) Reset()
func (*MsgRegisterResponse) Size ¶ added in v0.6.0
func (m *MsgRegisterResponse) Size() (n int)
func (*MsgRegisterResponse) String ¶ added in v0.6.0
func (m *MsgRegisterResponse) String() string
func (*MsgRegisterResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgRegisterResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_DiscardUnknown()
func (*MsgRegisterResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_Size() int
func (*MsgRegisterResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_Unmarshal(b []byte) error
type MsgServiceClient ¶ added in v0.6.0
type MsgServiceClient interface { MsgRegister(ctx context.Context, in *MsgRegisterRequest, opts ...grpc.CallOption) (*MsgRegisterResponse, error) MsgUpdate(ctx context.Context, in *MsgUpdateRequest, opts ...grpc.CallOption) (*MsgUpdateResponse, error) }
MsgServiceClient is the client API for MsgService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgServiceClient ¶ added in v0.6.0
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient
type MsgServiceServer ¶ added in v0.6.0
type MsgServiceServer interface { MsgRegister(context.Context, *MsgRegisterRequest) (*MsgRegisterResponse, error) MsgUpdate(context.Context, *MsgUpdateRequest) (*MsgUpdateResponse, error) }
MsgServiceServer is the server API for MsgService service.
type MsgUpdateRequest ¶ added in v0.6.0
type MsgUpdateRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` }
MsgUpdateRequest defines the SDK message for updating a provider
func NewMsgUpdateRequest ¶ added in v0.6.0
func NewMsgUpdateRequest(from hubtypes.ProvAddress, name, identity, website, description string) *MsgUpdateRequest
func (*MsgUpdateRequest) Descriptor ¶ added in v0.6.0
func (*MsgUpdateRequest) Descriptor() ([]byte, []int)
func (*MsgUpdateRequest) GetSignBytes ¶ added in v0.6.0
func (m *MsgUpdateRequest) GetSignBytes() []byte
func (*MsgUpdateRequest) GetSigners ¶ added in v0.6.0
func (m *MsgUpdateRequest) GetSigners() []sdk.AccAddress
func (*MsgUpdateRequest) Marshal ¶ added in v0.6.0
func (m *MsgUpdateRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateRequest) MarshalTo ¶ added in v0.6.0
func (m *MsgUpdateRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateRequest) ProtoMessage ¶ added in v0.6.0
func (*MsgUpdateRequest) ProtoMessage()
func (*MsgUpdateRequest) Reset ¶ added in v0.6.0
func (m *MsgUpdateRequest) Reset()
func (*MsgUpdateRequest) Route ¶ added in v0.6.0
func (m *MsgUpdateRequest) Route() string
func (*MsgUpdateRequest) Size ¶ added in v0.6.0
func (m *MsgUpdateRequest) Size() (n int)
func (*MsgUpdateRequest) String ¶ added in v0.6.0
func (m *MsgUpdateRequest) String() string
func (*MsgUpdateRequest) Type ¶ added in v0.6.0
func (m *MsgUpdateRequest) Type() string
func (*MsgUpdateRequest) Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateRequest) Unmarshal(dAtA []byte) error
func (MsgUpdateRequest) ValidateBasic ¶ added in v0.6.0
func (m MsgUpdateRequest) ValidateBasic() error
func (*MsgUpdateRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_DiscardUnknown()
func (*MsgUpdateRequest) XXX_Marshal ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateRequest) XXX_Merge ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateRequest) XXX_Size ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_Size() int
func (*MsgUpdateRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateResponse ¶ added in v0.6.0
type MsgUpdateResponse struct { }
MsgUpdateResponse defines the response of message MsgUpdateRequest
func (*MsgUpdateResponse) Descriptor ¶ added in v0.6.0
func (*MsgUpdateResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateResponse) Marshal ¶ added in v0.6.0
func (m *MsgUpdateResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgUpdateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgUpdateResponse) ProtoMessage()
func (*MsgUpdateResponse) Reset ¶ added in v0.6.0
func (m *MsgUpdateResponse) Reset()
func (*MsgUpdateResponse) Size ¶ added in v0.6.0
func (m *MsgUpdateResponse) Size() (n int)
func (*MsgUpdateResponse) String ¶ added in v0.6.0
func (m *MsgUpdateResponse) String() string
func (*MsgUpdateResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_DiscardUnknown()
func (*MsgUpdateResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_Size() int
func (*MsgUpdateResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.4.0
type Params struct {
Deposit types.Coin `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit"`
}
func DefaultParams ¶ added in v0.4.0
func DefaultParams() Params
func (*Params) Descriptor ¶ added in v0.6.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Params) ParamSetPairs ¶ added in v0.4.0
func (p *Params) ParamSetPairs() params.ParamSetPairs
func (*Params) ProtoMessage ¶ added in v0.6.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.6.0
func (*Params) XXX_Unmarshal ¶ added in v0.6.0
type Provider ¶
type Provider struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` }
func (*Provider) Descriptor ¶ added in v0.6.0
func (*Provider) GetAddress ¶ added in v0.6.0
func (p *Provider) GetAddress() hubtypes.ProvAddress
func (*Provider) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Provider) ProtoMessage ¶ added in v0.6.0
func (*Provider) ProtoMessage()
func (*Provider) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Provider) XXX_DiscardUnknown()
func (*Provider) XXX_Marshal ¶ added in v0.6.0
func (*Provider) XXX_Unmarshal ¶ added in v0.6.0
type QueryParamsRequest ¶ added in v0.6.1
type QueryParamsRequest struct { }
func NewQueryParamsRequest ¶ added in v0.6.1
func NewQueryParamsRequest() *QueryParamsRequest
func (*QueryParamsRequest) Descriptor ¶ added in v0.6.1
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.6.1
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.6.1
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.6.1
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.6.1
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.6.1
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.6.1
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.6.1
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.6.1
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*QueryParamsResponse) Descriptor ¶ added in v0.6.1
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) Marshal ¶ added in v0.6.1
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.6.1
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.6.1
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.6.1
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.6.1
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.6.1
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.6.1
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryProviderRequest ¶ added in v0.6.0
type QueryProviderRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func NewQueryProviderRequest ¶ added in v0.6.0
func NewQueryProviderRequest(address hubtypes.ProvAddress) *QueryProviderRequest
func (*QueryProviderRequest) Descriptor ¶ added in v0.6.0
func (*QueryProviderRequest) Descriptor() ([]byte, []int)
func (*QueryProviderRequest) Marshal ¶ added in v0.6.0
func (m *QueryProviderRequest) Marshal() (dAtA []byte, err error)
func (*QueryProviderRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryProviderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryProviderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryProviderRequest) ProtoMessage()
func (*QueryProviderRequest) Reset ¶ added in v0.6.0
func (m *QueryProviderRequest) Reset()
func (*QueryProviderRequest) Size ¶ added in v0.6.0
func (m *QueryProviderRequest) Size() (n int)
func (*QueryProviderRequest) String ¶ added in v0.6.0
func (m *QueryProviderRequest) String() string
func (*QueryProviderRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryProviderRequest) Unmarshal(dAtA []byte) error
func (*QueryProviderRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_DiscardUnknown()
func (*QueryProviderRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_Merge(src proto.Message)
func (*QueryProviderRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_Size() int
func (*QueryProviderRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_Unmarshal(b []byte) error
type QueryProviderResponse ¶ added in v0.6.0
type QueryProviderResponse struct {
Provider Provider `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider"`
}
func (*QueryProviderResponse) Descriptor ¶ added in v0.6.0
func (*QueryProviderResponse) Descriptor() ([]byte, []int)
func (*QueryProviderResponse) Marshal ¶ added in v0.6.0
func (m *QueryProviderResponse) Marshal() (dAtA []byte, err error)
func (*QueryProviderResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryProviderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryProviderResponse) ProtoMessage()
func (*QueryProviderResponse) Reset ¶ added in v0.6.0
func (m *QueryProviderResponse) Reset()
func (*QueryProviderResponse) Size ¶ added in v0.6.0
func (m *QueryProviderResponse) Size() (n int)
func (*QueryProviderResponse) String ¶ added in v0.6.0
func (m *QueryProviderResponse) String() string
func (*QueryProviderResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryProviderResponse) Unmarshal(dAtA []byte) error
func (*QueryProviderResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_DiscardUnknown()
func (*QueryProviderResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_Merge(src proto.Message)
func (*QueryProviderResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_Size() int
func (*QueryProviderResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_Unmarshal(b []byte) error
type QueryProvidersRequest ¶ added in v0.6.0
type QueryProvidersRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func NewQueryProvidersRequest ¶ added in v0.6.0
func NewQueryProvidersRequest(pagination *query.PageRequest) *QueryProvidersRequest
func (*QueryProvidersRequest) Descriptor ¶ added in v0.6.0
func (*QueryProvidersRequest) Descriptor() ([]byte, []int)
func (*QueryProvidersRequest) Marshal ¶ added in v0.6.0
func (m *QueryProvidersRequest) Marshal() (dAtA []byte, err error)
func (*QueryProvidersRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryProvidersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProvidersRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProvidersRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryProvidersRequest) ProtoMessage()
func (*QueryProvidersRequest) Reset ¶ added in v0.6.0
func (m *QueryProvidersRequest) Reset()
func (*QueryProvidersRequest) Size ¶ added in v0.6.0
func (m *QueryProvidersRequest) Size() (n int)
func (*QueryProvidersRequest) String ¶ added in v0.6.0
func (m *QueryProvidersRequest) String() string
func (*QueryProvidersRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryProvidersRequest) Unmarshal(dAtA []byte) error
func (*QueryProvidersRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_DiscardUnknown()
func (*QueryProvidersRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProvidersRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_Merge(src proto.Message)
func (*QueryProvidersRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_Size() int
func (*QueryProvidersRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_Unmarshal(b []byte) error
type QueryProvidersResponse ¶ added in v0.6.0
type QueryProvidersResponse struct { Providers []Provider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryProvidersResponse) Descriptor ¶ added in v0.6.0
func (*QueryProvidersResponse) Descriptor() ([]byte, []int)
func (*QueryProvidersResponse) Marshal ¶ added in v0.6.0
func (m *QueryProvidersResponse) Marshal() (dAtA []byte, err error)
func (*QueryProvidersResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryProvidersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProvidersResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProvidersResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryProvidersResponse) ProtoMessage()
func (*QueryProvidersResponse) Reset ¶ added in v0.6.0
func (m *QueryProvidersResponse) Reset()
func (*QueryProvidersResponse) Size ¶ added in v0.6.0
func (m *QueryProvidersResponse) Size() (n int)
func (*QueryProvidersResponse) String ¶ added in v0.6.0
func (m *QueryProvidersResponse) String() string
func (*QueryProvidersResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryProvidersResponse) Unmarshal(dAtA []byte) error
func (*QueryProvidersResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_DiscardUnknown()
func (*QueryProvidersResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProvidersResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_Merge(src proto.Message)
func (*QueryProvidersResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_Size() int
func (*QueryProvidersResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_Unmarshal(b []byte) error
type QueryServiceClient ¶ added in v0.6.0
type QueryServiceClient interface { QueryProviders(ctx context.Context, in *QueryProvidersRequest, opts ...grpc.CallOption) (*QueryProvidersResponse, error) QueryProvider(ctx context.Context, in *QueryProviderRequest, opts ...grpc.CallOption) (*QueryProviderResponse, error) QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryServiceClient is the client API for QueryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryServiceClient ¶ added in v0.6.0
func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient
type QueryServiceServer ¶ added in v0.6.0
type QueryServiceServer interface { QueryProviders(context.Context, *QueryProvidersRequest) (*QueryProvidersResponse, error) QueryProvider(context.Context, *QueryProviderRequest) (*QueryProviderResponse, error) QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServiceServer is the server API for QueryService service.
type UnimplementedMsgServiceServer ¶ added in v0.6.0
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServiceServer) MsgRegister ¶ added in v0.6.0
func (*UnimplementedMsgServiceServer) MsgRegister(ctx context.Context, req *MsgRegisterRequest) (*MsgRegisterResponse, error)
func (*UnimplementedMsgServiceServer) MsgUpdate ¶ added in v0.6.0
func (*UnimplementedMsgServiceServer) MsgUpdate(ctx context.Context, req *MsgUpdateRequest) (*MsgUpdateResponse, error)
type UnimplementedQueryServiceServer ¶ added in v0.6.0
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServiceServer) QueryParams ¶ added in v0.6.1
func (*UnimplementedQueryServiceServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServiceServer) QueryProvider ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QueryProvider(ctx context.Context, req *QueryProviderRequest) (*QueryProviderResponse, error)
func (*UnimplementedQueryServiceServer) QueryProviders ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QueryProviders(ctx context.Context, req *QueryProvidersRequest) (*QueryProvidersResponse, error)