types

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 28 Imported by: 6

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ModuleName   = "provider"
	QuerierRoute = ModuleName
)

Variables

View Source
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")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsSubspace = ModuleName
	RouterKey      = ModuleName
	StoreKey       = ModuleName
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProvider        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProvider          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProvider = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuerier        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuerier          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultDeposit = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(1000))
)
View Source
var (
	EventModuleName = EventModule{Name: ModuleName}
)
View Source
var (
	KeyDeposit = []byte("Deposit")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ProviderKeyPrefix = []byte{0x10}
)

Functions

func ParamsKeyTable added in v0.4.0

func ParamsKeyTable() params.KeyTable

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 NewParams added in v0.4.0

func NewParams(deposit sdk.Coin) Params

func (*Params) Descriptor added in v0.6.0

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Marshal added in v0.6.0

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo added in v0.6.0

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer added in v0.6.0

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

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) Reset added in v0.6.0

func (m *Params) Reset()

func (*Params) Size added in v0.6.0

func (m *Params) Size() (n int)

func (*Params) String added in v0.4.0

func (m *Params) String() string

func (*Params) Unmarshal added in v0.6.0

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) Validate added in v0.4.0

func (p *Params) Validate() error

func (*Params) XXX_DiscardUnknown added in v0.6.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.6.0

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge added in v0.6.0

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size added in v0.6.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.6.0

func (m *Params) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Provider) GetAddress added in v0.6.0

func (p *Provider) GetAddress() hubtypes.ProvAddress

func (*Provider) Marshal added in v0.6.0

func (m *Provider) Marshal() (dAtA []byte, err error)

func (*Provider) MarshalTo added in v0.6.0

func (m *Provider) MarshalTo(dAtA []byte) (int, error)

func (*Provider) MarshalToSizedBuffer added in v0.6.0

func (m *Provider) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Provider) ProtoMessage added in v0.6.0

func (*Provider) ProtoMessage()

func (*Provider) Reset added in v0.6.0

func (m *Provider) Reset()

func (*Provider) Size added in v0.6.0

func (m *Provider) Size() (n int)

func (*Provider) String

func (m *Provider) String() string

func (*Provider) Unmarshal added in v0.6.0

func (m *Provider) Unmarshal(dAtA []byte) error

func (*Provider) Validate

func (p *Provider) Validate() error

func (*Provider) XXX_DiscardUnknown added in v0.6.0

func (m *Provider) XXX_DiscardUnknown()

func (*Provider) XXX_Marshal added in v0.6.0

func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Provider) XXX_Merge added in v0.6.0

func (m *Provider) XXX_Merge(src proto.Message)

func (*Provider) XXX_Size added in v0.6.0

func (m *Provider) XXX_Size() int

func (*Provider) XXX_Unmarshal added in v0.6.0

func (m *Provider) XXX_Unmarshal(b []byte) error

type Providers

type Providers []Provider

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

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) MsgUpdate added in v0.6.0

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) QueryProvider added in v0.6.0

func (*UnimplementedQueryServiceServer) QueryProviders added in v0.6.0

Directories

Path Synopsis
legacy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL