Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- 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)
- type AccountKeeper
- type BankKeeper
- type DVMKeeper
- type EventBetConstraints
- func (*EventBetConstraints) Descriptor() ([]byte, []int)
- func (m *EventBetConstraints) GetBetFee() types.Coin
- func (m *EventBetConstraints) Marshal() (dAtA []byte, err error)
- func (m *EventBetConstraints) MarshalTo(dAtA []byte) (int, error)
- func (m *EventBetConstraints) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventBetConstraints) ProtoMessage()
- func (m *EventBetConstraints) Reset()
- func (m *EventBetConstraints) Size() (n int)
- func (m *EventBetConstraints) String() string
- func (m *EventBetConstraints) Unmarshal(dAtA []byte) error
- func (m *EventBetConstraints) XXX_DiscardUnknown()
- func (m *EventBetConstraints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventBetConstraints) XXX_Merge(src proto.Message)
- func (m *EventBetConstraints) XXX_Size() int
- func (m *EventBetConstraints) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSportEventList() []SportEvent
- 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 MsgAddSportEvent
- func (*MsgAddSportEvent) Descriptor() ([]byte, []int)
- func (m *MsgAddSportEvent) GetCreator() string
- func (msg *MsgAddSportEvent) GetSignBytes() []byte
- func (msg *MsgAddSportEvent) GetSigners() []sdk.AccAddress
- func (m *MsgAddSportEvent) GetTicket() string
- func (m *MsgAddSportEvent) Marshal() (dAtA []byte, err error)
- func (m *MsgAddSportEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddSportEvent) ProtoMessage()
- func (m *MsgAddSportEvent) Reset()
- func (msg *MsgAddSportEvent) Route() string
- func (m *MsgAddSportEvent) Size() (n int)
- func (m *MsgAddSportEvent) String() string
- func (msg *MsgAddSportEvent) Type() string
- func (m *MsgAddSportEvent) Unmarshal(dAtA []byte) error
- func (msg *MsgAddSportEvent) ValidateBasic() error
- func (m *MsgAddSportEvent) XXX_DiscardUnknown()
- func (m *MsgAddSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddSportEvent) XXX_Merge(src proto.Message)
- func (m *MsgAddSportEvent) XXX_Size() int
- func (m *MsgAddSportEvent) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgResolveSportEvent
- func (*MsgResolveSportEvent) Descriptor() ([]byte, []int)
- func (m *MsgResolveSportEvent) GetCreator() string
- func (msg *MsgResolveSportEvent) GetSignBytes() []byte
- func (msg *MsgResolveSportEvent) GetSigners() []sdk.AccAddress
- func (m *MsgResolveSportEvent) GetTicket() string
- func (m *MsgResolveSportEvent) Marshal() (dAtA []byte, err error)
- func (m *MsgResolveSportEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgResolveSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgResolveSportEvent) ProtoMessage()
- func (m *MsgResolveSportEvent) Reset()
- func (msg *MsgResolveSportEvent) Route() string
- func (m *MsgResolveSportEvent) Size() (n int)
- func (m *MsgResolveSportEvent) String() string
- func (msg *MsgResolveSportEvent) Type() string
- func (m *MsgResolveSportEvent) Unmarshal(dAtA []byte) error
- func (msg *MsgResolveSportEvent) ValidateBasic() error
- func (m *MsgResolveSportEvent) XXX_DiscardUnknown()
- func (m *MsgResolveSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgResolveSportEvent) XXX_Merge(src proto.Message)
- func (m *MsgResolveSportEvent) XXX_Size() int
- func (m *MsgResolveSportEvent) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateSportEvent
- func (*MsgUpdateSportEvent) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSportEvent) GetCreator() string
- func (msg *MsgUpdateSportEvent) GetSignBytes() []byte
- func (msg *MsgUpdateSportEvent) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateSportEvent) GetTicket() string
- func (m *MsgUpdateSportEvent) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSportEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSportEvent) ProtoMessage()
- func (m *MsgUpdateSportEvent) Reset()
- func (msg *MsgUpdateSportEvent) Route() string
- func (m *MsgUpdateSportEvent) Size() (n int)
- func (m *MsgUpdateSportEvent) String() string
- func (msg *MsgUpdateSportEvent) Type() string
- func (m *MsgUpdateSportEvent) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateSportEvent) ValidateBasic() error
- func (m *MsgUpdateSportEvent) XXX_DiscardUnknown()
- func (m *MsgUpdateSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSportEvent) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSportEvent) XXX_Size() int
- func (m *MsgUpdateSportEvent) 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() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p 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 QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySportEventRequest
- func (*QuerySportEventRequest) Descriptor() ([]byte, []int)
- func (m *QuerySportEventRequest) GetUid() string
- func (m *QuerySportEventRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventRequest) ProtoMessage()
- func (m *QuerySportEventRequest) Reset()
- func (m *QuerySportEventRequest) Size() (n int)
- func (m *QuerySportEventRequest) String() string
- func (m *QuerySportEventRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventRequest) XXX_DiscardUnknown()
- func (m *QuerySportEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventRequest) XXX_Merge(src proto.Message)
- func (m *QuerySportEventRequest) XXX_Size() int
- func (m *QuerySportEventRequest) XXX_Unmarshal(b []byte) error
- type QuerySportEventResponse
- func (*QuerySportEventResponse) Descriptor() ([]byte, []int)
- func (m *QuerySportEventResponse) GetSportEvent() SportEvent
- func (m *QuerySportEventResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventResponse) ProtoMessage()
- func (m *QuerySportEventResponse) Reset()
- func (m *QuerySportEventResponse) Size() (n int)
- func (m *QuerySportEventResponse) String() string
- func (m *QuerySportEventResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventResponse) XXX_DiscardUnknown()
- func (m *QuerySportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventResponse) XXX_Merge(src proto.Message)
- func (m *QuerySportEventResponse) XXX_Size() int
- func (m *QuerySportEventResponse) XXX_Unmarshal(b []byte) error
- type QuerySportEventsByUIDsRequest
- func (*QuerySportEventsByUIDsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySportEventsByUIDsRequest) GetUids() []string
- func (m *QuerySportEventsByUIDsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventsByUIDsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventsByUIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventsByUIDsRequest) ProtoMessage()
- func (m *QuerySportEventsByUIDsRequest) Reset()
- func (m *QuerySportEventsByUIDsRequest) Size() (n int)
- func (m *QuerySportEventsByUIDsRequest) String() string
- func (m *QuerySportEventsByUIDsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventsByUIDsRequest) XXX_DiscardUnknown()
- func (m *QuerySportEventsByUIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventsByUIDsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySportEventsByUIDsRequest) XXX_Size() int
- func (m *QuerySportEventsByUIDsRequest) XXX_Unmarshal(b []byte) error
- type QuerySportEventsByUIDsResponse
- func (*QuerySportEventsByUIDsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySportEventsByUIDsResponse) GetFailedEvents() []string
- func (m *QuerySportEventsByUIDsResponse) GetSportEvents() []SportEvent
- func (m *QuerySportEventsByUIDsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventsByUIDsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventsByUIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventsByUIDsResponse) ProtoMessage()
- func (m *QuerySportEventsByUIDsResponse) Reset()
- func (m *QuerySportEventsByUIDsResponse) Size() (n int)
- func (m *QuerySportEventsByUIDsResponse) String() string
- func (m *QuerySportEventsByUIDsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventsByUIDsResponse) XXX_DiscardUnknown()
- func (m *QuerySportEventsByUIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventsByUIDsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySportEventsByUIDsResponse) XXX_Size() int
- func (m *QuerySportEventsByUIDsResponse) XXX_Unmarshal(b []byte) error
- type QuerySportEventsRequest
- func (*QuerySportEventsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySportEventsRequest) GetPagination() *query.PageRequest
- func (m *QuerySportEventsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventsRequest) ProtoMessage()
- func (m *QuerySportEventsRequest) Reset()
- func (m *QuerySportEventsRequest) Size() (n int)
- func (m *QuerySportEventsRequest) String() string
- func (m *QuerySportEventsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventsRequest) XXX_DiscardUnknown()
- func (m *QuerySportEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySportEventsRequest) XXX_Size() int
- func (m *QuerySportEventsRequest) XXX_Unmarshal(b []byte) error
- type QuerySportEventsResponse
- func (*QuerySportEventsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySportEventsResponse) GetPagination() *query.PageResponse
- func (m *QuerySportEventsResponse) GetSportEvent() []SportEvent
- func (m *QuerySportEventsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventsResponse) ProtoMessage()
- func (m *QuerySportEventsResponse) Reset()
- func (m *QuerySportEventsResponse) Size() (n int)
- func (m *QuerySportEventsResponse) String() string
- func (m *QuerySportEventsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventsResponse) XXX_DiscardUnknown()
- func (m *QuerySportEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySportEventsResponse) XXX_Size() int
- func (m *QuerySportEventsResponse) XXX_Unmarshal(b []byte) error
- type ResolutionEvent
- func (*ResolutionEvent) Descriptor() ([]byte, []int)
- func (m *ResolutionEvent) GetResolutionTS() uint64
- func (m *ResolutionEvent) GetStatus() SportEventStatus
- func (m *ResolutionEvent) GetUID() string
- func (m *ResolutionEvent) GetWinnerOddsUIDs() []string
- func (m *ResolutionEvent) Marshal() (dAtA []byte, err error)
- func (m *ResolutionEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *ResolutionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResolutionEvent) ProtoMessage()
- func (m *ResolutionEvent) Reset()
- func (m *ResolutionEvent) Size() (n int)
- func (m *ResolutionEvent) String() string
- func (m *ResolutionEvent) Unmarshal(dAtA []byte) error
- func (m *ResolutionEvent) XXX_DiscardUnknown()
- func (m *ResolutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResolutionEvent) XXX_Merge(src proto.Message)
- func (m *ResolutionEvent) XXX_Size() int
- func (m *ResolutionEvent) XXX_Unmarshal(b []byte) error
- type SportEvent
- func (*SportEvent) Descriptor() ([]byte, []int)
- func (m *SportEvent) GetActive() bool
- func (m *SportEvent) GetBetConstraints() *EventBetConstraints
- func (m *SportEvent) GetCreator() string
- func (m *SportEvent) GetEndTS() uint64
- func (m *SportEvent) GetOddsUIDs() []string
- func (m *SportEvent) GetResolutionTS() uint64
- func (m *SportEvent) GetStartTS() uint64
- func (m *SportEvent) GetStatus() SportEventStatus
- func (m *SportEvent) GetUID() string
- func (m *SportEvent) GetWinnerOddsUIDs() []string
- func (m *SportEvent) Marshal() (dAtA []byte, err error)
- func (m *SportEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *SportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SportEvent) ProtoMessage()
- func (m *SportEvent) Reset()
- func (m *SportEvent) Size() (n int)
- func (m *SportEvent) String() string
- func (m *SportEvent) Unmarshal(dAtA []byte) error
- func (m *SportEvent) XXX_DiscardUnknown()
- func (m *SportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SportEvent) XXX_Merge(src proto.Message)
- func (m *SportEvent) XXX_Size() int
- func (m *SportEvent) XXX_Unmarshal(b []byte) error
- type SportEventResponse
- func (*SportEventResponse) Descriptor() ([]byte, []int)
- func (m *SportEventResponse) GetData() *SportEvent
- func (m *SportEventResponse) GetError() string
- func (m *SportEventResponse) Marshal() (dAtA []byte, err error)
- func (m *SportEventResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *SportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SportEventResponse) ProtoMessage()
- func (m *SportEventResponse) Reset()
- func (m *SportEventResponse) Size() (n int)
- func (m *SportEventResponse) String() string
- func (m *SportEventResponse) Unmarshal(dAtA []byte) error
- func (m *SportEventResponse) XXX_DiscardUnknown()
- func (m *SportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SportEventResponse) XXX_Merge(src proto.Message)
- func (m *SportEventResponse) XXX_Size() int
- func (m *SportEventResponse) XXX_Unmarshal(b []byte) error
- type SportEventStatus
- type SportEventUpdateTicket
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddSportEvent(ctx context.Context, req *MsgAddSportEvent) (*SportEventResponse, error)
- func (*UnimplementedMsgServer) ResolveSportEvent(ctx context.Context, req *MsgResolveSportEvent) (*SportEventResponse, error)
- func (*UnimplementedMsgServer) UpdateSportEvent(ctx context.Context, req *MsgUpdateSportEvent) (*SportEventResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) SportEvent(ctx context.Context, req *QuerySportEventRequest) (*QuerySportEventResponse, error)
- func (*UnimplementedQueryServer) SportEvents(ctx context.Context, req *QuerySportEventsRequest) (*QuerySportEventsResponse, error)
- func (*UnimplementedQueryServer) SportEventsByUIDs(ctx context.Context, req *QuerySportEventsByUIDsRequest) (*QuerySportEventsByUIDsResponse, error)
Constants ¶
const ( AttributeKeyEventsCreator = "events_creator" AttributeKeySportEventsSuccessUID = "sport_events_success_uid" AttributeKeySportEventsFailedUID = "sport_events_failed_uid" // AttributeValueCategory is the event attribute for category as module name AttributeValueCategory = ModuleName )
const ( TypeMsgCreateSportEvents = "create_sport_events" TypeMsgUpdateSportEvents = "update_sport_events" TypeMsgResolveSportEvents = "resolve_sport_events" )
const ( // ModuleName defines the module name ModuleName = "sportevent" // 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_sportevent" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const (
// DefaultMinBetAmount is the default minimum bet amount allowed
DefaultMinBetAmount = 1000000
)
default params
Variables ¶
var ( // Amino is the legacy amino codec Amino = codec.NewLegacyAmino() // ModuleCdc is the codec of the module ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInMarshaling = sdkerrors.Register(ModuleName, 3001, "Internal error in marshaling") ErrInUnmarshaling = sdkerrors.Register(ModuleName, 3002, "Internal error in unmarshaling") ErrNoMatchingSportEvent = sdkerrors.Register(ModuleName, 3003, "Sport event not found") ErrEmptySportEventUIDs = sdkerrors.Register(ModuleName, 3004, "Sport event UID(s) must be provided") ErrCanNotBeAltered = sdkerrors.Register(ModuleName, 3006, "event cannot be altered after resolution") ErrEventAlreadyExist = sdkerrors.Register(ModuleName, 3007, "event already exist") ErrEventNotFound = sdkerrors.Register(ModuleName, 3008, "event not found") ErrEventIsNotPending = sdkerrors.Register(ModuleName, 3009, "event cannot be resolved as status is not pending") ErrInvalidWinnerOdd = sdkerrors.Register(ModuleName, 3010, "the provided winner odd doest not exist in the event odds") ErrInVerification = sdkerrors.Register(ModuleName, 3012, "error in verification process") ErrResolutionTimeLessTnStart = sdkerrors.Register(ModuleName, 3013, "resolution time cannot be less than event start time") ErrDuplicateEventsExist = sdkerrors.Register(ModuleName, 30014, "duplicate events provided") ErrOddsStatsNotFound = sdkerrors.Register(ModuleName, 30015, "odds stats not found") )
x/sportevent 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 ( // KeyEventMinBetAmount is the min bet amount param key KeyEventMinBetAmount = []byte("EventMinBetAmount") // KeyMinBetFee is the minimum bet fee param key KeyMinBetFee = []byte("EventMinBetFee") )
param keys
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSportEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSportEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSportEvent = 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 ( // DefaultMinBetFee is the default minimum bet fee amount allowed DefaultMinBetFee = sdk.NewCoin(params.DefaultBondDenom, sdk.NewInt(100000)) )
var ( // SportEventKeyPrefix is the prefix to retrieve all SportEvent SportEventKeyPrefix = []byte{0x00} )
var SportEventStatus_name = map[int32]string{
0: "STATUS_PENDING",
1: "STATUS_INVALID",
2: "STATUS_CANCELLED",
3: "STATUS_ABORTED",
4: "STATUS_RESULT_DECLARED",
}
var SportEventStatus_value = map[string]int32{
"STATUS_PENDING": 0,
"STATUS_INVALID": 1,
"STATUS_CANCELLED": 2,
"STATUS_ABORTED": 3,
"STATUS_RESULT_DECLARED": 4,
}
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
RegisterCodec registers module codec to the app codec
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the module interface types
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type DVMKeeper ¶
type DVMKeeper interface {
VerifyTicketUnmarshal(goCtx context.Context, ticket string, clm interface{}) error
}
DVMKeeper defines the expected interface needed to verify ticket and unmarshal it
type EventBetConstraints ¶
type EventBetConstraints struct { MinAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */ BetFee types.Coin `protobuf:"bytes,3,opt,name=bet_fee,json=betFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"bet_fee"` }
Bet constraints parent group for a sport event
func (*EventBetConstraints) Descriptor ¶
func (*EventBetConstraints) Descriptor() ([]byte, []int)
func (*EventBetConstraints) GetBetFee ¶
func (m *EventBetConstraints) GetBetFee() types.Coin
func (*EventBetConstraints) Marshal ¶
func (m *EventBetConstraints) Marshal() (dAtA []byte, err error)
func (*EventBetConstraints) MarshalTo ¶
func (m *EventBetConstraints) MarshalTo(dAtA []byte) (int, error)
func (*EventBetConstraints) MarshalToSizedBuffer ¶
func (m *EventBetConstraints) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventBetConstraints) ProtoMessage ¶
func (*EventBetConstraints) ProtoMessage()
func (*EventBetConstraints) Reset ¶
func (m *EventBetConstraints) Reset()
func (*EventBetConstraints) Size ¶
func (m *EventBetConstraints) Size() (n int)
func (*EventBetConstraints) String ¶
func (m *EventBetConstraints) String() string
func (*EventBetConstraints) Unmarshal ¶
func (m *EventBetConstraints) Unmarshal(dAtA []byte) error
func (*EventBetConstraints) XXX_DiscardUnknown ¶
func (m *EventBetConstraints) XXX_DiscardUnknown()
func (*EventBetConstraints) XXX_Marshal ¶
func (m *EventBetConstraints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventBetConstraints) XXX_Merge ¶
func (m *EventBetConstraints) XXX_Merge(src proto.Message)
func (*EventBetConstraints) XXX_Size ¶
func (m *EventBetConstraints) XXX_Size() int
func (*EventBetConstraints) XXX_Unmarshal ¶
func (m *EventBetConstraints) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` SportEventList []SportEvent `protobuf:"bytes,2,rep,name=sport_event_list,json=sportEventList,proto3" json:"sport_event_list"` }
GenesisState defines the sportevent module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSportEventList ¶
func (m *GenesisState) GetSportEventList() []SportEvent
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 MsgAddSportEvent ¶
type MsgAddSportEvent struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"` }
func NewMsgAddEvent ¶
func NewMsgAddEvent(creator string, ticket string) *MsgAddSportEvent
NewMsgAddEvent creates the new input for adding an event to blockchain
func (*MsgAddSportEvent) Descriptor ¶
func (*MsgAddSportEvent) Descriptor() ([]byte, []int)
func (*MsgAddSportEvent) GetCreator ¶
func (m *MsgAddSportEvent) GetCreator() string
func (*MsgAddSportEvent) GetSignBytes ¶
func (msg *MsgAddSportEvent) GetSignBytes() []byte
GetSignBytes return the marshalled bytes of the msg
func (*MsgAddSportEvent) GetSigners ¶
func (msg *MsgAddSportEvent) GetSigners() []sdk.AccAddress
GetSigners return the creators address
func (*MsgAddSportEvent) GetTicket ¶
func (m *MsgAddSportEvent) GetTicket() string
func (*MsgAddSportEvent) Marshal ¶
func (m *MsgAddSportEvent) Marshal() (dAtA []byte, err error)
func (*MsgAddSportEvent) MarshalToSizedBuffer ¶
func (m *MsgAddSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddSportEvent) ProtoMessage ¶
func (*MsgAddSportEvent) ProtoMessage()
func (*MsgAddSportEvent) Reset ¶
func (m *MsgAddSportEvent) Reset()
func (*MsgAddSportEvent) Route ¶
func (msg *MsgAddSportEvent) Route() string
Route return the message route for slashing
func (*MsgAddSportEvent) Size ¶
func (m *MsgAddSportEvent) Size() (n int)
func (*MsgAddSportEvent) String ¶
func (m *MsgAddSportEvent) String() string
func (*MsgAddSportEvent) Type ¶
func (msg *MsgAddSportEvent) Type() string
Type returns the msg add event type
func (*MsgAddSportEvent) Unmarshal ¶
func (m *MsgAddSportEvent) Unmarshal(dAtA []byte) error
func (*MsgAddSportEvent) ValidateBasic ¶
func (msg *MsgAddSportEvent) ValidateBasic() error
ValidateBasic validates the input creation event
func (*MsgAddSportEvent) XXX_DiscardUnknown ¶
func (m *MsgAddSportEvent) XXX_DiscardUnknown()
func (*MsgAddSportEvent) XXX_Marshal ¶
func (m *MsgAddSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddSportEvent) XXX_Merge ¶
func (m *MsgAddSportEvent) XXX_Merge(src proto.Message)
func (*MsgAddSportEvent) XXX_Size ¶
func (m *MsgAddSportEvent) XXX_Size() int
func (*MsgAddSportEvent) XXX_Unmarshal ¶
func (m *MsgAddSportEvent) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { AddSportEvent(ctx context.Context, in *MsgAddSportEvent, opts ...grpc.CallOption) (*SportEventResponse, error) ResolveSportEvent(ctx context.Context, in *MsgResolveSportEvent, opts ...grpc.CallOption) (*SportEventResponse, error) UpdateSportEvent(ctx context.Context, in *MsgUpdateSportEvent, opts ...grpc.CallOption) (*SportEventResponse, 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 MsgResolveSportEvent ¶
type MsgResolveSportEvent struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"` }
func NewMsgResolveEvent ¶
func NewMsgResolveEvent(creator, ticket string) *MsgResolveSportEvent
NewMsgResolveEvent accepts the params to create new resolution body
func (*MsgResolveSportEvent) Descriptor ¶
func (*MsgResolveSportEvent) Descriptor() ([]byte, []int)
func (*MsgResolveSportEvent) GetCreator ¶
func (m *MsgResolveSportEvent) GetCreator() string
func (*MsgResolveSportEvent) GetSignBytes ¶
func (msg *MsgResolveSportEvent) GetSignBytes() []byte
GetSignBytes return the marshalled bytes of the msg
func (*MsgResolveSportEvent) GetSigners ¶
func (msg *MsgResolveSportEvent) GetSigners() []sdk.AccAddress
GetSigners return the creators address
func (*MsgResolveSportEvent) GetTicket ¶
func (m *MsgResolveSportEvent) GetTicket() string
func (*MsgResolveSportEvent) Marshal ¶
func (m *MsgResolveSportEvent) Marshal() (dAtA []byte, err error)
func (*MsgResolveSportEvent) MarshalTo ¶
func (m *MsgResolveSportEvent) MarshalTo(dAtA []byte) (int, error)
func (*MsgResolveSportEvent) MarshalToSizedBuffer ¶
func (m *MsgResolveSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgResolveSportEvent) ProtoMessage ¶
func (*MsgResolveSportEvent) ProtoMessage()
func (*MsgResolveSportEvent) Reset ¶
func (m *MsgResolveSportEvent) Reset()
func (*MsgResolveSportEvent) Route ¶
func (msg *MsgResolveSportEvent) Route() string
Route return the message route for slashing
func (*MsgResolveSportEvent) Size ¶
func (m *MsgResolveSportEvent) Size() (n int)
func (*MsgResolveSportEvent) String ¶
func (m *MsgResolveSportEvent) String() string
func (*MsgResolveSportEvent) Type ¶
func (msg *MsgResolveSportEvent) Type() string
Type return the resolve event type
func (*MsgResolveSportEvent) Unmarshal ¶
func (m *MsgResolveSportEvent) Unmarshal(dAtA []byte) error
func (*MsgResolveSportEvent) ValidateBasic ¶
func (msg *MsgResolveSportEvent) ValidateBasic() error
ValidateBasic validates the input resolution event
func (*MsgResolveSportEvent) XXX_DiscardUnknown ¶
func (m *MsgResolveSportEvent) XXX_DiscardUnknown()
func (*MsgResolveSportEvent) XXX_Marshal ¶
func (m *MsgResolveSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgResolveSportEvent) XXX_Merge ¶
func (m *MsgResolveSportEvent) XXX_Merge(src proto.Message)
func (*MsgResolveSportEvent) XXX_Size ¶
func (m *MsgResolveSportEvent) XXX_Size() int
func (*MsgResolveSportEvent) XXX_Unmarshal ¶
func (m *MsgResolveSportEvent) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { AddSportEvent(context.Context, *MsgAddSportEvent) (*SportEventResponse, error) ResolveSportEvent(context.Context, *MsgResolveSportEvent) (*SportEventResponse, error) UpdateSportEvent(context.Context, *MsgUpdateSportEvent) (*SportEventResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateSportEvent ¶
type MsgUpdateSportEvent struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"` }
func NewMsgUpdateEvent ¶
func NewMsgUpdateEvent(creator, ticket string) *MsgUpdateSportEvent
NewMsgUpdateEvent accepts the params to create new update body
func (*MsgUpdateSportEvent) Descriptor ¶
func (*MsgUpdateSportEvent) Descriptor() ([]byte, []int)
func (*MsgUpdateSportEvent) GetCreator ¶
func (m *MsgUpdateSportEvent) GetCreator() string
func (*MsgUpdateSportEvent) GetSignBytes ¶
func (msg *MsgUpdateSportEvent) GetSignBytes() []byte
GetSignBytes return the marshalled bytes of the msg
func (*MsgUpdateSportEvent) GetSigners ¶
func (msg *MsgUpdateSportEvent) GetSigners() []sdk.AccAddress
GetSigners return the creators address
func (*MsgUpdateSportEvent) GetTicket ¶
func (m *MsgUpdateSportEvent) GetTicket() string
func (*MsgUpdateSportEvent) Marshal ¶
func (m *MsgUpdateSportEvent) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSportEvent) MarshalTo ¶
func (m *MsgUpdateSportEvent) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSportEvent) MarshalToSizedBuffer ¶
func (m *MsgUpdateSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSportEvent) ProtoMessage ¶
func (*MsgUpdateSportEvent) ProtoMessage()
func (*MsgUpdateSportEvent) Reset ¶
func (m *MsgUpdateSportEvent) Reset()
func (*MsgUpdateSportEvent) Route ¶
func (msg *MsgUpdateSportEvent) Route() string
Route return the message route for slashing
func (*MsgUpdateSportEvent) Size ¶
func (m *MsgUpdateSportEvent) Size() (n int)
func (*MsgUpdateSportEvent) String ¶
func (m *MsgUpdateSportEvent) String() string
func (*MsgUpdateSportEvent) Type ¶
func (msg *MsgUpdateSportEvent) Type() string
Type return the update event type
func (*MsgUpdateSportEvent) Unmarshal ¶
func (m *MsgUpdateSportEvent) Unmarshal(dAtA []byte) error
func (*MsgUpdateSportEvent) ValidateBasic ¶
func (msg *MsgUpdateSportEvent) ValidateBasic() error
ValidateBasic validates the input update event
func (*MsgUpdateSportEvent) XXX_DiscardUnknown ¶
func (m *MsgUpdateSportEvent) XXX_DiscardUnknown()
func (*MsgUpdateSportEvent) XXX_Marshal ¶
func (m *MsgUpdateSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSportEvent) XXX_Merge ¶
func (m *MsgUpdateSportEvent) XXX_Merge(src proto.Message)
func (*MsgUpdateSportEvent) XXX_Size ¶
func (m *MsgUpdateSportEvent) XXX_Size() int
func (*MsgUpdateSportEvent) XXX_Unmarshal ¶
func (m *MsgUpdateSportEvent) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // default minimum bet amount for sport event EventMinBetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 184-byte string literal not displayed */ // default min bet fee for a sport event EventMinBetFee github_com_cosmos_cosmos_sdk_types.Coin `` /* 173-byte string literal not displayed */ }
Params defines the parameters for the module. contains bet constraints associated to a sport event
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a SportEvent by uid. SportEvent(ctx context.Context, in *QuerySportEventRequest, opts ...grpc.CallOption) (*QuerySportEventResponse, error) // Queries a list of SportEvent items. SportEvents(ctx context.Context, in *QuerySportEventsRequest, opts ...grpc.CallOption) (*QuerySportEventsResponse, error) // Queries a list of SportEventsByUIDs items. SportEventsByUIDs(ctx context.Context, in *QuerySportEventsByUIDsRequest, opts ...grpc.CallOption) (*QuerySportEventsByUIDsResponse, 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 QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a SportEvent by uid. SportEvent(context.Context, *QuerySportEventRequest) (*QuerySportEventResponse, error) // Queries a list of SportEvent items. SportEvents(context.Context, *QuerySportEventsRequest) (*QuerySportEventsResponse, error) // Queries a list of SportEventsByUIDs items. SportEventsByUIDs(context.Context, *QuerySportEventsByUIDsRequest) (*QuerySportEventsByUIDsResponse, error) }
QueryServer is the server API for Query service.
type QuerySportEventRequest ¶
type QuerySportEventRequest struct {
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
}
func (*QuerySportEventRequest) Descriptor ¶
func (*QuerySportEventRequest) Descriptor() ([]byte, []int)
func (*QuerySportEventRequest) GetUid ¶
func (m *QuerySportEventRequest) GetUid() string
func (*QuerySportEventRequest) Marshal ¶
func (m *QuerySportEventRequest) Marshal() (dAtA []byte, err error)
func (*QuerySportEventRequest) MarshalTo ¶
func (m *QuerySportEventRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventRequest) MarshalToSizedBuffer ¶
func (m *QuerySportEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventRequest) ProtoMessage ¶
func (*QuerySportEventRequest) ProtoMessage()
func (*QuerySportEventRequest) Reset ¶
func (m *QuerySportEventRequest) Reset()
func (*QuerySportEventRequest) Size ¶
func (m *QuerySportEventRequest) Size() (n int)
func (*QuerySportEventRequest) String ¶
func (m *QuerySportEventRequest) String() string
func (*QuerySportEventRequest) Unmarshal ¶
func (m *QuerySportEventRequest) Unmarshal(dAtA []byte) error
func (*QuerySportEventRequest) XXX_DiscardUnknown ¶
func (m *QuerySportEventRequest) XXX_DiscardUnknown()
func (*QuerySportEventRequest) XXX_Marshal ¶
func (m *QuerySportEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventRequest) XXX_Merge ¶
func (m *QuerySportEventRequest) XXX_Merge(src proto.Message)
func (*QuerySportEventRequest) XXX_Size ¶
func (m *QuerySportEventRequest) XXX_Size() int
func (*QuerySportEventRequest) XXX_Unmarshal ¶
func (m *QuerySportEventRequest) XXX_Unmarshal(b []byte) error
type QuerySportEventResponse ¶
type QuerySportEventResponse struct {
SportEvent SportEvent `protobuf:"bytes,1,opt,name=sportEvent,proto3" json:"sportEvent"`
}
func (*QuerySportEventResponse) Descriptor ¶
func (*QuerySportEventResponse) Descriptor() ([]byte, []int)
func (*QuerySportEventResponse) GetSportEvent ¶
func (m *QuerySportEventResponse) GetSportEvent() SportEvent
func (*QuerySportEventResponse) Marshal ¶
func (m *QuerySportEventResponse) Marshal() (dAtA []byte, err error)
func (*QuerySportEventResponse) MarshalTo ¶
func (m *QuerySportEventResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventResponse) MarshalToSizedBuffer ¶
func (m *QuerySportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventResponse) ProtoMessage ¶
func (*QuerySportEventResponse) ProtoMessage()
func (*QuerySportEventResponse) Reset ¶
func (m *QuerySportEventResponse) Reset()
func (*QuerySportEventResponse) Size ¶
func (m *QuerySportEventResponse) Size() (n int)
func (*QuerySportEventResponse) String ¶
func (m *QuerySportEventResponse) String() string
func (*QuerySportEventResponse) Unmarshal ¶
func (m *QuerySportEventResponse) Unmarshal(dAtA []byte) error
func (*QuerySportEventResponse) XXX_DiscardUnknown ¶
func (m *QuerySportEventResponse) XXX_DiscardUnknown()
func (*QuerySportEventResponse) XXX_Marshal ¶
func (m *QuerySportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventResponse) XXX_Merge ¶
func (m *QuerySportEventResponse) XXX_Merge(src proto.Message)
func (*QuerySportEventResponse) XXX_Size ¶
func (m *QuerySportEventResponse) XXX_Size() int
func (*QuerySportEventResponse) XXX_Unmarshal ¶
func (m *QuerySportEventResponse) XXX_Unmarshal(b []byte) error
type QuerySportEventsByUIDsRequest ¶
type QuerySportEventsByUIDsRequest struct {
Uids []string `protobuf:"bytes,1,rep,name=uids,proto3" json:"uids"`
}
Query list of SportEvents by Uids
func (*QuerySportEventsByUIDsRequest) Descriptor ¶
func (*QuerySportEventsByUIDsRequest) Descriptor() ([]byte, []int)
func (*QuerySportEventsByUIDsRequest) GetUids ¶
func (m *QuerySportEventsByUIDsRequest) GetUids() []string
func (*QuerySportEventsByUIDsRequest) Marshal ¶
func (m *QuerySportEventsByUIDsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySportEventsByUIDsRequest) MarshalTo ¶
func (m *QuerySportEventsByUIDsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventsByUIDsRequest) MarshalToSizedBuffer ¶
func (m *QuerySportEventsByUIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventsByUIDsRequest) ProtoMessage ¶
func (*QuerySportEventsByUIDsRequest) ProtoMessage()
func (*QuerySportEventsByUIDsRequest) Reset ¶
func (m *QuerySportEventsByUIDsRequest) Reset()
func (*QuerySportEventsByUIDsRequest) Size ¶
func (m *QuerySportEventsByUIDsRequest) Size() (n int)
func (*QuerySportEventsByUIDsRequest) String ¶
func (m *QuerySportEventsByUIDsRequest) String() string
func (*QuerySportEventsByUIDsRequest) Unmarshal ¶
func (m *QuerySportEventsByUIDsRequest) Unmarshal(dAtA []byte) error
func (*QuerySportEventsByUIDsRequest) XXX_DiscardUnknown ¶
func (m *QuerySportEventsByUIDsRequest) XXX_DiscardUnknown()
func (*QuerySportEventsByUIDsRequest) XXX_Marshal ¶
func (m *QuerySportEventsByUIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventsByUIDsRequest) XXX_Merge ¶
func (m *QuerySportEventsByUIDsRequest) XXX_Merge(src proto.Message)
func (*QuerySportEventsByUIDsRequest) XXX_Size ¶
func (m *QuerySportEventsByUIDsRequest) XXX_Size() int
func (*QuerySportEventsByUIDsRequest) XXX_Unmarshal ¶
func (m *QuerySportEventsByUIDsRequest) XXX_Unmarshal(b []byte) error
type QuerySportEventsByUIDsResponse ¶
type QuerySportEventsByUIDsResponse struct { SportEvents []SportEvent `protobuf:"bytes,1,rep,name=sportEvents,proto3" json:"sportEvents"` FailedEvents []string `protobuf:"bytes,2,rep,name=failedEvents,proto3" json:"failedEvents,omitempty"` }
Fetch sport events by uids response
func (*QuerySportEventsByUIDsResponse) Descriptor ¶
func (*QuerySportEventsByUIDsResponse) Descriptor() ([]byte, []int)
func (*QuerySportEventsByUIDsResponse) GetFailedEvents ¶
func (m *QuerySportEventsByUIDsResponse) GetFailedEvents() []string
func (*QuerySportEventsByUIDsResponse) GetSportEvents ¶
func (m *QuerySportEventsByUIDsResponse) GetSportEvents() []SportEvent
func (*QuerySportEventsByUIDsResponse) Marshal ¶
func (m *QuerySportEventsByUIDsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySportEventsByUIDsResponse) MarshalTo ¶
func (m *QuerySportEventsByUIDsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventsByUIDsResponse) MarshalToSizedBuffer ¶
func (m *QuerySportEventsByUIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventsByUIDsResponse) ProtoMessage ¶
func (*QuerySportEventsByUIDsResponse) ProtoMessage()
func (*QuerySportEventsByUIDsResponse) Reset ¶
func (m *QuerySportEventsByUIDsResponse) Reset()
func (*QuerySportEventsByUIDsResponse) Size ¶
func (m *QuerySportEventsByUIDsResponse) Size() (n int)
func (*QuerySportEventsByUIDsResponse) String ¶
func (m *QuerySportEventsByUIDsResponse) String() string
func (*QuerySportEventsByUIDsResponse) Unmarshal ¶
func (m *QuerySportEventsByUIDsResponse) Unmarshal(dAtA []byte) error
func (*QuerySportEventsByUIDsResponse) XXX_DiscardUnknown ¶
func (m *QuerySportEventsByUIDsResponse) XXX_DiscardUnknown()
func (*QuerySportEventsByUIDsResponse) XXX_Marshal ¶
func (m *QuerySportEventsByUIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventsByUIDsResponse) XXX_Merge ¶
func (m *QuerySportEventsByUIDsResponse) XXX_Merge(src proto.Message)
func (*QuerySportEventsByUIDsResponse) XXX_Size ¶
func (m *QuerySportEventsByUIDsResponse) XXX_Size() int
func (*QuerySportEventsByUIDsResponse) XXX_Unmarshal ¶
func (m *QuerySportEventsByUIDsResponse) XXX_Unmarshal(b []byte) error
type QuerySportEventsRequest ¶
type QuerySportEventsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QuerySportEventsRequest) Descriptor ¶
func (*QuerySportEventsRequest) Descriptor() ([]byte, []int)
func (*QuerySportEventsRequest) GetPagination ¶
func (m *QuerySportEventsRequest) GetPagination() *query.PageRequest
func (*QuerySportEventsRequest) Marshal ¶
func (m *QuerySportEventsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySportEventsRequest) MarshalTo ¶
func (m *QuerySportEventsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventsRequest) MarshalToSizedBuffer ¶
func (m *QuerySportEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventsRequest) ProtoMessage ¶
func (*QuerySportEventsRequest) ProtoMessage()
func (*QuerySportEventsRequest) Reset ¶
func (m *QuerySportEventsRequest) Reset()
func (*QuerySportEventsRequest) Size ¶
func (m *QuerySportEventsRequest) Size() (n int)
func (*QuerySportEventsRequest) String ¶
func (m *QuerySportEventsRequest) String() string
func (*QuerySportEventsRequest) Unmarshal ¶
func (m *QuerySportEventsRequest) Unmarshal(dAtA []byte) error
func (*QuerySportEventsRequest) XXX_DiscardUnknown ¶
func (m *QuerySportEventsRequest) XXX_DiscardUnknown()
func (*QuerySportEventsRequest) XXX_Marshal ¶
func (m *QuerySportEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventsRequest) XXX_Merge ¶
func (m *QuerySportEventsRequest) XXX_Merge(src proto.Message)
func (*QuerySportEventsRequest) XXX_Size ¶
func (m *QuerySportEventsRequest) XXX_Size() int
func (*QuerySportEventsRequest) XXX_Unmarshal ¶
func (m *QuerySportEventsRequest) XXX_Unmarshal(b []byte) error
type QuerySportEventsResponse ¶
type QuerySportEventsResponse struct { SportEvent []SportEvent `protobuf:"bytes,1,rep,name=sportEvent,proto3" json:"sportEvent"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySportEventsResponse) Descriptor ¶
func (*QuerySportEventsResponse) Descriptor() ([]byte, []int)
func (*QuerySportEventsResponse) GetPagination ¶
func (m *QuerySportEventsResponse) GetPagination() *query.PageResponse
func (*QuerySportEventsResponse) GetSportEvent ¶
func (m *QuerySportEventsResponse) GetSportEvent() []SportEvent
func (*QuerySportEventsResponse) Marshal ¶
func (m *QuerySportEventsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySportEventsResponse) MarshalTo ¶
func (m *QuerySportEventsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventsResponse) MarshalToSizedBuffer ¶
func (m *QuerySportEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventsResponse) ProtoMessage ¶
func (*QuerySportEventsResponse) ProtoMessage()
func (*QuerySportEventsResponse) Reset ¶
func (m *QuerySportEventsResponse) Reset()
func (*QuerySportEventsResponse) Size ¶
func (m *QuerySportEventsResponse) Size() (n int)
func (*QuerySportEventsResponse) String ¶
func (m *QuerySportEventsResponse) String() string
func (*QuerySportEventsResponse) Unmarshal ¶
func (m *QuerySportEventsResponse) Unmarshal(dAtA []byte) error
func (*QuerySportEventsResponse) XXX_DiscardUnknown ¶
func (m *QuerySportEventsResponse) XXX_DiscardUnknown()
func (*QuerySportEventsResponse) XXX_Marshal ¶
func (m *QuerySportEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventsResponse) XXX_Merge ¶
func (m *QuerySportEventsResponse) XXX_Merge(src proto.Message)
func (*QuerySportEventsResponse) XXX_Size ¶
func (m *QuerySportEventsResponse) XXX_Size() int
func (*QuerySportEventsResponse) XXX_Unmarshal ¶
func (m *QuerySportEventsResponse) XXX_Unmarshal(b []byte) error
type ResolutionEvent ¶
type ResolutionEvent struct { UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` ResolutionTS uint64 `protobuf:"varint,2,opt,name=resolution_ts,proto3" json:"resolution_ts"` WinnerOddsUIDs []string `protobuf:"bytes,3,rep,name=winner_odds_uids,proto3" json:"winner_odds_uids"` Status SportEventStatus `protobuf:"varint,4,opt,name=status,proto3,enum=sgexnetwork.sgex.sportevent.SportEventStatus" json:"status,omitempty"` }
func (*ResolutionEvent) Descriptor ¶
func (*ResolutionEvent) Descriptor() ([]byte, []int)
func (*ResolutionEvent) GetResolutionTS ¶
func (m *ResolutionEvent) GetResolutionTS() uint64
func (*ResolutionEvent) GetStatus ¶
func (m *ResolutionEvent) GetStatus() SportEventStatus
func (*ResolutionEvent) GetUID ¶
func (m *ResolutionEvent) GetUID() string
func (*ResolutionEvent) GetWinnerOddsUIDs ¶
func (m *ResolutionEvent) GetWinnerOddsUIDs() []string
func (*ResolutionEvent) Marshal ¶
func (m *ResolutionEvent) Marshal() (dAtA []byte, err error)
func (*ResolutionEvent) MarshalToSizedBuffer ¶
func (m *ResolutionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResolutionEvent) ProtoMessage ¶
func (*ResolutionEvent) ProtoMessage()
func (*ResolutionEvent) Reset ¶
func (m *ResolutionEvent) Reset()
func (*ResolutionEvent) Size ¶
func (m *ResolutionEvent) Size() (n int)
func (*ResolutionEvent) String ¶
func (m *ResolutionEvent) String() string
func (*ResolutionEvent) Unmarshal ¶
func (m *ResolutionEvent) Unmarshal(dAtA []byte) error
func (*ResolutionEvent) XXX_DiscardUnknown ¶
func (m *ResolutionEvent) XXX_DiscardUnknown()
func (*ResolutionEvent) XXX_Marshal ¶
func (m *ResolutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResolutionEvent) XXX_Merge ¶
func (m *ResolutionEvent) XXX_Merge(src proto.Message)
func (*ResolutionEvent) XXX_Size ¶
func (m *ResolutionEvent) XXX_Size() int
func (*ResolutionEvent) XXX_Unmarshal ¶
func (m *ResolutionEvent) XXX_Unmarshal(b []byte) error
type SportEvent ¶
type SportEvent struct { UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` StartTS uint64 `protobuf:"varint,2,opt,name=start_ts,proto3" json:"start_ts"` EndTS uint64 `protobuf:"varint,3,opt,name=end_ts,proto3" json:"end_ts"` OddsUIDs []string `protobuf:"bytes,4,rep,name=odds_uids,proto3" json:"odds_uids"` WinnerOddsUIDs []string `protobuf:"bytes,5,rep,name=winner_odds_uids,proto3" json:"winner_odds_uids"` Status SportEventStatus `protobuf:"varint,6,opt,name=status,proto3,enum=sgexnetwork.sgex.sportevent.SportEventStatus" json:"status,omitempty"` ResolutionTS uint64 `protobuf:"varint,7,opt,name=resolution_ts,proto3" json:"resolution_ts"` Creator string `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator,omitempty"` BetConstraints *EventBetConstraints `protobuf:"bytes,9,opt,name=betConstraints,proto3" json:"betConstraints,omitempty"` Active bool `protobuf:"varint,10,opt,name=active,proto3" json:"active,omitempty"` }
the internal keeper representation of sport event
func (*SportEvent) Descriptor ¶
func (*SportEvent) Descriptor() ([]byte, []int)
func (*SportEvent) GetActive ¶
func (m *SportEvent) GetActive() bool
func (*SportEvent) GetBetConstraints ¶
func (m *SportEvent) GetBetConstraints() *EventBetConstraints
func (*SportEvent) GetCreator ¶
func (m *SportEvent) GetCreator() string
func (*SportEvent) GetEndTS ¶
func (m *SportEvent) GetEndTS() uint64
func (*SportEvent) GetOddsUIDs ¶
func (m *SportEvent) GetOddsUIDs() []string
func (*SportEvent) GetResolutionTS ¶
func (m *SportEvent) GetResolutionTS() uint64
func (*SportEvent) GetStartTS ¶
func (m *SportEvent) GetStartTS() uint64
func (*SportEvent) GetStatus ¶
func (m *SportEvent) GetStatus() SportEventStatus
func (*SportEvent) GetUID ¶
func (m *SportEvent) GetUID() string
func (*SportEvent) GetWinnerOddsUIDs ¶
func (m *SportEvent) GetWinnerOddsUIDs() []string
func (*SportEvent) Marshal ¶
func (m *SportEvent) Marshal() (dAtA []byte, err error)
func (*SportEvent) MarshalToSizedBuffer ¶
func (m *SportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SportEvent) ProtoMessage ¶
func (*SportEvent) ProtoMessage()
func (*SportEvent) Reset ¶
func (m *SportEvent) Reset()
func (*SportEvent) Size ¶
func (m *SportEvent) Size() (n int)
func (*SportEvent) String ¶
func (m *SportEvent) String() string
func (*SportEvent) Unmarshal ¶
func (m *SportEvent) Unmarshal(dAtA []byte) error
func (*SportEvent) XXX_DiscardUnknown ¶
func (m *SportEvent) XXX_DiscardUnknown()
func (*SportEvent) XXX_Marshal ¶
func (m *SportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SportEvent) XXX_Merge ¶
func (m *SportEvent) XXX_Merge(src proto.Message)
func (*SportEvent) XXX_Size ¶
func (m *SportEvent) XXX_Size() int
func (*SportEvent) XXX_Unmarshal ¶
func (m *SportEvent) XXX_Unmarshal(b []byte) error
type SportEventResponse ¶
type SportEventResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Data *SportEvent `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
SportEvent response for all the transactions call
func (*SportEventResponse) Descriptor ¶
func (*SportEventResponse) Descriptor() ([]byte, []int)
func (*SportEventResponse) GetData ¶
func (m *SportEventResponse) GetData() *SportEvent
func (*SportEventResponse) GetError ¶
func (m *SportEventResponse) GetError() string
func (*SportEventResponse) Marshal ¶
func (m *SportEventResponse) Marshal() (dAtA []byte, err error)
func (*SportEventResponse) MarshalTo ¶
func (m *SportEventResponse) MarshalTo(dAtA []byte) (int, error)
func (*SportEventResponse) MarshalToSizedBuffer ¶
func (m *SportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SportEventResponse) ProtoMessage ¶
func (*SportEventResponse) ProtoMessage()
func (*SportEventResponse) Reset ¶
func (m *SportEventResponse) Reset()
func (*SportEventResponse) Size ¶
func (m *SportEventResponse) Size() (n int)
func (*SportEventResponse) String ¶
func (m *SportEventResponse) String() string
func (*SportEventResponse) Unmarshal ¶
func (m *SportEventResponse) Unmarshal(dAtA []byte) error
func (*SportEventResponse) XXX_DiscardUnknown ¶
func (m *SportEventResponse) XXX_DiscardUnknown()
func (*SportEventResponse) XXX_Marshal ¶
func (m *SportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SportEventResponse) XXX_Merge ¶
func (m *SportEventResponse) XXX_Merge(src proto.Message)
func (*SportEventResponse) XXX_Size ¶
func (m *SportEventResponse) XXX_Size() int
func (*SportEventResponse) XXX_Unmarshal ¶
func (m *SportEventResponse) XXX_Unmarshal(b []byte) error
type SportEventStatus ¶
type SportEventStatus int32
const ( SportEventStatus_STATUS_PENDING SportEventStatus = 0 SportEventStatus_STATUS_INVALID SportEventStatus = 1 SportEventStatus_STATUS_CANCELLED SportEventStatus = 2 SportEventStatus_STATUS_ABORTED SportEventStatus = 3 SportEventStatus_STATUS_RESULT_DECLARED SportEventStatus = 4 )
func (SportEventStatus) EnumDescriptor ¶
func (SportEventStatus) EnumDescriptor() ([]byte, []int)
func (SportEventStatus) String ¶
func (x SportEventStatus) String() string
type SportEventUpdateTicket ¶
type SportEventUpdateTicket struct {
Events []SportEvent `json:"events"`
}
SportEventUpdateTicket is the ticket type for sport event update
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddSportEvent ¶
func (*UnimplementedMsgServer) AddSportEvent(ctx context.Context, req *MsgAddSportEvent) (*SportEventResponse, error)
func (*UnimplementedMsgServer) ResolveSportEvent ¶
func (*UnimplementedMsgServer) ResolveSportEvent(ctx context.Context, req *MsgResolveSportEvent) (*SportEventResponse, error)
func (*UnimplementedMsgServer) UpdateSportEvent ¶
func (*UnimplementedMsgServer) UpdateSportEvent(ctx context.Context, req *MsgUpdateSportEvent) (*SportEventResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) SportEvent ¶
func (*UnimplementedQueryServer) SportEvent(ctx context.Context, req *QuerySportEventRequest) (*QuerySportEventResponse, error)
func (*UnimplementedQueryServer) SportEvents ¶
func (*UnimplementedQueryServer) SportEvents(ctx context.Context, req *QuerySportEventsRequest) (*QuerySportEventsResponse, error)
func (*UnimplementedQueryServer) SportEventsByUIDs ¶
func (*UnimplementedQueryServer) SportEventsByUIDs(ctx context.Context, req *QuerySportEventsByUIDsRequest) (*QuerySportEventsByUIDsResponse, error)