Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func RelayerStoreKey(arena, denom, addr string) []byte
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetRelayers() []Relayer
- func (m *GenesisState) GetThresholds() []Threshold
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgAddRelayer
- func (*MsgAddRelayer) Descriptor() ([]byte, []int)
- func (m *MsgAddRelayer) GetAddresses() []string
- func (m *MsgAddRelayer) GetArena() string
- func (m *MsgAddRelayer) GetCreator() string
- func (m *MsgAddRelayer) GetDenom() string
- func (msg *MsgAddRelayer) GetSignBytes() []byte
- func (msg *MsgAddRelayer) GetSigners() []sdk.AccAddress
- func (m *MsgAddRelayer) Marshal() (dAtA []byte, err error)
- func (m *MsgAddRelayer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddRelayer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddRelayer) ProtoMessage()
- func (m *MsgAddRelayer) Reset()
- func (msg *MsgAddRelayer) Route() string
- func (m *MsgAddRelayer) Size() (n int)
- func (m *MsgAddRelayer) String() string
- func (msg *MsgAddRelayer) Type() string
- func (m *MsgAddRelayer) Unmarshal(dAtA []byte) error
- func (msg *MsgAddRelayer) ValidateBasic() error
- func (m *MsgAddRelayer) XXX_DiscardUnknown()
- func (m *MsgAddRelayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddRelayer) XXX_Merge(src proto.Message)
- func (m *MsgAddRelayer) XXX_Size() int
- func (m *MsgAddRelayer) XXX_Unmarshal(b []byte) error
- type MsgAddRelayerResponse
- func (*MsgAddRelayerResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddRelayerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddRelayerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddRelayerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddRelayerResponse) ProtoMessage()
- func (m *MsgAddRelayerResponse) Reset()
- func (m *MsgAddRelayerResponse) Size() (n int)
- func (m *MsgAddRelayerResponse) String() string
- func (m *MsgAddRelayerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddRelayerResponse) XXX_DiscardUnknown()
- func (m *MsgAddRelayerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddRelayerResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddRelayerResponse) XXX_Size() int
- func (m *MsgAddRelayerResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDeleteRelayer
- func (*MsgDeleteRelayer) Descriptor() ([]byte, []int)
- func (m *MsgDeleteRelayer) GetAddress() string
- func (m *MsgDeleteRelayer) GetArena() string
- func (m *MsgDeleteRelayer) GetCreator() string
- func (m *MsgDeleteRelayer) GetDenom() string
- func (msg *MsgDeleteRelayer) GetSignBytes() []byte
- func (msg *MsgDeleteRelayer) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteRelayer) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteRelayer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteRelayer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteRelayer) ProtoMessage()
- func (m *MsgDeleteRelayer) Reset()
- func (msg *MsgDeleteRelayer) Route() string
- func (m *MsgDeleteRelayer) Size() (n int)
- func (m *MsgDeleteRelayer) String() string
- func (msg *MsgDeleteRelayer) Type() string
- func (m *MsgDeleteRelayer) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteRelayer) ValidateBasic() error
- func (m *MsgDeleteRelayer) XXX_DiscardUnknown()
- func (m *MsgDeleteRelayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteRelayer) XXX_Merge(src proto.Message)
- func (m *MsgDeleteRelayer) XXX_Size() int
- func (m *MsgDeleteRelayer) XXX_Unmarshal(b []byte) error
- type MsgDeleteRelayerResponse
- func (*MsgDeleteRelayerResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteRelayerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteRelayerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteRelayerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteRelayerResponse) ProtoMessage()
- func (m *MsgDeleteRelayerResponse) Reset()
- func (m *MsgDeleteRelayerResponse) Size() (n int)
- func (m *MsgDeleteRelayerResponse) String() string
- func (m *MsgDeleteRelayerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteRelayerResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteRelayerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteRelayerResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteRelayerResponse) XXX_Size() int
- func (m *MsgDeleteRelayerResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetThreshold
- func (*MsgSetThreshold) Descriptor() ([]byte, []int)
- func (m *MsgSetThreshold) GetArena() string
- func (m *MsgSetThreshold) GetCreator() string
- func (m *MsgSetThreshold) GetDenom() string
- func (msg *MsgSetThreshold) GetSignBytes() []byte
- func (msg *MsgSetThreshold) GetSigners() []sdk.AccAddress
- func (m *MsgSetThreshold) GetValue() uint32
- func (m *MsgSetThreshold) Marshal() (dAtA []byte, err error)
- func (m *MsgSetThreshold) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetThreshold) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetThreshold) ProtoMessage()
- func (m *MsgSetThreshold) Reset()
- func (msg *MsgSetThreshold) Route() string
- func (m *MsgSetThreshold) Size() (n int)
- func (m *MsgSetThreshold) String() string
- func (msg *MsgSetThreshold) Type() string
- func (m *MsgSetThreshold) Unmarshal(dAtA []byte) error
- func (msg *MsgSetThreshold) ValidateBasic() error
- func (m *MsgSetThreshold) XXX_DiscardUnknown()
- func (m *MsgSetThreshold) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetThreshold) XXX_Merge(src proto.Message)
- func (m *MsgSetThreshold) XXX_Size() int
- func (m *MsgSetThreshold) XXX_Unmarshal(b []byte) error
- type MsgSetThresholdResponse
- func (*MsgSetThresholdResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetThresholdResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetThresholdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetThresholdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetThresholdResponse) ProtoMessage()
- func (m *MsgSetThresholdResponse) Reset()
- func (m *MsgSetThresholdResponse) Size() (n int)
- func (m *MsgSetThresholdResponse) String() string
- func (m *MsgSetThresholdResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetThresholdResponse) XXX_DiscardUnknown()
- func (m *MsgSetThresholdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetThresholdResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetThresholdResponse) XXX_Size() int
- func (m *MsgSetThresholdResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryRelayersRequest
- func (*QueryRelayersRequest) Descriptor() ([]byte, []int)
- func (m *QueryRelayersRequest) GetArena() string
- func (m *QueryRelayersRequest) GetDenom() string
- func (m *QueryRelayersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRelayersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRelayersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRelayersRequest) ProtoMessage()
- func (m *QueryRelayersRequest) Reset()
- func (m *QueryRelayersRequest) Size() (n int)
- func (m *QueryRelayersRequest) String() string
- func (m *QueryRelayersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRelayersRequest) XXX_DiscardUnknown()
- func (m *QueryRelayersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRelayersRequest) XXX_Merge(src proto.Message)
- func (m *QueryRelayersRequest) XXX_Size() int
- func (m *QueryRelayersRequest) XXX_Unmarshal(b []byte) error
- type QueryRelayersResponse
- func (*QueryRelayersResponse) Descriptor() ([]byte, []int)
- func (m *QueryRelayersResponse) GetRelayers() []string
- func (m *QueryRelayersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRelayersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRelayersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRelayersResponse) ProtoMessage()
- func (m *QueryRelayersResponse) Reset()
- func (m *QueryRelayersResponse) Size() (n int)
- func (m *QueryRelayersResponse) String() string
- func (m *QueryRelayersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRelayersResponse) XXX_DiscardUnknown()
- func (m *QueryRelayersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRelayersResponse) XXX_Merge(src proto.Message)
- func (m *QueryRelayersResponse) XXX_Size() int
- func (m *QueryRelayersResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryThresholdRequest
- func (*QueryThresholdRequest) Descriptor() ([]byte, []int)
- func (m *QueryThresholdRequest) GetArena() string
- func (m *QueryThresholdRequest) GetDenom() string
- func (m *QueryThresholdRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryThresholdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryThresholdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryThresholdRequest) ProtoMessage()
- func (m *QueryThresholdRequest) Reset()
- func (m *QueryThresholdRequest) Size() (n int)
- func (m *QueryThresholdRequest) String() string
- func (m *QueryThresholdRequest) Unmarshal(dAtA []byte) error
- func (m *QueryThresholdRequest) XXX_DiscardUnknown()
- func (m *QueryThresholdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryThresholdRequest) XXX_Merge(src proto.Message)
- func (m *QueryThresholdRequest) XXX_Size() int
- func (m *QueryThresholdRequest) XXX_Unmarshal(b []byte) error
- type QueryThresholdResponse
- func (*QueryThresholdResponse) Descriptor() ([]byte, []int)
- func (m *QueryThresholdResponse) GetThreshold() uint32
- func (m *QueryThresholdResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryThresholdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryThresholdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryThresholdResponse) ProtoMessage()
- func (m *QueryThresholdResponse) Reset()
- func (m *QueryThresholdResponse) Size() (n int)
- func (m *QueryThresholdResponse) String() string
- func (m *QueryThresholdResponse) Unmarshal(dAtA []byte) error
- func (m *QueryThresholdResponse) XXX_DiscardUnknown()
- func (m *QueryThresholdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryThresholdResponse) XXX_Merge(src proto.Message)
- func (m *QueryThresholdResponse) XXX_Size() int
- func (m *QueryThresholdResponse) XXX_Unmarshal(b []byte) error
- type Relayer
- func (*Relayer) Descriptor() ([]byte, []int)
- func (m *Relayer) GetAddrs() []string
- func (m *Relayer) GetArena() string
- func (m *Relayer) GetDenom() string
- func (m *Relayer) Marshal() (dAtA []byte, err error)
- func (m *Relayer) MarshalTo(dAtA []byte) (int, error)
- func (m *Relayer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Relayer) ProtoMessage()
- func (m *Relayer) Reset()
- func (m *Relayer) Size() (n int)
- func (m *Relayer) String() string
- func (m *Relayer) Unmarshal(dAtA []byte) error
- func (m *Relayer) XXX_DiscardUnknown()
- func (m *Relayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Relayer) XXX_Merge(src proto.Message)
- func (m *Relayer) XXX_Size() int
- func (m *Relayer) XXX_Unmarshal(b []byte) error
- type SudoKeeper
- type Threshold
- func (*Threshold) Descriptor() ([]byte, []int)
- func (m *Threshold) GetArena() string
- func (m *Threshold) GetDenom() string
- func (m *Threshold) GetValue() uint32
- func (m *Threshold) Marshal() (dAtA []byte, err error)
- func (m *Threshold) MarshalTo(dAtA []byte) (int, error)
- func (m *Threshold) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Threshold) ProtoMessage()
- func (m *Threshold) Reset()
- func (m *Threshold) Size() (n int)
- func (m *Threshold) String() string
- func (m *Threshold) Unmarshal(dAtA []byte) error
- func (m *Threshold) XXX_DiscardUnknown()
- func (m *Threshold) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Threshold) XXX_Merge(src proto.Message)
- func (m *Threshold) XXX_Size() int
- func (m *Threshold) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddRelayer(ctx context.Context, req *MsgAddRelayer) (*MsgAddRelayerResponse, error)
- func (*UnimplementedMsgServer) DeleteRelayer(ctx context.Context, req *MsgDeleteRelayer) (*MsgDeleteRelayerResponse, error)
- func (*UnimplementedMsgServer) SetThreshold(ctx context.Context, req *MsgSetThreshold) (*MsgSetThresholdResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( EventTypeRelayerAdded = "relayer_added" EventTypeRelayerRemoved = "relayer_removed" EventTypeThresholdUpdated = "threshold_updated" AttributeKeyArena = "arena" AttributeKeyDenom = "denom" AttributeKeyRelayer = "relayer" AttributeKeyLastThreshold = "last_threshold" AttributeKeyCurrentThreshold = "current_threshold" )
sudo module event types
const ( // ModuleName defines the module name ModuleName = "relayers" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_relayers" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrRelayerAlreadySet = sdkerrors.Register(ModuleName, 1, "relayer already set error") ErrRelayerNotFound = sdkerrors.Register(ModuleName, 2, "relayer not found error") ErrThresholdNotFound = sdkerrors.Register(ModuleName, 3, "threshold not found error") ErrProposerNotRelayer = sdkerrors.Register(ModuleName, 4, "proposer is not a relayer error") ErrAlreadyVoted = sdkerrors.Register(ModuleName, 5, "already voted error") ErrThresholdTooHigh = sdkerrors.Register(ModuleName, 6, "threshold too high error") )
x/relayers module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( RelayerPrefix = []byte{0x00} RelayerCountPrefix = []byte{0x01} ThresholdPrefix = []byte{0x02} )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthRelayer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRelayer = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRelayer = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func RelayerStoreKey ¶
[prefix]+[len(arena)]+[arena]+[len(denom)]+[denom]+[len(addr)]+[addr]
Types ¶
type BankKeeper ¶
type GenesisState ¶
type GenesisState struct { Relayers []Relayer `protobuf:"bytes,1,rep,name=relayers,proto3" json:"relayers" yaml:"relayers"` Thresholds []Threshold `protobuf:"bytes,2,rep,name=thresholds,proto3" json:"thresholds" yaml:"thresholds"` }
GenesisState defines the relayers module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetRelayers ¶
func (m *GenesisState) GetRelayers() []Relayer
func (*GenesisState) GetThresholds ¶
func (m *GenesisState) GetThresholds() []Threshold
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgAddRelayer ¶
type MsgAddRelayer struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Arena string `protobuf:"bytes,2,opt,name=arena,proto3" json:"arena,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` Addresses []string `protobuf:"bytes,4,rep,name=addresses,proto3" json:"addresses,omitempty"` }
func NewMsgCreateRelayer ¶
func NewMsgCreateRelayer(creator sdk.AccAddress, arena, denom string, addresses []string) *MsgAddRelayer
func (*MsgAddRelayer) Descriptor ¶
func (*MsgAddRelayer) Descriptor() ([]byte, []int)
func (*MsgAddRelayer) GetAddresses ¶
func (m *MsgAddRelayer) GetAddresses() []string
func (*MsgAddRelayer) GetArena ¶
func (m *MsgAddRelayer) GetArena() string
func (*MsgAddRelayer) GetCreator ¶
func (m *MsgAddRelayer) GetCreator() string
func (*MsgAddRelayer) GetDenom ¶
func (m *MsgAddRelayer) GetDenom() string
func (*MsgAddRelayer) GetSignBytes ¶
func (msg *MsgAddRelayer) GetSignBytes() []byte
func (*MsgAddRelayer) GetSigners ¶
func (msg *MsgAddRelayer) GetSigners() []sdk.AccAddress
func (*MsgAddRelayer) Marshal ¶
func (m *MsgAddRelayer) Marshal() (dAtA []byte, err error)
func (*MsgAddRelayer) MarshalToSizedBuffer ¶
func (m *MsgAddRelayer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddRelayer) ProtoMessage ¶
func (*MsgAddRelayer) ProtoMessage()
func (*MsgAddRelayer) Reset ¶
func (m *MsgAddRelayer) Reset()
func (*MsgAddRelayer) Route ¶
func (msg *MsgAddRelayer) Route() string
func (*MsgAddRelayer) Size ¶
func (m *MsgAddRelayer) Size() (n int)
func (*MsgAddRelayer) String ¶
func (m *MsgAddRelayer) String() string
func (*MsgAddRelayer) Type ¶
func (msg *MsgAddRelayer) Type() string
func (*MsgAddRelayer) Unmarshal ¶
func (m *MsgAddRelayer) Unmarshal(dAtA []byte) error
func (*MsgAddRelayer) ValidateBasic ¶
func (msg *MsgAddRelayer) ValidateBasic() error
func (*MsgAddRelayer) XXX_DiscardUnknown ¶
func (m *MsgAddRelayer) XXX_DiscardUnknown()
func (*MsgAddRelayer) XXX_Marshal ¶
func (m *MsgAddRelayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddRelayer) XXX_Merge ¶
func (m *MsgAddRelayer) XXX_Merge(src proto.Message)
func (*MsgAddRelayer) XXX_Size ¶
func (m *MsgAddRelayer) XXX_Size() int
func (*MsgAddRelayer) XXX_Unmarshal ¶
func (m *MsgAddRelayer) XXX_Unmarshal(b []byte) error
type MsgAddRelayerResponse ¶
type MsgAddRelayerResponse struct { }
func (*MsgAddRelayerResponse) Descriptor ¶
func (*MsgAddRelayerResponse) Descriptor() ([]byte, []int)
func (*MsgAddRelayerResponse) Marshal ¶
func (m *MsgAddRelayerResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddRelayerResponse) MarshalTo ¶
func (m *MsgAddRelayerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddRelayerResponse) MarshalToSizedBuffer ¶
func (m *MsgAddRelayerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddRelayerResponse) ProtoMessage ¶
func (*MsgAddRelayerResponse) ProtoMessage()
func (*MsgAddRelayerResponse) Reset ¶
func (m *MsgAddRelayerResponse) Reset()
func (*MsgAddRelayerResponse) Size ¶
func (m *MsgAddRelayerResponse) Size() (n int)
func (*MsgAddRelayerResponse) String ¶
func (m *MsgAddRelayerResponse) String() string
func (*MsgAddRelayerResponse) Unmarshal ¶
func (m *MsgAddRelayerResponse) Unmarshal(dAtA []byte) error
func (*MsgAddRelayerResponse) XXX_DiscardUnknown ¶
func (m *MsgAddRelayerResponse) XXX_DiscardUnknown()
func (*MsgAddRelayerResponse) XXX_Marshal ¶
func (m *MsgAddRelayerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddRelayerResponse) XXX_Merge ¶
func (m *MsgAddRelayerResponse) XXX_Merge(src proto.Message)
func (*MsgAddRelayerResponse) XXX_Size ¶
func (m *MsgAddRelayerResponse) XXX_Size() int
func (*MsgAddRelayerResponse) XXX_Unmarshal ¶
func (m *MsgAddRelayerResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { AddRelayer(ctx context.Context, in *MsgAddRelayer, opts ...grpc.CallOption) (*MsgAddRelayerResponse, error) DeleteRelayer(ctx context.Context, in *MsgDeleteRelayer, opts ...grpc.CallOption) (*MsgDeleteRelayerResponse, error) SetThreshold(ctx context.Context, in *MsgSetThreshold, opts ...grpc.CallOption) (*MsgSetThresholdResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgDeleteRelayer ¶
type MsgDeleteRelayer struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Arena string `protobuf:"bytes,2,opt,name=arena,proto3" json:"arena,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` }
func NewMsgDeleteRelayer ¶
func NewMsgDeleteRelayer(creator sdk.AccAddress, arena, denom string, address sdk.AccAddress) *MsgDeleteRelayer
func (*MsgDeleteRelayer) Descriptor ¶
func (*MsgDeleteRelayer) Descriptor() ([]byte, []int)
func (*MsgDeleteRelayer) GetAddress ¶
func (m *MsgDeleteRelayer) GetAddress() string
func (*MsgDeleteRelayer) GetArena ¶
func (m *MsgDeleteRelayer) GetArena() string
func (*MsgDeleteRelayer) GetCreator ¶
func (m *MsgDeleteRelayer) GetCreator() string
func (*MsgDeleteRelayer) GetDenom ¶
func (m *MsgDeleteRelayer) GetDenom() string
func (*MsgDeleteRelayer) GetSignBytes ¶
func (msg *MsgDeleteRelayer) GetSignBytes() []byte
func (*MsgDeleteRelayer) GetSigners ¶
func (msg *MsgDeleteRelayer) GetSigners() []sdk.AccAddress
func (*MsgDeleteRelayer) Marshal ¶
func (m *MsgDeleteRelayer) Marshal() (dAtA []byte, err error)
func (*MsgDeleteRelayer) MarshalToSizedBuffer ¶
func (m *MsgDeleteRelayer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteRelayer) ProtoMessage ¶
func (*MsgDeleteRelayer) ProtoMessage()
func (*MsgDeleteRelayer) Reset ¶
func (m *MsgDeleteRelayer) Reset()
func (*MsgDeleteRelayer) Route ¶
func (msg *MsgDeleteRelayer) Route() string
func (*MsgDeleteRelayer) Size ¶
func (m *MsgDeleteRelayer) Size() (n int)
func (*MsgDeleteRelayer) String ¶
func (m *MsgDeleteRelayer) String() string
func (*MsgDeleteRelayer) Type ¶
func (msg *MsgDeleteRelayer) Type() string
func (*MsgDeleteRelayer) Unmarshal ¶
func (m *MsgDeleteRelayer) Unmarshal(dAtA []byte) error
func (*MsgDeleteRelayer) ValidateBasic ¶
func (msg *MsgDeleteRelayer) ValidateBasic() error
func (*MsgDeleteRelayer) XXX_DiscardUnknown ¶
func (m *MsgDeleteRelayer) XXX_DiscardUnknown()
func (*MsgDeleteRelayer) XXX_Marshal ¶
func (m *MsgDeleteRelayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteRelayer) XXX_Merge ¶
func (m *MsgDeleteRelayer) XXX_Merge(src proto.Message)
func (*MsgDeleteRelayer) XXX_Size ¶
func (m *MsgDeleteRelayer) XXX_Size() int
func (*MsgDeleteRelayer) XXX_Unmarshal ¶
func (m *MsgDeleteRelayer) XXX_Unmarshal(b []byte) error
type MsgDeleteRelayerResponse ¶
type MsgDeleteRelayerResponse struct { }
func (*MsgDeleteRelayerResponse) Descriptor ¶
func (*MsgDeleteRelayerResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteRelayerResponse) Marshal ¶
func (m *MsgDeleteRelayerResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteRelayerResponse) MarshalTo ¶
func (m *MsgDeleteRelayerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteRelayerResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteRelayerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteRelayerResponse) ProtoMessage ¶
func (*MsgDeleteRelayerResponse) ProtoMessage()
func (*MsgDeleteRelayerResponse) Reset ¶
func (m *MsgDeleteRelayerResponse) Reset()
func (*MsgDeleteRelayerResponse) Size ¶
func (m *MsgDeleteRelayerResponse) Size() (n int)
func (*MsgDeleteRelayerResponse) String ¶
func (m *MsgDeleteRelayerResponse) String() string
func (*MsgDeleteRelayerResponse) Unmarshal ¶
func (m *MsgDeleteRelayerResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteRelayerResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteRelayerResponse) XXX_DiscardUnknown()
func (*MsgDeleteRelayerResponse) XXX_Marshal ¶
func (m *MsgDeleteRelayerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteRelayerResponse) XXX_Merge ¶
func (m *MsgDeleteRelayerResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteRelayerResponse) XXX_Size ¶
func (m *MsgDeleteRelayerResponse) XXX_Size() int
func (*MsgDeleteRelayerResponse) XXX_Unmarshal ¶
func (m *MsgDeleteRelayerResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { AddRelayer(context.Context, *MsgAddRelayer) (*MsgAddRelayerResponse, error) DeleteRelayer(context.Context, *MsgDeleteRelayer) (*MsgDeleteRelayerResponse, error) SetThreshold(context.Context, *MsgSetThreshold) (*MsgSetThresholdResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetThreshold ¶
type MsgSetThreshold struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Arena string `protobuf:"bytes,2,opt,name=arena,proto3" json:"arena,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` Value uint32 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` }
func NewMsgSetThreshold ¶
func NewMsgSetThreshold(creator sdk.AccAddress, arena, denom string, value uint32) *MsgSetThreshold
func (*MsgSetThreshold) Descriptor ¶
func (*MsgSetThreshold) Descriptor() ([]byte, []int)
func (*MsgSetThreshold) GetArena ¶
func (m *MsgSetThreshold) GetArena() string
func (*MsgSetThreshold) GetCreator ¶
func (m *MsgSetThreshold) GetCreator() string
func (*MsgSetThreshold) GetDenom ¶
func (m *MsgSetThreshold) GetDenom() string
func (*MsgSetThreshold) GetSignBytes ¶
func (msg *MsgSetThreshold) GetSignBytes() []byte
func (*MsgSetThreshold) GetSigners ¶
func (msg *MsgSetThreshold) GetSigners() []sdk.AccAddress
func (*MsgSetThreshold) GetValue ¶
func (m *MsgSetThreshold) GetValue() uint32
func (*MsgSetThreshold) Marshal ¶
func (m *MsgSetThreshold) Marshal() (dAtA []byte, err error)
func (*MsgSetThreshold) MarshalToSizedBuffer ¶
func (m *MsgSetThreshold) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetThreshold) ProtoMessage ¶
func (*MsgSetThreshold) ProtoMessage()
func (*MsgSetThreshold) Reset ¶
func (m *MsgSetThreshold) Reset()
func (*MsgSetThreshold) Route ¶
func (msg *MsgSetThreshold) Route() string
func (*MsgSetThreshold) Size ¶
func (m *MsgSetThreshold) Size() (n int)
func (*MsgSetThreshold) String ¶
func (m *MsgSetThreshold) String() string
func (*MsgSetThreshold) Type ¶
func (msg *MsgSetThreshold) Type() string
func (*MsgSetThreshold) Unmarshal ¶
func (m *MsgSetThreshold) Unmarshal(dAtA []byte) error
func (*MsgSetThreshold) ValidateBasic ¶
func (msg *MsgSetThreshold) ValidateBasic() error
func (*MsgSetThreshold) XXX_DiscardUnknown ¶
func (m *MsgSetThreshold) XXX_DiscardUnknown()
func (*MsgSetThreshold) XXX_Marshal ¶
func (m *MsgSetThreshold) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetThreshold) XXX_Merge ¶
func (m *MsgSetThreshold) XXX_Merge(src proto.Message)
func (*MsgSetThreshold) XXX_Size ¶
func (m *MsgSetThreshold) XXX_Size() int
func (*MsgSetThreshold) XXX_Unmarshal ¶
func (m *MsgSetThreshold) XXX_Unmarshal(b []byte) error
type MsgSetThresholdResponse ¶
type MsgSetThresholdResponse struct { }
func (*MsgSetThresholdResponse) Descriptor ¶
func (*MsgSetThresholdResponse) Descriptor() ([]byte, []int)
func (*MsgSetThresholdResponse) Marshal ¶
func (m *MsgSetThresholdResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetThresholdResponse) MarshalTo ¶
func (m *MsgSetThresholdResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetThresholdResponse) MarshalToSizedBuffer ¶
func (m *MsgSetThresholdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetThresholdResponse) ProtoMessage ¶
func (*MsgSetThresholdResponse) ProtoMessage()
func (*MsgSetThresholdResponse) Reset ¶
func (m *MsgSetThresholdResponse) Reset()
func (*MsgSetThresholdResponse) Size ¶
func (m *MsgSetThresholdResponse) Size() (n int)
func (*MsgSetThresholdResponse) String ¶
func (m *MsgSetThresholdResponse) String() string
func (*MsgSetThresholdResponse) Unmarshal ¶
func (m *MsgSetThresholdResponse) Unmarshal(dAtA []byte) error
func (*MsgSetThresholdResponse) XXX_DiscardUnknown ¶
func (m *MsgSetThresholdResponse) XXX_DiscardUnknown()
func (*MsgSetThresholdResponse) XXX_Marshal ¶
func (m *MsgSetThresholdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetThresholdResponse) XXX_Merge ¶
func (m *MsgSetThresholdResponse) XXX_Merge(src proto.Message)
func (*MsgSetThresholdResponse) XXX_Size ¶
func (m *MsgSetThresholdResponse) XXX_Size() int
func (*MsgSetThresholdResponse) XXX_Unmarshal ¶
func (m *MsgSetThresholdResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Queries a list of relayersByDenom items. Relayers(ctx context.Context, in *QueryRelayersRequest, opts ...grpc.CallOption) (*QueryRelayersResponse, error) // Queries a threshold by denom. Threshold(ctx context.Context, in *QueryThresholdRequest, opts ...grpc.CallOption) (*QueryThresholdResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryRelayersRequest ¶
type QueryRelayersRequest struct { Arena string `protobuf:"bytes,1,opt,name=arena,proto3" json:"arena,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
func (*QueryRelayersRequest) Descriptor ¶
func (*QueryRelayersRequest) Descriptor() ([]byte, []int)
func (*QueryRelayersRequest) GetArena ¶
func (m *QueryRelayersRequest) GetArena() string
func (*QueryRelayersRequest) GetDenom ¶
func (m *QueryRelayersRequest) GetDenom() string
func (*QueryRelayersRequest) Marshal ¶
func (m *QueryRelayersRequest) Marshal() (dAtA []byte, err error)
func (*QueryRelayersRequest) MarshalTo ¶
func (m *QueryRelayersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRelayersRequest) MarshalToSizedBuffer ¶
func (m *QueryRelayersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRelayersRequest) ProtoMessage ¶
func (*QueryRelayersRequest) ProtoMessage()
func (*QueryRelayersRequest) Reset ¶
func (m *QueryRelayersRequest) Reset()
func (*QueryRelayersRequest) Size ¶
func (m *QueryRelayersRequest) Size() (n int)
func (*QueryRelayersRequest) String ¶
func (m *QueryRelayersRequest) String() string
func (*QueryRelayersRequest) Unmarshal ¶
func (m *QueryRelayersRequest) Unmarshal(dAtA []byte) error
func (*QueryRelayersRequest) XXX_DiscardUnknown ¶
func (m *QueryRelayersRequest) XXX_DiscardUnknown()
func (*QueryRelayersRequest) XXX_Marshal ¶
func (m *QueryRelayersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRelayersRequest) XXX_Merge ¶
func (m *QueryRelayersRequest) XXX_Merge(src proto.Message)
func (*QueryRelayersRequest) XXX_Size ¶
func (m *QueryRelayersRequest) XXX_Size() int
func (*QueryRelayersRequest) XXX_Unmarshal ¶
func (m *QueryRelayersRequest) XXX_Unmarshal(b []byte) error
type QueryRelayersResponse ¶
type QueryRelayersResponse struct {
Relayers []string `protobuf:"bytes,1,rep,name=relayers,proto3" json:"relayers,omitempty"`
}
func (*QueryRelayersResponse) Descriptor ¶
func (*QueryRelayersResponse) Descriptor() ([]byte, []int)
func (*QueryRelayersResponse) GetRelayers ¶
func (m *QueryRelayersResponse) GetRelayers() []string
func (*QueryRelayersResponse) Marshal ¶
func (m *QueryRelayersResponse) Marshal() (dAtA []byte, err error)
func (*QueryRelayersResponse) MarshalTo ¶
func (m *QueryRelayersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRelayersResponse) MarshalToSizedBuffer ¶
func (m *QueryRelayersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRelayersResponse) ProtoMessage ¶
func (*QueryRelayersResponse) ProtoMessage()
func (*QueryRelayersResponse) Reset ¶
func (m *QueryRelayersResponse) Reset()
func (*QueryRelayersResponse) Size ¶
func (m *QueryRelayersResponse) Size() (n int)
func (*QueryRelayersResponse) String ¶
func (m *QueryRelayersResponse) String() string
func (*QueryRelayersResponse) Unmarshal ¶
func (m *QueryRelayersResponse) Unmarshal(dAtA []byte) error
func (*QueryRelayersResponse) XXX_DiscardUnknown ¶
func (m *QueryRelayersResponse) XXX_DiscardUnknown()
func (*QueryRelayersResponse) XXX_Marshal ¶
func (m *QueryRelayersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRelayersResponse) XXX_Merge ¶
func (m *QueryRelayersResponse) XXX_Merge(src proto.Message)
func (*QueryRelayersResponse) XXX_Size ¶
func (m *QueryRelayersResponse) XXX_Size() int
func (*QueryRelayersResponse) XXX_Unmarshal ¶
func (m *QueryRelayersResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Queries a list of relayersByDenom items. Relayers(context.Context, *QueryRelayersRequest) (*QueryRelayersResponse, error) // Queries a threshold by denom. Threshold(context.Context, *QueryThresholdRequest) (*QueryThresholdResponse, error) }
QueryServer is the server API for Query service.
type QueryThresholdRequest ¶
type QueryThresholdRequest struct { Arena string `protobuf:"bytes,1,opt,name=arena,proto3" json:"arena,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
func (*QueryThresholdRequest) Descriptor ¶
func (*QueryThresholdRequest) Descriptor() ([]byte, []int)
func (*QueryThresholdRequest) GetArena ¶
func (m *QueryThresholdRequest) GetArena() string
func (*QueryThresholdRequest) GetDenom ¶
func (m *QueryThresholdRequest) GetDenom() string
func (*QueryThresholdRequest) Marshal ¶
func (m *QueryThresholdRequest) Marshal() (dAtA []byte, err error)
func (*QueryThresholdRequest) MarshalTo ¶
func (m *QueryThresholdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryThresholdRequest) MarshalToSizedBuffer ¶
func (m *QueryThresholdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryThresholdRequest) ProtoMessage ¶
func (*QueryThresholdRequest) ProtoMessage()
func (*QueryThresholdRequest) Reset ¶
func (m *QueryThresholdRequest) Reset()
func (*QueryThresholdRequest) Size ¶
func (m *QueryThresholdRequest) Size() (n int)
func (*QueryThresholdRequest) String ¶
func (m *QueryThresholdRequest) String() string
func (*QueryThresholdRequest) Unmarshal ¶
func (m *QueryThresholdRequest) Unmarshal(dAtA []byte) error
func (*QueryThresholdRequest) XXX_DiscardUnknown ¶
func (m *QueryThresholdRequest) XXX_DiscardUnknown()
func (*QueryThresholdRequest) XXX_Marshal ¶
func (m *QueryThresholdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryThresholdRequest) XXX_Merge ¶
func (m *QueryThresholdRequest) XXX_Merge(src proto.Message)
func (*QueryThresholdRequest) XXX_Size ¶
func (m *QueryThresholdRequest) XXX_Size() int
func (*QueryThresholdRequest) XXX_Unmarshal ¶
func (m *QueryThresholdRequest) XXX_Unmarshal(b []byte) error
type QueryThresholdResponse ¶
type QueryThresholdResponse struct {
Threshold uint32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"`
}
func (*QueryThresholdResponse) Descriptor ¶
func (*QueryThresholdResponse) Descriptor() ([]byte, []int)
func (*QueryThresholdResponse) GetThreshold ¶
func (m *QueryThresholdResponse) GetThreshold() uint32
func (*QueryThresholdResponse) Marshal ¶
func (m *QueryThresholdResponse) Marshal() (dAtA []byte, err error)
func (*QueryThresholdResponse) MarshalTo ¶
func (m *QueryThresholdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryThresholdResponse) MarshalToSizedBuffer ¶
func (m *QueryThresholdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryThresholdResponse) ProtoMessage ¶
func (*QueryThresholdResponse) ProtoMessage()
func (*QueryThresholdResponse) Reset ¶
func (m *QueryThresholdResponse) Reset()
func (*QueryThresholdResponse) Size ¶
func (m *QueryThresholdResponse) Size() (n int)
func (*QueryThresholdResponse) String ¶
func (m *QueryThresholdResponse) String() string
func (*QueryThresholdResponse) Unmarshal ¶
func (m *QueryThresholdResponse) Unmarshal(dAtA []byte) error
func (*QueryThresholdResponse) XXX_DiscardUnknown ¶
func (m *QueryThresholdResponse) XXX_DiscardUnknown()
func (*QueryThresholdResponse) XXX_Marshal ¶
func (m *QueryThresholdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryThresholdResponse) XXX_Merge ¶
func (m *QueryThresholdResponse) XXX_Merge(src proto.Message)
func (*QueryThresholdResponse) XXX_Size ¶
func (m *QueryThresholdResponse) XXX_Size() int
func (*QueryThresholdResponse) XXX_Unmarshal ¶
func (m *QueryThresholdResponse) XXX_Unmarshal(b []byte) error
type Relayer ¶
type Relayer struct { Arena string `protobuf:"bytes,1,opt,name=arena,proto3" json:"arena,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Addrs []string `protobuf:"bytes,3,rep,name=addrs,proto3" json:"addrs,omitempty"` }
func (*Relayer) Descriptor ¶
func (*Relayer) MarshalToSizedBuffer ¶
func (*Relayer) ProtoMessage ¶
func (*Relayer) ProtoMessage()
func (*Relayer) XXX_DiscardUnknown ¶
func (m *Relayer) XXX_DiscardUnknown()
func (*Relayer) XXX_Marshal ¶
func (*Relayer) XXX_Unmarshal ¶
type Threshold ¶
type Threshold struct { Arena string `protobuf:"bytes,1,opt,name=arena,proto3" json:"arena,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Value uint32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` }
func (*Threshold) Descriptor ¶
func (*Threshold) MarshalToSizedBuffer ¶
func (*Threshold) ProtoMessage ¶
func (*Threshold) ProtoMessage()
func (*Threshold) XXX_DiscardUnknown ¶
func (m *Threshold) XXX_DiscardUnknown()
func (*Threshold) XXX_Marshal ¶
func (*Threshold) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddRelayer ¶
func (*UnimplementedMsgServer) AddRelayer(ctx context.Context, req *MsgAddRelayer) (*MsgAddRelayerResponse, error)
func (*UnimplementedMsgServer) DeleteRelayer ¶
func (*UnimplementedMsgServer) DeleteRelayer(ctx context.Context, req *MsgDeleteRelayer) (*MsgDeleteRelayerResponse, error)
func (*UnimplementedMsgServer) SetThreshold ¶
func (*UnimplementedMsgServer) SetThreshold(ctx context.Context, req *MsgSetThreshold) (*MsgSetThresholdResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Relayers ¶
func (*UnimplementedQueryServer) Relayers(ctx context.Context, req *QueryRelayersRequest) (*QueryRelayersResponse, error)
func (*UnimplementedQueryServer) Threshold ¶
func (*UnimplementedQueryServer) Threshold(ctx context.Context, req *QueryThresholdRequest) (*QueryThresholdResponse, error)